mediatek: add 256MB u-boot mod version for Cudy TR3000 v2 support

This commit is contained in:
coolsnowwolf 2025-05-28 14:41:26 +08:00
parent e2600d9329
commit 89bb622a44
2 changed files with 50 additions and 15 deletions

View File

@ -0,0 +1,20 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "mt7981b-cudy-tr3000-v1.dts"
/ {
model = "Cudy TR3000 v2 (U-Boot mod)";
compatible = "cudy,tr3000-v2-mod", "mediatek,mt7981";
};
&spi0 {
flash@0 {
partitions {
partition@5c0000 {
label = "ubi";
reg = <0x5c0000 0xe280000>;
};
};
};
};

View File

@ -363,21 +363,6 @@ define Device/cmcc_xr30-nand
endef
TARGET_DEVICES += cmcc_xr30-nand
define Device/cudy_tr3000-mod
DEVICE_VENDOR := Cudy
DEVICE_MODEL := TR3000
DEVICE_VARIANT := (U-Boot mod)
DEVICE_DTS := mt7981b-cudy-tr3000-mod
DEVICE_DTS_DIR := ../dts
UBINIZE_OPTS := -E 5
BLOCKSIZE := 128k
PAGESIZE := 2048
KERNEL_IN_UBI := 1
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
DEVICE_PACKAGES := kmod-usb3 kmod-mt7981-firmware mt7981-wo-firmware
endef
TARGET_DEVICES += cudy_tr3000-mod
define Device/cudy_tr3000-v1
DEVICE_VENDOR := Cudy
DEVICE_MODEL := TR3000
@ -395,6 +380,36 @@ define Device/cudy_tr3000-v1
endef
TARGET_DEVICES += cudy_tr3000-v1
define Device/cudy_tr3000-mod
DEVICE_VENDOR := Cudy
DEVICE_MODEL := TR3000
DEVICE_VARIANT := v1 (U-Boot mod)
DEVICE_DTS := mt7981b-cudy-tr3000-mod
DEVICE_DTS_DIR := ../dts
UBINIZE_OPTS := -E 5
BLOCKSIZE := 128k
PAGESIZE := 2048
KERNEL_IN_UBI := 1
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
DEVICE_PACKAGES := kmod-usb3 kmod-mt7981-firmware mt7981-wo-firmware
endef
TARGET_DEVICES += cudy_tr3000-mod
define Device/cudy_tr3000-v2-mod
DEVICE_VENDOR := Cudy
DEVICE_MODEL := TR3000
DEVICE_VARIANT := v2 256MB (U-Boot mod)
DEVICE_DTS := mt7981b-cudy-tr3000-v2-mod
DEVICE_DTS_DIR := ../dts
UBINIZE_OPTS := -E 5
BLOCKSIZE := 128k
PAGESIZE := 2048
KERNEL_IN_UBI := 1
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
DEVICE_PACKAGES := kmod-usb3 kmod-mt7981-firmware mt7981-wo-firmware
endef
TARGET_DEVICES += cudy_tr3000-v2-mod
define Device/fzs_5gcpe-p3
DEVICE_VENDOR := FZS
DEVICE_MODEL := 5GCPE P3