return 0;
printf("%s, Failed to load falcon payload: %d\n", __func__,
ret);
+ if (IS_ENABLED(CONFIG_SPL_OS_BOOT_SECURE))
+ return ret;
printf("Fallback to U-Boot\n");
}
ret = mmc_load_image_raw_os(spl_image, bootdev, mmc);
if (!ret)
return 0;
+ if (IS_ENABLED(CONFIG_SPL_OS_BOOT_SECURE))
+ return ret;
}
raw_sect = spl_mmc_get_uboot_raw_sector(mmc, raw_sect);
err = spl_nand_load_image_os(spl_image, bootdev);
if (!err)
return 0;
- printf("%s: Failed in falcon boot: %d, fallback to U-Boot",
- __func__, err);
+ printf("%s: Failed in falcon boot: %d", __func__, err);
+ if (IS_ENABLED(CONFIG_SPL_OS_BOOT_SECURE))
+ return err;
+ printf("Fallback to U-Boot\n");
}
#endif
if (!err)
return 0;
- printf("%s: Failed in falcon boot: %d, fallback to U-Boot",
- __func__, err);
+ printf("%s: Failed in falcon boot: %d", __func__, err);
+ if (IS_ENABLED(CONFIG_SPL_OS_BOOT_SECURE))
+ return err;
+ printf("Fallback to U-Boot\n");
}
#endif
if (!err)
return 0;
- printf("%s: Failed in falcon boot: %d, fallback to U-Boot",
- __func__, err);
+ printf("%s: Failed in falcon boot: %d", __func__, err);
+ if (IS_ENABLED(CONFIG_SPL_OS_BOOT_SECURE))
+ return err;
+ printf("Fallback to U-Boot\n");
}
#endif
return 0;
printf("%s: Failed in falcon boot: %d", __func__, ret);
+ if (IS_ENABLED(CONFIG_SPL_OS_BOOT_SECURE))
+ return ret;
printf("Fallback to U-Boot\n");
}
#endif