TFTP flash

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 22:57, 23 April 2008 (edit)
Techie (Talk | contribs)
m (GUI tftp utility)
← Previous diff
Revision as of 16:52, 28 April 2008 (edit) (undo)
Sbma44 (Talk | contribs)
(adding specific instructions for Belkin F5D7230-4v1000 and general Mac OS X instructions)
Next diff →
Line 16: Line 16:
and see if it is responding, e.g. like this <br> and see if it is responding, e.g. like this <br>
- 64 bytes from 192.168.1.123: icmp_seq=1 ttl=64 time=2.90 ms+ 64 bytes from 192.168.x.x: icmp_seq=1 ttl=64 time=2.90 ms
- 64 bytes from 192.168.1.123: icmp_seq=2 ttl=64 time=0.264 ms+ 64 bytes from 192.168.x.x: icmp_seq=2 ttl=64 time=0.264 ms
- 64 bytes from 192.168.1.123: icmp_seq=3 ttl=64 time=1.44 ms+ 64 bytes from 192.168.x.x: icmp_seq=3 ttl=64 time=1.44 ms
* reboot the router via web-if or powercycle (the ping response will stop)<br> * reboot the router via web-if or powercycle (the ping response will stop)<br>
* if you see the the first ping response again ... * if you see the the first ping response again ...
- From 192.168.1.123 icmp_seq=1 Destination Host Unreachable+ From 192.168.x.x icmp_seq=1 Destination Host Unreachable
- From 192.168.1.123 icmp_seq=2 Destination Host Unreachable+ From 192.168.x.x icmp_seq=2 Destination Host Unreachable
- 64 bytes from 192.168.1.1: icmp_seq=3 ttl=128 time=2.90 ms+ 64 bytes from 192.168.x.x: icmp_seq=3 ttl=128 time=2.90 ms
- 64 bytes from 192.168.1.1: icmp_seq=4 ttl=128 time=3.50 ms+ 64 bytes from 192.168.x.x: icmp_seq=4 ttl=128 time=3.50 ms
- 64 bytes from 192.168.1.1: icmp_seq=5 ttl=128 time=0.90 ms+ 64 bytes from 192.168.x.x: icmp_seq=5 ttl=128 time=0.90 ms
... you will have to start the tftp upload in '''binary mode''' immediately. the ttl of the boot tftp server will be 128. this is the right time to flash. the ttl of ddwrt is only 64. maybe the upload doesnt work the first time then you have to try the first steps a few times. you have to be very fast! ;-) maybe you will have to reset the device via reset button a few times to get the tftp-boot working (siemens, belkin and similar hw).<br> ... you will have to start the tftp upload in '''binary mode''' immediately. the ttl of the boot tftp server will be 128. this is the right time to flash. the ttl of ddwrt is only 64. maybe the upload doesnt work the first time then you have to try the first steps a few times. you have to be very fast! ;-) maybe you will have to reset the device via reset button a few times to get the tftp-boot working (siemens, belkin and similar hw).<br>
- tftp -i 192.168.1.1 put dd-wrt.vXX_XXX.XXX+ tftp -i 192.168.x.x put dd-wrt.vXX_XXX.XXX
* when the upload is successful wait a few minutes (be patient! dont reset the router! keep waiting!) and the router will start responding at 192.168.1.1 with dd-wrt (you might have to change your ip address first to be in the 192.168.1.x network ;-) )! <br> * when the upload is successful wait a few minutes (be patient! dont reset the router! keep waiting!) and the router will start responding at 192.168.1.1 with dd-wrt (you might have to change your ip address first to be in the 192.168.1.x network ;-) )! <br>
* username: '''root''' / pw: '''admin''' <br> * username: '''root''' / pw: '''admin''' <br>
* always do a hardware factory reset after the successful flashing! <br> * always do a hardware factory reset after the successful flashing! <br>
 +
 +==Mac OS X==
 +
 +OS X ships with a command-line TFTP client, but it does not use the -i flag mentioned above. Instead, you can use the following command (substituting the appropriate filename and router IP address):
 +
 +echo "put dd-wrt.vXX_XXX.XXX" | tftp -e 192.168.x.x
==Linux== ==Linux==
Line 41: Line 47:
for linux users it is equal like in this guide: [[Flash_Your_Siemens_SE505]]<br> for linux users it is equal like in this guide: [[Flash_Your_Siemens_SE505]]<br>
maybe you will have to change the ip addresses to your needs!<br> maybe you will have to change the ip addresses to your needs!<br>
 +
 +==Router-specific notes==
 +
 +===Belkin F5D7230-4v1000===
 +As mentioned above, the TFTP server is only available very briefly during the F5D7230's boot process. To access it reliably:
 +* Hold down the reset button until the router's LAN status LEDs turn off, then flash all green
 +* The router LAN status LEDs will then change to all amber
 +* The router LAN status LEDs will then '''briefly''' go off -- this is the point at which you should initiate the TFTP transfer
 +* If at first you don't succeed, try, try again. It took me dozens of attempts to identify this point in the boot process.
 +
 +I successfully flashed the v1000 using <a href="http://dd-wrt.com/phpBB2/download.php?id=3149">dd-wrt.v24_generic-8184.bin</a> (courtesy of Eko in <a href="http://dd-wrt.com/phpBB2/viewtopic.php?t=21819&postdays=0&postorder=asc&highlight=f5d72314&start=0&sid=a12584bf2beb6c992f0cde6a0dcc7db4">this thread</a>). This was after an unsuccessful attempt to use dd-wrt.v24_mini_generic.bin (it did not brick, just reset the stock firmware to factory defaults). Keep in mind that the v1000 has 4MB of flash memory, but later models only have 2MB.
==Related Links== ==Related Links==

Revision as of 16:52, 28 April 2008

Contents


General

This site describes HowTo do a initial flash or a tftp recovery flash for your device.

  • make sure you have a tftp client installed (linux package, windows e.g. from sf.net]) Windows GUI TFTP Utility
  • connect your router via a switch or hub to your pc
  • make sure that you have a fixed ip address in the same network like router
  • get the latest dd-wrt release here (plz use the mini version for devices with 4mb flash & the micro version for 2mb flash devices)

Windows

  • ping the router permanently
 ping 192.168.x.x -t

and see if it is responding, e.g. like this

 64 bytes from 192.168.x.x: icmp_seq=1 ttl=64 time=2.90 ms
 64 bytes from 192.168.x.x: icmp_seq=2 ttl=64 time=0.264 ms
 64 bytes from 192.168.x.x: icmp_seq=3 ttl=64 time=1.44 ms
  • reboot the router via web-if or powercycle (the ping response will stop)
  • if you see the the first ping response again ...
 From 192.168.x.x icmp_seq=1 Destination Host Unreachable
 From 192.168.x.x icmp_seq=2 Destination Host Unreachable
 64 bytes from 192.168.x.x: icmp_seq=3 ttl=128 time=2.90 ms
 64 bytes from 192.168.x.x: icmp_seq=4 ttl=128 time=3.50 ms
 64 bytes from 192.168.x.x: icmp_seq=5 ttl=128 time=0.90 ms

... you will have to start the tftp upload in binary mode immediately. the ttl of the boot tftp server will be 128. this is the right time to flash. the ttl of ddwrt is only 64. maybe the upload doesnt work the first time then you have to try the first steps a few times. you have to be very fast! ;-) maybe you will have to reset the device via reset button a few times to get the tftp-boot working (siemens, belkin and similar hw).

 tftp -i 192.168.x.x put dd-wrt.vXX_XXX.XXX
  • when the upload is successful wait a few minutes (be patient! dont reset the router! keep waiting!) and the router will start responding at 192.168.1.1 with dd-wrt (you might have to change your ip address first to be in the 192.168.1.x network ;-) )!
  • username: root / pw: admin
  • always do a hardware factory reset after the successful flashing!

Mac OS X

OS X ships with a command-line TFTP client, but it does not use the -i flag mentioned above. Instead, you can use the following command (substituting the appropriate filename and router IP address):

echo "put dd-wrt.vXX_XXX.XXX" | tftp -e 192.168.x.x

Linux

for linux users it is equal like in this guide: Flash_Your_Siemens_SE505
maybe you will have to change the ip addresses to your needs!

Router-specific notes

Belkin F5D7230-4v1000

As mentioned above, the TFTP server is only available very briefly during the F5D7230's boot process. To access it reliably:

  • Hold down the reset button until the router's LAN status LEDs turn off, then flash all green
  • The router LAN status LEDs will then change to all amber
  • The router LAN status LEDs will then briefly go off -- this is the point at which you should initiate the TFTP transfer
  • If at first you don't succeed, try, try again. It took me dozens of attempts to identify this point in the boot process.

I successfully flashed the v1000 using <a href="http://dd-wrt.com/phpBB2/download.php?id=3149">dd-wrt.v24_generic-8184.bin</a> (courtesy of Eko in <a href="http://dd-wrt.com/phpBB2/viewtopic.php?t=21819&postdays=0&postorder=asc&highlight=f5d72314&start=0&sid=a12584bf2beb6c992f0cde6a0dcc7db4">this thread</a>). This was after an unsuccessful attempt to use dd-wrt.v24_mini_generic.bin (it did not brick, just reset the stock firmware to factory defaults). Keep in mind that the v1000 has 4MB of flash memory, but later models only have 2MB.

Related Links

Flash_Your_Siemens_SE505