Thank you for your reply,
1. I configured the DDR according to the manual and created the timing file and replaced it. At this time, the board started normally and uboot only displayed 2G
2. There are two DDRS on the board hardware when I modify include/configs/myd_imx8mm.h as follows
#define CONFIG_SYS_SDRAM_BASE 0x40000000
#define PHYS_SDRAM 0x40000000
#define PHYS_SDRAM_SIZE 0x80000000 /* 2GB DDR */
+#define PHYS_SDRAM_2 0xC0000000
+#define PHYS_SDRAM_2_SIZE 0x80000000 /* 2GB */
+#define CONFIG_NR_DRAM_BANKS 2 0x40000000
#define PHYS_SDRAM 0x40000000
#define PHYS_SDRAM_SIZE 0x80000000 /* 2GB DDR */
+#define PHYS_SDRAM_2 0xC0000000
+#define PHYS_SDRAM_2_SIZE 0x8
After recompiling and starting, uboot displays 4G, but the kernel reports an error and cannot start.
U-Boot 2019.04-5.4.3-2.0.0+g081bb26f64 (Apr 09 2025 - 07:13:27 +0000)
CPU: Freescale i.MX8MMQ rev1.0 1600 MHz (running at 1200 MHz)
CPU: Industrial temperature grade (-40C to 105C)CPU Temperature (46000C) has beyond alert (85000C), close to critical (95000C) at 46C
Reset cause: POR
Model: MYD i.MX8MM board
DRAM: 4 GiB
MMC: FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... Run CMD11 1.8V switch
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
BuildInfo:
- ATF f1a195b
- U-Boot 2019.04-5.4.3-2.0.0+g081bb26f64
Run CMD11 1.8V switch
switch to partitions #0, OK
mmc1 is current device
flash target is MMC:1
Run CMD11 1.8V switch
Net: Could not get PHY for FEC0: addr 4
Could not get PHY for FEC0: addr 4
eth-1: ethernet@30be0000
Fastboot: Normal
Normal Boot
Run CMD11 1.8V switch
switch to partitions #0, OK
mmc1 is current device
Run CMD11 1.8V switch
32954880 bytes read in 425 ms (73.9 MiB/s)
Booting from mmc ...
45089 bytes read in 6 ms (7.2 MiB/s)
## Flattened Device Tree blob at 43000000
Booting using the fdt blob at 0x43000000
Using Device Tree in place at 0000000043000000, end 000000004300e020
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.4.3-2.0.0+g7ee7bc4dc (oe-user@oe-host) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT Wed Apr 9 01:12:27 UTC 2025
[ 0.000000] Machine model: MYD-C8MMX-V2.0 i.MX8MM board
[ 0.000000] earlycon: ec_imx6q0 at MMIO 0x0000000030890000 (options '115200')
[ 0.000000] printk: bootconsole [ec_imx6q0] enabled
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000090000000, size 640 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] Internal error: synchronous external abort: 96000210 [#1] PREEMPT SMP
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.4.3-2.0.0+g7ee7bc4dc #1
[ 0.000000] Hardware name: MYD-C8MMX-V2.0 i.MX8MM board (DT)
[ 0.000000] pstate: 20000085 (nzCv daIf -PAN -UAO)
[ 0.000000] pc : __create_pgd_mapping+0x190/0x748
[ 0.000000] lr : __create_pgd_mapping+0x150/0x748
[ 0.000000] sp : ffff800011da3d60
[ 0.000000] x29: ffff800011da3d60 x28: ffff800010080000
[ 0.000000] x27: ffff800010080000 x26: fffffdfffe436800
[ 0.000000] x25: 00000000bdfbeaa0 x24: fffffdfffe437000
[ 0.000000] x23: ffff800010080000 x22: 0000000000000040
[ 0.000000] x21: 0000000000fc0000 x20: 0000000040480000
[ 0.000000] x19: ffff800040000000 x18: 0000000000000010
[ 0.000000] x17: 0000000000001400 x16: 0000000000001c00
[ 0.000000] x15: ffff800011db24f0 x14: ffffffffffffffff
[ 0.000000] x13: ffff800091da3ae7 x12: 0000000000000000
[ 0.000000] x11: 0000000000000004 x10: 0000000000000018
[ 0.000000] x9 : 0000000000000000 x8 : fffffdfffe43a000
[ 0.000000] x7 : 0000000000000000 x6 : 0000000000000000
[ 0.000000] x5 : ffff800011ff0000 x4 : 000fffffdfffe437
[ 0.000000] x3 : 0000000000000037 x2 : ffff80001103ffff
[ 0.000000] x1 : ffff80003fffffff x0 : 000000013ffff003
[ 0.000000] Call trace:
[ 0.000000] __create_pgd_mapping+0x190/0x748
[ 0.000000] map_kernel_segment+0x70/0xa4
[ 0.000000] paging_init+0x12c/0x5d0
[ 0.000000] setup_arch+0x268/0x5e8
[ 0.000000] start_kernel+0x88/0x44c
[ 0.000000] Code: f94053e2 92628673 d1000661 eb02003f (f9400301)
[ 0.000000] random: get_random_bytes called from print_oops_end_marker+0x28/0x50 with crng_init=0
[ 0.000000] ---[ end trace 0000000000000000 ]---
[ 0.000000] Kernel panic - not syncing: Attempted to kill the idle task!
[ 0.000000] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---
After recompiling and starting, uboot displays 4G, but the kernel reports an error and cannot start.
Could you please help me find out the reason for this? I will add my configuration picture to the attachment. Could you please help me check if there is any problem? I really need your help

