mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-04 20:26:13 +02:00
spl: mmc: load kernel image before args in falcon
Load the kernel image before args in falcon mode to be consistent with the load order for other boot media. Signed-off-by: Anshul Dalal <anshuld@ti.com>
This commit is contained in:
parent
50953dd5cd
commit
00edec55f3
@ -152,6 +152,16 @@ static int mmc_load_image_raw_os(struct spl_image_info *spl_image,
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = mmc_load_image_raw_sector(spl_image, bootdev, mmc,
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
if (spl_image->os != IH_OS_LINUX && spl_image->os != IH_OS_TEE) {
|
||||
puts("Expected image is not found. Trying to start U-Boot\n");
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR)
|
||||
unsigned long count;
|
||||
|
||||
@ -165,16 +175,6 @@ static int mmc_load_image_raw_os(struct spl_image_info *spl_image,
|
||||
}
|
||||
#endif /* CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR */
|
||||
|
||||
ret = mmc_load_image_raw_sector(spl_image, bootdev, mmc,
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
if (spl_image->os != IH_OS_LINUX && spl_image->os != IH_OS_TEE) {
|
||||
puts("Expected image is not found. Trying to start U-Boot\n");
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user