aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Mittelstaedt <thomas.mittelstaedt@de.bosch.com>2023-05-04 13:42:55 +0000
committerBin Meng <bmeng@tinylab.org>2023-09-22 06:03:46 +0800
commit1a075d4e0de797ac2b25adcc27ea537fa01f89cb (patch)
tree6cd49051dfeeca4ff0e53344c2a71c92007dee67
parentfde0df92b57ae707c67cbf4be9bcc72b59f10cc3 (diff)
downloadu-boot-1a075d4e0de797ac2b25adcc27ea537fa01f89cb.zip
u-boot-1a075d4e0de797ac2b25adcc27ea537fa01f89cb.tar.gz
u-boot-1a075d4e0de797ac2b25adcc27ea537fa01f89cb.tar.bz2
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 <thomas.mittelstaedt@de.bosch.com> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--boot/pxe_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/pxe_utils.c b/boot/pxe_utils.c
index ac1414a..a92bb89 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);