From: Thomas Mittelstaedt Date: Thu, 4 May 2023 13:42:55 +0000 (+0000) Subject: x86: pxeboot: bugfix: Set variable for size of initrd X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=1a075d4e0de797ac2b25adcc27ea537fa01f89cb;p=u-boot.git x86: pxeboot: bugfix: Set variable for size of initrd The problem was, that zboot() didn't work because of missing ramdisc size. Signed-off-by: Thomas Mittelstaedt Reviewed-by: Simon Glass --- diff --git a/boot/pxe_utils.c b/boot/pxe_utils.c index ac1414a5f2..a92bb896c6 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);