From ca326781b4e91ba0a4beaacc6c86b1e1236d7628 Mon Sep 17 00:00:00 2001 From: Abhishek Shah Date: Mon, 18 Nov 2019 16:41:49 -0800 Subject: 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 Signed-off-by: Vladimir Olovyannikov Reviewed-by: Simon Glass --- cmd/pxe.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/pxe.c') diff --git a/cmd/pxe.c b/cmd/pxe.c index 20599754462..768e50aba61 100644 --- a/cmd/pxe.c +++ b/cmd/pxe.c @@ -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) { -- cgit v1.2.3