Reverting a radio to factory firmware after OpenGD77

Category: FirmwareDifficulty: ★★☆~8 min

OpenGD77 is a great alternative firmware for the GD-77, DM-1801 and RD-5R, but sometimes you need to go back to stock: to return a radio under warranty, sell it "as new in box", or simply roll back an experiment. The good news — the revert is fully reversible if you made backups before flashing OpenGD77. The bad news — without them, getting the radio back to exactly its factory state is next to impossible. Let's go through the process step by step and flag the danger points.

What exactly has to be reverted

These radios have two independent storage areas, and OpenGD77 writes to both:

To make the radio stock again, you need to restore the contents of EEPROM and Flash, and then flash the factory firmware on top using the manufacturer's own loader.

Brick riskThe main danger of the revert is calibration. It lives inside that same 1 MB Flash at address 0x8F000. If you restore the entire Flash with a "foreign" dump, or interrupt flashing mid-write, the radio loses its transmitter/receiver calibration and turns into a brick or goes "deaf". Without a calibration backup there is no proper way to restore it.

Step 0. No backup — stop

A revert to stock is only as possible as you prepared before installing OpenGD77. If you made and saved the dumps when you switched over — let's continue. If not — skip to the "If you have no backup" section.

What should be sitting in a safe folder (or, better, in several places):

ImportantEEPROM and Flash are both exported as .bin and are easy to confuse. Label the files right away: GD77_eeprom.bin, GD77_flash.bin, GD77_calib.bin. Restoring the wrong file "into the wrong memory" is a direct path to trouble.

Step 1. Restore EEPROM and Flash via OpenGD77 CPS

The revert starts inside OpenGD77, not in the factory CPS. The logic is this: first return the memory "contents" to their original state using OpenGD77 tools, and only then swap the firmware itself.

  1. Connect the radio by cable and open OpenGD77 CPS.
  2. Menu Extras → OpenGD77 Support.
  3. Choose Restore (not Backup) and restore the EEPROM first — point it to your EEPROM file.
  4. Repeat for Flash — point it to the Flash file. Careful: both files are .bin, don't mix them up.

After this, "the firmware is still OpenGD77, but the memory is back to how it was before the experiments". This is a normal intermediate stage.

Calibration at riskRestoring the entire Flash will also overwrite calibration (it sits inside that same 1 MB). If your Flash dump was taken from this same radio — all good: the native calibration comes back. If the dump is foreign or dubious, restore only the calibration block at 0x8F000, or don't touch Flash at all and limit yourself to the firmware.

Step 2. Enter the bootloader

The factory firmware is flashed in bootloader mode — the same one used when installing OpenGD77.

  1. Turn the radio off and connect the USB cable to the PC.
  2. Hold down SK1 + SK2 and, while holding them, switch the radio on.
  3. The screen stays black and only the green LED is lit — you're in the bootloader.

On the RD-5R there are no side SK1/SK2 buttons — their role is played by the two buttons below the PTT: the top one = SK1, the bottom one = SK2. Hold both and switch the radio on.

Step 3. Flash the factory firmware (.sgl)

Now use the manufacturer's own tool, not OpenGD77.

  1. Download the archive with the factory firmware and the updater from the manufacturer's site (for the GD-77 — Radioddity; for the DM-1801 / RD-5R — Baofeng).
  2. Unpack it and find the loader program in the bundle (usually Update.exe in the Update Software → English folder).
  3. Point it to the .sgl firmware file for your model (for example, GD-77_Vx.x.x.sgl, the Ham version) and start the write.
  4. Wait for it to finish completely without disconnecting the cable or power.
Don't yank the cableLosing the connection or power while writing the .sgl is a classic brick scenario and a way to lose bootloader mode. Use a reliable cable and port, run a laptop on mains power, and don't touch the radio until flashing is done.

Step 4. Factory CPS and codeplug

After the revert, the radio again understands only the factory codeplug format. OpenGD77 files and stock codeplugs are incompatible — you can't open one in the other's CPS.

If you have no backup

Honestly: this is the most painful scenario. Flashing a "bare" factory .sgl is technically possible, but without your EEPROM/Flash dumps you won't get the native data back, and — most importantly — you risk being left without the original calibration if it was overwritten. Options:

The lesson for the future: backing up EEPROM, Flash and calibration is mandatory before installing any alternative firmware.

Back on stock — and you can still get on the network

Reverting to factory firmware doesn't cut you off from DMRhub. You can join our network from any DMR radio via a hotspot — or by installing OpenGD77 again and loading our ready-made network codeplug from the "Contacts" section. One import, and the groups and operators are already in the radio.

Sources

  1. OpenGD77 User Guide (Backup/Restore EEPROM, Flash, calibration 0x8F000) — github.com/LibreDMR/OpenGD77_UserGuide
  2. Revert to stock firmware — discussion on the OpenGD77 forum — opengd77.com (t=4279)
  3. Entering the bootloader and the factory updater (SK1+SK2, .sgl, Update.exe) — vk3tbs.home.blog — Updating GD-77 Firmware
  4. Factory firmware and the Radioddity updater — radioddity.com/pages/radioddity-download