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>
This commit is contained in:
Mikhail Zhilkin 2025-08-12 22:49:29 +03:00 committed by Hauke Mehrtens
parent fa5e55153c
commit bf55d2fbec
2 changed files with 43 additions and 11 deletions

View File

@ -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 \

View File

@ -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