Skip to contentSkip to conversation

cmd: pxe: Fix bootm argument count

PATCH New Vladimir Olovyannikov 3 participants 3 messages Nov 19, 2019 – Dec 4, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmd: pxe: Fix bootm argument count

From: Abhishek Shah <[email protected]>

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.

---
 cmd/pxe.c | 1 +
 1 file changed, 1 insertion(+)
cmd/pxe.c +1 -0
index 2059975446..768e50aba6 100644
@@ -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) {
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 cmd: pxe: Fix bootm argument count

Quoted 7 lines · Vladimir Olovyannikov

From: Abhishek Shah <[email protected]>

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.

Quoted 6 lines
---
 cmd/pxe.c | 1 +
 1 file changed, 1 insertion(+)
#2 lore raw

PATCH 1/1 cmd: pxe: Fix bootm argument count

In reply to Vladimir Olovyannikov
Quoted 9 lines · Vladimir Olovyannikov

From: Abhishek Shah <[email protected]>

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.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20191203/984e2d78/attachment.sig>