[PATCH] bootstd: Fix relative path use in extlinux bootmeth

Tom Rini trini at konsulko.com
Wed Jun 14 21:51:50 CEST 2023


On Fri, Jun 09, 2023 at 02:59:01PM +0000, Jonas Karlman wrote:

> Using relative path in a /boot/extlinux/extlinux.conf file fails to load
> linux kernel.
> 
> Using a /boot/extlinux/extlinux.conf file:
> 
>   LABEL test
>     LINUX ../linux/Image
> 
> Result in following error:
> 
>   Retrieving file: ../linux/Image
>   Skipping test for failure retrieving kernel
>   Boot failed (err=-14)
> 
> However, using sysboot cmd successfully load kernel using same file:
> 
>   sysboot mmc 1:1 any ${scriptaddr} /boot/extlinux/extlinux.conf
> 
>   Retrieving file: /boot/extlinux/../linux/Image
> 
> Fix relative path using bootmeth extlinux by supplying bootfile path
> instead of subdir path in the call to pxe_setup_ctx, same as done in the
> sysboot command.
> 
> Fixes: 31aefaf89a5b ("bootstd: Add an implementation of distro boot")
> Signed-off-by: Jonas Karlman <jonas at kwiboo.se>
> Reviewed-by: Simon Glass <sjg at chromium.org>

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/20230614/4b271ba2/attachment.sig>


More information about the U-Boot mailing list