u-boot/common/spl
Mario Kicherer 1aeedef937 spl: spl-nor: return error if no valid image was loaded
If only FIT images are enabled and loading the FIT image fails,
spl_nor_load_image() should return an error instead of zero.

Without this patch:

>>SPL: board_init_r()
spl_init
Trying to boot from NOR
Unsupported OS image.. Jumping nevertheless..
image entry point: 0x0

With patch:

>>SPL: board_init_r()
spl_init
Trying to boot from NOR
SPL: failed to boot from all boot devices (err=-6)
.### ERROR ### Please RESET the board ###

Signed-off-by: Mario Kicherer <dev@kicherer.org>
2023-06-20 13:02:34 -04:00
..
Kconfig spl: blk: Support loading images from fs 2023-06-19 17:19:44 -04:00
Kconfig.nxp global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
Kconfig.tpl arm: rockchip: Add RV1126 arch core support 2023-01-16 18:01:11 +08:00
Kconfig.vpl vbe: Add Kconfig options for VPL 2022-10-31 11:03:59 -04:00
Makefile common: spl: Add spl NVMe boot support 2023-06-19 17:47:41 -04:00
spl_atf.c Rename CONFIG_SYS_TEXT_BASE to CONFIG_TEXT_BASE 2022-10-31 11:01:31 -04:00
spl_blk_fs.c spl: blk: Support loading images from fs 2023-06-19 17:19:44 -04:00
spl_bootrom.c spl: pass args to board_return_to_bootrom 2019-10-08 16:35:16 +02:00
spl_dfu.c env: Drop environment.h header file where not needed 2019-08-11 16:43:41 -04:00
spl_ext.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_fat.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_fit.c spl: Drop unwanted return in spl_fit_upload_fpga() 2023-02-06 13:04:53 -05:00
spl_legacy.c spl: spl_legacy: fix invalid offset in SPL_COPY_PAYLOAD_ONLY 2022-12-10 14:35:55 +01:00
spl_mmc.c global: Use proper project name U-Boot 2023-06-12 13:24:31 +02:00
spl_nand.c global: Move remaining CONFIG_SYS_NAND_* to CFG_SYS_NAND_* 2022-12-05 16:05:38 -05:00
spl_net.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_nor.c spl: spl-nor: return error if no valid image was loaded 2023-06-20 13:02:34 -04:00
spl_nvme.c common: spl: Add spl NVMe boot support 2023-06-19 17:47:41 -04:00
spl_onenand.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_opensbi.c spl: opensbi: convert scratch options to config 2022-08-11 18:46:41 +08:00
spl_optee.S Rename CONFIG_SYS_TEXT_BASE to CONFIG_TEXT_BASE 2022-10-31 11:01:31 -04:00
spl_ram.c common: spl: ram: fix return code 2023-01-12 11:25:46 -05:00
spl_sata.c spl: sata: Rework the loading case it not use IS_ENABLED(...) 2023-01-20 12:27:06 -05:00
spl_sdp.c spl: sdp: Pass the USB index to board_usb_init() 2022-07-14 16:13:11 +02:00
spl_semihosting.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_spi.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
spl_ubi.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
spl_usb.c blk: Rename if_type to uclass_id 2022-09-25 08:30:05 -06:00
spl_xip.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
spl_ymodem.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl.c Xilinx changes for v2023.10-rc1 2023-06-12 16:42:37 -04:00