openwrt/target/linux/mediatek/dts
Chuanhong Guo a6991fc7d2 mediatek: mt7622: add a second u-boot for redmi-ax6s
The vendor u-boot knows nothing about UBI, and we used to have a
fixed-size kernel partition for vendor u-boot and UBI for rootfs.
However, that fixed partition becomes too small eventually, and
expanding it requires complicated procedure.

This commit changed the flash layout and added a second u-boot
where the kernel supposed to be.
Now the vendor u-boot chainloads our mainline u-boot, and our
u-boot reads kernel+rootfs from UBI, verifies it, and boot
into OpenWrt.

There are two possible ways to convert from the old fw:
Flash the factory image using mtd (provided by @rany2):

mount -o remount,ro /
mount -o remount,ro /overlay
cd /tmp
dd if=factory.bin bs=1M count=4 | mtd write - kernel
dd if=factory.bin bs=1M skip=4 | mtd -r write - ubi

Or, flash the 2nd u-boot via mtd and upload the firmware
to the 2nd u-boot using tftp:

1. prepare a tftp server at 192.168.1.254 to serve the
   sysupgrade image:
   openwrt-mediatek-mt7622-xiaomi_redmi-router-ax6s-squashfs-sysupgrade.itb
2. upload the ubi-loader.itb to OpenWrt /tmp, and flash it to
   the old kernel partition:
   mtd -r write openwrt-mediatek-mt7622-xiaomi_redmi-router-ax6s-ubi-loader.itb
3. The router should reboot and flash the sysupgrade image via TFTP.

Procedure for flashing from vendor firmware shouldn't change.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2024-03-21 16:55:13 +08:00
..
mt7622-buffalo-wsr-2533dhp2.dts mediatek: convert to nvmem-layout 2023-11-25 23:45:26 +01:00
mt7622-buffalo-wsr-3200ax4s.dts mediatek: add support for Buffalo WSR-3200AX4S 2023-09-24 18:42:12 +02:00
mt7622-buffalo-wsr.dtsi mediatek: drop redundant label with new LED color/function format 2024-02-07 14:48:39 +01:00
mt7622-dlink-eagle-pro-ai-ax3200-a1.dtsi mediatek: disable btif for mt7622 devices 2024-01-09 11:06:24 +01:00
mt7622-dlink-eagle-pro-ai-m32-a1.dts mediatek: Add support for D-Link EAGLE PRO AI R32 2024-01-02 21:22:46 +01:00
mt7622-dlink-eagle-pro-ai-r32-a1.dts mediatek: Add support for D-Link EAGLE PRO AI R32 2024-01-02 21:22:46 +01: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 mediatek: drop redundant label with new LED color/function format 2024-02-07 14:48:39 +01:00
mt7622-linksys-e8450-ubi.dts mediatek: wait for fitblk rootfs 2024-03-09 14:02:58 +00:00
mt7622-linksys-e8450.dts mediatek: convert to nvmem-layout 2023-11-25 23:45:26 +01:00
mt7622-linksys-e8450.dtsi mediatek: mt7622: linksys-e8450: set driving strength for SPI-NAND 2024-03-11 19:14:14 +00:00
mt7622-netgear-wax206.dts mediatek: disable btif for mt7622 devices 2024-01-09 11:06:24 +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: re-enable mt7622-rfb1-ubi with changed partition layout 2024-02-28 09:59:43 +01: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: convert to new LED color/function format where possible 2024-02-07 14:48:39 +01:00
mt7622-ubnt-unifi-6-lr-v1-ubootmod.dts mediatek: wait for fitblk rootfs 2024-03-09 14:02:58 +00:00
mt7622-ubnt-unifi-6-lr-v1.dts mediatek: convert to nvmem-layout 2023-11-25 23:45:26 +01:00
mt7622-ubnt-unifi-6-lr-v1.dtsi mediatek: add support for Ubiquiti UniFi 6 LR v3 2023-08-28 16:35:22 +01:00
mt7622-ubnt-unifi-6-lr-v2-ubootmod.dts mediatek: wait for fitblk rootfs 2024-03-09 14:02:58 +00:00
mt7622-ubnt-unifi-6-lr-v2.dts mediatek: convert to nvmem-layout 2023-11-25 23:45:26 +01:00
mt7622-ubnt-unifi-6-lr-v2.dtsi mediatek: add support for Ubiquiti UniFi 6 LR v3 2023-08-28 16:35:22 +01:00
mt7622-ubnt-unifi-6-lr-v3-ubootmod.dts mediatek: wait for fitblk rootfs 2024-03-09 14:02:58 +00:00
mt7622-ubnt-unifi-6-lr-v3.dts mediatek: convert to nvmem-layout 2023-11-25 23:45:26 +01:00
mt7622-ubnt-unifi-6-lr-v3.dtsi mediatek: add support for Ubiquiti UniFi 6 LR v3 2023-08-28 16:35:22 +01:00
mt7622-ubnt-unifi-6-lr.dtsi mediatek: add support for Ubiquiti UniFi 6 LR v3 2023-08-28 16:35:22 +01:00
mt7622-xiaomi-redmi-router-ax6s.dts mediatek: mt7622: add a second u-boot for redmi-ax6s 2024-03-21 16:55:13 +08: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: wait for fitblk rootfs 2024-03-09 14:02:58 +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 mediatek: convert to new LED color/function format where possible 2024-02-07 14:48:39 +01:00
mt7629-netgear-ex6250-v2.dts mediatek: convert to new LED color/function format where possible 2024-02-07 14:48:39 +01:00
mt7629-tplink_eap225-v5.dts mediatek: convert to new LED color/function format where possible 2024-02-07 14:48:39 +01:00
mt7981a-comfast-cf-e393ax.dts mediatek: drop redundant label with new LED color/function format 2024-02-07 14:48:39 +01:00
mt7981a-glinet-gl-x3000-xe3000-common.dtsi mediatek: Add support for GL.iNet X3000 (Spitz AX) and XE3000 (Puli AX) 2024-03-13 20:47:23 +00:00
mt7981a-glinet-gl-x3000.dts mediatek: Add support for GL.iNet X3000 (Spitz AX) and XE3000 (Puli AX) 2024-03-13 20:47:23 +00:00
mt7981a-glinet-gl-xe3000.dts mediatek: Add support for GL.iNet X3000 (Spitz AX) and XE3000 (Puli AX) 2024-03-13 20:47:23 +00:00
mt7981a-ubnt-unifi-6-plus.dts mediatek: convert to nvmem-layout 2023-11-25 23:45:26 +01:00
mt7981b-cetron-ct3003.dts mediatek: convert to new LED color/function format where possible 2024-02-07 14:48:39 +01:00
mt7981b-cmcc-rax3000m-emmc.dtso mediatek: add CMCC RAX3000M support 2023-10-28 19:05:07 +02:00
mt7981b-cmcc-rax3000m-nand.dtso mediatek: convert to nvmem-layout 2023-11-25 23:45:26 +01:00
mt7981b-cmcc-rax3000m.dts mediatek: convert to new LED color/function format where possible 2024-02-07 14:48:39 +01:00
mt7981b-confiabits-mt7981.dts mediatek: drop redundant label with new LED color/function format 2024-02-07 14:48:39 +01:00
mt7981b-cudy-re3000-v1.dts mediatek: filogic: add support for Cudy RE3000 v1 2024-02-29 21:16:27 +01:00
mt7981b-cudy-wr3000-v1.dts mediatek: filogic: Cudy WR3000 v1 wps button fix 2024-02-26 11:26:22 +01:00
mt7981b-glinet-gl-mt2500.dts mediatek: filogic: fix nvmem cell names of the GL.iNet MT-2500 2024-02-19 03:23:43 +00:00
mt7981b-glinet-gl-mt3000.dts mediatek: use mac-base 2023-11-25 23:45:26 +01:00
mt7981b-h3c-magic-nx30-pro.dts mediatek: convert to new LED color/function format where possible 2024-02-07 14:48:39 +01:00
mt7981b-jcg-q30-pro.dts mediatek: convert to new LED color/function format where possible 2024-02-07 14:48:39 +01:00
mt7981b-qihoo-360t7.dts mediatek: convert to new LED color/function format where possible 2024-02-07 14:48:39 +01:00
mt7981b-routerich-ax3000.dts mediatek: fixes typo for spi properties 2024-01-14 23:11:57 +00:00
mt7981b-xiaomi-mi-router-ax3000t-ubootmod.dts mediatek: filogic: add support for Xiaomi AX3000T 2024-01-06 17:51:11 +01:00
mt7981b-xiaomi-mi-router-ax3000t.dts mediatek: filogic: add support for Xiaomi AX3000T 2024-01-06 17:51:11 +01:00
mt7981b-xiaomi-mi-router-ax3000t.dtsi mediatek: filogic: add support for Xiaomi AX3000T 2024-01-06 17:51:11 +01:00
mt7981b-xiaomi-mi-router-common.dtsi mediatek: filogic: add support for Xiaomi AX3000T 2024-01-06 17:51:11 +01:00
mt7981b-xiaomi-mi-router-wr30u-stock.dts mediatek: filogic: add support for Xiaomi WR30U 2023-07-27 13:46:16 +02:00
mt7981b-xiaomi-mi-router-wr30u-ubootmod.dts mediatek: filogic: add support for Xiaomi WR30U 2023-07-27 13:46:16 +02:00
mt7981b-xiaomi-mi-router-wr30u.dtsi mediatek: filogic: add support for Xiaomi AX3000T 2024-01-06 17:51:11 +01:00
mt7981b-yuncore-ax835.dts mediatek: fixes typo for spi properties 2024-01-14 23:11:57 +00:00
mt7981b-zbtlink-zbt-z8102ax.dts mediatek: drop redundant label with new LED color/function format 2024-02-07 14:48:39 +01:00
mt7981b-zbtlink-zbt-z8103ax.dts mediatek: add support for Zbtlink ZBT-Z8103AX 2023-12-26 00:02:19 +01:00
mt7981b-zyxel-nwa50ax-pro.dts mediatek: convert to nvmem-layout 2023-11-25 23:45:26 +01:00
mt7986a-acelink-ew-7886cax.dts mediatek: filogic: add Acelink EW-7886CAX support 2023-12-05 09:06:47 +01:00
mt7986a-acer-predator-w6.dts mediatek: fiilogic: device tree `switch@1f` fix 2023-11-22 19:42:23 +02:00
mt7986a-asus-rt-ax59u.dts mediatek: filogic: asus-rt-ax59u: use NVMEM-on-UBI 2024-02-23 14:35:00 +00:00
mt7986a-asus-tuf-ax4200.dts mediatek: filogic: asus-tuf-ax4200: use NVMEM-on-UBI 2024-02-23 14:35:00 +00:00
mt7986a-asus-tuf-ax6000.dts mediatek: filogic: asus-tuf-ax6000: use NVMEM-on-UBI 2024-02-23 14:35:00 +00:00
mt7986a-bananapi-bpi-r3-mini.dts mediatek: filogic: bpi-r3-mini: fix power on M.2 slot 2024-02-16 13:56:01 +00:00
mt7986a-glinet-gl-mt6000.dts mediatek: filogic: convert GL.iNet MT-6000 to NVMEM-on-MMC 2024-02-18 03:26:15 +00:00
mt7986a-jdcloud-re-cp-03.dts mediatek: add support for JDCloud RE-CP-03 2024-01-19 21:43:32 +01:00
mt7986a-smartrg-SDG-8612.dts mediatek: add support for Adtran SmartRG Bonanza Peak series 2023-12-10 06:22:51 +00:00
mt7986a-smartrg-SDG-8614.dts mediatek: add support for Adtran SmartRG Bonanza Peak series 2023-12-10 06:22:51 +00:00
mt7986a-smartrg-SDG-8622.dts mediatek: add support for Adtran SmartRG Bonanza Peak series 2023-12-10 06:22:51 +00:00
mt7986a-smartrg-SDG-8632.dts mediatek: add support for Adtran SmartRG Bonanza Peak series 2023-12-10 06:22:51 +00:00
mt7986a-smartrg-bonanza-peak.dtsi mediatek: add support for Adtran SmartRG Bonanza Peak series 2023-12-10 06:22:51 +00:00
mt7986a-tplink-tl-xdr-common.dtsi mediatek: convert to new LED color/function format where possible 2024-02-07 14:48:39 +01:00
mt7986a-tplink-tl-xdr4288.dts mediatek: sync MT7986 device trees with upstream 2023-06-05 11:36:32 +01:00
mt7986a-tplink-tl-xdr6086.dts mediatek: sync MT7986 device trees with upstream 2023-06-05 11:36:32 +01:00
mt7986a-tplink-tl-xdr6088.dts mediatek: sync MT7986 device trees with upstream 2023-06-05 11:36:32 +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: wait for fitblk rootfs 2024-03-09 14:02:58 +00:00
mt7986a-xiaomi-redmi-router-ax6000.dtsi mediatek: clean duplicated #include in Xiaomi Redmi AX6000's dts 2024-03-08 16:51:35 +08:00
mt7986a-zyxel-ex5601-t0-common.dtsi mediatek: convert to new LED color/function format where possible 2024-02-07 14:48:39 +01:00
mt7986a-zyxel-ex5601-t0-stock.dts mediatek: convert to nvmem-layout 2023-11-25 23:45:26 +01:00
mt7986a-zyxel-ex5601-t0-ubootmod.dts mediatek: convert to nvmem-layout 2023-11-25 23:45:26 +01:00
mt7986a-zyxel-ex5700-telenor.dts mediatek: convert to new LED color/function format where possible 2024-02-07 14:48:39 +01:00
mt7986b-mercusys-mr90x-v1.dts mediatek: MERCUSYS MR90X v1: remove deprecated led "label" properties 2024-01-06 00:46:15 +01:00
mt7986b-netgear-wax220.dts mediatek: convert to new LED color/function format where possible 2024-02-07 14:48:39 +01:00