renesas-rcar / arm-trusted-firmware

arm-trusted-firmware
Other
25 stars 39 forks source link

BL2: Failed to DRAM initialize (-1) on H3SK 8GB Single Rank #16

Closed VanTuongNguyen closed 3 years ago

VanTuongNguyen commented 3 years ago

Hi, I am working on an H3SK No.25844. After flashing a new firmware applied this patch, I got this error

[    0.000148] NOTICE:  BL2: R-Car H3 Initial Program Loader(CA57)
[    0.004585] NOTICE:  BL2: Initial Program Loader(Rev.2.0.7)
[    0.010117] NOTICE:  BL2: PRR is R-Car H3 Ver.3.0
[    0.014786] NOTICE:  BL2: Board is Starter Kit Rev.1.0
[    0.019899] NOTICE:  BL2: Boot device is HyperFlash(80MHz)
[    0.025326] NOTICE:  BL2: LCM state is CM
[    0.029367] NOTICE:  BL2: AVS setting succeeded. DVFS_SetVID=0x53
[    0.035342] NOTICE:  BL2: CH0: 0x400000000 - 0x47fffffff, 2 GiB
[    0.041204] NOTICE:  BL2: CH1: 0x500000000 - 0x57fffffff, 2 GiB
[    0.047079] NOTICE:  BL2: CH2: 0x600000000 - 0x67fffffff, 2 GiB
[    0.052954] NOTICE:  BL2: CH3: 0x700000000 - 0x77fffffff, 2 GiB
[    0.058869] NOTICE:  BL2: DDR3200(rev.0.41)
[    0.068627] NOTICE:  BL2: [COLD_BOOT]
[    0.307251] NOTICE:  BL2: Failed to DRAM initialize (-1).
[    4.999796] ERROR:   
[    5.000589] ERROR:   BL2: System WDT overflow, occured address is 0xe6304780

But another H3SK No.25845 (also Single Rank) is bootable after flashing the same firmware. It's log

[    0.000154] NOTICE:  BL2: R-Car H3/M3/M3N Initial Program Loader(CA57)
[    0.005198] NOTICE:  BL2: Initial Program Loader(Rev.2.0.4)
[    0.010731] NOTICE:  BL2: PRR is R-Car H3 Ver.3.0
[    0.015399] NOTICE:  BL2: Board is Starter Kit Rev.2.1
[    0.020512] NOTICE:  BL2: Boot device is HyperFlash(80MHz)
[    0.025938] NOTICE:  BL2: LCM state is CM
[    0.029978] NOTICE:  BL2: AVS setting succeeded. DVFS_SetVID=0x53
[    0.035953] NOTICE:  BL2: CH0: 0x400000000 - 0x47fffffff, 2 GiB
[    0.041814] NOTICE:  BL2: CH1: 0x500000000 - 0x57fffffff, 2 GiB
[    0.047689] NOTICE:  BL2: CH2: 0x600000000 - 0x67fffffff, 2 GiB
[    0.053564] NOTICE:  BL2: CH3: 0x700000000 - 0x77fffffff, 2 GiB
[    0.059455] NOTICE:  BL2: DDR3200(rev.0.40)
[    0.074752] NOTICE:  BL2: [COLD_BOOT]
[    0.083508] NOTICE:  BL2: DRAM Split is 4ch(DDR f)
[    0.086807] NOTICE:  BL2: QoS is default setting(rev.0.11)
[    0.092250] NOTICE:  BL2: DRAM refresh interval 1.95 usec
[    0.097607] NOTICE:  BL2: Periodic Write DQ Training
[    0.211354] NOTICE:  BL2: Lossy Decomp areas
[    0.214134] NOTICE:       Entry 0: DCMPAREACRAx:0x80000540 DCMPAREACRBx:0x570
[    0.221219] NOTICE:       Entry 1: DCMPAREACRAx:0x40000000 DCMPAREACRBx:0x0
[    0.228131] NOTICE:       Entry 2: DCMPAREACRAx:0x20000000 DCMPAREACRBx:0x0
[    0.313299] ERROR:   Image magic is wrong!
[    0.315906] ERROR:   Bootloader partition 2 corrupted, setting unbootable
[    0.325393] NOTICE:  BL2: v1.5(release):5da4beea3-dirty
[    0.329124] NOTICE:  BL2: Built : 13:17:38, Apr 15 2021
[    0.334312] NOTICE:  BL2: Normal boot
[    0.337947] NOTICE:  BL2: eMMC boot from partition 1
[    0.342864] NOTICE:  BL2: Load dst=0xe632c100 src=(p:1)0x30000(384) len=0x200(1)
[    0.350377] NOTICE:  BL2: Load dst=0x43f00000 src=(p:1)0x30400(386) len=0x1800(12)
[    0.358023] NOTICE:  BL2: Load dst=0x44000000 src=(p:1)0x40000(512) len=0x10000(128)
[    0.367006] NOTICE:  BL2: Load dst=0x44100000 src=(p:1)0x80000(1024) len=0x100000(2048)
[    0.396199] NOTICE:  BL2: Load dst=0x50000000 src=(p:1)0x200000(4096) len=0x200000(4096)
[    0.448100] NOTICE:  BL2: Booting BL31

I would appreciate any help here Thanks