openwrt/target/linux/mediatek/dts
Roland Reinl d0744c1f66 mediatek: Add support for D-Link EAGLE PRO AI R32
R32 is like the M32 part of the EAGLE PRO AI series from D-Link.

Specification:
 - MT7622BV SoC with 2.4GHz wifi
 - MT7975AN + MT7915AN for 5GHz
 - MT7531BE Switch
 - 512MB RAM
 - 128 MB flash
 - 2 LEDs (Status and Internet, both can be either orange or white)
 - 2 buttons (WPS and Reset)

Compared to M32, the R32 has the following differences:
 - 4 LAN ports instead of 2
 - The recory image starts with DLK6E6015001 instaed of DLK6E6010001
 - Individual LEDs for power and internet
 - MAC address is stored at another offset in the ODM partition

MAC addresses:
 - WAN MAC is stored in partition "Odm" at offset 0x81
 - LAN (as printed on the device) is WAN MAC + 1
 - WLAN MAC (2.4 GHz) is WAN MAC + 2
 - WLAN MAC (5GHz) is WAN MAC + 3

Flashing via Recovery Web Interface:
 - Set your IP address to 192.168.0.10, subnetmask 255.255.255.0
 - Press the reset button while powering on the deivce
 - Keep the reset button pressed until the internet LED blinks fast
 - Open a Chromium based and goto http://192.168.0.1
 - Download openwrt-mediatek-mt7622-dlink_eagle-pro-ai-r32-a1-squashfs-recovery.bin

Flashing via uBoot:
 - Open the case, connect to the UART console
 - Set your IP address to 10.10.10.3, subnet mask 255.255.255.0. Connect to one of the LAN interfaces of the router
 - Run a tftp server which provides openwrt-mediatek-mt7622-dlink_eagle-pro-ai-r32-initramfs-kernel.bin.
 - You can rename the file to iverson_uImage (no extension), then you don't have to enter the whole file name in uboot later.
 - Power on the device and select "1. System Load Linux to SDRAM via TFTP." in the boot menu
 - Enter image file, tftp server IP and device IP (if they differ from the default).
 - TFTP download to RAM will start. After a few seconds OpenWrt initramfs should start
 - The initramfs is accessible via 192.168.1.1, change your IP address accordingly (or use multiple IP addresses on your interface)
 - Create a backup of the Kernel1 partition, this file is required if a revert to stock should be done later
 - Perform a sysupgrade using openwrt-mediatek-mt7622-dlink_eagle-pro-ai-r32-squashfs-sysupgrade.bin
 - Reboot the device. OpenWrt should start from flash now

Revert back to stock using the Recovery Web Interface:
 - Set your IP address to 192.168.0.10, subnetmask 255.255.255.0
 - Press the reset button while powering on the deivce
 - Keep the reset button pressed until the internet LED blinks fast
 - Open a Chromium based and goto http://192.168.0.1
 - Flash a decrypted firmware image from D-Link. Decrypting an firmware image is described below.

Decrypting a D-Link firmware image:
 - Download https://github.com/RolandoMagico/firmware-utils/blob/M32/src/m32-firmware-util.c
 - Compile a binary from the downloaded file, e.g. gcc m32-firmware-util.c -lcrypto -o m32-firmware-util
 - Run ./m32-firmware-util R32 --DecryptFactoryImage <OriginalFirmware> <OutputFile>
 - Example for firmware R32A1_FW103B01: ./m32-firmware-util R32 --DecryptFactoryImage R32A1_FW103B01.bin R32A1_FW103B01.decrypted.bin

Revert back to stock using uBoot:
 - Open the case, connect to the UART console
 - Set your IP address to 10.10.10.3, subnet mask 255.255.255.0. Connect to one of the LAN interfaces of the router
 - Run a tftp server which provides the previously created backup of the Kernel1 partition.
 - You can rename the file to iverson_uImage (no extension), then you don't have to enter the whole file name in uboot later.
 - Power on the device and select "2. System Load Linux Kernel then write to Flash via TFTP." in the boot menu
 - Enter image file, tftp server IP and device IP (if they differ from the default).
 - TFTP download to FLASH will start. After a few seconds the stock firmware should start again

There is also an image openwrt-mediatek-mt7622-dlink_eagle-pro-ai-r32-a1-squashfs-tftp.bin which can directly be flashed via U-Boot and TFTP.
It can be used if no backup of the Kernel1 partition is reuqired.

Flahsing via OEM web interface is currently not possible, the OEM images are encrypted. Creating images is only possible manually at the moment.
The support for the M32/R32 already includes support for flashing from the OEM web interface:
 - The device tree contains both partitions (Kernel1 and Kernel2) with conditions to select the correct one based on the kernel command line
 - The U-Boot variable "boot_part" is set accordingly during startup to finish the partition swap after flashing from the OEM web interface
 - OpenWrt sysupgrade flashing always uses the partition where it was initially flashed to (no partition swap)

Signed-off-by: Roland Reinl <reinlroland+github@gmail.com>
(cherry picked from commit fdb87a91b4)
Link: https://github.com/openwrt/openwrt/pull/15776
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-07-06 18:32:57 +02:00
..
mt7622-buffalo-wsr-2533dhp2.dts mediatek: separate dts/dtsi for Buffalo WSR series 2024-02-27 17:42:30 +00:00
mt7622-buffalo-wsr-3200ax4s.dts mediatek: add support for Buffalo WSR-3200AX4S 2024-02-27 17:42:30 +00:00
mt7622-buffalo-wsr.dtsi mediatek: separate dts/dtsi for Buffalo WSR series 2024-02-27 17:42:30 +00:00
mt7622-dlink-eagle-pro-ai-ax3200-a1.dtsi mediatek: Add support for D-Link EAGLE PRO AI R32 2024-07-06 18:32:57 +02:00
mt7622-dlink-eagle-pro-ai-m32-a1.dts mediatek: Add support for D-Link EAGLE PRO AI R32 2024-07-06 18:32:57 +02:00
mt7622-dlink-eagle-pro-ai-r32-a1.dts mediatek: Add support for D-Link EAGLE PRO AI R32 2024-07-06 18:32:57 +02:00
mt7622-elecom-wrc-2533gent.dts mediatek: add an upstreamed spi-nand driver 2022-04-28 18:06:00 +08:00
mt7622-elecom-wrc-x3200gst3.dts treewide: remove label = "cpu" from DSA dt-binding 2023-02-26 22:22:48 +01:00
mt7622-linksys-e8450-ubi.dts mediatek: convert mtd-mac-address to nvmem implementation 2021-07-19 14:51:22 +02:00
mt7622-linksys-e8450.dts mediatek: convert mtd-mac-address to nvmem implementation 2021-07-19 14:51:22 +02:00
mt7622-linksys-e8450.dtsi mediatek: mt7622: linksys-e8450: set driving strength for SPI-NAND 2024-03-20 16:32:25 +00:00
mt7622-netgear-wax206.dts mediatek: no longer hard-code WAN PHY of Netgear WAX206 2023-04-30 17:27:00 +01:00
mt7622-reyee-ax3200-e5.dts mediatek: also move &slot0 from dtsi down to board dts 2022-12-07 01:45:14 +00:00
mt7622-rfb1-ubi.dts mediatek: add an upstreamed spi-nand driver 2022-04-28 18:06:00 +08:00
mt7622-ruijie-rg-ew3200.dtsi treewide: remove label = "cpu" from DSA dt-binding 2023-02-26 22:22:48 +01:00
mt7622-ruijie-rg-ew3200gx-pro.dts mediatek: also move &slot0 from dtsi down to board dts 2022-12-07 01:45:14 +00:00
mt7622-totolink-a8000ru.dts mediatek: mt7622: add missing vbus regulator node to totolink-a8000ru dts 2022-07-07 00:22:23 +01:00
mt7622-ubnt-unifi-6-lr-v1-ubootmod.dts mediatek: mt7622: fix DTS compatible of UniFi 6 LR variants 2022-09-03 02:27:59 +01:00
mt7622-ubnt-unifi-6-lr-v1.dts mediatek: mt7622: fix DTS compatible of UniFi 6 LR variants 2022-09-03 02:27:59 +01:00
mt7622-ubnt-unifi-6-lr-v1.dtsi mediatek: add support for Ubiquiti UniFi 6 LR v3 2023-09-04 23:00:34 +01:00
mt7622-ubnt-unifi-6-lr-v2-ubootmod.dts mediatek: mt7622: fix DTS compatible of UniFi 6 LR variants 2022-09-03 02:27:59 +01:00
mt7622-ubnt-unifi-6-lr-v2.dts mediatek: add Ubiquiti UniFi 6 LR v2 targets 2022-06-11 19:51:33 +01:00
mt7622-ubnt-unifi-6-lr-v2.dtsi mediatek: add support for Ubiquiti UniFi 6 LR v3 2023-09-04 23:00:34 +01:00
mt7622-ubnt-unifi-6-lr-v3-ubootmod.dts mediatek: add support for Ubiquiti UniFi 6 LR v3 2023-09-04 23:00:34 +01:00
mt7622-ubnt-unifi-6-lr-v3.dts mediatek: add support for Ubiquiti UniFi 6 LR v3 2023-09-04 23:00:34 +01:00
mt7622-ubnt-unifi-6-lr-v3.dtsi mediatek: add support for Ubiquiti UniFi 6 LR v3 2023-09-04 23:00:34 +01:00
mt7622-ubnt-unifi-6-lr.dtsi mediatek: add support for Ubiquiti UniFi 6 LR v3 2023-09-04 23:00:34 +01:00
mt7622-xiaomi-redmi-router-ax6s.dts treewide: remove label = "cpu" from DSA dt-binding 2023-02-26 22:22:48 +01:00
mt7623a-unielec-u7623-02-emmc-512m.dts mediatek: u7623-02: enable early console also in legacy image 2022-01-31 00:10:38 +00:00
mt7623a-unielec-u7623-02.dts mediatek: mt7623: rework images for U7623-02 board 2022-01-23 20:20:37 +00:00
mt7623a-unielec-u7623-02.dtsi treewide: remove label = "cpu" from DSA dt-binding 2023-02-26 22:22:48 +01:00
mt7629-iptime-a6004mx.dts treewide: remove label = "cpu" from DSA dt-binding 2023-02-26 22:22:48 +01:00
mt7629-netgear-ex6250-v2.dts mediatek: add support for Netgear EX6250v2 series 2023-07-13 12:05:28 +01:00
mt7629-tplink_eap225-v5.dts mediatek: Add support for TP-Link EAP225v5 2024-02-27 17:42:30 +00:00
mt7981a-comfast-cf-e393ax.dts mediatek: add Comfast CF-E393AX support 2024-07-04 15:54:27 +02:00
mt7981a-ubnt-unifi-6-plus.dts mediatek: filogic: add support for Ubiquiti UniFi 6 Plus (U6+) 2023-12-07 09:45:33 +01:00
mt7981b-cetron-ct3003.dts mediatek: Cetron CT3003: fixes typo for spi properties 2024-02-27 17:42:30 +00:00
mt7981b-cmcc-rax3000m-emmc.dtso mediatek: add CMCC RAX3000M support 2023-11-07 00:46:00 +01:00
mt7981b-cmcc-rax3000m-nand.dtso mediatek: add CMCC RAX3000M support 2023-11-07 00:46:00 +01:00
mt7981b-cmcc-rax3000m.dts mediatek: fiilogic: device tree switch@1f fix 2023-12-12 09:54:52 +01:00
mt7981b-confiabits-mt7981.dts mediatek: add SPDX header for Confiabits MT7981 DTS 2023-12-18 08:34:10 +01:00
mt7981b-cudy-re3000-v1.dts mediatek: filogic: add support for Cudy RE3000 v1 2024-03-07 22:14:32 +01:00
mt7981b-cudy-tr3000-v1.dts mediatek: add support for Cudy TR3000 v1 2024-05-23 22:01:52 +02:00
mt7981b-cudy-wr3000-v1.dts mediatek: filogic: Cudy WR3000 v1 wps button fix 2024-02-27 12:46:06 +01:00
mt7981b-glinet-gl-mt3000.dts mediatek: fix the name of buswidth to bus-width 2023-12-12 09:54:51 +01:00
mt7981b-h3c-magic-nx30-pro.dts mediatek: fiilogic: device tree switch@1f fix 2023-12-12 09:54:52 +01:00
mt7981b-jcg-q30-pro.dts mediatek: fiilogic: device tree switch@1f fix 2023-12-12 09:54:52 +01:00
mt7981b-qihoo-360t7.dts mediatek: fiilogic: device tree switch@1f fix 2023-12-12 09:54:52 +01:00
mt7981b-routerich-ax3000.dts mediatek: add support for Routerich AX3000 2024-01-04 21:47:43 +01:00
mt7981b-unielec-u7981-01-emmc.dts mediatek: filogic: add Unielec U7981-01 support 2024-03-31 20:45:20 +02:00
mt7981b-unielec-u7981-01-nand.dts mediatek: filogic: add Unielec U7981-01 support 2024-03-31 20:45:20 +02:00
mt7981b-unielec-u7981-01.dtsi mediatek: filogic: add Unielec U7981-01 support 2024-03-31 20:45:20 +02:00
mt7981b-xiaomi-mi-router-ax3000t-ubootmod.dts mediatek: filogic: add support for Xiaomi AX3000T 2024-05-23 21:50:00 +02:00
mt7981b-xiaomi-mi-router-ax3000t.dts mediatek: filogic: add support for Xiaomi AX3000T 2024-05-23 21:50:00 +02:00
mt7981b-xiaomi-mi-router-ax3000t.dtsi mediatek: filogic: add support for Xiaomi AX3000T 2024-05-23 21:50:00 +02:00
mt7981b-xiaomi-mi-router-common.dtsi mediatek: filogic: add support for Xiaomi AX3000T 2024-05-23 21:50:00 +02:00
mt7981b-xiaomi-mi-router-wr30u-stock.dts mediatek: filogic: add support for Xiaomi WR30U 2023-08-07 16:31:27 +01:00
mt7981b-xiaomi-mi-router-wr30u-ubootmod.dts mediatek: filogic: add support for Xiaomi WR30U 2023-08-07 16:31:27 +01:00
mt7981b-xiaomi-mi-router-wr30u.dtsi mediatek: filogic: add support for Xiaomi AX3000T 2024-05-23 21:50:00 +02:00
mt7981b-yuncore-ax835.dts mediatek: add support for YunCore AX835 2024-07-04 15:39:47 +02:00
mt7981b-zbtlink-zbt-z8102ax.dts mediatek: add support for Zbtlink ZBT-Z8102AX 2023-12-09 13:39:53 +01:00
mt7981b-zbtlink-zbt-z8103ax.dts mediatek: add support for Zbtlink ZBT-Z8103AX 2024-07-03 09:19:41 +02:00
mt7981b-zyxel-nwa50ax-pro.dts mediatek: fix the name of buswidth to bus-width 2023-12-12 09:54:51 +01:00
mt7986a-acelink-ew-7886cax.dts mediatek: filogic: add Acelink EW-7886CAX support 2023-12-12 11:02:39 +01:00
mt7986a-acer-predator-w6.dts mediatek: fiilogic: device tree switch@1f fix 2023-12-12 09:54:52 +01:00
mt7986a-asus-rt-ax59u.dts mediatek: filogic: add support ASUS RT-AX59U 2024-01-20 19:07:15 +01:00
mt7986a-asus-tuf-ax4200.dts mediatek: fiilogic: device tree switch@1f fix 2023-12-12 09:54:52 +01:00
mt7986a-asus-tuf-ax6000.dts mediatek: filogic: Asus TUF AX6000 fix inverted LED for 2.5Gb LAN port 2024-03-15 23:28:14 +01:00
mt7986a-glinet-gl-mt6000.dts mediatek: GL-MT6000: Change LED colors 2024-01-15 17:34:30 +01:00
mt7986a-smartrg-bonanza-peak.dtsi mediatek: add support for Adtran SmartRG Bonanza Peak series 2024-07-04 15:39:47 +02:00
mt7986a-smartrg-SDG-8612.dts mediatek: add support for Adtran SmartRG Bonanza Peak series 2024-07-04 15:39:47 +02:00
mt7986a-smartrg-SDG-8614.dts mediatek: add support for Adtran SmartRG Bonanza Peak series 2024-07-04 15:39:47 +02:00
mt7986a-smartrg-SDG-8622.dts mediatek: add support for Adtran SmartRG Bonanza Peak series 2024-07-04 15:39:47 +02:00
mt7986a-smartrg-SDG-8632.dts mediatek: add support for Adtran SmartRG Bonanza Peak series 2024-07-04 15:39:47 +02:00
mt7986a-tplink-tl-xdr4288.dts mediatek: sync MT7986 device trees with upstream 2023-06-09 19:23:03 +01:00
mt7986a-tplink-tl-xdr6086.dts mediatek: sync MT7986 device trees with upstream 2023-06-09 19:23:03 +01:00
mt7986a-tplink-tl-xdr6088.dts mediatek: sync MT7986 device trees with upstream 2023-06-09 19:23:03 +01:00
mt7986a-tplink-tl-xdr-common.dtsi mediatek: fiilogic: device tree switch@1f fix 2023-12-12 09:54:52 +01:00
mt7986a-xiaomi-redmi-router-ax6000-stock.dts mediatek: add new layout for Xiaomi Redmi Router AX6000 for OpenWrt U-Boot 2022-12-29 03:00:31 +00:00
mt7986a-xiaomi-redmi-router-ax6000-ubootmod.dts mediatek: add new layout for Xiaomi Redmi Router AX6000 for OpenWrt U-Boot 2022-12-29 03:00:31 +00:00
mt7986a-xiaomi-redmi-router-ax6000.dtsi mediatek: fiilogic: device tree switch@1f fix 2023-12-12 09:54:52 +01:00
mt7986a-zyxel-ex5601-t0-common.dtsi mediatek: add Zyxel EX5601-T0 with uboot custom partition 2024-02-27 17:42:30 +00:00
mt7986a-zyxel-ex5601-t0-stock.dts mediatek: add Zyxel EX5601-T0 with uboot custom partition 2024-02-27 17:42:30 +00:00
mt7986a-zyxel-ex5601-t0-ubootmod.dts mediatek: add Zyxel EX5601-T0 with uboot custom partition 2024-02-27 17:42:30 +00:00
mt7986a-zyxel-ex5700-telenor.dts mediatek: fix the name of buswidth to bus-width 2023-12-12 09:54:51 +01:00
mt7986b-mercusys-mr90x-v1.dts mediatek: fiilogic: device tree switch@1f fix 2023-12-12 09:54:52 +01:00
mt7986b-netgear-wax220.dts mediatek: fix the name of buswidth to bus-width 2023-12-12 09:54:51 +01:00