arm-trusted-firmware-mediatek: add Cudy DDR3 target
authorFil Dunsky <filipp.dunsky@gmail.com>
Fri, 19 Dec 2025 21:28:16 +0000 (00:28 +0300)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 30 Dec 2025 21:19:09 +0000 (22:19 +0100)
Since there are many similar devices from Cudy (TR3000 / WR3000E / WR3000P / WR3000S / WBR3000UAX) this will allow to create OpenWrt U-Boot layout for all of them using same DDR3 target.

Tested-by: 4pda users
Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21225
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/boot/arm-trusted-firmware-mediatek/Makefile
package/boot/uboot-mediatek/Makefile
target/linux/mediatek/image/filogic.mk

index 4082bc294b4cb59c8947f078dbdc91cc72db1bf8..fb3d8d49ff252270d1a75180d5c7d153eb7e13ab 100644 (file)
@@ -262,8 +262,8 @@ define Trusted-Firmware-A/mt7981-spim-nand-ubi-ddr4
   USE_UBI:=1
 endef
 
-define Trusted-Firmware-A/mt7981-cudy-tr3000-v1
-  NAME:=Cudy TR3000 v1 (SPI-NAND via SPIM, DDR3)
+define Trusted-Firmware-A/mt7981-cudy-ddr3
+  NAME:=Cudy (SPI-NAND via SPIM, DDR3)
   BOOT_DEVICE:=spim-nand
   BUILD_SUBTARGET:=filogic
   PLAT:=mt7981
@@ -664,7 +664,7 @@ TFA_TARGETS:= \
        mt7981-emmc-ddr4 \
        mt7981-sdmmc-ddr4 \
        mt7981-spim-nand-ddr4 \
-       mt7981-cudy-tr3000-v1 \
+       mt7981-cudy-ddr3 \
        mt7986-ram-ddr3 \
        mt7986-emmc-ddr3 \
        mt7986-nor-ddr3 \
index 4f3e0490149bc65c1379672ac36af16d483aeac7..9d59e87f8c091fe5e764cd6a92a88b21c2f3f9c1 100644 (file)
@@ -309,9 +309,9 @@ define U-Boot/mt7981_cudy_tr3000-v1
   BUILD_DEVICES:=cudy_tr3000-v1-ubootmod
   UBOOT_CONFIG:=mt7981_cudy_tr3000-v1
   UBOOT_IMAGE:=u-boot.fip
-  BL2_BOOTDEV:=cudy-tr3000-v1
+  BL2_BOOTDEV:=cudy-ddr3
   BL2_SOC:=mt7981
-  DEPENDS:=+trusted-firmware-a-mt7981-cudy-tr3000-v1
+  DEPENDS:=+trusted-firmware-a-mt7981-cudy-ddr3
 endef
 
 define U-Boot/mt7981_glinet_gl-mt2500
index 6e19507d0562ac69bdb3838b7849c38367e79ff3..4d5ca41835b4674db98f9586b35db1b000694731 100644 (file)
@@ -1139,7 +1139,7 @@ define Device/cudy_tr3000-v1-ubootmod
   IMAGE/sysupgrade.itb := append-kernel | \
        fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb external-static-with-rootfs | append-metadata
   ARTIFACTS := preloader.bin bl31-uboot.fip
-  ARTIFACT/preloader.bin := mt7981-bl2 cudy-tr3000-v1
+  ARTIFACT/preloader.bin := mt7981-bl2 cudy-ddr3
   ARTIFACT/bl31-uboot.fip := mt7981-bl31-uboot cudy_tr3000-v1
 endef
 TARGET_DEVICES += cudy_tr3000-v1-ubootmod