I found that my ddr_init.c was not being compiled because of errors in the \firmware\atf\plat\nxp directory. When I created my custom board in that directory, I did not properly reconfigure it. I really don't know how to properly add a board or platform there and basically had to hack it. Once my code was part of the build, then I got the BL2 bootloader to run. It now crashes on BL3 as shown below:
NOTICE: 2 GB DDR4, 64-bit, CL=11, ECC off
NOTICE: BL2: v1.5(release):LSDK-20.12-dirty
NOTICE: BL2: Built : 15:07:02, Jun 9 2021
NOTICE: BL2: Booting BL31
(It is reporting "dirty" because of the hacks that I added.)
The fip_uboot.bin I am programming to 0x00100000 in the QSPI. If I delete that section then the message change:
NOTICE: 2 GB DDR4, 64-bit, CL=11, ECC off
NOTICE: BL2: v1.5(release):LSDK-20.12-dirty
NOTICE: BL2: Built : 15:07:02, Jun 9 2021
ERROR: BL2: Failed to load image (-2)
Authentication failure
So, I think it is finding the BL3 bootloader. However, I do not have a clue as to what is happening with the launch of that bootloader. I tried to enable more printouts, but I cannot find out how to do that from flex-builder. I tried adding LOG_LEVEL=60 to make it higher than the verbose level, but it just seemed to ignore it.
How do I change the LOG_LEVEL or turn on DEBUG when using flex-builder?
What is the recommended way to debug problems with executing the bootloaders?
Thanks.