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
..
2022-10-31 11:02:44 -04:00
2023-04-24 21:37:45 +02:00
2023-04-27 13:51:06 -04:00
2023-05-31 17:23:01 -04:00
2023-03-30 15:09:59 -04:00
2022-11-02 08:42:03 +01:00
2022-01-19 18:11:34 +01:00
2023-02-10 07:41:39 -05:00
2022-08-04 16:18:47 -04:00
2023-02-09 16:32:26 -05:00
2023-05-05 09:36:08 -04:00
2023-02-06 13:04:53 -05:00
2023-03-14 16:08:51 -06:00
2023-01-09 11:30:08 -05:00
2021-04-20 07:31:12 -04:00
2023-02-07 14:33:50 -05:00
2023-05-13 09:52:32 -04:00