Sunday, February 10, 2008

OpenWRT Kamikaze 7.09 image loading

IMPORTANT: Before doing any of the following be sure you have boot wait turned on. You should already, but atftp won't load an image to the router without it.

Loading a new image of OpenWRT does not seem to be supported via webif in Kamikaze 7.09. I found that atftp works well. There are plenty of examples on how to do this, but I find that the procedure that works best is to cd to the directory with the image you want to load, then open up to terminals.
In the first terminal

$ping 192.168.1.1

Assuming that the router address is set to 192.168.1.1.
It will continously ping the router
In the second terminal, cd to the directory and then

$atftp

Then the atftp terminal pops up

tftp> connect 192.168.1.1
tftp> mode octet
tftp> trace
tftp> put openwrt-wrtsl54gs-squash.bin

NOTE: don't press enter on the last line just yet
Where you will substitute the image you want to upload for openwrt-wrtsl54gs-squash.bin
At this point you should have the put line typed in on one window and the router responding to pings in the first window. At this point unplug the router's power, watch for the pings to stop and plug the router back in. As soon as the router responds, press enter on the last line and several lines like the following should appear:

sent DAT
received ACK


Then wait at least 2 minutes and the router light should stop blinking.

No comments: