summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Zhilkin2025-08-12 19:49:29 +0000
committerHauke Mehrtens2025-09-08 12:02:52 +0000
commitbf55d2fbec85599c79e7f063ae59c36926241329 (patch)
tree9828d8c69506ebb280e0d1f727c258932ee7806c
parentfa5e55153ca3ffd16971970ab809f5238d47f578 (diff)
downloadopenwrt-bf55d2fbec85599c79e7f063ae59c36926241329.tar.gz
uboot-mediatek: CMCC RAX3000M: add ddr3 build
This commit adds ddr3 build for the ddr3 variant of the CMCC RAX3000Me router. Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com> Link: https://github.com/openwrt/openwrt/pull/19760 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--package/boot/uboot-mediatek/Makefile34
-rw-r--r--target/linux/mediatek/image/filogic.mk20
2 files changed, 43 insertions, 11 deletions
diff --git a/package/boot/uboot-mediatek/Makefile b/package/boot/uboot-mediatek/Makefile
index 0069c557cb..d490f6379d 100644
--- a/package/boot/uboot-mediatek/Makefile
+++ b/package/boot/uboot-mediatek/Makefile
@@ -243,7 +243,19 @@ define U-Boot/mt7981_cmcc_a10
DEPENDS:=+trusted-firmware-a-mt7981-spim-nand-ddr3
endef
-define U-Boot/mt7981_cmcc_rax3000m-emmc
+define U-Boot/mt7981_cmcc_rax3000m-emmc-ddr3
+ NAME:=CMCC RAX3000M
+ BUILD_SUBTARGET:=filogic
+ BUILD_DEVICES:=cmcc_rax3000m
+ UBOOT_CONFIG:=mt7981_cmcc_rax3000m-emmc
+ UBOOT_IMAGE:=u-boot.fip
+ BL2_BOOTDEV:=emmc
+ BL2_SOC:=mt7981
+ BL2_DDRTYPE:=ddr3
+ DEPENDS:=+trusted-firmware-a-mt7981-emmc-ddr3
+endef
+
+define U-Boot/mt7981_cmcc_rax3000m-emmc-ddr4
NAME:=CMCC RAX3000M
BUILD_SUBTARGET:=filogic
BUILD_DEVICES:=cmcc_rax3000m
@@ -255,7 +267,19 @@ define U-Boot/mt7981_cmcc_rax3000m-emmc
DEPENDS:=+trusted-firmware-a-mt7981-emmc-ddr4
endef
-define U-Boot/mt7981_cmcc_rax3000m-nand
+define U-Boot/mt7981_cmcc_rax3000m-nand-ddr3
+ NAME:=CMCC RAX3000M
+ BUILD_SUBTARGET:=filogic
+ BUILD_DEVICES:=cmcc_rax3000m
+ UBOOT_CONFIG:=mt7981_cmcc_rax3000m-nand
+ UBOOT_IMAGE:=u-boot.fip
+ BL2_BOOTDEV:=spim-nand
+ BL2_SOC:=mt7981
+ BL2_DDRTYPE:=ddr3
+ DEPENDS:=+trusted-firmware-a-mt7981-spim-nand-ddr3
+endef
+
+define U-Boot/mt7981_cmcc_rax3000m-nand-ddr4
NAME:=CMCC RAX3000M
BUILD_SUBTARGET:=filogic
BUILD_DEVICES:=cmcc_rax3000m
@@ -916,8 +940,10 @@ UBOOT_TARGETS := \
mt7629_rfb \
mt7981_abt_asr3000 \
mt7981_cmcc_a10 \
- mt7981_cmcc_rax3000m-emmc \
- mt7981_cmcc_rax3000m-nand \
+ mt7981_cmcc_rax3000m-emmc-ddr3 \
+ mt7981_cmcc_rax3000m-emmc-ddr4 \
+ mt7981_cmcc_rax3000m-nand-ddr3 \
+ mt7981_cmcc_rax3000m-nand-ddr4 \
mt7981_cudy_tr3000-v1 \
mt7981_gatonetworks_gdsp \
mt7981_glinet_gl-mt2500 \
diff --git a/target/linux/mediatek/image/filogic.mk b/target/linux/mediatek/image/filogic.mk
index bc2b5bba8f..1ae9058ae9 100644
--- a/target/linux/mediatek/image/filogic.mk
+++ b/target/linux/mediatek/image/filogic.mk
@@ -677,14 +677,20 @@ define Device/cmcc_rax3000m
IMAGE/sysupgrade.itb := append-kernel | \
fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb external-static-with-rootfs | \
pad-rootfs | append-metadata
- ARTIFACTS := \
- emmc-gpt.bin emmc-preloader.bin emmc-bl31-uboot.fip \
- nand-preloader.bin nand-bl31-uboot.fip
+ ARTIFACTS := emmc-gpt.bin \
+ emmc-ddr3-bl31-uboot.fip emmc-ddr3-preloader.bin \
+ emmc-ddr4-bl31-uboot.fip emmc-ddr4-preloader.bin \
+ nand-ddr3-bl31-uboot.fip nand-ddr3-preloader.bin \
+ nand-ddr4-bl31-uboot.fip nand-ddr4-preloader.bin
ARTIFACT/emmc-gpt.bin := mt798x-gpt emmc
- ARTIFACT/emmc-preloader.bin := mt7981-bl2 emmc-ddr4
- ARTIFACT/emmc-bl31-uboot.fip := mt7981-bl31-uboot cmcc_rax3000m-emmc
- ARTIFACT/nand-preloader.bin := mt7981-bl2 spim-nand-ddr4
- ARTIFACT/nand-bl31-uboot.fip := mt7981-bl31-uboot cmcc_rax3000m-nand
+ ARTIFACT/emmc-ddr3-bl31-uboot.fip := mt7981-bl31-uboot cmcc_rax3000m-emmc-ddr3
+ ARTIFACT/emmc-ddr3-preloader.bin := mt7981-bl2 emmc-ddr3
+ ARTIFACT/emmc-ddr4-bl31-uboot.fip := mt7981-bl31-uboot cmcc_rax3000m-emmc-ddr4
+ ARTIFACT/emmc-ddr4-preloader.bin := mt7981-bl2 emmc-ddr4
+ ARTIFACT/nand-ddr3-bl31-uboot.fip := mt7981-bl31-uboot cmcc_rax3000m-nand-ddr3
+ ARTIFACT/nand-ddr3-preloader.bin := mt7981-bl2 spim-nand-ddr3
+ ARTIFACT/nand-ddr4-bl31-uboot.fip := mt7981-bl31-uboot cmcc_rax3000m-nand-ddr4
+ ARTIFACT/nand-ddr4-preloader.bin := mt7981-bl2 spim-nand-ddr4
endef
TARGET_DEVICES += cmcc_rax3000m