OpenWrt Forum Archive

Topic: Failure to reflash wrt54gr

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

I have read webpages old and new for weeks now and can't find a workable answer. While there is no shortage of help and explanations out there, none seem to fit my current situation. I hope someone can help.

I was able to flash the router from factory to KAMIKAZE (8.09, r14511, openwrt-rdc-jffs2-64k-ar525w-web.img) using tftp from Windows XP, and then pressing the reset button on the router. The router works.

I've also managed to install the Kamikazi webif which I find a big improvement over LuCI.

I'd like to reflash the router to the squashfs version, but am unable to do so. I've tried to repeat the tftp steps that worked the first time, but the connections now only timeout.

Best I can tell, I should have found a way to set boot_wait before doing the first flash. I did not do this.

I can log into root on the router using putty, but nvram commands don't appear to be enabled.
Creating a serial connection to the console is not possible.

I need instructions on how to either set boot_wait after the fact, or find the set of steps that would allow me to reflash the router without boot_wait given the current situation.

Any clues would be greatly appreciated.

Thanks,

Doug.

This is a good forum thread on flashing the WRT54GR:

https://forum.openwrt.org/viewtopic.php?pid=147957


You can use the serial schematic below to interface with your WRT54GR:

http://wiki.openwrt.org/doku.php?id=old … 101:ar525w

In short:
1) You cannot use the web interface for flashing
2) You cannot use sysupgrade for flashing
3) You cannot use the usual tftp for flashing
4) You cannot use mtd for flashing

You need to connect with a serial interface, ctrl+c to stop at the bootloader during boot, tftpd to start the tftp daemon, then tftp your new image.

Part of the problem is that the NVRAM function is not built into Kernel 2.6 yet but you will also notice the mtd's 'cat /proc/mtd' are not the same as with Kernel 2.4.

I have also tried without success the RDC Loader (32-bit) program for the 6-pin JTAG interface - you seem to need a special JTAG cable to enable JTAG mode during boot.

One more note: you should be flashing back to the stock firmware - 
http://homedownloads.cisco.com/download … 112005.bin
If you want to use the OpenWRT .img file you will need to strip the beginning of the img with a hex editor so that it begins with "GMTK"
AND you will need to update the Checksum offset so that the checksum does not fail (I don't know how to do this yet).

(Last edited by EvilRedHorse on 21 Dec 2011, 11:58)

The discussion might have continued from here.