Skip to contentSkip to conversation

board: lx2160a: fix fsl-mc status in fdt with bootefi

PATCH New Mian Yousaf Kaukab 2 participants 4 messages May 23, 2019 – Jun 19, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 board: lx2160a: fix fsl-mc status in fdt with bootefi

fsl-mc lazyapply command applies dpl from efi_exit_boot_services(). Status of fsl-mc node in working fdt is updated at this stage. However, an efi application like grub may already have copied the fdt. So the updates to fdt done at efi_exit_boot_services() may not be visible to the OS. Fix it by updating fdt earlier if fsl-mc lazyapply command is used.

---
 board/freescale/lx2160a/lx2160a.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
board/freescale/lx2160a/lx2160a.c +2 -1
index 6109b280c6..3b4cb86692 100644
@@ -509,7 +509,8 @@ void fdt_fixup_board_enet(void *fdt)
 		return;
 	}
 
-	if ((get_mc_boot_status() == 0) && (get_dpl_apply_status() == 0)) {
+	if (get_mc_boot_status() == 0 &&
+	    (is_lazy_dpl_addr_valid() || get_dpl_apply_status() == 0)) {
 		fdt_status_okay(fdt, offset);
 		fdt_fixup_board_phy(fdt);
 	} else {
Signature · 1 line
2.11.0
#1 lore raw

PATCH 2/2 board: lx2160a: use default scan_dev_for_boot

Default environment variable is more complete. Also scans for efi binaries for example.

---
 include/configs/lx2160a_common.h | 6 ------
 1 file changed, 6 deletions(-)
include/configs/lx2160a_common.h +0 -6
index eb0b1766aa..711b434baf 100644
@@ -246,12 +246,6 @@ unsigned long get_board_ddr_clk(void);
 				"run scan_dev_for_boot; "	\
 			"fi; "					\
 		"done\0"					\
-	"scan_dev_for_boot="					\
-		"echo Scanning ${devtype} "			\
-			"${devnum}:${distro_bootpart}...; "	\
-		"for prefix in ${boot_prefixes}; do "		\
-			"run scan_dev_for_scripts; "		\
-		"done;\0"					\
 	"boot_a_script="					\
 		"load ${devtype} ${devnum}:${distro_bootpart} "	\
 			"${scriptaddr} ${prefix}${script}; "	\
Signature · 1 line
2.11.0
#2 lore raw

PATCH 2/2 board: lx2160a: use default scan_dev_for_boot

Quoted 9 lines

-----Original Message-----
From: Mian Yousaf Kaukab <[email protected]>
Sent: Thursday, May 23, 2019 2:28 PM
To: u-boot at lists.denx.de; Prabhakar Kushwaha <[email protected]>
Cc: Mian Yousaf Kaukab <[email protected]>
Subject: [PATCH 2/2] board: lx2160a: use default scan_dev_for_boot

Quoted 5 lines

Default environment variable is more complete. Also scans for efi binaries for example.

---

This patch has been applied to fsl-qoriq master, awaiting upstream.

--pk

#3 lore raw

PATCH 1/2 board: lx2160a: fix fsl-mc status in fdt with bootefi

In reply to Mian Yousaf Kaukab
Quoted 9 lines

-----Original Message-----
From: Mian Yousaf Kaukab <[email protected]>
Sent: Thursday, May 23, 2019 2:28 PM
To: u-boot at lists.denx.de; Prabhakar Kushwaha <[email protected]>
Cc: Mian Yousaf Kaukab <[email protected]>
Subject: [PATCH 1/2] board: lx2160a: fix fsl-mc status in fdt with bootefi

Quoted 8 lines

fsl-mc lazyapply command applies dpl from efi_exit_boot_services(). Status of fsl-mc node in working fdt is updated at this stage. However, an efi application like grub may already have copied the fdt. So the updates to fdt done at efi_exit_boot_services() may not be visible to the OS. Fix it by updating fdt earlier if fsl-mc lazyapply command is used.

---

This patch has been applied to fsl-qoriq master, awaiting upstream.

--pk