[PATCH v4 8/9] x86: Use the existing stack when chain-loading

Bin Meng bmeng.cn at gmail.com
Thu Apr 30 11:33:08 CEST 2020


On Sun, Apr 26, 2020 at 11:13 PM Simon Glass <sjg at chromium.org> wrote:
>
> With chromebook_coral we normally run TPL->SPL->U-Boot. This is the
> 'bare metal' case.
>
> When running from coreboot we put u-boot.bin in the RW_LEGACY portion
> of the image, e.g. with:
>
>    cbfstool image-coral.serial.bin add-flat-binary -r RW_LEGACY \
>         -f /tmp/b/chromebook_coral/u-boot.bin -n altfw/u-boot \
>         -c lzma -l 0x1110000 -e 0x1110000
>
> In this case U-Boot is run from coreboot (actually Depthcharge, its
> payload) so we cannot access CAR. Use the existing stack instead.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v4:
> - Update to use locate_coreboot_table()
>
> Changes in v3: None
> Changes in v2: None
>
>  arch/x86/cpu/start_from_spl.S | 16 ++++++++++++++--
>  1 file changed, 14 insertions(+), 2 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list