renesas-rcar / arm-trusted-firmware

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

IPL fail to initialize DRAM on Salvator-XS #8

Closed phlmm closed 5 years ago

phlmm commented 5 years ago

I can confirm the issue with BL2 Rev1.0.23 on Salvator-XS board (Y-R-CAR-H3-SIP-BOARD-SKT-WS30 with SN 3041 (07.10.18))

NOTICE: [ 0.000155] BL2: R-Car H3 Initial Program Loader(CA57) NOTICE: [ 0.005352] BL2: Initial Program Loader(Rev.1.0.23) <-- latest IPL build as advised in elinux wiki NOTICE: [ 0.010978] BL2: PRR is R-Car H3 Ver.3.0 NOTICE: [ 0.015650] BL2: Board is Salvator-XS Rev.1.0 NOTICE: [ 0.020756] BL2: Boot device is HyperFlash(80MHz) NOTICE: [ 0.026208] BL2: LCM state is CM NOTICE: [ 0.030189] BL2: AVS setting succeeded. DVFS_SetVID=0x53 NOTICE: [ 0.036247] BL2: CH0: 0x400000000 - 0x480000000, 2 GiB NOTICE: [ 0.042131] BL2: CH1: 0x500000000 - 0x580000000, 2 GiB NOTICE: [ 0.048016] BL2: CH2: 0x600000000 - 0x680000000, 2 GiB NOTICE: [ 0.053900] BL2: CH3: 0x700000000 - 0x780000000, 2 GiB NOTICE: [ 0.059785] BL2: DDR3200(rev.0.34)NOTICE: [COLD_BOOT]NOTICE: ..1 <-- tried all 3 possible frequencies no change NOTICE: [ 0.553548] BL2: Failed to DRAM initialize (-1). ERROR: [ 5.007793] ERROR: [ 5.009356] BL2: System WDT overflow, occured address is 0xe63047d8

With the yocto:

Build Configuration: BB_VERSION = "1.38.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal" TARGET_SYS = "aarch64-poky-linux" MACHINE = "salvator-x" DISTRO = "poky" DISTRO_VERSION = "2.5.1" TUNE_FEATURES = "aarch64 cortexa57-cortexa53" TARGET_FPU = "" SOC_FAMILY = "rcar-gen3:r8a7795" meta meta-poky meta-yocto-bsp = "sumo:3b8dc3a88e28546100a6b0b2f2cc37f44e619371" meta-rcar-gen3 = "sumo-dev:276e6ae724d7e604e0d28e4670b8c9edea2957e3" meta-oe = "sumo:2bb21ef27c4b0c9d52d30b3b2c5a0160fd02b966" meta-optee = "sumo:282b47a10940c26854c1cca0ec40950192af16fc"

phlmm commented 5 years ago

Turned out that the default yocto config for XS is different from the boards I use. Once set to 4x1GB, it managed to boot successfully. Feel free to close this issue.