Does the preloader generated using BSP Generator automatically jump to NEXT_BOOT_IMAGE?
- 6 years ago
Hello,
Based on the old U-Boot codes, this function spl_boot_device at arch/arm/cpu/armv7/socfpga/spl.c, tells that you only can boot once at a time, and with ordering starting from QSPI to MMC. That means if you enable both QSPI and MMC, then QSPI would be booted instead of MMC. But one good thing is if you enable both QSPI and SDMMC, the SPL can access both QSPI and SDMMC,. However, this is not for the use case to boot backup image when the 1st boot device image corrupted.
You might need to modify the source code for the recovery mechanism use case, which we cannot support.
u32 spl_boot_device(void)
{
#if (CONFIG_PRELOADER_BOOT_FROM_QSPI == 1)
return BOOT_DEVICE_SPI;
#elif (CONFIG_PRELOADER_BOOT_FROM_RAM == 1)
return BOOT_DEVICE_RAM;
#elif (CONFIG_PRELOADER_BOOT_FROM_NAND == 1)
return BOOT_DEVICE_NAND;
#else
return BOOT_DEVICE_MMC1;
#endif
}