Page 1 of 1

"Official firmware can be reloaded into the radio"??

Posted: Tue Jan 09, 2024 10:02 pm
by KD6KXN
Quoting from the "Installation" section of the OpenGD77 user guide:
Installation of the firmware is undertaken at the owner's own risk, but the official firmware can usually be reloaded onto the radio if the user has problems with the firmware, as long as the operator takes a full backup of their radio using the OpenGD77 CPS immediately after the firmware has been installed
I'm having trouble understanding what this means. It seems to imply that doing this ensures that you can restore the factory firmware ("official" firmware?) if you take this backup—but after you flash your radio with the OpenGD77 firmware.

Or does it mean something else? If you're having problems with the radio after flashing it with OpenGD77, it can't really do much good to have a backup of the same firmware, can it? The user manual can't mean this; it doesn't make any sense.

But then, how could taking a backup of the flashed firmware help you restore the factory firmware? That doesn't make much sense, either. The user manual refers to the "official" firmware but it's really not clear what "official" means—is that the factory firmware, or OpenGD77?

My best guess is that it's suggesting that if I somehow screw up OpenGD77 on my radio (how?!), I could just restore to the state it was in immediately after I uploaded it. Except it's hard for me to imagine how anyone could screw up a radio that badly, or why one couldn't just flash the radio with OpenGD77 again using the firmware uploader.

Bottom line: I'm going to switch to OpenGD77 but I do not like being boxed into a corner. And yeah, I know, I could just restore the factory firmware from Baofeng (I've got a DM-1701), except that Raddiodity is not up to date on firmware for this radio. Current release on my radio: 2.06. Most recent release on Raddioddity for the DM-1701: 2.03. So I'd be going back to a potentially buggier version.

https://www.radioddity.com/pages/baofeng-download

(The truth is I'll probably be happier with OpenGD77 and never look back, but if you can't tell, I get a little nervous when it comes to firmware.)

Re: "Official firmware can be reloaded into the radio"??

Posted: Tue Jan 09, 2024 11:06 pm
by VK3KYY
KD6KXN wrote:
Tue Jan 09, 2024 10:02 pm
Quoting from the "Installation" section of the OpenGD77 user guide:
Installation of the firmware is undertaken at the owner's own risk, but the official firmware can usually be reloaded onto the radio if the user has problems with the firmware, as long as the operator takes a full backup of their radio using the OpenGD77 CPS immediately after the firmware has been installed
I'm having trouble understanding what this means. It seems to imply that doing this ensures that you can restore the factory firmware ("official" firmware?) if you take this backup—but after you flash your radio with the OpenGD77 firmware.

Or does it mean something else? If you're having problems with the radio after flashing it with OpenGD77, it can't really do much good to have a backup of the same firmware, can it? The user manual can't mean this; it doesn't make any sense.

But then, how could taking a backup of the flashed firmware help you restore the factory firmware? That doesn't make much sense, either. The user manual refers to the "official" firmware but it's really not clear what "official" means—is that the factory firmware, or OpenGD77?

My best guess is that it's suggesting that if I somehow screw up OpenGD77 on my radio (how?!), I could just restore to the state it was in immediately after I uploaded it. Except it's hard for me to imagine how anyone could screw up a radio that badly, or why one couldn't just flash the radio with OpenGD77 again using the firmware uploader.

Bottom line: I'm going to switch to OpenGD77 but I do not like being boxed into a corner. And yeah, I know, I could just restore the factory firmware from Baofeng (I've got a DM-1701), except that Raddiodity is not up to date on firmware for this radio. Current release on my radio: 2.06. Most recent release on Raddioddity for the DM-1701: 2.03. So I'd be going back to a potentially buggier version.

https://www.radioddity.com/pages/baofeng-download

(The truth is I'll probably be happier with OpenGD77 and never look back, but if you can't tell, I get a little nervous when it comes to firmware.)
There is no way to backup the official firmware in any of the supported radios. The CPU is read protected.

If the manufacturer e.g. Baofeng, does not provide an official firmware update file for that radio, then it would not be possible to reload the official firmware

Re: "Official firmware can be reloaded into the radio"??

Posted: Tue Jan 09, 2024 11:29 pm
by KD6KXN
So the purpose of this backup is to be able to restore to the state when it was first flashed with OpenGD77? I'm not sure I understand the purpose, but I'm sure there are things I don't know about.

Re: "Official firmware can be reloaded into the radio"??

Posted: Wed Jan 10, 2024 1:47 am
by VK3KYY
KD6KXN wrote:
Tue Jan 09, 2024 11:29 pm
So the purpose of this backup is to be able to restore to the state when it was first flashed with OpenGD77? I'm not sure I understand the purpose, but I'm sure there are things I don't know about.
The official firmware in some radios has components like the display fonts which are stored in the memory of the radio and not part of the firmware.
The memory usually also contains other manufacturer private data like the calibration and many other things which we don't have any information about.

Hence if you plan to restore your radio into a state where the memory contains the original data, then you need to backup the memory.

What memory can be backed up depends on the radio hardware. Radios like the GD-77/MD-760, RD-5R, DM-1801 etc have both EEPROM and Flash memory chips.

Newer radios like the MD-9600, UV380 and DM1701 only have Flash memory

The function to backup the contents of the MCU ROM, after the OpenGD77 firmware has been installed into the ROM, is to backup the bootloader and also any other settings data which reside in the MCU ROM outside of the area used for the firmware application.

Backing up the MCU ROM would allow the MCU to be reflashed using a hardware programmer dongle, if for some reason the malfunctioned or somehow a firmware update caused problems with the bootlooader or settings data.
i.e the GD-77 type radios, have hardware lock data in the MCU ROM which can and has been corrupted by people loading random files into the radio instead of a firmware file.

I'm not aware of this ever happening on a UV380 / DM1701 or MD9600 but potentially it may be possible to put data into the MCU using various programming tools, which causes the MCU bootloader etc to no longer function.

Re: "Official firmware can be reloaded into the radio"??

Posted: Wed Jan 10, 2024 5:49 pm
by EU1AEQ
VK3KYY wrote:
Wed Jan 10, 2024 1:47 am
KD6KXN wrote:
Tue Jan 09, 2024 11:29 pm
So the purpose of this backup is to be able to restore to the state when it was first flashed with OpenGD77? I'm not sure I understand the purpose, but I'm sure there are things I don't know about.
Hence if you plan to restore your radio into a state where the memory contains the original data, then you need to backup the memory.
If I'm not mistaken, it's not necessary to restore a backup in RT3S? Is it possible to restore the factory firmware without this? Or am I wrong?

Re: "Official firmware can be reloaded into the radio"??

Posted: Wed Jan 10, 2024 6:02 pm
by G4EML
It is often possible to restore the factory firmware without using a backup, so it is worth trying if you need to do it. I have done it many times during development.
However strange things can sometimes happen, such as missing icons or password locking. Password locking is easily overcome but missing icons really need to be restored with the backup.

As Roger mentioned, the official firmware files do not contain everything the radio needs to operate. The factory must have also preloaded some data into the other memory at manufacture. Unfortunately we do not know exactly where or what this is, so it is possible that OpenGD77 will overwrite some of that data. Restoring from a flash backup is always the safest option.

Re: "Official firmware can be reloaded into the radio"??

Posted: Wed Jan 10, 2024 6:03 pm
by F1RMB
Again, if you want to get back to factory firmware, you NEED to restore the flash, as the content (fonts/etc) will be replaced by other stuff (DMRId/etc).
You CAN'T restore the firmware, you have to flash it after you restored the flash (using the OpenGD77 FW and CPS), and this using the manufacturer tools/firmware.