[PATCH 4/4] X86: pxeboot: bugfix: Set variable for size of initrd
Heinrich Schuchardt
xypron.glpk at gmx.de
Tue May 2 12:15:18 CEST 2023
On 5/2/23 11:49, thomas.mittelstaedt at bosch.com wrote:
> From: mtt2hi <thomas.mittelstaedt at de.bosch.com>
>
> The problem was, that zboot() didn't work because of missing
> ramdisc size.
Can we create a test for this?
Best regards
Heirnich
>
> Signed-off-by: mtt2hi <thomas.mittelstaedt at de.bosch.com>
> ---
> boot/pxe_utils.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/boot/pxe_utils.c b/boot/pxe_utils.c
> index 3a1e50f2b1..87c32b6e62 100644
> --- a/boot/pxe_utils.c
> +++ b/boot/pxe_utils.c
> @@ -554,7 +554,7 @@ static int label_boot(struct pxe_context *ctx, struct pxe_label *label)
> label->name);
> goto cleanup;
> }
> -
> + strcpy(initrd_filesize, simple_xtoa(size));
> initrd_addr_str = env_get("ramdisk_addr_r");
> size = snprintf(initrd_str, sizeof(initrd_str), "%s:%lx",
> initrd_addr_str, size);
More information about the U-Boot
mailing list