]> git.ipfire.org Git - thirdparty/openwrt.git/commit
mediatek: add ubootmod layout for cudy tr3000 v1 17712/head
authorTianling Shen <cnsztl@immortalwrt.org>
Fri, 24 Jan 2025 08:15:22 +0000 (16:15 +0800)
committerTianling Shen <cnsztl@immortalwrt.org>
Tue, 27 May 2025 11:56:55 +0000 (19:56 +0800)
commit6f8c58bfd8f380dfdc1d89aab29fdcdfde0ee65b
treef8d57241af068b338e32772d454da1f17a5ade4d
parent9f76070e2de5c28830ede70c31fb81278f1c7183
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:
   apk update && apk add 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>
12 files changed:
package/boot/arm-trusted-firmware-mediatek/Makefile
package/boot/uboot-mediatek/Makefile
package/boot/uboot-mediatek/patches/445-add-cudy_tr3000-v1.patch [new file with mode: 0644]
package/boot/uboot-tools/uboot-envtools/files/mediatek_filogic
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