diff options
author | Abhishek Shah <abhishek.shah@broadcom.com> | 2019-11-18 16:41:49 -0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-12-03 08:43:24 -0500 |
commit | ca326781b4e91ba0a4beaacc6c86b1e1236d7628 (patch) | |
tree | 0c2082682725b3f1f0b8362f9476690bd08e95a9 | |
parent | 1b3d24b7351b0a19cfcfe17bc2f5d654c5a2ebcd (diff) | |
download | u-boot-ca326781b4e91ba0a4beaacc6c86b1e1236d7628.tar.gz |
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>
-rw-r--r-- | cmd/pxe.c | 1 |
1 files changed, 1 insertions, 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) { |