mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
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>
This commit is contained in:
committed by
Bin Meng
parent
fde0df92b5
commit
1a075d4e0d
@@ -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);
|
||||
|
Reference in New Issue
Block a user