提交 ca326781 编写于 作者: A Abhishek Shah 提交者: Tom Rini

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: NAbhishek Shah <abhishek.shah@broadcom.com>
Signed-off-by: NVladimir Olovyannikov <vladimir.olovyannikov@broadcom.com>
Reviewed-by: NSimon Glass <sjg@chromium.org>
上级 1b3d24b7
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册