Skip to contentSkip to conversation

CMD_PXE: Ramdisk does not pass to the kernel if FDT image does not specified

PATCH New vlaomao at gmail.com 1 participant 1 message Feb 12, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CMD_PXE: Ramdisk does not pass to the kernel if FDT image does not specified

From: VlaoMao <[email protected]>

---
 cmd/pxe.c | 5 +++++
 1 file changed, 5 insertions(+)
cmd/pxe.c +5 -0
index 7043ad11fd..cf12b780b1 100644
@@ -783,6 +783,11 @@ static int label_boot(cmd_tbl_t *cmdtp, struct pxe_label *label)
 	if (!bootm_argv[3])
 		bootm_argv[3] = env_get("fdt_addr");
 
+	if (bootm_argv[2]) {
+		if(!bootm_argv[3])
+		    bootm_argc = 3;
+	}
+
 	if (bootm_argv[3]) {
 		if (!bootm_argv[2])
 			bootm_argv[2] = "-";
Signature · 1 line
2.16.1