OpenWrt Forum Archive

Topic: restore an older firmware linksys wrt54gs

The content of this topic has been archived on 22 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

hello,
i've injected an openWrt firmware to my wrt54gs.
i want to restore the old firmware. or another ...
the html interface don't integer a flash part. i used tftp under freeBsd.

tftp 192.168.1.1
tftp> binary
tftp> rexmt 1
tftp> trace
Packet tracing on.
tftp> put openwrt-g-code.bin

but a have a time out. i have similar results under windows xp.
i've tried with two different card lan, an sis 900 and a realtek.

i realy need to restore it.
thanx

here is my 2 cents

whenever you sending firmware using tftp
plug your router's lan to a switch
plug your pc to the same switch (or HUB) whatever
this way while router booting network link is up so tftp won't timeout


now type this: if you are from windows tftp -i 192.168.1.1 put yourhackwrtimage.bin  hold on don't press enter yet
unplug the power cable from router, then wait 2sec now as you pluging the power cable hit hard on enter
wati LED will flash like Christmas Lights

onec everything back to normal you good to go

wireless joe

I have the same problem on a WRT54G, loaded with last experimental squashfs firmware.
I log in openWRT, I put boot_wait to on, I commit change, I reboot.
No way to load via tftp the linksys firmware (old 2.02.7 version) : timed out.
This is new : it used to work with the previous openWRT version.
I will try to use mtd soon.

Well, I've tried the mtd method... not morking !
it begins and failed immediatly :
erasing mtd failed : linux

before, I've used the dd tool like explained, then I used scp to copy the trx file to /tmp on WRT54G router.
Any idea how to go back to linksys firmware from openWRT squashfs ?

dubdub wrote:

Well, I've tried the mtd method... not morking !
it begins and failed immediatly :
erasing mtd failed : linux

before, I've used the dd tool like explained, then I used scp to copy the trx file to /tmp on WRT54G router.
Any idea how to go back to linksys firmware from openWRT squashfs ?

Did you try to unlock first, I received same problem couple of times and after doing "mtd unlock linux" it has worked.

Maybe some with more experience could confirm that it is normal that 'reboot' cmd does not work after the reflash  and that it has to be unlocked before flashing, then we could add this to the FAQ page as well.

Below printouts when I received same problem, and had to use 'unlock' to get it written.

root@OpenWrt:/# cd /tmp
root@OpenWrt:~# wget -O /tmp/linux.trx http://lairds.org/Kyler/Linux/OpenWRT/W … e_BETA.trx
Connecting to lairds.org[66.90.77.218]:80
linux.trx            100% |*********************************************************************|  3208 KB    00:00 ETA
root@OpenWrt:~# mtd write /tmp/linux.trx linux && reboot
Writing /tmp/linux.trx to linux ...
Erasing mtd failed: linux
root@OpenWrt:~# mtd unlock linux && mtd write /tmp/linux.trx linux && reboot
Unlocking linux ...
Writing /tmp/linux.trx to linux ...
/bin/ash: reboot: Input/output error
root@OpenWrt:~# reboot
/bin/ash: reboot: Input/output error
root@OpenWrt:~#

(and power on/off to reboot...)

regards,
Sebastian

(Last edited by ssjoholm on 9 May 2005, 11:18)

I bricked my router and can confirm that the instructions above work.

How I did it without a spare switch or hub:

I used Wireshark to check if it's broadcasting anything useful and found this:
      f4E@@7+Press reset now, to enter Failsafe!
Well you should already pressing your reset button by now.
      f4E@@7Entering Failsafe!
Thank you, I can telnet the router now :-)

The md5 checksum for those who care:
7e9b1f5a751f8aa08d8f40c1024b91c0  WRT54G_2.02.8_US_code_BETA.trx

Hardware: Linksys WRT54G v2 (can work on others)

actually i have install OpenWRT in this router linksys WRT54GL... for the first time, it connect successfully...when i try to connect again, it unsuccessful...

i can't even ping 192.168.1.1...

when i push the reset button, nothing happend.. the power light does not blink at all...



what can i do more to settle this???...arghhhh...

please help me....

The discussion might have continued from here.