mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-09-10 23:09:41 +00:00
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 commit63b8d98dd0
("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 commit6f8c58bfd8
) [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>
25 lines
410 B
Plaintext
25 lines
410 B
Plaintext
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
|
|
|
/dts-v1/;
|
|
#include "mt7981b-cudy-tr3000-v1.dtsi"
|
|
|
|
/ {
|
|
model = "Cudy TR3000 v1 (OpenWrt U-Boot layout)";
|
|
compatible = "cudy,tr3000-v1-ubootmod", "mediatek,mt7981";
|
|
};
|
|
|
|
&chosen {
|
|
bootargs = "root=/dev/fit0 rootwait";
|
|
rootdisk = <&ubi_rootdisk>;
|
|
};
|
|
|
|
&ubi {
|
|
reg = <0x5c0000 0x7a40000>;
|
|
|
|
volumes {
|
|
ubi_rootdisk: ubi-volume-fit {
|
|
volname = "fit";
|
|
};
|
|
};
|
|
};
|