Skip to content
Snippets Groups Projects
  1. Mar 13, 2020
    • Jun Su's avatar
      ath79: add support for TP-Link TL-WR740N v5 · b9f4f1f9
      Jun Su authored
      
      This adds support for the TP-Link TL-WR740N v5, a clone of the
      v4 only with a different TPLINK_HWID. It was already supported
      in ar71xx as well.
      
      Specifications:
      
      SOC: Atheros AR9331
      CPU: 400MHz
      Flash: 4 MiB
      RAM: 32 MiB
      WLAN: Atheros AR9330 bgn
      Ethernet: 5 ports (100M)
      
      Flashing instructions:
      
      - Flash factory image from OEM WebUI:
        openwrt-ath79-tiny-tplink_tl-wr740n-v5-squashfs-factory.bin
      - Sysupgrade from ar71xx image:
        openwrt-ath79-tiny-tplink_tl-wr740n-v5-squashfs-sysupgrade.bin
      
      Signed-off-by: default avatarJun Su <howard0su@gmail.com>
      [commit title/message facelift]
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      b9f4f1f9
  2. Feb 21, 2020
    • Adrian Schmutzler's avatar
      ath79: add support for TP-Link TL-WA701ND/730RE/801ND/901ND v1 · 2f1cc5c3
      Adrian Schmutzler authored
      
      This adds support for the various clones of the TL-WA830RE recently
      supported in fb99ac68 ("ath79: add support for TP-Link TL-WA830RE v1"):
      
      - tplink,tl-wa701nd-v1
      - tplink,tl-wa730re-v1
      - tplink,tl-wa801nd-v1
      - tplink,tl-wa830re-v1 (already supported)
      - tplink,tl-wa901nd-v1
      
      Since these devices are 100%-clones in ar71xx, this patch adds all
      of them without run-testing (as this has been done for TL-WA830RE v1).
      
      Specifications:
      - SOC: Atheros AR7240
      - CPU: 400MHz
      - Flash: 4 MiB (Spansion S25FL032P)
      - RAM: 32 MiB (Zentel A3S56D40FTP-G5)
      - WLAN: Atheros AR9280 bgn 2x2
      - Ethernet: 1 port (100M)
      
      Flash instructions:
      - install from u-boot with tftp (requires serial access)
        > setenv ipaddr a.b.c.d
        > setenv serverip e.f.g.h
        > tftpboot 0x80000000 \
            openwrt-ath79-tiny-tplink_tl-waxxxxx-v1-squashfs-factory.bin
        > erase 0x9f020000 +0x3c0000
        > cp.b 0x80000000 0x9f020000 0x3c0000
        > bootm 0x9f020000
      - flash factory image from OEM WebUI
      - sysupgrade from ar71xx image
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      2f1cc5c3
  3. Feb 19, 2020
  4. Feb 13, 2020
    • Adrian Schmutzler's avatar
      ath79: add support for TP-Link TL-WR940N v6 · fbd00bb8
      Adrian Schmutzler authored
      
      The TL-WR940N v6 is similar to v3/v4, it just has different
      LEDs and MAC address assignment.
      
      Specification:
      - 750 MHz CPU
      - 32 MB of RAM
      - 4 MB of FLASH
      - 2.4 GHz WiFi
      - 4x 10/100 Mbps Ethernet
      
      The use of LEDs is based on ar71xx, so blue LED is used for WAN
      and orange LED for diag (boot/failsafe/etc.).
      
      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
         wr940nv6_tp_recovery.bin
      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.
      
      Thanks to Manuel Kock for reviewing and testing this patch.
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      Tested-by: default avatarManuel Kock <github.web@manu.li>
      fbd00bb8
  5. Feb 11, 2020
    • Christian Buschau's avatar
      ath79: add support for TP-Link TL-WA830RE v1 · fb99ac68
      Christian Buschau authored
      
      This ports support for the TL-WA830RE v1 range extender from ar71xx to
      ath79.
      
      Specifications:
      - SOC: Atheros AR7240
      - CPU: 400MHz
      - Flash: 4 MiB (Spansion S25FL032P)
      - RAM: 32 MiB (Zentel A3S56D40FTP-G5)
      - WLAN: Atheros AR9280 bgn 2x2
      - Ethernet: 1 port (100M)
      
      Flash instructions:
      - install from u-boot with tftp (requires serial access)
        > setenv ipaddr a.b.c.d
        > setenv serverip e.f.g.h
        > tftpboot 0x80000000 \
            openwrt-ath79-tiny-tplink_tl-wa830re-v1-squashfs-factory.bin
        > erase 0x9f020000 +0x3c0000
        > cp.b 0x80000000 0x9f020000 0x3c0000
        > bootm 0x9f020000
      - flash factory image from OEM WebUI
      - sysupgrade from ar71xx image
      
      The device seems to be a clone of the following devices not yet
      added to ath79:
      - tl-wa701nd-v1
      - tl-wa730re-v1
      - tl-wa801nd-v1
      - tl-wa901nd-v1
      
      Signed-off-by: default avatarChristian Buschau <christian.buschau@mailbox.org>
      [make use of ar7240_tplink.dtsi, add note about clones]
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      fb99ac68
  6. Jan 23, 2020
    • Adrian Schmutzler's avatar
      ath79: fix SUPPORTED_DEVICES not matching ar71xx board names · 07ce940b
      Adrian Schmutzler authored
      
      Based on a script for comparison, this fixes (hopefully) all errors
      in SUPPORTED_DEVICES for ar71xx->ath79 upgrade.
      
      Devices where old string is removed as the device does not exist
      in ar71xx:
      - dlink_dir-859-a1
      - tplink_archer-a7-v5
      - tplink_cpe510-v3
      
      Devices where string is changed because it did not match the board
      name in ar71xx:
      - tplink_tl-mr3220-v1
      - tplink_tl-mr3420-v1
      - tplink_tl-wr2543-v1
      - tplink_tl-wr741nd-v4
      - tplink_tl-wr841-v7
      - ubnt_unifiac-mesh
      - ubnt_unifiac-mesh-pro
      - ubnt_unifiac-pro
      
      For this device, the correct string could not be found, but we could
      not determine the correct one. Thus, the string is removed for now:
      - tplink_tl-wr740n-v4
      
      The script for checking this is quite simple (note that newer
      entries, i.e. ath79->ath79 upgrade, are displayed as missing):
      
        newpath=target/linux/ath79/image/
        oldpath=target/linux/ar71xx/base-files/lib/ar71xx.sh
      
        for s in $(grep -roh "SUPPORTED_DEVICES.*" $newpath | sed 's/SUPPORTED_DEVICES *.= *//'); do
          found="Missing"
          grep -q -r "\"$s\"" $oldpath && found="Found"
          echo "$s: $found."
        done
      
      The errors might be filtered by appending 'grep "Missing"' to the script.
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      07ce940b
  7. Jan 22, 2020
    • Adrian Schmutzler's avatar
      ath79: add support for TP-Link TL-WA850RE v2 · a66a1eb9
      Adrian Schmutzler authored
      
      TP-Link TL-WA850RE v2 is a wall-plug N300 Wi-Fi range extender,
      based on Qualcomm/Atheros QCA9533 v2.
      
      Short specification:
      
      - 550/391/195 MHz (CPU/DDR/AHB)
      - 1x 10/100 Mbps Ethernet
      - 32 MB of RAM (DDR1)
      - 4 MB of FLASH
      - 2T2R 2.4 GHz
      - 2x internal antennas (embedded on PCB)
      - 9x LED (all can be turned off with GPIO15), 2x button
      - UART (J3) header on PCB
      
      Flash instruction: use "factory" image directly in vendor GUI.
      
      Warning: this device does not include any kind of recovery mechanism
      in the bootloader and disassembling process is not trivial.
      
      You can access vendor firmware over serial line using:
      - login: root
      - password: sohoadmin
      
      Stock firmware uses label MAC address for WiFi and same with local
      bit set for ethernet. Since this is difficult to reproduce with
      the toolset of OpenWrt, we just keep both ethernet and WiFi to
      the same address here.
      
      This is the first tiny device with tplink-safeloader in ath79.
      Firmware partition is only 3648k and thus even smaller than for
      the tplink-4m(lzma) devices.
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      a66a1eb9
    • Adrian Schmutzler's avatar
      ath79: add support for TP-Link TL-WA850RE v1 · 6eaea3a8
      Adrian Schmutzler authored
      
      This ports support for the TL-WA850RE v1 range extender from ar71xx
      to ath79.
      
      Specifications:
        Board: AP123 / AR9341 rev. 3
        Flash/RAM: 4/32 MiB
        CPU: 535 MHz
        WiFi: 2.4 GHz b/g/n
        Ethernet: 1 port (100M)
      
      Flashing instructions:
      Upload the factory image via the vendor firmware upgrade option.
      
      Recovery:
      Note that this device does not provide TFTP via ethernet like many
      other TP-Link devices do. You will have to open the case if you
      require recovery beyond failsafe.
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      6eaea3a8
  8. Jan 08, 2020
    • Adrian Schmutzler's avatar
      treewide: move mktplinkfw to tplink-v1-image in image-commands.mk · 9b0e8d0a
      Adrian Schmutzler authored
      
      This move the slightly different target-specific implementations of
      mktplinkfw from the targets to include/image-commands.mk and renames
      it to tplink-v1-image. Having a common version will increase
      consistency between implementation and will complete the
      tplink build command already present in the new location.
      
      Due to the slight differences of the original implementations, this
      also does some adjustments to the device build commands/variables.
      
      This also moves rootfs_align as this is required as dependency.
      
      Tested on:
      - TL-WDR4300 v1 (ath79, factory)
      - TL-WDR4900 v1 (mpc85xx, sysupgrade)
      - RE210 v1 (ramips, see Tested-by)
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      Tested-by: default avatarChristoph Krapp <achterin@googlemail.com>
      9b0e8d0a
  9. Dec 20, 2019
  10. Nov 06, 2019
    • Adrian Schmutzler's avatar
      ath79: specify N and ND subversions of TL-WR941 with ALT0_MODEL · c8c4f721
      Adrian Schmutzler authored
      
      TP-Link's TL-WR941 is sold with detachable antennas
      internationally (ND version), but with fixed antennas in China
      (N version). While hardware and images are similar for both
      variants of v2 and v4, they are different for v6.
      
      Having both explicitly will make it easier for user to identify
      the correct image, and most importantly will raise awareness
      that N and ND are not necessarily always the same as for
      TL-WR841 series.
      
      With an image selection webpage, using ALT0_MODEL as in this
      patch will provide the option to list versions for N and ND
      separately.
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      c8c4f721
  11. Oct 27, 2019
  12. Oct 06, 2019
  13. Sep 21, 2019
  14. Aug 17, 2019
    • Lim Guo Wei's avatar
      ath79: migrate TP-Link TL-MR3420v2 to ath79 · e7ab1b51
      Lim Guo Wei authored
      
      Specifications:
      - SoC: ar9341
      - RAM: 32M
      - Flash: 4M
      - Ethernet: 5x FE ports
      - WiFi: ar9341-wmac
      
      Flash instruction:
      Upload generated factory firmware on vendor's web interface.
      
      This changes the key assignment compared to ar71xx support of this
      device, since of the two keys on the device one is used as combined
      Reset/WPS and the second one as WiFi on/off button.
      Despite, the reset button required GPIO_ACTIVE_HIGH to work correctly.
      
      Signed-off-by: default avatarLim Guo Wei <limguowei@gmail.com>
      [redo commit message]
      Signed-off-by: default avatarChuanhong Guo <gch981213@gmail.com>
      e7ab1b51
  15. Aug 05, 2019
    • Adrian Schmutzler's avatar
      ath79: add support for TP9343-based TP-Link TL-WR94x devices · c02b9818
      Adrian Schmutzler authored
      
      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: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      c02b9818
    • Adrian Schmutzler's avatar
      ath79: add SUPPORTED_DEVICES for TP-Link TL-WR841N/ND v9 to v12 · 7ed643d2
      Adrian Schmutzler authored
      
      In ar71xx, v10 and v12 did not have separate board_name.
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      7ed643d2
    • Adrian Schmutzler's avatar
      ath79: add support for TP-Link TL-WR841N/ND v12 · 8b76c669
      Adrian Schmutzler authored
      
      This router has the same hardware as TP-LINK TL-WR841N/ND v11 (same
      FCC ID, same TFTP image name...).
      
      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 wr841nv11_tp_recovery.bin
         (it's really v11, not v12)
      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.
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      8b76c669
    • Adrian Schmutzler's avatar
      ath79: add support for TP-Link TL-WR841N/ND v10 · 4254193c
      Adrian Schmutzler authored
      
      The TL-WR841N/ND v10 is mostly identical to the v9. Apart from some minor
      changes, it contains a newer revision of the QCA9533 SoC and the CPU clock
      is significantly higher.
      
      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 wr841nv10_tp_recovery.bin
      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.
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      4254193c
  16. Jul 04, 2019
    • Paul Spooren's avatar
      ath79: split DEVICE_TITLE in multiple variables · 8c3dbaf8
      Paul Spooren authored
      
      This allows the definition of DEVICE_VENDOR, DEVICE_MODEL and
      DEVICE_VARIANT. All three are merged together to look the same as the
      current DEVICE_TITLE. Also, if DEVICE_TITLE is set it's directly used as
      a *fallback* for devices which weren't upgraded yet.
      
      This is based on the work of @sudhanshu16.
      
      The motivation is to create JSON files based on provided metadata,
      needing clear differentiation between vendor, model and revision.
      
      Signed-off-by: default avatarPaul Spooren <mail@aparcar.org>
      8c3dbaf8
  17. Mar 24, 2019
    • Chuanhong Guo's avatar
      ath79: add support for TP-Link TL-WR941N v7 (CN) · 8de907c4
      Chuanhong Guo authored
      
      This adds support for the Chinese version of TL-WR941N v7.
      It uses QCA9558+AR8236 while the international version
      uses TP9343 instead.
      
      Specification:
      - SoC: Qualcomm Atheros QCA9558
      - Flash: 4 MB
      - RAM: 64 MB
      - Ethernet: Atheros AR8236 with 5 FE ports
      
      Flash instruction:
        Upload the generated factory firmware on web interface.
      
      Signed-off-by: default avatarChuanhong Guo <gch981213@gmail.com>
      8de907c4
  18. Feb 14, 2019
  19. Dec 31, 2018
    • Antonio Silverio's avatar
      ath79: add support for TP-Link TL-WR841N/ND v8 · 9601d941
      Antonio Silverio authored
      
      CPU: Atheros AR9341 535MHz
      RAM: 32MB
      FLASH: 4MiB
      PORTS: 4 Port 100/10 Switch, 1 Port 100/10 Wan
      WiFi: Atheros AR9341 2x2:2 bgn
      LED: Power (static on), LAN (controlled by Switch), WAN, SYS, WiFi, RFKill
      BTN: WPS, WiFi, Reset
      
      Installation:
      Upload the factory image via the vendor-GUI.
      
      Signed-off-by: default avatarAntonio Silverio <menion@gmail.com>
      [resolve merge conflicts, squash commits, fix commit title, remove
      default default off led properties, mark sysupgrade image compatible
      with the ar71xx version of the board, drop blank lines from dts]
      Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
      9601d941
  20. Oct 07, 2018
    • David Bauer's avatar
      ath79: add support for TP-Link TL-WA901ND v2 · 5815bb2e
      David Bauer authored
      
      This commit adds support for the TP-Link TL-WR901ND v2 access point.
      
      CPU:   Atheros AR9132 400MHz
      RAM:   32MB
      FLASH: 4MiB
      WiFi:  Atheros AR9103 3x3:2 bgn
      LED:   Power (static on)
             LAN (controlled by PHY)
             SYS, WiFi, QSS toggleable
      BTN:   Reset, QSS
      
      Installation:
      Upload the factory image via the vendor-GUI.
      
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      5815bb2e
  21. Aug 19, 2018
    • David Bauer's avatar
      ath79: fix TL-MR3020 image metadata · 98d37703
      David Bauer authored
      
      Sysupgrading to ath79 from ar71xx currently fails because of mismatching
      supported_devices. ar71xx is expecting "tl-mr3020" which is missing in
      the ath79 image. Upgrading from ath79 is unaffected, as the image
      contains the old string for ar71xx and the new one coming from the
      device-tree.
      
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      98d37703
  22. Aug 16, 2018
  23. Aug 14, 2018
  24. Aug 08, 2018
    • Chuanhong Guo's avatar
      ath79: Fix led nodes for TL-WR740N v2 and add its clones · 1edba538
      Chuanhong Guo authored
      
      This patch did the following things:
      1. Separate ath9k-leds out of gpio leds so that all other leds will work
         before ath9k loded (e.g. during preinit/init stage).
      2. Rename wps led to qss since that's how TP-Link mark it.
      3. Rename LED prefix to tp-link because that dts is shared by many devices.
      4. Rename to wr740n-v1 because v1 is the first and v2 just use the fw of v1.
         (This will require a forced sysupgrade if you comes from
         the previous wr740n v2 image.)
      5. Remove SUPPORTED_DEVICES.
         (tl-wr740n-v2 doesn't exist anywhere so it's useless.)
      6. Add all WR741ND v1 clones found in ar71xx.
      
      Signed-off-by: default avatarChuanhong Guo <gch981213@gmail.com>
      1edba538
  25. Aug 06, 2018
  26. Jul 30, 2018
  27. Jul 02, 2018
  28. Jun 28, 2018
  29. Jun 08, 2018
  30. Jun 01, 2018
Loading