there has some issue when using DDR3
songsongman opened this issue · comments
here is the log :
DDR version 1.06 20170424
In
DDR3
786MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
ddrconfig:6
OUT
Boot1 Release Time: 2017-05-18, version: 2.43
ChipType = 0x11, 124
SdmmcInit=2 0
BootCapSize=2000
UserCapSize=7456MB
FwPartOffset=2000 , 2000
SdmmcInit=0 2
StorageInit ok = 20774
Raw SecureMode = 0
SecureInit read PBA: 0x4
SecureInit read PBA: 0x404
SecureInit read PBA: 0x804
SecureInit read PBA: 0xc04
SecureInit read PBA: 0x1004
SecureInit ret = 0, SecureMode = 0
LoadTrustBL
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x200000, size=0xa7fac
RunBL31 0x10000
NOTICE: BL31: v1.3(debug):f947c7e
NOTICE: BL31: Built : 09:28:45, May 31 2017
NOTICE: BL31:Rockchip release version: v1.3
INFO: ARM GICv2 driver initialized
INFO: Using opteed sec cpu_context!
INFO: boot cpu mask: 1
INFO: plat_rockchip_pmu_init: pd status 0xe
INFO: BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR: Error initializing runtime service opteed_fast
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x200000
INFO: SPSR = 0x3c9
U-Boot 2017.09-gc58a816-dirty (Oct 16 2018 - 09:56:46 +0800)
Model: Firefly ROC-RK3328-CC
DRAM: 00000000000000
- I tracing the code , then I find code will not continue when execute as below:
- u-boot\arch\arm\mach-rockchip\rk3328\rk3328.c
- int dram_init_banksize(void)
- {
- size_t max_size = min((unsigned long)gd->ram_size, gd->ram_top);
- /* Reserve 0x200000 for ATF bl31 */
- printf("00000000000000 \n");
- gd->bd->bi_dram[0].start = 0x200000;
- printf("11111111111111 \n");
- gd->bd->bi_dram[0].size = max_size - gd->bd->bi_dram[0].start;
- return 0;
- }
- As we can see, it will printf 0000000000000000, but not print 1111111111111111.
- So it stoped in "gd->bd->bi_dram[0].start = 0x200000;" .
- ( PS: Our PCBA can run android uboot and DDR4 ubuntu uboot.)
- Could you please give me some advice , please.
We never meet similar issue, did you change any boot code?
pls try to print the address of gd->bd->bi_dram[0].start.