[PATCH v2 1/2] spl: spl_nor: add BOOT_DEVICE_NOR2 as alternative SPL_LOAD_IMAGE_METHOD

Tom Rini trini at konsulko.com
Thu Jan 26 20:17:34 CET 2023


On Thu, Jan 19, 2023 at 04:28:21PM +0100, Mario Kicherer wrote:

> Add BOOT_DEVICE_NOR2 as a second SPL_LOAD_IMAGE_METHOD to enable a
> board-specific spl_nor_get_uboot_base() function to return an alternative
> address in the NOR flash in case booting from BOOT_DEVICE_NOR fails.
> 
> Signed-off-by: Mario Kicherer <dev at kicherer.org>
> ---
>  arch/arm/include/asm/spl.h   | 1 +
>  arch/mips/include/asm/spl.h  | 1 +
>  arch/riscv/include/asm/spl.h | 1 +
>  common/spl/spl_nor.c         | 1 +
>  4 files changed, 4 insertions(+)

This breaks a lot of platforms, as it only covers a few of the cases
where BOOT_DEVICE_NOR is listed. I would also really like to see how
this ends up being used in the board specific case as I do wonder if we
can't solve this some other way that won't have impact so many other
platforms.  Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230126/c65080d2/attachment.sig>


More information about the U-Boot mailing list