Differences

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

toh:tp-link:tl-wr1043nd [2013/01/10 14:56]
shihhan.chen
toh:tp-link:tl-wr1043nd [2013/06/17 20:50] (current)
jmac928
Line 2: Line 2:
TP-Link TL-WR1043ND is currently supported! TP-Link TL-WR1043ND is currently supported!
 +
 +===== Supported Versions =====
 +
 +This router has the following versions/models.
 +
 +^ Version/Model ^ S/N ^ Release Date ^ Bootloader Date ((U-Boot 1.1.4 if not stated otherwise.)) ((''grep U-Boot /dev/mtd0ro'')) ^ OpenWrt Version Supported ((The earliest OpenWRT release to be supported. Subsequent releases should be supported unless otherwise stated.)) ^ Model Specific Notes ^
 +| (DE)v1.0 | - | | | Backfire 10.03.1 | Similar, German WebUI |
 +| v1.1 | - | | | Backfire 10.03.1 | Similar to WR941ND.|
 +| (DE)v1.1 | - | | | Attitude Adjustment 12.09-beta2 | German WebUI, V1.1 in S/N sticker |
 +| v1.4 | - | | | Backfire 10.03.1 | Same v1 board as v1.1|
 +| v1.5 | - | | | Backfire 10.03.1 | Same v1 board as v1.1|
 +| v1.6 | - | | | Backfire 10.03.1 | |
 +| v1.7 | - | | | Backfire 10.03.1 | |
 +| v1.8 | - | | 2010-08-04 | Backfire 10.03.1 | |
 +| ::: | - | | 2012-02-02, 2012-03-31 and later | Attitude Adjustment 12.09-rc1 | Tested OK with Backfire 10.03.1 but **require** [[toh:tp-link:tl-wr1043nd#bootloader.downgrade|bootloader downgrade]]. [[https://forum.openwrt.org/viewtopic.php?id=43478|Suspect of hardware bug that bring down WiFi after a while.]] |
 +| v1.9 | - | | 2012-03-31 | | Tested OK with Backfire 10.03.1 but **require** [[toh:tp-link:tl-wr1043nd#bootloader.downgrade|bootloader downgrade]]. |
 +| v1.10 | - | | | Attitude Adjustment 12.09-rc1 | Similar v1.1 board. **Backfire 10.03.1 = BRICK**:!:.|
 +| v1.11 | - | | | Attitude Adjustment 12.09 | Not tested with 10.03.1 ([[toh:tp-link:tl-wr1043nd#bootloader.downgrade|downgrade bootloader]] if you attempt). |
 +| (DE)v1.2 | - | 2013-03 :?: | | Attitude Adjustment 12.09-rc1 | **Backfire 10.03.1 = BRICK**:!: |
 +
 +===== PirateBox and LibraryBox Support=====
 +http://daviddarts.com/piratebox-diy-openwrt/
 +http://jasongriffey.net/librarybox/
===== Hardware Highlights ===== ===== Hardware Highlights =====
Line 12: Line 35:
Manufacture advertised features: Manufacture advertised features:
-  * 802.11n (300Mbps), 3 antennas +  * 802.11b/g/n WLAN with up to 300Mbps throughput 
-  * 4x Gigabit Ethernet LAN ports, 1x Gigabit Ethernet WAN port +  * 3 removable omni antennas (RP-SMA connector) 
-  * 1x USB 2.0 port+  * 500 mW (24 dBm) maximal power output 
 +  * integrated 4-port Gigabit Switch (LAN ports
 +  * Gigabit Ethernet WAN port 
 +  * a USB 2.0 port
  * QSS (WPS) push button   * QSS (WPS) push button
- 
-===== Supported Versions ===== 
- 
-This router has the following versions/models. 
- 
-^ Version/Model ^ S/N ^ Release Date ^ OpenWrt Version Supported ^ Model Specific Notes ^ 
-| (DE)v1.0 | - | | Backfire 10.03.1 | Similar, German WebUI | 
-| v1.1 | - | | Backfire 10.03.1 | Similar to WR941ND.| 
-| (DE)v1.1 | - | | Attitude Adjustment 12.09-beta2 | Similar, German WebUI, V1.1 in S/N sticker | 
-| v1.4 | - | | Backfire 10.03.1 | Same v1 board as v1.1| 
-| v1.5 | - | | Backfire 10.03.1 | Same v1 board as v1.1| 
-| v1.6 | - | | Backfire 10.03.1 | Similar | 
-| v1.7 | - | | Backfire 10.03.1 | Similar | 
-| v1.8 :!:| - | | Tested OK with Attitude Adjustment 12.09-rc1 | Similar | 
-| v1.9 :!:| - | | Tested OK with Backfire 10.03.1 | Unknown | 
-| v1.10 :!:| - | | Tested OK with **Attitude Adjustment 12.09-rc1** :!: **Backfire 10.03.1 = BRICK!!** | Similar rev:1.1 board| 
- 
-The list above shows the earliest OpenWRT release to be supported. Higher releases should be supported unless otherwise stated. 
- 
-:!: **WARNING: flashing the WRONG OpenWRT version on models v1.10 WILL CAUSE A BRICK** (see above). 
===== Warnings / Gotchas ===== ===== Warnings / Gotchas =====
-:!: **WARNING: v1.10 supports only Attitude Adjustment 12.09-rc1 or above. Backfire 10.03.1 causes a BRICK!!**+<color red>//This section is mess and needs clean up.//</color>
-:!: **WAN port disable bug (newer models v1.8+).** It has been [[https://dev.openwrt.org/ticket/11898 | reported]] that recent TP-Link stock firmware packages include a new bootloader revision, which disables the WAN (port 0) at boot. This was a unhelpful fix to deal with the [[https://dev.openwrt.org/ticket/6819 | switch leakage]], which has been implemented in trunk between [[https://dev.openwrt.org/changeset/32942 | r32942]] - [[https://dev.openwrt.org/changeset/32942 | r32944]] (45-46 fixes the leakage).+:!: **WAN port disable bug (newer models v1.8+ with U-boot 2012-02-02 and later).** It has been [[https://dev.openwrt.org/ticket/11898 | reported]] that recent TP-Link stock firmware packages include a new bootloader revision, which disables the WAN (port 0) at boot. This was a unhelpful fix to deal with the [[https://dev.openwrt.org/ticket/6819 | switch leakage]], which has been implemented in trunk between [[https://dev.openwrt.org/changeset/32942 | r32942]] - [[https://dev.openwrt.org/changeset/32942 | r32944]] (45-46 fixes the leakage).
-**ALL newer hardware models v1.8 or above (from ~April 2012) is affected by this bug.** Below is the code for the affected bootloader that disables the WAN port at boot after flashing.+:!: **WAN port disable bug in 1.10** As of today (20130529) installing Attitude Adjustment 12.09 on a 1.10 device works flawless and do not exhibit the WAN port disable bug. 
 + 
 +**ALL newer hardware models v1.8 or above (from ~April 2012) is affected by this WAN port bug.** Below is the code for the affected bootloader that disables the WAN port at boot after flashing.
<code> <code>
root@tpl2:~# grep -a U-Boot /dev/mtd0ro | cut -d'I' -f1 root@tpl2:~# grep -a U-Boot /dev/mtd0ro | cut -d'I' -f1
Line 49: Line 57:
</code> </code>
 +  * Check of the TP-LINK firmware, ver. TL-WR1043ND_V1_120405 with a published date 2012/4/5: This firmware updates the bootloader code to a March 31, 2012 release date but has the same WAN port disabled on boot behavior as the Feb. 6, 2012 firmware, and so routers shipping with this firmware need the boot loader downgrade described below
 +
 +<code>
 +U-Boot 1.1.4 (Mar 31 2012 - 10:40:21)
 +U-Boot
 +</code>
 +
 +==== Bootloader downgrade ====
:!: **WAN port disable bug (inelegant) workaround.** The older german stock firmware (v3.9.17/100331) does not feature this bug. The work around involves webreverting/downgrading to this older version and then reflashing OpenWRT. :!: **WAN port disable bug (inelegant) workaround.** The older german stock firmware (v3.9.17/100331) does not feature this bug. The work around involves webreverting/downgrading to this older version and then reflashing OpenWRT.
  * Step 1 (optional, only required if OpenWRT is installed): If your WAN port is now disabled follow the guide [[http://wiki.openwrt.org/toh/tp-link/tl-wr1043nd#back.to.original.firmware | here]] to web revert back to stock firmware.   * Step 1 (optional, only required if OpenWRT is installed): If your WAN port is now disabled follow the guide [[http://wiki.openwrt.org/toh/tp-link/tl-wr1043nd#back.to.original.firmware | here]] to web revert back to stock firmware.
-  * Step 2: Install german stock firmware (v3.9.17) through the TP-Link web interface. Download the firmware file "wr1043nv1_de_3_9_17_up_boot(100331).bin /.zip". (Google it or get it [[https://www.dropbox.com/el/?r=/s/f5kmuhld737veel/wr1043nv1_de_3_9_17_up_boot%2528100331%2529.bin&amp;b=clk:124224095:13687220193071768671:777:446&amp;z=AADjSCWkSnwuH8evw7wIbFDVpQJ9iogbHn-rdWJwu5h3tQ | here]]).+  * Step 2: Install german stock firmware (v3.9.17) through the TP-Link web interface. Download the firmware file ";[[google>;wr1043nv1_de_3_9_17_up_boot(100331).bin]]". ([[https://www.dropbox.com/s/f5kmuhld737veel/wr1043nv1_de_3_9_17_up_boot%28100331%29.bin | mirror]]). After the German firmware flash, the u-boot code on a v1.9 router should be downgraded to the Nov. 17, 2009 version: 
 + 
 +&lt;code&gt; 
 +grep -a U-Boot /dev/mtd0ro | cut -d'I' -f1 
 +</code> 
 + 
 +<code> 
 +U-Boot 1.1.4 (Nov 17 2009 - 11:56:26) 
 +U-Boot 
 +</code>
  * Step 3: Flash the correct OpenWRT firmware image according to your router model/version:!:. This should re-enable the WAN port.   * Step 3: Flash the correct OpenWRT firmware image according to your router model/version:!:. This should re-enable the WAN port.
-:!: **WARNING: flashing the WRONG OpenWRT version on models v1.10 WILL CAUSE A BRICK.**+==== USB 3G Modems ==== 
 +:!: **USB 3G modem issue (insufficient power).** The device does NOT deliver enough power for most USB 3G modems, which can lead to erratic behavior, droped/failed connections. If a 3G USB modem is to be used, consider other routers. (e.g. [[http://wiki.openwrt.org/toh/buffalo/wzr-hp-ag300h | Buffalo WZR-HP-AG300H]])
-:!: **USB 3G modem issue (insufficient power).** The device does NOT deliver enough power for many USB 3G modems, which can lead to erratic behavior, droped/failed connections. If a 3G USB modem is to be used, consider other routers. (e.g. [[http://wiki.openwrt.org/toh/buffalo/wzr-hp-ag300h | Buffalo WZR-HP-AG300H]])+== Compartible USB 3G modems: == 
 +  * Huawei E1550
===== Installation ===== ===== Installation =====
**Precompiled image** **Precompiled image**
  - Download a precompiled [[http://downloads.openwrt.org/attitude_adjustment/12.09-beta2/ar71xx/generic/openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-factory.bin|Attitude Adjustment 12.09 Beta 2 (stable image)]].   - Download a precompiled [[http://downloads.openwrt.org/attitude_adjustment/12.09-beta2/ar71xx/generic/openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-factory.bin|Attitude Adjustment 12.09 Beta 2 (stable image)]].
 +  - For v1.10 first flash old German firmware than flash precompiled [[http://downloads.openwrt.org/attitude_adjustment/12.09-rc1/ar71xx/generic/openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-factory.bin|Attitude Adjustment 12.09 rc1 (stable image)]] ; tested and works [[http://forum.lowyat.net/topic/2481658/all|credits go to sayboon]] for his tutorial
**Generic flash instructions** **Generic flash instructions**
Line 69: Line 97:
  * [[doc:howto:generic.flashing]] Now write this firmware-file onto the flash-chip of your device   * [[doc:howto:generic.flashing]] Now write this firmware-file onto the flash-chip of your device
-  * You can allways [[doc:howto:obtain.firmware.generate|build]] your own image based on Kamikaze or on Backfire. Choose Atheros AR71xx/AT7240/AR913x platform and use TP-Link WR1043ND v1 Profile.+  * You can always [[doc:howto:obtain.firmware.generate|build]] your own image based on Kamikaze or on Backfire. Choose Atheros AR71xx/AT7240/AR913x platform and use TP-Link WR1043ND v1 Profile.
Line 238: Line 266:
<code> <code>
dd if=orig.bin of=tplink.bin skip=257 bs=512 dd if=orig.bin of=tplink.bin skip=257 bs=512
 +</code>
 +
 +You should transfer the firmeware image to the /tmp folder and revert back to original firmware:
 +
 +<code>
 +mtd -r write tplink.bin linux
</code> </code>
Line 282: Line 316:
==== Failsafe mode ==== ==== Failsafe mode ====
See [[doc:howto:generic.failsafe|OpenWrt Failsafe Mode]] for general information. See [[doc:howto:generic.failsafe|OpenWrt Failsafe Mode]] for general information.
 +Based on generic failsafe, here are peculiarities :
-Power up your router. When the 'SYS' light starts to blink, press and hold the //QSS// button on the right side of the front panel until the blinking of 'SYS' LED gets faster. If that won't work instead of holding the button press it and keep pressing it until the blinking gets faster. Alternatively you may try both methods on the //RESET// button on the back panel between USB and power plug.+  - Listen on the WAN port. (tcpdump .....) 
 +  - Power up your router. When the 'SYS' light starts to blink, press and hold the //QSS// button on the right side of the front panel until the blinking of 'SYS' LED gets faster. If that won't work instead of holding the button press it and keep pressing it until the blinking gets faster. Alternatively you may try both methods on the //RESET// button on the back panel between USB and power plug. 
 +  - After entering the failsafe mode (sys LED flashing very fast) , swap your Ethernet connection from WAN port to LAN port 1 and the telnet 192.168.1.1 to repair your device as explained [[doc:howto:generic.failsafe#in.failsafe.mode|here]]. 
 + 
==== Recovery via serial console ==== ==== Recovery via serial console ====
Line 316: Line 354:
| **RAM:**            | 32 MiB  | | **RAM:**            | 32 MiB  |
| **Wireless:**        | Atheros AR9103 2.4ghz 802.11bgn | | **Wireless:**        | Atheros AR9103 2.4ghz 802.11bgn |
 +| **Wireless Power:**        | Maximal power output is 27 dBm (500 mW) |
 +| **802.11n:**        | 3 x 3 : 2 |
| **Ethernet:**        | [[http://www.realtek.com.tw/products/productsView.aspx?Langid=1&PNid=18&PFid=15&Level=5&Conn=4&ProdID=197|RealTek RTL8366RB 5-port Gigabit switch  w/ vlan support]], [[doc:techref:swconfig]] | | **Ethernet:**        | [[http://www.realtek.com.tw/products/productsView.aspx?Langid=1&PNid=18&PFid=15&Level=5&Conn=4&ProdID=197|RealTek RTL8366RB 5-port Gigabit switch  w/ vlan support]], [[doc:techref:swconfig]] |
| **Internet:**        | n/a  | | **Internet:**        | n/a  |
Line 327: Line 367:
==== Performance ==== ==== Performance ====
-See -> [[doc:hardware:performance]] for results and [[doc:howto:performance]] for help for measuring+  * [[doc:hardware:performance|Filesystems performance]] results and [[doc:howto:performance]] howto for help on measuring
 +  * [[inbox:benchmark.usb|USB Benchmarks]] results. 
 + 
 +This router gets around 180 Megabits/s WAN to LAN throughput, tested using nuttcp.
==== Power ==== ==== Power ====
Line 333: Line 376:
=== Power Consumption === === Power Consumption ===
-With a cheap Wattmeter i measured 6,9W idle and 9W under load.+With a cheap Wattmeter i measured 6.9W idle and 9W under load.
=== PSU (power supply) === === PSU (power supply) ===
Line 353: Line 396:
I successfully used the ATX PSU (from my computer) to power the router. I successfully used the ATX PSU (from my computer) to power the router.
All I did was buying a plug with above specifications and soldered a Molex-plug to the other end. All I did was buying a plug with above specifications and soldered a Molex-plug to the other end.
 +
 +=== Powering with different Voltages ===
 +:!: ** WARNING: For sure you will lose your warranty if you run the router with to high voltage and I don't guarantee it will works for you. Your router might break, so just run it with to high voltage if you know what you are doing and you don't care if the router breaks. **
 +
 +Because I wanted to run the router directly from solar and the 12V battery can have between 10.4V and 14.8V I tested the router with different voltages and it runs fine with voltages between 10V and 15V. Could not see any failures or loss in performance.
=== Power consumption on DC-Side === === Power consumption on DC-Side ===
-I have measured simultanously Voltage and Current on the DC-Side of the Router with 2 analogue Multimeters.+I have measured simultaneously Voltage and Current on the DC-Side of the Router with 2 analogue Multimeters.
It looks like my AC-DC Adapter is stabilized and delivers exactly 12 Volts. It looks like my AC-DC Adapter is stabilized and delivers exactly 12 Volts.
Line 418: Line 466:
{{:inbox:wr1043ndserial.jpg|}} {{:inbox:wr1043ndserial.jpg|}}
 +
 +If you use the serial connection more often or want to have a permanent modification you can build a stereo audio jack at the back of the router and use the FTDI serial cable TTL-232R-3V3-AJ. As jumper wire you can recycle an old floppy drive power cable.
 +
 +{{:media:wr1043ndserjack.jpg|}}
 +
 +=== Receive (RX) Disabled ===
 +
 +Some revisions require a jumper between the RX serial pin and the resistor R362 to enable serial writes. See this post for details:
 +
 +[[https://forum.openwrt.org/viewtopic.php?pid=176448#p176448]]
 +
 +If you find that the serial console will not accept write commands, check with a multimeter that you have continuity between RX and R362.
 +
 +If you don't have continuity you will need to jumper them, here is my working example:
 +
 +{{:media:tl-wr1043nd.rxjumper.png|}}
 +
 +I went to the right hand side of the resistor for ease of soldiering, but there may be better solutions.
 +
 +I also noticed that the small hole just below R362 has continuity to the RX pin so that may provide a cleaner solution with a much smaller jumper.
==== JTAG ==== ==== JTAG ====
Line 435: Line 503:
Backup: Backup:
-Backup wholeflash:+Backup whole flash:
<code> <code>
Line 458: Line 526:
At the moment it is <b>NOT</b> possible to <b>UNBRICK</b> the router by <b>JTAG</b> (no write access to flashrom).</p> At the moment it is <b>NOT</b> possible to <b>UNBRICK</b> the router by <b>JTAG</b> (no write access to flashrom).</p>
</HTML> </HTML>
-so be very carefull not to overwrite the u-boot.+so be very careful not to overwrite the u-boot.
Line 529: Line 597:
**NOTE:** If you accidentally bricked your router by overwriting the bootloader, try the following: **NOTE:** If you accidentally bricked your router by overwriting the bootloader, try the following:
  - Desolder the Spansion SPI-Flash ([[http://www.spansion.com/Support/Datasheets/S25FL064P_00.pdf|here]] is the datasheet) from the board. I used tin foil to "mask" out everything else which I did not want to desolder and used a heat gun. It worked quite nice.   - Desolder the Spansion SPI-Flash ([[http://www.spansion.com/Support/Datasheets/S25FL064P_00.pdf|here]] is the datasheet) from the board. I used tin foil to "mask" out everything else which I did not want to desolder and used a heat gun. It worked quite nice.
-  - Find a way to connect the SPI flash to something with SPI interface.... I used a AVR microcontroller. {{:toh:tp-link:spi_flash1.pdf|Here}} you can download a pdf containing the layout for the adapter board I made to solder the Spansion SPI flash chip on, in order to connect it to the AVR. Attention, the PDF is mirrored and it is intended to manufacuring boards with the [[http://thomaspfeifer.net/direct_toner_pcb.htm | direct toner method]].+  - Find a way to connect the SPI flash to something with SPI interface.... I used a AVR microcontroller. {{:toh:tp-link:spi_flash1.pdf|Here}} you can download a pdf containing the layout for the adapter board I made to solder the Spansion SPI flash chip on, in order to connect it to the AVR. Attention, the PDF is mirrored and it is intended to manufacturing boards with the [[http://thomaspfeifer.net/direct_toner_pcb.htm | direct toner method]].
  - Write the bootloader into the flash. I got my bootloader out of another wr1043nd.   - Write the bootloader into the flash. I got my bootloader out of another wr1043nd.
  - Solder the chip back into the router.   - Solder the chip back into the router.
Line 686: Line 754:
===== Tags ===== ===== Tags =====
-{{tag>GigabitEthernet 5Port 1PHY USB JTAG 802.11bgn ath9k 3Ant DetachableAntenna 32RAM 8Flash MIPS MIPS32 24Kc JumboFrames vlan}}+{{tag>GigabitEthernet 5Port 1NIC 1WNIC USB JTAG 802.11bgn ath9k 3Ant DetachableAntenna 32RAM 8Flash MIPS MIPS32 24Kc JumboFrames vlan}}

Back to top

toh/tp-link/tl-wr1043nd.1357826184.txt.bz2 · Last modified: 2013/01/10 14:56 by shihhan.chen