When flashing Linksys wrt54gL routers you have to cd into the bin directory before running the flash.sh script. Usually this is an extra annoying step. This is because the TFTP on the router doesn't allow you to use directories. I fix this by adding a remote path of 'openwrt.bin' to the tftp commands.
For example this command fails. ~/src/openwrt > scripts/flashing/flash.sh bin/openwrtimage linksys Signed-off-by: Harry William Bullen IV hbul...@gmail.com Index: scripts/flashing/flash.sh =================================================================== --- scripts/flashing/flash.sh (revision 19112) +++ scripts/flashing/flash.sh (working copy) @@ -57,7 +57,7 @@ echo Please wait until leds stops flashing. elif [ "$2" == "linksys" ]; then echo Flashing 192.168.1.1 using $1... -echo -en "rexmt 1\ntrace\nbinary\nput $1\nquit\n" | tftp 192.168.1.1 +echo -en "rexmt 1\ntrace\nbinary\nput $1 openwrt.bin\nquit\n" | tftp 192.168.1.1 echo Please wait until power led stops flashing. Do not poweroff! Then you can login via telnet 192.168.1.1. elif [ "$2" == "toshiba" ]; then echo Flashing 192.168.10.1 using $1... Harry William Bullen IV _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel