Skip to content

Commit 18bace5

Browse files
committed
mediatek: add CMCC RAX3000Me support
This is a draft which I need community help with. Cherry-picked from immortalwrt/immortalwrt@57f31cd I own 2 CMCC RAX3000Me devices, I had to solder an UART pins for both of them. I can build and install ImmortalWrt without any issues but when I build this PR in OpenWrt it does not boot. Using ImmortalWrt BL2 and FIP there is something with fit image I guess because boot stops at ``` [ 1.362592] Waiting for root device /dev/fit0... [ 12.128099] platform fitblk: deferred probe pending [ 12.132979] platform 15100000.ethernet: deferred probe pending ``` If I flash BL2 and FIP from my OpenWrt build it even stops at ``` NOTICE: BL2: v2.10.0 (release):OpenWrt v2024.01.17~bacca82a-3 (mt7981-spim-nand-ddr3) NOTICE: BL2: Built : 20:40:36, Jun 23 2025 NOTICE: WDT: [40000000] Software reset (reboot) NOTICE: EMI: Using DDR3 settings NOTICE: EMI: Detected DRAM size: 512MB NOTICE: EMI: complex R/W mem test passed NOTICE: CPU: MT7981 (1300MHz) NOTICE: Couldn't find a valid ONFI parameter page, try bitwise majority to recover it ERROR: Parameter page recovery failed, aborting ERROR: Parameter page check failed NOTICE: SPI_NAND parses attributes from parameter page. NOTICE: SPI_NAND Detected ID 0xff NOTICE: Page size -1, Block size 1, size 4294967041 ERROR: nand_read(0) failed with -22. 0 bytes read ERROR: nand_read(0) failed with -22. 0 bytes read ERROR: BL2: Failed to load image id 3 (-5) ``` We have many many devices here which I want to work properly on vanilla official OpenWrt.
1 parent 6cac528 commit 18bace5

11 files changed

Lines changed: 702 additions & 15 deletions

File tree

package/boot/uboot-mediatek/Makefile

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,42 @@ define U-Boot/mt7981_cmcc_rax3000m-nand
267267
DEPENDS:=+trusted-firmware-a-mt7981-spim-nand-ddr4
268268
endef
269269

270+
define U-Boot/mt7981_cmcc_rax3000me-emmc
271+
NAME:=CMCC RAX3000Me
272+
BUILD_SUBTARGET:=filogic
273+
BUILD_DEVICES:=cmcc_rax3000me
274+
UBOOT_CONFIG:=mt7981_cmcc_rax3000me-emmc
275+
UBOOT_IMAGE:=u-boot.fip
276+
BL2_BOOTDEV:=emmc
277+
BL2_SOC:=mt7981
278+
BL2_DDRTYPE:=ddr3
279+
DEPENDS:=+trusted-firmware-a-mt7981-emmc-ddr3
280+
endef
281+
282+
define U-Boot/mt7981_cmcc_rax3000me-nand-usb
283+
NAME:=CMCC RAX3000Me
284+
BUILD_SUBTARGET:=filogic
285+
BUILD_DEVICES:=cmcc_rax3000me
286+
UBOOT_CONFIG:=mt7981_cmcc_rax3000me-nand-usb
287+
UBOOT_IMAGE:=u-boot.fip
288+
BL2_BOOTDEV:=spim-nand
289+
BL2_SOC:=mt7981
290+
BL2_DDRTYPE:=ddr3
291+
DEPENDS:=+trusted-firmware-a-mt7981-spim-nand-ddr3
292+
endef
293+
294+
define U-Boot/mt7981_cmcc_rax3000me-nand-nousb
295+
NAME:=CMCC RAX3000Me
296+
BUILD_SUBTARGET:=filogic
297+
BUILD_DEVICES:=cmcc_rax3000me
298+
UBOOT_CONFIG:=mt7981_cmcc_rax3000me-nand-nousb
299+
UBOOT_IMAGE:=u-boot.fip
300+
BL2_BOOTDEV:=spim-nand
301+
BL2_SOC:=mt7981
302+
BL2_DDRTYPE:=ddr4
303+
DEPENDS:=+trusted-firmware-a-mt7981-spim-nand-ddr4
304+
endef
305+
270306
define U-Boot/mt7981_cudy_tr3000-v1
271307
NAME:=Cudy TR3000 v1
272308
BUILD_SUBTARGET:=filogic
@@ -906,6 +942,9 @@ UBOOT_TARGETS := \
906942
mt7981_cmcc_a10 \
907943
mt7981_cmcc_rax3000m-emmc \
908944
mt7981_cmcc_rax3000m-nand \
945+
mt7981_cmcc_rax3000me-emmc \
946+
mt7981_cmcc_rax3000me-nand-usb \
947+
mt7981_cmcc_rax3000me-nand-nousb \
909948
mt7981_cudy_tr3000-v1 \
910949
mt7981_gatonetworks_gdsp \
911950
mt7981_glinet_gl-x3000 \

0 commit comments

Comments
 (0)