Differences

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

toh:tp-link:tl-wr1043nd [2013/11/03 12:29]
reichhart
toh:tp-link:tl-wr1043nd [2014/08/18 18:37] (current)
olmari Updated links from 14.07-rc1 to -rc3
Line 1: Line 1:
====== TP-Link TL-WR1043ND ====== ====== TP-Link TL-WR1043ND ======
-One of the first cheap devices with an gigabit Ethernet switch. Manufacture advertised features: 3 removable omni antennas (RP-SMA connector), 500 mW (24 dBm) maximal power output.+One of the first cheap devices with an gigabit Ethernet switch. Manufacture advertised features: 3 removable omni antennas ([[wp>RP-SMA|RP-SMA connectors]]) and 24 dBm (251 mW, v1.x, v2.x) maximal TX power output. Note: maximal TX power and available channels are limited in some countries! 
 + 
 +**WARNING:** These routers seem to have unstable wifi in 12.09. They're hit by bugs [[https://dev.openwrt.org/ticket/9654|9654]], [[https://dev.openwrt.org/ticket/12372|12372]] and [[https://dev.openwrt.org/ticket/13966|13966]].
===== Supported Versions ===== ===== Supported Versions =====
Line 9: Line 11:
| v1.1 | - | | | Backfire 10.03.1 | Similar to WR941ND.| | 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 | | (DE)v1.1 | - | | | Attitude Adjustment 12.09-beta2 | German WebUI, V1.1 in S/N sticker |
 +| (RU)v1.1 | - | 2013-09-27 | | Attitude Adjustment 12.09 | Upgraded to stock 3.13.13 first before flashing OpenWRT, no switch leaking |
 +| (DE)v1.2 | - | 2013-03 :?: | | Attitude Adjustment 12.09-rc1 | **Backfire 10.03.1 = BRICK**:!: |
| v1.4 | - | | | Backfire 10.03.1 | Same v1 board as v1.1| | 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.5 | - | | | Backfire 10.03.1 | Same v1 board as v1.1|
Line 14: Line 18:
| v1.7 | - | | | Backfire 10.03.1 | | | v1.7 | - | | | Backfire 10.03.1 | |
| v1.8 | - | | 2010-08-04 <sup><sub>(and probably other versions prior to 2012-02-02)</sub></sup> | Backfire 10.03.1 | | | v1.8 | - | | 2010-08-04 <sup><sub>(and probably other versions prior to 2012-02-02)</sub></sup> | Backfire 10.03.1 | |
-| ::: | - | | 2012-02-02, 2012-03-31 <sup><sub>(and probably later versions)</sub></sup> | 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.]] |+| ::: | - | | 2012-02-02, 2012-03-31 <sup><sub>(and probably later versions)</sub></sup> | 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=42539|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.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.10 | - | | | Attitude Adjustment 12.09-rc1 | Similar v1.1 board. **Backfire 10.03.1 = BRICK**:!:.|
| v1.11 | - | | | Attitude Adjustment 12.09 | **Backfire 10.03.1 = BRICK**:!: | | v1.11 | - | | | Attitude Adjustment 12.09 | **Backfire 10.03.1 = BRICK**:!: |
-| (DE)v1.2 | - | 2013-03 :?: | | Attitude Adjustment 12.09-rc1 | **Backfire 10.03.1 = BRICK**:!: +| v2.| - | | 2013-06-18 | Barrier Breaker (trunk R38958)  | | 
-| (RU)v1.1 | - | 2013-09-27 | | Attitude Adjustment 12.09 | Upgraded to stock 3.13.13 first before flashing OpenWRT, no switch leaking |+ 
 + 
 +^ HW V1.x ^ HW V2.x ^ 
 +|  {{:media:tl-wr1043ndv1_profile.jpg?200|}}  | {{:media:tl-wr1043ndv2_profile.jpg?200|}}  | 
 + 
===== Hardware Highlights ===== ===== Hardware Highlights =====
-^ CPU ^ Ram ^ Flash ^ Network ^ Gigabit ^ USB ^ Serial ^ JTag ^ +^ HW Version ^ CPU ^ Ram ^ Flash ^ Network ^ Gigabit ^ USB ^ Serial ^ JTag ^ 
-| Atheros AR9132@400MHz  | 32MB | 8MB | 4x1 | Yes | Yes | Yes | Yes |+| 1.x | Atheros AR9132@400MHz  | 32MB | 8MB | 4x1 | Yes | Yes | Yes | Yes
 +| 2.x | Qualcomm Atheros QCA9558@720MHz | 64MB | 8MB | 4x1 | Yes | Yes | Yes | No |
See paragraphs [[toh/tp-link/tl-wr1043nd#Hardware]] or [[toh/tp-link/tl-wr1043nd#Tags]] for more details. See paragraphs [[toh/tp-link/tl-wr1043nd#Hardware]] or [[toh/tp-link/tl-wr1043nd#Tags]] for more details.
Line 37: Line 47:
:!: **WAN port disable bug in (DE)v1.2** As of today (20130902) installing Attitude Adjustment 12.09 on a (DE)v1.2 device works flawless and do not exhibit the WAN port disable bug. :!: **WAN port disable bug in (DE)v1.2** As of today (20130902) installing Attitude Adjustment 12.09 on a (DE)v1.2 device works flawless and do not exhibit the WAN port disable bug.
 +
 +:!: **WAN port disable bug in 2.1** As of today (20131230) installing Barrier Breaker (trunk) on a v2.1 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. **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.
Line 72: Line 84:
==== USB 3G Modems ==== ==== 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 such as droped/failed connections. If a 3G USB modem is to be used, consider other routers with a USB port that delivers enough Amperes. (e.g. [[http://wiki.openwrt.org/toh/buffalo/wzr-hp-ag300h|Buffalo WZR-HP-AG300H]])+:!: **USB 3G modem issue (insufficient power).** TL-WR1043ND v1.x does NOT deliver enough power for most USB 3G modems, which can lead to erratic behavior such as droped/failed connections. If a 3G USB modem is to be used, consider other routers with a USB port that delivers enough Amperes. (e.g. [[http://wiki.openwrt.org/toh/buffalo/wzr-hp-ag300h|Buffalo WZR-HP-AG300H]])
== Compatible USB 3G modems == == Compatible USB 3G modems ==
  * e.g. Huawei E1550   * e.g. Huawei E1550
 +
 +
 +== Note for TL-WR1043ND v2: ==
 +I got a stable 3g connection on my router! I don't see any erratic behavior!
 +I tested the router with the following 3g modems:
 +  * TCT Mobile One Touch X500D
 +  * TCT Mobile X220L
 +  * ZTE MF632
===== Installation ===== ===== Installation =====
-  - [[doc:howto:obtain.firmware]] and [[about/latest|Latest OpenWrt Release]] - required image file is "openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-factory.bin" from the "ar71xx" directory+  - [[doc:howto:obtain.firmware]] and [[about/latest|Latest OpenWrt Release]] - required image file is "openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-factory.bin" for v1.x routers, "openwrt-ar71xx-generic-tl-wr1043nd-v2-squashfs-factory.bin" for v2.x routers. Files can be found in the "ar71xx" directory. You can use the quick links from the table below.
  - [[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
:!: **''NOTE:''** If case you have a revision > v1.10, you need to flash an elder OEM firmware release first, and only then flash OpenWrt; tested and works [[http://forum.lowyat.net/topic/2481658/all|credits go to sayboon]] for his tutorial :!: **''NOTE:''** If case you have a revision > v1.10, you need to flash an elder OEM firmware release first, and only then flash OpenWrt; tested and works [[http://forum.lowyat.net/topic/2481658/all|credits go to sayboon]] for his tutorial
 +
 +
 +The **trunk**, code named **Barrier Breaker**, contains bleeding edge source code for OpenWrt.
 +
 +|{{:meta:icons:tango:48px-dialog-warning.svg.png?nolink&24}}| The development branch contains everything from documentation to **//experimental//** **//patches//**! Bleeding edge OpenWrt supports additional hardware; however, it's considered unstable, and sometimes won't compile. |
 +
 +  * Download **Factory** image if you want to install OpenWrt on router with OEM firmware.
 +  * Download **Update** image if you already have OpenWrt installed.
 +
 +
 +==== Downloads for TL-WR1043ND v1.x  ====
 +
 +^ Branch ^ Type ^ Download link ^
 +|  **Stable** (Attitude Adjustment)  |  **Factory**  |  http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-factory.bin  |
 +|  :::  |  **Upgrade**  |  http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-sysupgrade.bin  |
 +|  **14.07-rc3** (Barrier Breaker)  |  **Factory**  |  http://downloads.openwrt.org/barrier_breaker/14.07-rc3/ar71xx/generic/openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-factory.bin  |
 +|  :::  |  **Upgrade**  |  http://downloads.openwrt.org/barrier_breaker/14.07-rc3/ar71xx/generic/openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-sysupgrade.bin  |
 +|  **Trunk** (Barrier Breaker)  |  **Factory**  |  http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-factory.bin  |
 +|  :::  |  **Upgrade**  |  http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-sysupgrade.bin  |
 +
 +==== Downloads for TL-WR1043ND v2.x  ====
 +
 +^ Branch ^ Type ^ Download link ^
 +|  **14.07-rc3** (Barrier Breaker)  |  **Factory**  |  http://downloads.openwrt.org/barrier_breaker/14.07-rc3/ar71xx/generic/openwrt-ar71xx-generic-tl-wr1043nd-v2-squashfs-factory.bin  |
 +|  :::  |  **Upgrade**  |  http://downloads.openwrt.org/barrier_breaker/14.07-rc3/ar71xx/generic/openwrt-ar71xx-generic-tl-wr1043nd-v2-squashfs-sysupgrade.bin  |
 +|  **Trunk** (Barrier Breaker)  |  **Factory**  |  http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-tl-wr1043nd-v2-squashfs-factory.bin  |
 +|  :::  |  **Upgrade**  |  http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-tl-wr1043nd-v2-squashfs-sysupgrade.bin  |
==== Flash Layout ==== ==== Flash Layout ====
Line 152: Line 199:
Commands: Commands:
-After you see ''Autobooting in 1 seconds'' type ''tpl'' and hit enter to get into command promt.+After you see ''Autobooting in 1 seconds'' type ''tpl'' and hit enter to get into command prompt.
<code> <code>
-erase 0xbf020000 +7c0000 # 7c0000: size of the firmware (be aware that you may have a different size thus bricking your router) 
tftpboot 0x81000000 code.bin tftpboot 0x81000000 code.bin
 +erase 0xbf020000 +7c0000 # 7c0000: size of the firmware (be aware that you may have a different size thus bricking your router)
cp.b 0x81000000 0xbf020000 0x7c0000 cp.b 0x81000000 0xbf020000 0x7c0000
bootm 0xbf020000 bootm 0xbf020000
 +</code>
 +
 +For version 2.1 you must use the following
 +<code>
 +tftp 0x80060000 openwrt-ar71xx-generic-tl-wr1043nd-v2-squashfs-factory.bin
 +erase 0x9f020000 +0x7c0000
 +cp.b 0x80060000 0x9f020000 0x7c0000
 +boot.m 0x9f020000
</code> </code>
Line 206: Line 261:
==== Upgrading OpenWrt ==== ==== Upgrading OpenWrt ====
-> [[doc:howto:generic.sysupgrade]] -> [[doc:howto:generic.sysupgrade]]
- 
-:!: ** WARNING: Recent versions of trunk are reported to brick the 1043ND and other devices: ** 
- 
-https://forum.openwrt.org/viewtopic.php?pid=176604 
- 
-Unless you know what you're doing, use the latest stable version. 
==== Back to original firmware ==== ==== Back to original firmware ====
Line 222: Line 271:
  * in case the file name of this firmware file does not contain the word **//"boot"//** in it, you can simply revert back to original firmware   * in case the file name of this firmware file does not contain the word **//"boot"//** in it, you can simply revert back to original firmware
  * in case the file name of this firmware file does contain the word **//"boot"//** in it, you need to cut off parts of the image file //before// flashing it:   * in case the file name of this firmware file does contain the word **//"boot"//** in it, you need to cut off parts of the image file //before// flashing it:
 +
 +
 +The following method applies both for the V1 and V2 since the bootloader is the same size.
 +
An example of an image file with the word "boot" in it is ''wr1043nv1_en_3_9_17_up_boot(091118).bin''. An example of an image file with the word "boot" in it is ''wr1043nv1_en_3_9_17_up_boot(091118).bin''.
Line 230: Line 283:
</code> </code>
-You should transfer the firmeware image to the /tmp folder and revert back to original firmware:+You should transfer the firmeware image to the /tmp folder and revert back to original firmware (if availlable you can flash the firmware via the webinterface as well):
 +Via the safer method using sysupgrade:
<code> <code>
-mtd -r write tplink.bin linux+sysupgrade /tmp/tplink.bin
</code> </code>
-Or depending on your mtd you may have to +Or alternatively use the mtd method:
<code> <code>
mtd -r write tplink.bin firmware mtd -r write tplink.bin firmware
</code> </code>
-This has been confirmed by [[https://forum.openwrt.org/viewtopic.php?pid=110583#p110583|supertom64]]+This has been confirmed by [[https://forum.openwrt.org/viewtopic.php?pid=110583#p110583|supertom64]] (for the V1) and by [[https://forum.openwrt.org/viewtopic.php?pid=232448#p232448|akirkby]] (for the V2, flashing using the webinterface) 
 + 
 +OEM TP-Link firmware for the TL-WR1043nd with the **//boot part removed//** to revert to the original OEM firmware: 
 +  * TL-WR1043nd **//V1//** [[http://q.gs/6gAN3|TL-WR1043ND-V1-stripped.zip]] 
 +  * TL-WR1043nd **//V2//** [[http://q.gs/6gAN7|TL-WR1043ND-V2-stripped.zip]]
Line 255: Line 312:
==== Interfaces ==== ==== Interfaces ====
-The default network configuration is:+The OpenWrt default configuration of the [[doc/networking/network.interfaces|network interfaces]] is as follows:
^ Interface Name ^ Description ^ Default configuration ^ ^ Interface Name ^ Description ^ Default configuration ^
-| br-lan | LAN & WiFi | 192.168.1.1/24 |  +| ''br-lan'' | LAN & WiFi | 192.168.1.1/24 | 
-| eth0 | LAN ports (1 to 4) + WAN | None |  +| ''eth0''  | LAN ports (1 to 4) + WAN | //none//
-| wlan0 | WiFi | Disabled | +| ''wlan0''  | WiFi | //disabled// |
 +==== Switch Ports (for VLANs) ====
 +Gigabit Media Independent Interface is the internal connection to the router itself.
-==== Switch Ports (for VLANs) ====+^ Port ^ Switch port on v1.x ^ Switch port on v2.x ^ 
 +| Internet (WAN)| 0 | 5 |  
 +| LAN 1 | 1 | 4 | 
 +| LAN 2 | 2 | 3 | 
 +| LAN 3 | 3 | 2 | 
 +| LAN 4 | 4 | 1 | 
 +| [[wp>Gigabit Media Independent Interface|GMII]] | 5 (marked as CPU) | 0 (marked as CPU) Switch0 CPU Port| 
 +| ::: | - | 6 Switch0 CPU Port |
-Numbers 1-4 are Ports 1-4 as labeled on the unit, number 0 is the Internet (WAN) on the unit, 5 is the internal connection to the router itself. +FIXME There is a port 6 on v2.x I haven't found it's purpose yet!
-^ Port ^ Switch port ^ +Theory (may be wrong):\\ 
-| Internet (WAN) | 0 |  +The v2.x get's the lan and wan interface not via eth0.1/eth0.2 but via eth0 (wan) and eth1 (lan). 
-| LAN 1 | 1 |  +The eth0 in the same vlan as port 5 on the switch. 
-| LAN 2 | 2 |  +Because of that, I think that port 6 on the v2.x routers may be an aditional CPU port - used for wan traffic only. 
-| LAN 3 | 3 |  + 
-| LAN 4 | 4 |  +Wan has VLAN 2, that shouldn't be touch,as you lose the WAN port. Start you VLANs from 3 , attaching them to the eth1.x sub-interfaces.
-| Gigabit Media Independent Interface | 5 | +
-http://www.realtek.com.tw/products/productsView.aspx?Langid=1&PNid=18&PFid=15&Level=5&Conn=4&ProdID=197 
Some issues with 10.03.1-rc4 on Hardware Ver.1.8 see [[https://forum.openwrt.org/viewtopic.php?pid=123269#p123269|this post]] for workaround. Some issues with 10.03.1-rc4 on Hardware Ver.1.8 see [[https://forum.openwrt.org/viewtopic.php?pid=123269#p123269|this post]] for workaround.
There is a problem with VLAN-IDs > 9 (at least on v1.4 with 10.03.1-RC6 r28680 and v1.8 with 12.09-rc1 r34185). Using a VLAN-ID > 9 makes the router inaccessible on this interface. There is a problem with VLAN-IDs > 9 (at least on v1.4 with 10.03.1-RC6 r28680 and v1.8 with 12.09-rc1 r34185). Using a VLAN-ID > 9 makes the router inaccessible on this interface.
 +
 +==== Port Mirroring ====
 +Port mirroring is supported since [[https://dev.openwrt.org/changeset/36847/|r36847 ]]
 +
 +/etc/config/network
 +<code>
 +
 +config switch
 +        option name 'switch0'
 +        option reset '1'
 +        option enable_vlan '1'
 +        option enable_mirror_rx '1'
 +        option enable_mirror_tx '1'
 +        option enable_monitor_isolation '1'
 +        option enable_mirror_pause_frames '1'
 +        option mirror_monitor_port '4'
 +        option mirror_source_port '3'
 +config switch_vlan
 +        option device 'switch0'
 +        option vlan '1'
 +        option ports '1 5t'
 +config switch_vlan
 +        option device 'switch0'
 +        option vlan '5'
 +        option ports '2 3'
 +
 +</code>
 +
 +The port numbers are shown here:
 +
 +{{:media:img_20140513_175452.jpg}}
 +
 +==== Use the WAN-Port as a LAN-Port  ====
 +**remove** to following lines, to remove the wan specific configuration (vlan and interface)
 +
 +**V1.x**
 +/etc/config/network
 +<code>config interface 'wan'
 + option ifname 'eth0.2'
 + option proto 'dhcp'</code>
 +and
 +<code>config switch_vlan
 + option device 'switch0'
 + option vlan '2'
 + option ports '0 5t'</code>
 +
 +and **add** the port 0 to the existing Vlan
 +<code>config switch_vlan
 + option device 'switch0'
 + option vlan '1'
 +# add port 0 to the line below
 + option ports '0 1 2 3 4 5t'</code>
 +
 +**V2.x**
 +/etc/config/network
 +<code>config interface 'wan'
 + option ifname 'eth0'
 + option proto 'dhcp'</code>
 +and
 +<code>config switch_vlan
 + option device 'switch0'
 + option vlan '2'
 + option ports '5 6'</code>
 +
 +and **add** the port 5 to the existing Vlan
 +<code>config switch_vlan
 + option device 'switch0'
 + option vlan '1'
 +# add port 5 to the line below
 + option ports '0 1 2 3 4'</code>
 +
 +==== Add VLAN and Second Wan on v.2.x  ====
 +/etc/config/network
 +
 +Each Port is a VLAN
 +
 +Physical Port 1 is the WAN2
 +
 +Adapt to your needs
 +<code>
 +config interface 'loopback'
 +        option ifname 'lo'
 +        option proto 'static'
 +        option ipaddr '127.0.0.1'
 +        option netmask '255.0.0.0'
 +
 +config globals 'globals'
 +        option ula_prefix 'fd30:0c4a:0bba::/48'
 +
 +config interface 'lan1'
 +        option ifname 'eth1.1'
 +        option type 'bridge'
 +        option proto 'static'
 +        option ipaddr '192.168.1.1'
 +        option netmask '255.255.255.0'
 +
 +config interface 'lan2'
 +        option ifname 'eth1.3'
 +        option proto 'static'
 +        option ipaddr '192.168.2.1'
 +        option netmask '255.255.255.0'
 +        option type 'bridge'
 +
 +config interface 'lan3'
 +        option ifname 'eth1.4'
 +        option proto 'static'
 +        option ipaddr '192.168.3.1'
 +        option netmask '255.255.255.0'
 +        option type 'bridge'
 +
 +config interface 'lan4'
 +        option ifname 'eth1.5'
 +        option proto 'static'
 +        option ipaddr '192.168.4.1'
 +        option netmask '255.255.255.0'
 +        option type 'bridge'
 +
 +config interface 'wan'
 +        option ifname 'eth0'
 +        option proto 'static'
 +        option ipaddr '192.168.100.100'
 +        option netmask '255.255.255.0'
 +
 +config interface 'wan6'
 +        option ifname '@wan'
 +        option proto 'dhcpv6'
 +
 +config switch
 +        option name 'switch0'
 +        option reset '1'
 +        option enable_vlan '1'
 +
 +config switch_vlan
 +        option device 'switch0'
 +        option vlan '1'
 +        option ports '0t 1'
 +        option vid '1'
 +
 +config switch_vlan
 +        option device 'switch0'
 +        option vlan '3'
 +        option ports '0t 4'
 +        option vid '3'
 +
 +config switch_vlan
 +        option device 'switch0'
 +        option vlan '4'
 +        option ports '0t 3'
 +        option vid '4'
 +
 +#This should stay untouched
 +config switch_vlan
 +        option device 'switch0'
 +        option vlan '2'
 +        option ports '5 6'
 +        option vid '2'
 +
 +config switch_vlan
 +        option device 'switch0'
 +        option vlan '5'
 +        option ports '0t 2'
 +        option vid '5'
 +</code>
==== Failsafe mode ==== ==== Failsafe mode ====
Line 316: Line 543:
===== Hardware ===== ===== Hardware =====
==== Info ==== ==== Info ====
-| **[[wp>Instruction set]]:**              | [[wp>MIPS architecture|MIPS32]]  | +TP-Link naming scheme is, that numbers behind the comma, refer to changes in the firmware only, the hardware is identical. 
-| **Vendor:**                              | [[wp>Qualcomm Atheros]] | + 
-| **[[doc:techref:Bootloader]]:**          | [[doc:techref:bootloader:uboot|U-Boot]] 1.1.4 | +^ Type ^ HW ver. 1.x ^ HW ver. 2.x ^ 
-| **[[doc:hardware:soc|System-On-Chip]]:**  | AR9132 rev 2 (MIPS 24Kc V7.4) +| **[[wp>Instruction set]]:**              | [[wp>MIPS_instruction_set#MIPS32|MIPS32]]  |
-| **[[doc:hardware:cpu|CPU]]/Frq**          | 24Kc V7.4 400 Mhz +| **Vendor:**                              | [[wp>Qualcomm Atheros]] |
-| **Target name**                          | [[http://wiki.openwrt.org/tag/ar71xx?do=showtag&tag=ar71xx|ar71xx]] | +| **[[doc:techref:Bootloader]]:**          | [[doc:techref:bootloader:uboot|U-Boot]] 1.1.4 |
-| **Initial flash image**                  | ''openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-factory.bin'' | +| **[[doc:hardware:soc|System-On-Chip]]:**  | AR9132 rev 2 |  QCA9558 
-| **Upgrade image**                        | ''openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-sysupgrade.bin'' +| **[[doc:hardware:cpu|CPU]]/Frq**          | 24Kc V7.4 400 MHz  |  74Kc V5.0 720 MHz 
-| **Flash-Chip:**                          | [[http://www.spansion.com/Support/Datasheets/S25FL064P_00_03_e.pdf|ST 25P64V6P]] | +| **Target name**                          | [[http://wiki.openwrt.org/tag/ar71xx?do=showtag&tag=ar71xx|ar71xx]] || 
-| **Flash size:**                          | 8192 KiB | +| **Flash-Chip:**                          | [[http://www.spansion.com/Support/Datasheets/S25FL064P_00.pdf|ST 25P64V6P]] |  [[http://www.nexflash.com/hq/enu/ProductAndSales/ProductLines/FlashMemory/SerialFlash/W25Q64FV.htm|Winbond 25Q64FV]] 
-| **RAM:**                                  | 32 MiB   +| **Flash size:**                          | 8192 KiB |
-| **Wireless:**                            | Atheros AR9103 2.4ghz 802.11bgn | +| **RAM:**                                  | 32 MiB |  64 MiB  |
-| **Wireless Power:**                      | Maximal power output is 27 dBm (500 mW) | +| **Wireless:**                            | Atheros AR9103 2.4 GHz 802.11bgn |  QCA9558 2.4 GHz 802.11bgn  |  
-| **802.11n:**                              | 3 x 3 : 2 | +| **Wireless Power:**                      | Maximal power output is 24 dBm (251 mW) |
-| **[[doc:hardware:Switch]]:**              | [[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]]  | +| **802.11n:**                              | 3 x 3 : 2 |  3 x 3 : 3 
-| **USB:**                                  | Yes 1 x 2.0 (OHCI platform; device name ''1-1'')   +| **[[doc:hardware:Switch]]:**              | [[http://realtek.info/pdf/rtl8366_8369_datasheet_1-1.pdf|RealTek RTL8366RB]]  |  [[http://wikidevi.com/files/Atheros/specsheets/AR8327_AR8327N.pdf|Atheros AR8327N-BL1A]]
-| **Power:**                                | 12V DC 1.5A | +| **[[doc/techref/swconfig]]:**            |  [[https://dev.openwrt.org/browser/trunk/target/linux/generic/files/drivers/net/phy/rtl8366rb.c|yes, rtl8366rb]]  |  [[https://dev.openwrt.org/browser/trunk/target/linux/generic/files/drivers/net/phy/ar8216.c|yes, ar8216]]  | 
-| **[[doc:hardware:port.serial|Serial]]:**  | [[#Serial|Yes]] | +| **USB:**                                  | Yes 1 x 2.0 ([[wp>Open Host Controller Interface|OHCI]] platform; device name ''1-1'') |
-| **[[doc:hardware:port.jtag|JTAG]]:**      | [[#JTAG|Yes]]  |+| **Power:**                                | 12V DC 1.5A |
 +| **[[doc:hardware:port.serial|Serial]]:**  | [[#Serial|Yes]] |
 +| **[[doc:hardware:port.jtag|JTAG]]:**      | [[#JTAG|Yes]]   | [[#JTAG|No?]]  |
==== Performance ==== ==== Performance ====
Line 355: Line 584:
Specifications: Specifications:
-| **Brand/Model** | Leader Electronics Inc / LEI F7 | +^  ^ TL-WR1043ND DE (v1.0) ^ TL-WR1043ND v2.1 ^ 
-| **Input** | 100-240V~ (50/60Hz, 0.6A) | +| **Brand/Model** | Leader Electronics Inc / LEI F7 | TP-LINK Tech. co., ltd.
-| **Output** | 12.0V 1.5A | +| **Input** | 100-240V~ (50/60Hz, 0.6A) |
-| **Measured output** | 12.25V | +| **Output** | 12V 1.5A |
-| The plug (on the router side) has the following specifications: || +| **Measured output** | 12.25V |  12.40V (w/o load) |
-| **Outer diameter** | 5.5mm | +| The plug (on the router side) has the following specifications: ||| 
-| **Inner diameter**| 2.1mm | +| **Outer diameter** | 5.5mm |
-| **Length of the shaft** | 9.5mm |+| **Inner diameter**| 2.1mm |
 +| **Length of the shaft** | 9.5mm ||
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.
Line 386: Line 616:
==== Photos ==== ==== Photos ====
 +
 +Photos of v1.X PCB:
{{:toh:tp-link:tl-wr1043nd-v16.jpg?400|PCB Board TP-Link TL-WR1043ND v1.6}} {{:toh:tp-link:tl-wr1043nd-v16.jpg?400|PCB Board TP-Link TL-WR1043ND v1.6}}
{{:inbox:tl-wr1043nd_v14.jpg?400|PCB Board TP-Link TL-WR1043ND v1.4}} {{:inbox:tl-wr1043nd_v14.jpg?400|PCB Board TP-Link TL-WR1043ND v1.4}}
-Since all 1.x Versions should use the same hardware, a picture of 2.x PCB would be interesting, if any.+Photos of v2.X PCB:
 +{{:media:tl-wr1043nd_images_board1.jpg?400|PCB TP-Link TL-WR1043ND v2.1}}
 +{{:media:tl-wr1043nd_images_board2.jpg?400|PCB TP-Link TL-WR1043ND v2.1}}
 +
 +More photos of the v2 version: [[http://galeria.tech-blog.pl/TP-Link_TL-WR1043ND_v2/|TP-Link TL-WR1043ND v2]]
==== Opening/closing the case ==== ==== Opening/closing the case ====
-Note: This will void your warranty! The case of the WR1043N is composed of 4 pieces:+Note: This will void your warranty!  
 + 
 +The case of the WR1043N v1.x is composed of 4 pieces:
  * Top cover (white, with logo)   * Top cover (white, with logo)
Line 416: Line 654:
Pictures can be found [[http://www.flickr.com/photos/19739482@N05/sets/72157624000636958/|here]] Pictures can be found [[http://www.flickr.com/photos/19739482@N05/sets/72157624000636958/|here]]
-=== Putting it back together ===+The case of the WR1043N v2.x is composed of 2 pieces:
 +  * Top cover (black (bluish))
 +  * Bottom cover (gray)
 +
 +1. Remove the four screws on the bottom cover.
 +2. Use a thin object to release the top cover from the bottom cover
 +
 +=== Putting it back together ===
 +V1.x
  - Place the board on the bottom cover, so that the two plastic pins at the front keep it in place.   - Place the board on the bottom cover, so that the two plastic pins at the front keep it in place.
  - If you undid the antenna connectors, put them back in and tighten the nuts.   - If you undid the antenna connectors, put them back in and tighten the nuts.
Line 425: Line 671:
  - Push the front towards the back so the hooks are engaged, then push down the top cover.   - Push the front towards the back so the hooks are engaged, then push down the top cover.
  - Fasten the screws and re-apply the rubber feet.   - Fasten the screws and re-apply the rubber feet.
 +V2.x
 +  - Put the top cover back on
 +  - Press until it clicks back nicely to the bottom cover.
 +  - Put back the screws
 +
==== Serial ==== ==== Serial ====
-> [[doc:hardware:port.serial]] general information about the serial port, serial port cable, etc. -> [[doc:hardware:port.serial]] general information about the serial port, serial port cable, etc.
Line 433: Line 684:
Don’t forget that the **TX pin** of the serial port must linked to the **RX pin** of the router and the RX to TX! Don’t forget that the **TX pin** of the serial port must linked to the **RX pin** of the router and the RX to TX!
-Speed: 115200 baud+Bits per second: **115200**\\ 
 +Data bits: **8**\\ 
 +Parity: **None**\\ 
 +Stop bits: **1**\\ 
 +Flow control: **None**\\
-{{:inbox:wr1043ndserial.jpg?400|}}+{{:media:tl-wr1043nd_serial_pinouts.jpg|Serial Pinouts}}
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. 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.
Line 443: Line 698:
=== Receive (RX) Disabled === === 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:+Some revisions of v1.x 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]] [[https://forum.openwrt.org/viewtopic.php?pid=176448#p176448]]
Line 506: Line 761:
^        ^              ^            ^  Voltage level at GPIO in output-mode  ^^  gpioX/value in input-mode when GPIO is: ^^^ ^        ^              ^            ^  Voltage level at GPIO in output-mode  ^^  gpioX/value in input-mode when GPIO is: ^^^
^  GPIO  ^  Common Name  ^  PCB Name  ^  gpioX/value=1  ^ gpioX/value=0        ^  Floating  ^  Pulled to GND  ^  Pulled to Vcc  ^ ^  GPIO  ^  Common Name  ^  PCB Name  ^  gpioX/value=1  ^ gpioX/value=0        ^  Floating  ^  Pulled to GND  ^  Pulled to Vcc  ^
-|      0 |              |            |                 |                       |            |                 |                 |+|      0 |              |  ->R713    |            3.3V |                   0V |         1 |               0 |       1 |
|      1 |  USB          |  D18=D9    |              0V |                  3.3V |          1 |              1 |        1 | |      1 |  USB          |  D18=D9    |              0V |                  3.3V |          1 |              1 |        1 |
|      2 |  SYS          |  D19=D8    |              0V |                  3.3V |          1 |              1 |        1 | |      2 |  SYS          |  D19=D8    |              0V |                  3.3V |          1 |              1 |        1 |
Line 521: Line 776:
|    13 |  P1-Rx        |            |            3.3V |                    0V |          0 |              0 |        1 | |    13 |  P1-Rx        |            |            3.3V |                    0V |          0 |              0 |        1 |
|    14 |              |            |                |                      |            |                |                  | |    14 |              |            |                |                      |            |                |                  |
-|    15 | USB PSU EN?  | ->R711    |            3.3V |                    0V |          1 |                 |        1         +|    15 | USB PSU EN?  | ->R711    |            3.3V |                    0V |          1 |               0 |        1 | 
-|    16 | USB PSU CHK?  | ->R708    |            3.3V |                    0V |          1 |                 |                 |+|    16 | USB PSU CHK?  | ->R708    |            3.3V |                    0V |          1 |               0 |       1 |
|    17 |              |            |                |                      |            |                |                  | |    17 |              |            |                |                      |            |                |                  |
|    18 |  Data line of the RTL8366RB                                                                          ||||||| |    18 |  Data line of the RTL8366RB                                                                          |||||||
Line 561: Line 816:
//:!: Note: you don't need to configure or activate buttons to get the [[toh:tp-link:tl-wr1043nd#failsafe.mode|Failsafe mode]] working, it will work by default.// //:!: Note: you don't need to configure or activate buttons to get the [[toh:tp-link:tl-wr1043nd#failsafe.mode|Failsafe mode]] working, it will work by default.//
 +
 +//:!: Note2: From versions 1.8 up to 2.x holding the reset button for more than 30' resets to OpenWRT initial settings.//
 +
 +//:!: Note3: If you use current trunk version of OpenwRT then the reset button is controlled through /etc/rc.button/reset file. If you hold the button for longer than 5 seconds, then OpenWRT resets to initial settings. You can change the behaviour in this file: /etc/rc.button/reset//
===== Debricking ===== ===== Debricking =====
Line 678: Line 937:
Total: 62104 17472 44632 Total: 62104 17472 44632
</code> </code>
 +
 +This chip from Digikey should work too, if you aren't able to obtain a DDR-module: {{http://www.digikey.de/product-detail/de/AS4C32M16D1-5TCN/1450-1006-ND/4234565|Alliance Memory, Inc. AS4C32M16D1-5TCN}}
==== I²C GPIO Mod ==== ==== I²C GPIO Mod ====
-An I²C-bus can easily be added using the GPIO-lines of the AR913x-SoC. So far, the only usable ones which have been confirmed to work are GPIO 5 (the QSS-LED, easily solderable at D10,left pin with '+') as SDA and GPIO 20 (labeled on the pcb, next to the RAM chip) as SCL. There are only two pull-up resistors of 4,7k-10k needed, which have to be soldered between the apropriate GPIO line and Vcc (found at the spot labeled TP3V3, about 2 cm above the WiFi-shielding). The common ground can be obtained from the TP_GND spot (between P1 and the flash chip). Remember this bus runs at 3.3V level, when connecting I²C-devices. \\ +An I²C-bus can easily be added using the GPIO-lines of the AR913x-SoC. So far, the only usable ones which have been confirmed to work are GPIO 0 (the unpopulated R713 located in the bottom right corner of the SoC, using the pad facing R714), GPIO 5 (the QSS-LED, easily soldered at D10,left pin with '+') and GPIO 20 (labeled on the pcb, next to the RAM chip, easily soldered from the bottom side). Using GPIO 0 and 20 may be the best choice, as they are not used, so there are no issues about removing the LED driver(bindings) or pcb components. If GPIO 5 has to be used, it should be used for SDA (it has less level changes than SCL). There are only two pull-up resistors of 4,7k-10k needed, which have to be soldered between the appropriate GPIO line and Vcc (found at the spot labeled TP3V3, about 2 cm above the WiFi-shielding). The common ground can be obtained from the TP_GND spot (between P1 and the flash chip). Remember this bus runs at 3.3V level, when connecting I²C-devices. \\ 
-To improve signal integrity (in this case namely a solid logic low level on GPIO5), you can replace R373 with a piece of wire and remove the LED D31. R373 seems to be the current limit resistor for the LED D31.+To improve signal integrity (in this case namely a solid logic low level on GPIO 5), you can replace R373 with a piece of wire and remove the LED D31. R373 seems to be the current limit resistor for the LED D31.
{{ http://wiki.openwrt.org/_media/toh/tp-link/i2c-gpio.png }} {{ http://wiki.openwrt.org/_media/toh/tp-link/i2c-gpio.png }}
-Unfortunately the precompiled packages don't seem to work properly, so building from sources is most likely necessary. Therefore, make sure the apropriate part of your OpenWRT-config file looks like that: 
 +Make sure to install package kmod-i2c-gpio-custom.
 +To load the kernel module (with SCL=GPIO 0 and SDA=GPIO 20), do a:
<code> <code>
-+insmod i2c-gpio-custom bus0=0,20,0
-# I2C support +
-+
-CONFIG_PACKAGE_kmod-i2c-core=y +
-CONFIG_PACKAGE_kmod-i2c-algo-bit=y +
-# CONFIG_PACKAGE_kmod-i2c-algo-pca is not set +
-# CONFIG_PACKAGE_kmod-i2c-algo-pcf is not set +
-CONFIG_PACKAGE_kmod-i2c-gpio=y +
-CONFIG_PACKAGE_kmod-i2c-gpio-custom=y+
</code> </code>
- +If your I2C-bus runs successfully, you can enable it on boot by creating a file in /etc/modules.d called "55-i2c-gpio-custom" with the options appropriate to your bus configuration. For example:
-Besides that, check in the kernel-config, that the support for I²C character device is selected. In the kernel config file the appropriate line should look like that:+
<code> <code>
-CONFIG_I2C_CHARDEV=m+i2c-gpio-custom bus0=0,20,0
</code> </code>
-To load the kernel module, do a: + 
-<code> +A more convenient way to add an I2C-bus to this router, without a modification of the internal hardware (and risking your warranty), is using the [[doc:howto:usb.i2c-tiny-usb|I²C Tiny-USB]] adapter. The downsides are, that it is not as cheap as the I²C-GPIO mod, and the longterm-stability is lower (temporary USB disconnects can occur randomly or due to EMI, but the I2C-subsystem is not designed for sudden disconnects). Remember this bus runs at 5V level, when connecting I²C-devices.
-insmod i2c-gpio-custom bus0=0,5,20 +
-</code> +
-In many cases, GPIO 5 will already be occupied by the leds-gpio kernel module - causing the above command to fail. In case you don't need the leds at all, you can just unload the leds-gpio kernel module, remove the package or disable it in the OpenWRT-configuration. As an alternative, you can just release the binding of the QSS-LED in sysfs - thus keeping the function of the other LEDs.+
==== Flash Mod ==== ==== Flash Mod ====
Line 712: Line 962:
-==== I²C Tiny-USB Mod ==== +===== Custom OpenWrt image with LuCi integrated =====
- +
-Though not really a modification of the internal hardware, the [[doc:howto:usb.i2c-tiny-usb|I²C Tiny-USB]] adapter allows you to extend your router with an I²C bus over USB. It is not as cheap as the I²C-GPIO mod, but will not risk your warranty. Remember this bus runs at 5V level, when connecting I²C-devices. +
- +
-===== Custom IPv6 image for wr1043nd =====+
-a custom image with ipv6 support: radvd, wide-dhcpv6, 3g stick support, made for RCS-RDS Fiberlink dual stack PPPoE service, +http://www.superwrt.eu/en/firmware/tp-link-wr1043nd/
-but should be okay for static wan settings on other ISPs: +
-http://www.ip6.ro/firmware/wr1043nd/+
===== Other models with the same hardware ===== ===== Other models with the same hardware =====
Line 726: Line 970:
  * [[http://www.canyon-tech.com/archive/connectivity/wireless/CNP-WF514N3A|Canyon CNP-WF514N3A]] description and internal photos [[http://www.dd-wrt.com/phpBB2/viewtopic.php?t=148618|here]]   * [[http://www.canyon-tech.com/archive/connectivity/wireless/CNP-WF514N3A|Canyon CNP-WF514N3A]] description and internal photos [[http://www.dd-wrt.com/phpBB2/viewtopic.php?t=148618|here]]
  * [[http://www.proware.com.cn/product-detail.asp?productId=1010195&t=4#info|Proware PW-RN611D/MH5-WR1043ND]] probably another clone...   * [[http://www.proware.com.cn/product-detail.asp?productId=1010195&t=4#info|Proware PW-RN611D/MH5-WR1043ND]] probably another clone...
 +  * [[http://wiki.openwrt.org/toh/tp-link/tl-wdr7500|TP-Link TL-WDR7500]] TP-Link TL-WDR7500 / TP-Link Archer C7 AC1750 (similar hardware to v2.1)
===== Tags ===== ===== Tags =====
-{{tag>GigabitEthernet 5Port 1NIC 1WNIC USB JTAG 802.11bgn ath9k 3Ant DetachableAntenna 32RAM 8Flash MIPS MIPS32 24Kc JumboFrames vlan AR9132 ar71xx atheros-ap83}}+{{tag>GigabitEthernet 5Port 1NIC 1WNIC USB JTAG 802.11bgn ath9k 3Ant DetachableAntenna 32RAM 64RAM 8Flash MIPS MIPS32 24Kc 74Kc QCA9558 JumboFrames vlan AR9132 ar71xx atheros-ap83}}

Back to top

toh/tp-link/tl-wr1043nd.1383478184.txt.bz2 · Last modified: 2013/11/03 12:29 by reichhart