diff --git a/target/linux/mediatek/dts/mt7981b-cudy-tr3000-v2-mod.dts b/target/linux/mediatek/dts/mt7981b-cudy-tr3000-v2-mod.dts new file mode 100644 index 000000000..f4145c3ff --- /dev/null +++ b/target/linux/mediatek/dts/mt7981b-cudy-tr3000-v2-mod.dts @@ -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>; + }; + }; + }; +}; diff --git a/target/linux/mediatek/image/filogic.mk b/target/linux/mediatek/image/filogic.mk index dca61d99e..2569d0b73 100644 --- a/target/linux/mediatek/image/filogic.mk +++ b/target/linux/mediatek/image/filogic.mk @@ -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