User Tools

Site Tools


doc:howto:generic.flashing.tftp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:howto:generic.flashing.tftp [2013/04/17 08:02]
codyps Add curl as a tftp client
doc:howto:generic.flashing.tftp [2014/12/16 17:03] (current)
bkil [Troubleshooting] added WR740N reset trick
Line 303: Line 303:
  
 FIXME would this be better to just exist in specific model'​s wiki pages? FIXME would this be better to just exist in specific model'​s wiki pages?
 +
 +FIXME should we create a page to list models with tftp support, noting which ones need the reset button trick?
  
 On many routers, including the Asus WL-500g Premium v1 that I use, you flash an image by disconnecting power, press and hold down the reset button, and connect the power again. Wait a few seconds and the PWR LED will start to blink. Release the reset button. The device will now have a TFTP server running on ''​192.168.1.1''​. On many routers, including the Asus WL-500g Premium v1 that I use, you flash an image by disconnecting power, press and hold down the reset button, and connect the power again. Wait a few seconds and the PWR LED will start to blink. Release the reset button. The device will now have a TFTP server running on ''​192.168.1.1''​.
 +
 +**Note** that the TL-WR740N is found to support a similar feature on a different IP. Maybe even more models know the same trick. http://​bkil.blogspot.com/​2014/​12/​tftp-secret-of-tl-wr740n-uncovered.html
  
 You’ll have to use a Ethernet cable at this point. Connect it to LAN1-LAN4, __not__ WAN. Configure your local machine on the ''​192.168.1.x/​24''​ network, for example as ''​192.168.1.42''​. The router will use ''​192.168.1.1''​. You’ll have to use a Ethernet cable at this point. Connect it to LAN1-LAN4, __not__ WAN. Configure your local machine on the ''​192.168.1.x/​24''​ network, for example as ''​192.168.1.42''​. The router will use ''​192.168.1.1''​.
Line 337: Line 341:
  
 Wait one minute and restart the box by disconnecting and reconnecting power. Some documentations claim that the device should restart by itself but I have never seen this happen, no matter how long I wait. Wait one minute and restart the box by disconnecting and reconnecting power. Some documentations claim that the device should restart by itself but I have never seen this happen, no matter how long I wait.
- 
 ===== What TFTP client should I use to flash my device? ===== ===== What TFTP client should I use to flash my device? =====
 Which ever you want!  Some suggestions are given below: Which ever you want!  Some suggestions are given below:
Line 393: Line 396:
  
 TODO TODO
 +
 +==== tftpd on MacOS 10.4 "​Tiger"​ ====
 +
 +tftpd works out-of-the-box also on the old 10.4. Maybe the tftp dir is not yet created but this is just a mkdir. Get a root shell and issue these commands:
 +
 +<​code>​
 +bash-4.2$ sudo bash
 +Password:
 +bash-4.2# mkdir -p /​private/​tftpboot/​
 +bash-4.2# cp /​path/​to/​openwrt-image /​private/​tftpboot/​
 +bash-4.2# launchctl load -F /​System/​Library/​LaunchDaemons/​tftp.plist ​
 +bash-4.2# ps axu|grep ftp
 +root     ​23494 ​  ​0.0 ​ 0.0    27696    152  ??  Ss    4:​34PM ​  ​0:​00.00 launchctl load -F /​System/​Library/​LaunchDaemons/​tftp.plist
 +root     ​23496 ​  ​0.0 ​ 0.0    38604      4  p3  R+    4:​34PM ​  ​0:​00.00 grep ftp
 +bash-4.2# launchctl start com.apple.tftpd
 +bash-4.2# ps axu|grep ftp
 +root     ​23494 ​  ​0.0 ​ 0.0    27696    152  ??  Ss    4:​34PM ​  ​0:​00.00 launchctl load -F /​System/​Library/​LaunchDaemons/​tftp.plist
 +root     ​23498 ​  ​0.0 ​ 0.0    27244    464  ??  Ss    4:​34PM ​  ​0:​00.01 /​usr/​libexec/​launchproxy /​usr/​libexec/​tftpd -i /​private/​tftpboot
 +root     ​23500 ​  ​0.0 ​ 0.0    38604      4  p3  R+    4:​34PM ​  ​0:​00.00 grep ftp
 +bash-4.2# tftp 192.168.100.72 ​  ### just testing
 +tftp> get openwrt-ar71xx-generic-hornet-ub-squashfs-sysupgrade.bin
 +Received 7270950 bytes in 2.7 seconds
 +tftp>
 +</​code>​
 +
 +
doc/howto/generic.flashing.tftp.1366178568.txt.bz2 · Last modified: 2013/04/17 08:02 by codyps