]> git.ipfire.org Git - thirdparty/openwrt.git/commit
mediatek: add ubootmod layout for cudy tr3000 v1 18945/head
authorTianling Shen <cnsztl@immortalwrt.org>
Thu, 19 Jun 2025 14:16:34 +0000 (22:16 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 6 Jul 2025 15:17:39 +0000 (17:17 +0200)
commit95c9f6e32666bf6fb8a9b16303b6f09bd6a9d83a
treeb81c77e22660ccf0e525cb136d8dd717ca36f51f
parent5889aae07a51f5f01fc415f9251460cc8d37d26f
mediatek: add ubootmod layout for cudy tr3000 v1

This allows us to use the full size of nand, which increases ubi size
from 64M to 122.25M.

If you are at factory firmware, please refer commit 63b8d98dd0d2 ("mediatek: add support for Cudy TR3000 v1")
to boot into OpenWrt initramfs (stock layout).

Flash instructions:
1. Login into the device and backup everything, especially 'Factory' part.
1. Unlock mtd partitions:
   opkg update && opkg install kmod-mtd-rw
   insmod mtd-rw i_want_a_brick=1
3. Write new BL2 and FIP
   mtd write openwrt-mediatek-filogic-cudy_tr3000-v1-ubootmod-preloader.bin BL2
   mtd write openwrt-mediatek-filogic-cudy_tr3000-v1-ubootmod-bl31-uboot.fip FIP
4. Set static IP on your PC:
   IP 192.168.1.254/24, GW 192.168.1.1
5. Serve OpenWrt initramfs image using TFTP server.
6. Cut off the power and re-engage, wait for TFTP recovery to complete.
7. After OpenWrt has booted, perform sysupgrade.

Tested-by: Yangyu Chen <cyy@cyyself.name>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 6f8c58bfd8f380dfdc1d89aab29fdcdfde0ee65b)
[sync uboot defconfigs with 24.10 branch, change apk to opkg]
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/18945
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
12 files changed:
package/boot/arm-trusted-firmware-mediatek/Makefile
package/boot/uboot-envtools/files/mediatek_filogic
package/boot/uboot-mediatek/Makefile
package/boot/uboot-mediatek/patches/445-add-cudy_tr3000-v1.patch [new file with mode: 0644]
target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface
target/linux/mediatek/dts/mt7981b-cudy-tr3000-v1-ubootmod.dts [new file with mode: 0644]
target/linux/mediatek/dts/mt7981b-cudy-tr3000-v1.dts
target/linux/mediatek/dts/mt7981b-cudy-tr3000-v1.dtsi [new file with mode: 0644]
target/linux/mediatek/filogic/base-files/etc/board.d/02_network
target/linux/mediatek/filogic/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac
target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh
target/linux/mediatek/image/filogic.mk