[PATCH] boot/pxe-utils: populate initrd_filesize for extlinux boot

Tom Rini trini at konsulko.com
Sun Sep 17 00:38:08 CEST 2023


On Sat, Sep 16, 2023 at 03:14:58PM +0200, Ryan Lahfa wrote:

> Currently, it seems like the `initrd_filesize` was uninitialized for a
> while.
> 
> This is particularly problematic when attempting to `zboot` with a
> initrd with a size coming from `label->initrd`, because it will provide
> you with a 0-long initrd at boot time, making the kernel fail to
> continue the boot.
> 
> This fixes the issue and I confirmed it enable me booting a U-Boot on
> QEMU x86_64 q35 with NixOS kernel and initrds.
> 
> Signed-off-by: Ryan Lahfa <ryan-uboot at lahfa.xyz>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Bin Meng <bmeng.cn at gmail.com>
> Cc: Zhaofeng Li <hello at zhaofeng.li>
> Cc: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> Cc: Ramon Fried <rfried.dev at gmail.com>
> Cc: Artem Lapkin <email2tema at gmail.com>

Reviewed-by: Tom Rini <trini at konsulko.com>

And since you mentioned it in the follow-up, here's the tag so patchwork
will pick it up:

Fixes: 085cbdafca9c ("pxe: simplify label_boot()")

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/20230916/9493a811/attachment.sig>


More information about the U-Boot mailing list