In my previous post we installed OpenWrt 10.03.1 on D-Link’s DSL-G624T. In this post I’ll show you, just in case you’re not happy with OpenWrt, how you can uninstall it and go back to the original D-Link firmware. The procedure is simple. You connect to the bootloader again, open an ftp connection, flash the original D-Link firmware and reset the mtd variables to their original values (you did make a note of the original mtd values, didn’t you?).
Before we begin we need to grab the original DSL-G624T firmware. You can find v3.10 of the original firmware on the router’s product support page (I’ve also uploaded it to OneDrive in case D-Link decides to remove it. SHA1:
73867582db7120ed1a3d5a59afb4ad395dda21f8). Download the zip archive and extract the firmware image ‘DLinkEU-A_DSL-G624T_singleimage_kernel_fs_-V3.10B01T02.EU–A.20070613’. Rename the image to something more manageable like ‘original.bin‘.
Now that we have the firmware let’s connect to the modem. Connect your USB-to-UART converter to the modem’s serial port as before:
- Converter GND to modem pin 4 or pin 2 (either one will do)
- Converter Rx to modem pin 1
- Converter Tx to modem pin 5
Launch your preferred terminal emulator (I’ll be using PuTTY) and open the serial connection. Power on the router (I use the terms ‘modem’ and ‘router’ interchangeably) and stop the bootloader from running the OS (just press any key). Set an ip address in the 192.168.1.x range for your NIC and connect to the router via UTP. Next, if you’re running Ubuntu, make sure that F-RTO is disabled (more info in my previous post), change to the directory where you extracted the original firmware and open an ftp connection to 192.168.1.199.
With the ftp connection established, issue, as before, the following commands:
ftp> binary 200 Type set to I. ftp> hash Hash mark printing on (1024 bytes/hash mark). ftp> quote MEDIA FLSH 200 Media set to FLSH. ftp>
ftp> put original.bin "fw mtd1"
Just like when we flashed OpenWrt, the memory will be erased first, and then the transfer will begin. You can monitor the progress of the erase in PuTTY.
With the transfer of the original firmware completed, we need to reset mtd1 to its original value. At the bootloader prompt issue the following command:
Adam2_AR7RD > setenv mtd1 0x90010090,0x900a1000
Make sure that the mtd variables now have the values given below:
Adam2_AR7RD > printenv mtd0 0x900a1000,0x903f0000 mtd1 0x90010090,0x900a1000 mtd2 0x90000000,0x90010000 mtd3 0x903f0000,0x90400000 mtd4 0x90010000,0x903f0000
At this point we are ready to run the original D-Link firmware. Disconnect the UTP cable. Switch to PuTTY and enter
Adam2_AR7RD > go
Good job, your modem is now running the original D-Link firmware.
If you have any questions or if you spotted any errors or omissions, please leave me a comment.