immortalwrt/target/linux
Foica David 0e7907dc5c ath79: add support for TP-Link Deco M4R v1 and v2
This commit adds support for the TP-Link Deco M4R (it can also be M4,
TP-Link uses both names) v1 and v2. It is similar hardware-wise to the
Archer C6 v2. Software-wise it is very different. V2 has a bit different
layout from V1 but the chips are the same and the OEM firmware is the same
for both versions.

Specifications:
SoC: QCA9563-AL3A
RAM: Zentel A3R1GE40JBF
Wireless 2.4GHz: QCA9563-AL3A (main SoC)
Wireless 5GHz: QCA9886
Ethernet Switch: QCA8337N-AL3C
Flash: 16 MB SPI NOR

Flashing:

The device's bootloader only accepts images that are signed using
TP-Link's RSA key, therefore this way of flashing is not possible. The
device has a web GUI that should be accessible after setting up the device
using the app (it requires the app to set it up first because the web GUI
asks for the TP-Link account password) but for unknown reasons, the web
GUI also refuses custom images.

There is a debug firmware image that has been shared on the device's
OpenWrt forum thread that has telnet unlocked, which the bootloader will
accept because it is signed. It can be used to transfer an OpenWrt image
file over to the device and then be used with mtd to flash the device.

Pre-requisites:

- Debug firmware.
- A way of transferring the file to the router, you can use an FTP server
  as an example.
- Set a static IP of 192.168.0.2/255.255.255.0 on your computer.
- OpenWrt image.

Installation:

- Unplug your router and turn it upside down. Using a long and thin object
  like a SIM unlock tool, press and hold the reset button on the router and
  replug it. Keep holding it until the LED flashes yellow.
- Open 192.168.0.1. You should see the bootloader recovery's webpage.
  Choose the debug firmware that you downloaded and flash it. Wait until the
  router reboots (at this stage you can remove the static IP).

- Open a terminal window and connect to the router via telnet (the primary
  router should have a 192.168.0.1 IP address, secondary routers are
  different).
- Transfer the file over to the router, you can use curl to download it
  from the internet (use the insecure flag and make sure your source accepts
  insecure downloads) or from an FTP server.
- The router's default mtd partition scheme has kernel and rootfs
  separated. We can use dd to split the OpenWrt image file and flash it with
  mtd:

   dd if=openwrt.bin of=kernel.bin skip=0 count=8192 bs=256
   dd if=openwrt.bin of=rootfs.bin skip=8192 bs=256

- Once the images are ready, you have to flash the device using mtd
  (make sure to flash the correct partitions or you may be left with a
  hard bricked router):

   mtd write kernel.bin kernel
   mtd write rootfs.bin rootfs

- Flashing is done, reboot the device now.

Signed-off-by: Foica David <superh552@gmail.com>
2022-05-09 17:11:54 +08:00
..
apm821xx apm821xx: WNDAP6X0: add missed uci-default for compat 2022-04-07 11:33:15 +08:00
archs38 archs38: update kernel version to 5.10 2021-11-10 23:59:07 +08:00
armvirt kernel: add missing Kconfigs for kernel 4.14 2022-01-01 17:35:27 +08:00
at91 at91: add support for sam9x60-ek board 2022-03-17 11:23:53 +08:00
ath25 ath25: disable build for ubnt2/5 2022-01-07 19:40:34 +08:00
ath79 ath79: add support for TP-Link Deco M4R v1 and v2 2022-05-09 17:11:54 +08:00
bcm27xx [HOT FIX] Merge Mainline 2022-04-03 00:50:22 +08:00
bcm47xx bcm47xx: fix bgmac regression present in 5.10 kernel 2021-11-14 23:56:20 +08:00
bcm53xx kernel: bump to 4.9.309, 4.14.275, 4.19.237 2022-04-11 03:36:16 +08:00
bcm63xx treewide: use uniform vendor value for british telecom 2022-04-16 23:38:32 +08:00
bcm4908 bcm4908: add uboot-envtools to default packages 2021-12-21 23:55:17 +08:00
bmips kernel: Deactivate B53 symbols in generic configuration 2021-12-03 00:03:50 +08:00
gemini kernel: add missing Kconfigs for kernel 4.14 2022-01-01 17:35:27 +08:00
generic mt7622: fix pppoe flow offload (#678) 2022-04-24 16:05:35 +08:00
imx [HOT FIX] Merge Mainline 2022-04-03 00:50:22 +08:00
ipq40xx ipq40xx: add support for FRITZ!Box 7520 2022-04-01 11:09:27 +08:00
ipq806x ipq806x: m520: simplified image generation 2022-05-01 12:15:55 +08:00
ipq807x kernel: Set CONFIG_RCU_CPU_STALL_TIMEOUT=21 2021-09-10 12:26:08 +08:00
kirkwood kernel: add missing Kconfigs for kernel 4.14 2022-01-01 17:35:27 +08:00
lantiq treewide: use uniform vendor value for british telecom 2022-04-16 23:38:32 +08:00
layerscape layerscape: armv7: refresh config-5.10 2022-04-28 14:59:48 +08:00
malta kernel: move two symbols to the generic kconfigs 2021-08-30 12:13:54 +08:00
mediatek [HOT FIX] Merge Mainline 2022-04-03 00:50:22 +08:00
mpc85xx kernel: bump 5.10 to 5.10.80 2021-12-08 23:59:43 +08:00
mvebu [HOT FIX] Merge Mainline 2022-04-03 00:50:22 +08:00
mxs kernel: add missing Kconfigs for kernel 4.14 2022-01-01 17:35:27 +08:00
octeon [HOT FIX] Merge Mainline 2022-04-03 00:50:22 +08:00
octeontx octeontx: Refresh kernel configuration 2022-01-29 19:00:08 +08:00
omap [HOT FIX] Merge Mainline 2022-04-03 00:50:22 +08:00
oxnas kernel: bump to 4.9.303, 4.14.268, 4.19.231 2022-02-25 05:03:08 +08:00
pistachio kernel: bump 5.4 to 5.4.156 2021-12-08 23:56:51 +08:00
qoriq qoriq: enable I2C in target kernel config 2022-03-25 10:37:24 +08:00
ramips ramips: add support for Wavlink WL-WN533A8 2022-05-09 17:09:46 +08:00
realtek kernel: bump 5.4 to 5.4.162 2021-12-20 11:16:52 +08:00
rockchip [HOT FIX] Merge Mainline 2022-04-03 00:50:22 +08:00
sunxi kernel: bump to 4.9.309, 4.14.275, 4.19.237 2022-04-11 03:36:16 +08:00
tegra [HOT FIX] Merge Mainline 2022-04-03 00:50:22 +08:00
uml uml: make use of 'rootfs-part' feature 2022-02-14 18:29:30 +08:00
x86 x86: grub2: search for the "kernel" filesystem on all disks 2022-04-29 10:15:04 +08:00
zynq kernel: add missing Kconfigs for kernel 4.14 2022-01-01 17:35:27 +08:00
Makefile