From c02b9818a51ab189be11218e626e9cad2c21ec94 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Wed, 24 Jul 2019 16:49:08 +0200 Subject: ath79: add support for TP9343-based TP-Link TL-WR94x devices This adds support for several TP-Link devices based on TP9343 ("a QCA9561 without PCIe and USB"): - TL-WR940N v3 - TL-WR940N v4 - TL-WR941ND v6 The devices are only different concerning LEDs and MAC address assignment. All TL-WR940 are with non-detachable antennas (N), all TL-WR941 devices are with detachable antennas (ND). Specification: - 750 MHz CPU - 32 MB of RAM - 4 MB of FLASH - 2.4 GHz WiFi - 4x 10/100 Mbps Ethernet Flash instruction (WebUI): Download *-factory.bin image and upload it via the firmwary upgrade function of the stock firmware WebUI. Flash instruction (TFTP): 1. Set PC to fixed ip address 192.168.0.66 2. Download *-factory.bin image and rename it to * (see below) 3. Start a tftp server with the image file in its root directory 4. Turn off the router 5. Press and hold Reset button 6. Turn on router with the reset button pressed and wait ~15 seconds 7. Release the reset button and after a short time the firmware should be transferred from the tftp server 8. Wait ~30 second to complete recovery. * TFTP image names: 940 v3: wr941ndv6_tp_recovery.bin 940 v4: wr940nv4_tp_recovery.bin 941 v6: wr941ndv6_tp_recovery.bin Signed-off-by: Adrian Schmutzler --- target/linux/ath79/image/tiny-tp-link.mk | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'target/linux/ath79/image/tiny-tp-link.mk') diff --git a/target/linux/ath79/image/tiny-tp-link.mk b/target/linux/ath79/image/tiny-tp-link.mk index 3bf78c85cb..a2d598fb77 100644 --- a/target/linux/ath79/image/tiny-tp-link.mk +++ b/target/linux/ath79/image/tiny-tp-link.mk @@ -205,6 +205,30 @@ define Device/tplink_tl-wr841-v12 endef TARGET_DEVICES += tplink_tl-wr841-v12 +define Device/tplink_tl-wr940n-v3 + $(Device/tplink-4mlzma) + ATH_SOC := tp9343 + DEVICE_MODEL := TL-WR940N + DEVICE_VARIANT := v3 + TPLINK_HWID := 0x09410006 + SUPPORTED_DEVICES += tl-wr941nd-v6 +endef +TARGET_DEVICES += tplink_tl-wr940n-v3 + +define Device/tplink_tl-wr940n-v4 + $(Device/tplink-4mlzma) + ATH_SOC := tp9343 + DEVICE_MODEL := TL-WR940N + DEVICE_VARIANT := v4 + TPLINK_HWID := 0x09400004 + SUPPORTED_DEVICES += tl-wr940n-v4 + IMAGES += factory-us.bin factory-eu.bin factory-br.bin + IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US + IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU + IMAGE/factory-br.bin := append-rootfs | mktplinkfw factory -C BR +endef +TARGET_DEVICES += tplink_tl-wr940n-v4 + define Device/tplink_tl-wr941-v2 $(Device/tplink-4m) ATH_SOC := ar9132 @@ -224,6 +248,16 @@ define Device/tplink_tl-wr941-v4 endef TARGET_DEVICES += tplink_tl-wr941-v4 +define Device/tplink_tl-wr941nd-v6 + $(Device/tplink-4mlzma) + ATH_SOC := tp9343 + DEVICE_MODEL := TL-WR941ND + DEVICE_VARIANT := v6 + TPLINK_HWID := 0x09410006 + SUPPORTED_DEVICES += tl-wr941nd-v6 +endef +TARGET_DEVICES += tplink_tl-wr941nd-v6 + define Device/tplink_tl-wr941n-v7-cn $(Device/tplink-4mlzma) ATH_SOC := qca9558 -- cgit v1.2.3