mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-17 12:41:32 +00:00
cmd: pxe: Fix bootm argument count
pxe command parses the init ramfs address(through initrd lable in pxe config file), but is not passing it to bootm command as argument as bootm_argc count is not increased. Signed-off-by: Abhishek Shah <abhishek.shah@broadcom.com> Signed-off-by: Vladimir Olovyannikov <vladimir.olovyannikov@broadcom.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
1b3d24b735
commit
ca326781b4
1 changed files with 1 additions and 0 deletions
|
@ -663,6 +663,7 @@ static int label_boot(cmd_tbl_t *cmdtp, struct pxe_label *label)
|
|||
strncpy(bootm_argv[2], env_get("ramdisk_addr_r"), 18);
|
||||
strcat(bootm_argv[2], ":");
|
||||
strncat(bootm_argv[2], env_get("filesize"), 9);
|
||||
bootm_argc = 3;
|
||||
}
|
||||
|
||||
if (get_relfile_envaddr(cmdtp, label->kernel, "kernel_addr_r") < 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue