projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fde0df9
)
x86: pxeboot: bugfix: Set variable for size of initrd
author
Thomas Mittelstaedt
<thomas.mittelstaedt@de.bosch.com>
Thu, 4 May 2023 13:42:55 +0000
(13:42 +0000)
committer
Bin Meng
<bmeng@tinylab.org>
Thu, 21 Sep 2023 22:03:46 +0000
(06:03 +0800)
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>
boot/pxe_utils.c
patch
|
blob
|
history
diff --git
a/boot/pxe_utils.c
b/boot/pxe_utils.c
index ac1414a5f26d20f1fa853eed170f2e4c3aae883b..a92bb896c63e01ef00b805a6f7efcd671605c203 100644
(file)
--- 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);