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 [2015/08/07 17:45] (current)
pier4r [Windows]
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 many TP-Link models** are reported to support the same trick, including the TL-WR740Nv4,​ TL-WDR4300v1,​ TL-WDR3600v1,​ TL-WR842NDv1,​ TL-WR841NDv8,​ TL-MR3020v1,​ TL-MR3220v2,​ TL-MR3420v2,​ TL-WR940Nv2,​ TL-WR941NDv5,​ TL-WR1042NDv1 and possibly any other TP-Link model that has a recent firmware upgrade from the manufacturer. For a summary and ongoing experiments,​ see: http://​bkil.blogspot.com/​2014/​12/​hidden-tftp-of-tp-link-routers.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 354: Line 357:
     - Click on Upgrade and it will constantly retry until it gets it     - Click on Upgrade and it will constantly retry until it gets it
   * Windows 2000 and Windows XP have a built-in TFTP client and it [[http://​martybugs.net/​wireless/​openwrt/​flash.cgi|can be used]] to flash with OpenWrt firmware.   * Windows 2000 and Windows XP have a built-in TFTP client and it [[http://​martybugs.net/​wireless/​openwrt/​flash.cgi|can be used]] to flash with OpenWrt firmware.
-  * tftpd32 from http://​perso.wanadoo.fr/​philippe.jounin/​tftpd32.html+  * tftpd32 ​(use **client mode!**) ​from http://​perso.wanadoo.fr/​philippe.jounin/​tftpd32.html
  
 === TFTP command line client short Instructions === === TFTP command line client short Instructions ===
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