Hi there,
I am triying to bringup a custom board based on the LS1028ARDB eval board.
In the custom board I own, we have replaced the DDR4 for a DDR3.
I already see that the DDR3 is working using a custom RCW + PBI. So now the next step I want to is to create a custom BL2 for booting up a yocto compilation based on kirkstone version.
For such purpose, I have patched the ddr_init.c file of the atf repo, this "ddr_cfg_regs " construct: https://github.com/nxp-qoriq/atf/blob/lf_v2.6/plat/nxp/soc-ls1028a/ls1028ardb/ddr_init.c#L15
Now I am trying to boot that BL2 and I see the next error
NOTICE: Fixed DDR on board
ERROR: Found training error(s): 0x2000
ERROR: Error: Waiting for D_INIT timeout.
ERROR: Writing DDR register(s) failed
ERROR: Programing DDRC error
ERROR: DDR init failed.
NOTICE: BL2: v2.6(release):custom
NOTICE: BL2: Built : 06:37:22, Jun 7 2022
ERROR: Asserting as the DDR is not initialized yet.ERROR: SD read error - DMA error = 10000000
ERROR: Read error = fffffffb
ERROR: BL2: Failed to load image id 3 (-5)
Error reading from serial device
I have added the option BUILD_STRING = "custom" to check that the BL2 I am running is mine.
In order to make the DDR work do I need to edit any other function/value in the ddr_init.c or any other file in the ATF source?
@yipingwangmay be you can provide some valuable info...
thanks,
imuguruza
#ls1028 #layerscape #yocto #atf #tf-a