Differences

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

toh:tp-link:tl-wr841nd [2014/02/19 12:30]
seberm
toh:tp-link:tl-wr841nd [2014/07/13 12:35] (current)
seberm refactoring user notes
Line 31: Line 31:
| v7.2 | - |  12.09  | UFO shape -- Fully working with 12.09 | | v7.2 | - |  12.09  | UFO shape -- Fully working with 12.09 |
| v8.x (chinese version) | - |  Trunk r29631(modified)  | need hardware mod | | v8.x (chinese version) | - |  Trunk r29631(modified)  | need hardware mod |
-| v8.x (Intl) | 2012-Aug |  [[http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/openwrt-ar71xx-generic-tl-wr841n-v8-squashfs-factory.bin|12.09]]  | [[.:tl-db120|DB120]] |+| v8.x (Intl) | 2012-Aug |  [[http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/openwrt-ar71xx-generic-tl-wr841n-v8-squashfs-factory.bin|12.09]]  | [[.:tl-db120|DB120]] - [[https://dev.openwrt.org/ticket/15448|IPv6 bug]] | 
 +| v9 | 2014 | trunk r40400 | Fully working with [[https://dev.openwrt.org/changeset/40695|r40695]] (Wifi tx power setting fixed) ; Works also with the snapshot obtained on 29th May ( [[http://downloads.openwrt.org/snapshots/trunk/ar71xx/|search for wr841]] , [[http://wiki.openwrt.org/doc/howto/snapshots|What is a snapshot]], [[https://forum.openwrt.org/viewtopic.php?id=48355|useful forum discussion]] |
===== Hardware ===== ===== Hardware =====
-^ Version ^ v3 ^ v5 ^ v7.1 ^ v7.2 ^ v8.0 ^ +^ Version ^ v3 ^ v5 ^ v7.1 ^ v7.2 ^ v8.0 ^ v9.0 ^ 
-| **[[wp>Instruction set]]:** | [[wp>MIPS Architecture|MIPS]] ||||| +| **[[wp>Instruction set]]:** | [[wp>MIPS Architecture|MIPS]] |||||| 
-| **Vendor:** | Atheros ||||| +| **Vendor:** | Atheros |||||| 
-| **[[doc:techref:Bootloader]]:** | [[doc:techref:Bootloader:UBoot]] ||||| +| **[[doc:techref:Bootloader]]:** | [[doc:techref:Bootloader:UBoot]] |||||| 
-| **[[doc:hardware:soc|System-On-Chip]]:** | AR9130 | AR7240 rev 2 | AR7241 rev 1 | AR7241-AH1A | AR9341 | +| **[[doc:hardware:soc|System-On-Chip]]:** | AR9130 | AR7240 rev 2 | AR7241 rev 1 | AR7241-AH1A | AR9341 | QCA9533-AL3A
-| **[[doc:hardware:CPU]] Frq:** | 400 Mhz | 400 Mhz | 400 Mhz | 400 Mhz | 535 Mhz | +| **[[doc:hardware:CPU]] Frq:** | 400 Mhz | 400 Mhz | 400 Mhz | 400 Mhz | 535 Mhz | 550 MHz
-| **BogoMIPS:** | 265.42 | 266.24 | 265.42 | 265.42 | 266.64 | +| **BogoMIPS:** | 265.42 | 266.24 | 265.42 | 265.42 | 266.64 | 366.18
-| **Flash-Chip:** | ? | ? | ? | cFeon F32-100HIP (?) | FL032PIF | +| **Flash-Chip:** | ? | ? | ? | cFeon F32-100HIP (?) | Spansion FL032PIF | Spansion FL032PIF | 
-| **Flash size:** | 4 MiB | 4 MiB | 4 MiB | 4 MiB | 4 MiB | +| **Flash size:** | 4 MiB | 4 MiB | 4 MiB | 4 MiB | 4 MiB | 4 MiB | 
-| **RAM-Chip:** | ? | ? | ? | Zentel A3S56D40ETP-G5 | ? | +| **RAM-Chip:** | ? | ? | ? | Zentel A3S56D40ETP-G5 | ? | Winbond W9425G6JH-5
-| **RAM size:** | 32 MiB | 32 MiB | 32 MiB | 32 MiB | 32 MiB | +| **RAM size:** | 32 MiB | 32 MiB | 32 MiB | 32 MiB | 32 MiB | 32 MiB | 
-| **Wireless No1:** | Atheros AR9100 Rev:7 | Atheros AR9280 Rev:2 | Atheros AR9287 Rev2, 2.4GHz, 802.11bgn | Atheros AR9287-BL1A 2.4ghz 802.11bgn | AR9341 | +| **Wireless No1:** | Atheros AR9100 Rev:7 | Atheros AR9280 Rev:2 | Atheros AR9287 Rev2, 2.4GHz, 802.11bgn | Atheros AR9287-BL1A 2.4ghz 802.11bgn | AR9341 | QCA9533-AL3A
-| **Wireless No2:** | none ||||| +| **Wireless No2:** | none |||||| 
-| **[[doc:hardware:Switch]]:** | ? | AR7240 built-in switch | AR7240/AR9330 built-in switch | ? | AR9341 built-in switch | +| **[[doc:hardware:Switch]]:** | ? | AR7240 built-in switch | AR7240/AR9330 built-in switch | ? | AR9341 built-in switch | QCA9533-AL3A build-in
-| **USB:** | ? | [[#usb.1.1.port|Unpopulated]] | [[#usb.2.0.port.on.v7| unpopulated ]] | ? | ? | +| **USB:** | ? | [[#usb.1.1.port|Unpopulated]] | [[#usb.2.0.port.on.v7| unpopulated ]] | ? | ? | ? | 
-| **[[doc:hardware:port.serial|Serial]]:** | [[#Serial|Yes]] | [[#Serial|Yes]] | [[#Serial|Yes]] | [[#Serial|Yes]] | [[#Serial|Yes]] | +| **[[doc:hardware:port.serial|Serial]]:** | [[#Serial|Yes]] | [[#Serial|Yes]] | [[#Serial|Yes]] | [[#Serial|Yes]] | [[#Serial|Yes]] | [[#Serial|Remove R26]] | 
-| **[[doc:hardware:port.jtag|JTAG]]:** | ? | ? | ? | ? | [[#JTAGlYes]] |+| **[[doc:hardware:port.jtag|JTAG]]:** | ? | ? | ? | ? | [[#JTAGlYes]] | ? |
===== Installation ===== ===== Installation =====
-Flash the 12.09 squashfs images only, the jffs images will brick the router (not enough space on 4Mb flash) ([[https://dev.openwrt.org/ticket/13659|bug report]]). +Flash the squashfs images only, the jffs images will brick the router (not enough space on 4Mb flash) ([[https://dev.openwrt.org/ticket/13659|bug report]]).
==== Installing OpenWrt on TP-Link TL-WR841ND V5: ==== ==== Installing OpenWrt on TP-Link TL-WR841ND V5: ====
Line 72: Line 73:
  - Sit and wait while it flashes. It will reboot and be accessible at 192.168.1.1.    - Sit and wait while it flashes. It will reboot and be accessible at 192.168.1.1. 
:!:  Warning! in some cases after reboot you don't have web interface (GUI), only telnet and ssh access. You can install GUI, for details see: [[doc/howto/luci.essentials]], but before install LuCI (GUI) you need to configure your router to have access to internet, for configuration see: [[doc/howto/internet.connection]] :!:  Warning! in some cases after reboot you don't have web interface (GUI), only telnet and ssh access. You can install GUI, for details see: [[doc/howto/luci.essentials]], but before install LuCI (GUI) you need to configure your router to have access to internet, for configuration see: [[doc/howto/internet.connection]]
 +
 +==== Installing OpenWrt on TP-Link TL-WR841ND V9: ====
 +  - V9 is currently only supported in [[http://wiki.openwrt.org/about/history?s[]=barrier&s[]=breaker#bleeding.edge.trunk|trunk snapshot versions (called Barrier Breaker)]]
 +  - Download V9 image from: http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-tl-wr841n-v9-squashfs-factory.bin
 +  - Log in to router web interface http://192.168.0.1/ and select the firmware image you just uploaded as an update
 +  - Sit and wait while it flashes. It will reboot and be accessible at 192.168.1.1. 
 +:!:  Warning! After reboot you don't have web interface (GUI), only telnet and ssh (after setting a passwors via passwd) access. You can install GUI, for details see: [[doc/howto/luci.essentials]], but before install LuCI (GUI) you need to configure your router to have access to internet, for configuration see: [[doc/howto/internet.connection]]
==== TFTP install ==== ==== TFTP install ====
Line 126: Line 134:
</code> </code>
-For TL-WR841ND v5, v7 and v8:<code>+For TL-WR841ND v5, v7, v8, v9:<code>
ar7240> erase 0x9f020000 +0x3c0000 ar7240> erase 0x9f020000 +0x3c0000
... ...
Line 133: Line 141:
</code> </code>
-  - You're set, OpenWrt should now boot and you can set it up as usual:<code> + 
-U-Boot 1.1.4 (Apr  9 2009 - 12:29:57)</code>+ 
 +For TL-WR841ND v8.2: 
 + 
 +First of all, you need a TTL-RS232 level shifter, like this or DKU-5 data cable. It's work with other boards. 
 + 
 +{{:media:max3232.gif?500}} 
 + 
 + 
 +1. Hook your computer into the LAN1 ethernet port and configure this static ip for your LAN card 192.168.1.100. If your computer containing other LAN or Wifi card, disable it! 
 + 
 +2. Type in the console 
 +<code>setenv ipaddr 192.168.1.111 
 +setenv serverip 192.168.1.100</code> 
 +192.168.1.111 is the router ip, 192.168.1.100 is the TFTP server ip. 
 + 
 +3. Check settings with this command, but it's not necessary. 
 +<code>printenv</code> 
 +4. Load the firmware to RAM, witch is not containing the bootloader: 
 +<code>wasp> tftp 0x81000000 firmwarename.bin 
 +Using eth0 device 
 +TFTP from server 192.168.1.100; our IP address is 192.168.1.111 
 +Filename 'firmwarename.bin'. 
 +Load address: 0x81000000 
 +Loading: 
 +        ################################################################# 
 +        ################################################################# 
 +        ################################################################# 
 +        ################################################################# 
 +        ################################################################# 
 +        ################################################################# 
 +        ################################################################# 
 +        ################################################################# 
 +        ################################################################# 
 +        ################################################################# 
 +        ################################################################# 
 +        ###################################################### 
 +done 
 +Bytes transferred = 3932160 (3c0000 hex)</code> 
 + 
 +Firmware is now in the RAM. 
 + 
 +5. Erase the flash: 
 +<code>wasp> erase 0x9f020000 +0x3c0000</code> 
 +6. Copy RAM content to flash: 
 +<code>wasp> cp.b 0x81000000 0x9f020000 0x3c0000 
 +</code> 
 +7. Set up the boot 
 +<code>wasp> bootm 0x9f020000 
 +## Booting image at 9f020000 ... 
 +Uncompressing Kernel Image ... OK 
 + 
 +Starting kernel ...</code> 
 + 
 +8. Done ;-) 
 + 
 + 
===== Go back to original firmware ===== ===== Go back to original firmware =====
 +-> [[doc:howto:generic.uninstall]]
-  * Download the original firmware from TP-Link's site (IMPORTANT: Download a firmware which has does not contain the word //boot// in it's filename (such as wr741nv1_en_3_9_18_up_boot(100104).bin), extract the file and rename it to something short and simple such as ''tplink.bin''.+{{page>meta:infobox:dangerous&noheader&nofooter&noeditbtn}}
-[[http://www.tp-link.com/Resources/software/TL-WR841N_V8_120522.zip| TP-Link wr841n v.8 firmware w/o boot in title ]]+With the TL-WR842ND router, there is a catch: the stock firmware is obtained from the OEM: http://www.tplink.com/en/support/download/?model=TL-WR841N
-  * tested to work on n, might work on nd 9-11-2013 - note - edited link to ND and it also downloaded the same file.  Thanks to Undermonster on openwrt forum. +  * 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 
-  * Note: restore to old (smaller) firmware mentioned above to avoid "[e]Failed to erase block" error, then upgrade in the TP-Link web interface to the latest firmware [[http://www.tp-link.com/resources/software/TL-WR841N_V8_130506.zip| TL-WR841N_V8_130506]]+  * 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:
-  * Upload it to ''/tmp''-directory on your router and execute:<code> + 
-mtd -r write /tmp/tplink.bin firmware+The following method applies both for the V1 V1.5 V3 V5 V7 V8 and V9 since the bootloader is the same size. 
 + 
 + 
 +An example of an image file with the word "boot" in it is ''wr841nv9_en_3_14_4_up_boot(131129).bin''
 + 
 +Cut the first 0x20200 (that is 131,584 = 257*512) Bytes from original firmware: 
 +<code> 
 +dd if=orig.bin of=tplink.bin skip=257 bs=512
</code> </code>
-  * Be careful, if you were hit by the "missing web interface" problem described above, you will be probably see the same issue when flashing back to OEM and the box will lack in telnet or ssh, too, so no way to get out without hardware intervention.+ 
 +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> 
 +sysupgrade /tmp/tplink.bin 
 +</code> 
 + 
 +Or you use the mtd method: 
 +<code> 
 +mtd -r write tplink.bin firmware 
 +</code> 
 + 
 +It is also possible to revert to the stock firmware using the method with tftp described in "TFTP install". (you still need the firmware images without the boot part). 
 + 
 +OEM TP-Link firmware for the TL-WR841ND with the **//boot part removed//** or the original firmware if there wasn't a boot part to revert to the original OEM firmware: 
 +  * TL-WR841N(D) **//V1//** [[http://www.tplink.com/resources/software/2008613143645.zip|2008613143645.zip]] 
 +  * TL-WR841N(D) **//V1.5//** [[http://www.tplink.com/resources/software/2008618104149.zip|2008618104149.zip]] 
 +  * TL-WR842N(D) **//V3//** [[http://q.gs/6givu|TL-WR841ND-V3-stripped.zip]] 
 +  * TL-WR841N(D) **//V5//** [[http://www.tplink.com/resources/software/201112613340616.zip|201112613340616.zip]] 
 +  * TL-WR841N(D) **//V7//** [[http://www.tplink.com/Resources/software/TL-WR841N_WR841ND_v7_120201.zip|TL-WR841N_WR841ND_v7_120201.zip]] 
 +  * TL-WR842N(D) **//V8//** [[http://q.gs/6gisX|TL-WR841ND-V8-stripped.zip]] 
 +  * TL-WR842N(D) **//V9//** [[http://q.gs/6git8|TL-WR841ND-V9-stripped.zip]] 
 + 
===== Failsafe mode ===== ===== Failsafe mode =====
Line 181: Line 276:
===== Basic configuration ===== ===== Basic configuration =====
[[doc:howto:configuration]] [[doc:howto:configuration]]
 +
 +
 +
 +===== Use WPS with WPS button =====
 +// found info in Netgear WNDR3700 page  [[toh:netgear]] and adapted for WR841N //
 +
 +==== Prepare and install WPS ====
 +  - Follow the instructions for installing WPS : See [[doc:uci:wireless#wps.options]]
 +  - Your '/etc/config/wireless' file should be like that :
 +<code>
 +config wifi-iface
 +        option device 'radio0'
 +        option network 'lan'
 +        option mode 'ap'
 +        option ssid 'XXXXXXXXXXXXXXX'
 +        option key 'XXXXXXXXXXXXXXXXXXXXXXX'
 +        option wps_pushbutton '1'
 +        option wps_config 'push_button'
 +        option encryption 'psk2'
 +</code>
 +==== Check configuration ====
 +  - After reboot, if everything is ok, you can test with this command:
 +<code>
 +root@OpenWrt /root# hostapd_cli -p /var/run/hostapd-phy0 wps_pbc
 +Selected interface 'wlan0'
 +OK
 +</code>
 +==== Plug button action ====
 +  - Now, we can configure the WPS button on back on TL-WR841N to launch this command when we pressed it. Edit the file '/etc/hotplug.d/button/50-wps'
 +<code>
 +#!/bin/sh
 +# for debugging button name and action name, uncomment this 2 lines
 +#logger $BUTTON
 +#logger $ACTION
 +
 +if [ "$ACTION" = "pressed" -a "$BUTTON" = "reset" ]; then
 +        for dir in /var/run/hostapd-*; do
 +                [ -d "$dir" ] || continue
 +                hostapd_cli -p "$dir" wps_pbc
 +        done
 +fi
 +</code>
 +If everything goes ok, you should see in Syslog not only the button events, but also succesful WPS authentication.
 +
 +
 +
==== Wifi on/off toggle by QSS button ==== ==== Wifi on/off toggle by QSS button ====
Read [[doc:howto:hardware.button|this howto]] to use buttons on TP-Link Read [[doc:howto:hardware.button|this howto]] to use buttons on TP-Link
Line 216: Line 357:
If you do not have serial port on your PC, use [[http://www.dealextreme.com/p/data-cable-compatible-with-nokia-ca-42-446|Nokia CA-42 data USB cable]]. If you do not have serial port on your PC, use [[http://www.dealextreme.com/p/data-cable-compatible-with-nokia-ca-42-446|Nokia CA-42 data USB cable]].
-**For TP-LINK WR841ND V7.2 power conector (+5V) is ignored, just connect RX - TX - GND and router power cord, work fine...** 
-Another user notes: My TP-LINK WR841ND V7.2 has a VCC of +3.3V and like the TL-MR3420 [[http://wiki.openwrt.org/toh/tp-link/tl-mr3420#serial]] needed to connect a 10k pullup resistor between the TX and the 3.3V pin to get reliable serial.+==== Yet another user notes ====
-{{:media:dsc02532_324.jpg?250|}}+  * For TP-LINK WR841ND V7.2 power conector (+5V) is ignored, just connect RX - TX - GND and router power cord, work fine... 
 +  * My TP-LINK WR841ND V7.2 has a VCC of +3.3V and like the TL-MR3420 [[http://wiki.openwrt.org/toh/tp-link/tl-mr3420#serial]] needed to connect a 10k pullup resistor between the TX and the 3.3V pin to get reliable serial: 
 +  {{:media:dsc02532_324.jpg?800|}}
-Yet another user notes: My TP-Link WR841ND V7.1 also requires the 10k pullup resistor between TX and the 3.3V pin.  Without the resistor I just get garbage when I type, but can see some console output. +  * My TP-Link WR841ND V7.1 also requires the 10k pullup resistor between TX and the 3.3V pin.  Without the resistor I just get garbage when I type, but can see some console output.  
 +  * just swap TX and GND pin in serial and no garbage in serial console, but this is read-only. 
 +  * For my TP-Link TL841N v9.0 i had to remove R26. It's a pull-up between RX (device side) and VCC. My ftdi device couldn't send data with R26 attached. 
 +  * For my TP-Link TL-WR841ND v8.4 was not required 10K resistor. My TTL to RS232 converter has bad marking of Tx and Rx pins. So, it was necessary to connect Tx-Tx and Rx-Rx. The connection of Vcc (3.3V) was necessary too. The connection scheme you can find on the following image: 
 +    {{:media:tplink-841nd-v8-4-serial.jpg?800|}}
-Yet another-another user notes:just swap TX and GND pin in serial and no garbage in serial console, but this is read-only. 
- 
-Yet another-another-another user notes: For my TP-Link TL-WR841ND v8.4 was not required 10K resistor. Connection you can see on the following image: 
-{{:media:tplink-841nd-v8-4-serial.jpg?450|}} 
- 
-I think my TTL to RS232 converter has bad marking of Tx and Rx pins. So, it was necessary to connect Tx-Tx and Rx-Rx. Connection of Vcc (3.3V) was necessary too. 
**Tip:** Connecting TL-WR841N v8.1 via Arduino Due R3 ([[https://forum.openwrt.org/viewtopic.php?id=37010&p=6 | forum link]]): **Tip:** Connecting TL-WR841N v8.1 via Arduino Due R3 ([[https://forum.openwrt.org/viewtopic.php?id=37010&p=6 | forum link]]):
Line 237: Line 377:
=== Serial port settings: === === Serial port settings: ===
-^ Version ^ v3.2 ^ v5 ^ v7.X ^ v8.4 ^ +^ Version ^ v3.2 ^ v5 ^ v7.X ^ v8.4 ^ v9.0
-| **Image** | {{:toh:tp-link:tl-wr841nd-v3.2-serial.jpg?250|}} | {{:toh:tp-link:wr841nd-v5-serial.jpg?250|}} | {{:toh:tp-link:tl-wr841nd.v7.2.serial.jpg?250|}} | {{:media:toh:tp-link:tl-wr841nd.v8.4.serial.jpg?250}} | +| **Image** | {{:toh:tp-link:tl-wr841nd-v3.2-serial.jpg?250|}} | {{:toh:tp-link:wr841nd-v5-serial.jpg?250|}} | {{:toh:tp-link:tl-wr841nd.v7.2.serial.jpg?250|}} | {{:media:toh:tp-link:tl-wr841nd.v8.4.serial.jpg?250}} | {{:media:toh:tp-link:tp-link:tl-wr841nd.v9.0.serial.jpg?250}} | 
-| **U-Boot speed** | 9600 | 115200 ||| +| **U-Boot speed** | 9600 | 115200 |||| 
-| **kernel speed** | 115200 - switch automaticaly | 115200 ||| +| **kernel speed** | 115200 - switch automaticaly | 115200 |||| 
-| **Data format** | always 8N1 ||||+| **Data format** | always 8N1 |||||
After connecting, you will be greeted by something like this: After connecting, you will be greeted by something like this:
Line 397: Line 537:
{{tag>FastEthernet 5Port Serial integrated 802.11bgn 1WNIC AR9271 ath9k 2Ant DetachableAntenna 32RAM 4Flash MIPS MIPS32 24k}} {{tag>FastEthernet 5Port Serial integrated 802.11bgn 1WNIC AR9271 ath9k 2Ant DetachableAntenna 32RAM 4Flash MIPS MIPS32 24k}}
 +

Back to top

toh/tp-link/tl-wr841nd.1392809456.txt.bz2 · Last modified: 2014/02/19 12:30 by seberm