iMX8MN: SPL not starting U-Boot

Hi
I am having troubles booting an iMX8M Nano board. I compiled U-Boot and flashed it to an SD-card using Buildroot.
The board starts my SPL, does the DRAM init, goes back to BOOTROM and eventually goes to the SPL stage where it should jump to U-Boot (common/spl/spl.c - board_init_r os == IH_OS_U_BOOT). It proceeds to 'spl_board_prepare_for_boot();' and finally to 'jump_to_image_no_args(&spl_image);' After which nothing happens.
I added some print statements to see the contents at the address it wants to jump to (0x960000). The contents of my BL31.bin are showed on that address, is that correct?
Any help would be appreciated.
Ayrton Leyssens Embedded Software Engineer

Hi
Il ven 27 dic 2024, 14:17 Ayrton Leyssens aleyssens@idtech.be ha scritto:
Hi
I am having troubles booting an iMX8M Nano board. I compiled U-Boot and flashed it to an SD-card using Buildroot.
The board starts my SPL, does the DRAM init, goes back to BOOTROM and eventually goes to the SPL stage where it should jump to U-Boot (common/spl/spl.c - board_init_r os == IH_OS_U_BOOT). It proceeds to 'spl_board_prepare_for_boot();' and finally to 'jump_to_image_no_args(&spl_image);' After which nothing happens.
I added some print statements to see the contents at the address it wants to jump to (0x960000). The contents of my BL31.bin are showed on that address, is that correct?
Jump to ATF and then jump to U-Boot. Maybe the ATF put the console of U-Boot in wrong domain. Is an upstream U-Boot?
Michael
Any help would be appreciated.
Ayrton Leyssens Embedded Software Engineer

On Fri, Dec 27, 2024 at 10:53:55AM +0000, Ayrton Leyssens wrote:
Hi
I am having troubles booting an iMX8M Nano board. I compiled U-Boot and flashed it to an SD-card using Buildroot.
The board starts my SPL, does the DRAM init, goes back to BOOTROM and eventually goes to the SPL stage where it should jump to U-Boot (common/spl/spl.c - board_init_r os == IH_OS_U_BOOT). It proceeds to 'spl_board_prepare_for_boot();' and finally to 'jump_to_image_no_args(&spl_image);' After which nothing happens.
I added some print statements to see the contents at the address it wants to jump to (0x960000). The contents of my BL31.bin are showed on that address, is that correct?
SPL->ATF->U-Boot. If nothing prints when executing ATF, please check your ATF
Regards, Peng
Any help would be appreciated.
Ayrton Leyssens Embedded Software Engineer
participants (3)
-
Ayrton Leyssens
-
Michael Nazzareno Trimarchi
-
Peng Fan