[PATCH 1/3 v3] arm: init: save previous bootloader data

Tom Rini trini at konsulko.com
Tue Apr 5 20:00:19 CEST 2022


On Tue, Feb 22, 2022 at 09:49:52PM +0300, Dzmitry Sankouski wrote:

> When u-boot is used as a chain-loaded bootloader (replacing OS kernel),
> previous bootloader leaves data in RAM, that can be reused.
> 
> For example, on recent arm linux system, when chainloading u-boot,
> there are initramfs and fdt in RAM prepared for OS booting. Initramfs
> may be modified to store u-boot's payload, thus providing the ability to
> use chainloaded u-boot to boot OS without any storage support.
> 
> Two config options added:
> - SAVE_PREV_BL_INITRAMFS_START_ADDR
>   saves initramfs start address to 'prevbl_initrd_start_addr' environment
>   variable
> - SAVE_PREV_BL_FDT_ADDR
>   saves fdt address to 'prevbl_fdt_addr' environment variable
> 
> Signed-off-by: Dzmitry Sankouski <dsankouski at gmail.com>
> Cc: Tom Rini <trini at konsulko.com>

Applied to u-boot/master, 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/20220405/64b90011/attachment.sig>


More information about the U-Boot mailing list