Skip to contentSkip to conversation

nxp: fix dhcp and efi boot support for various socs

PATCH New Mian Yousaf Kaukab 3 participants 16 messages Jan 29, 2019 – Mar 4, 2019

lore
Share & tools
lore
#0 lore raw

cover nxp: fix dhcp and efi boot support for various socs

This patch series fixes dhcp and efi boot support for nxp ls1043a, ls1046a, ls1088a and ls208xa platforms.

Patches are independent and can be cherry-picked individually.

Thank you,

Best regards,
Yousaf

Mian Yousaf Kaukab (12):
nxp: ls1088a: fix dppa exit when using efi boot
nxp: ls1088a: fix fsl-mc search path
Revert "ls1088a: remove dhcp function from u-boot env as boot source"
nxp: ls1088a: use default scan_dev_for_boot
Revert "ls2080ardb: remove dhcp function from env as boot source"
nxp: ls2080a: use default scan_dev_for_boot
nxp: ls1046a: enable EFI_LOADER_BOUNCE_BUFFER
nxp: ls1046a: enable dhcp boot
nxp: ls1046a: use default scan_dev_for_boot
nxp: ls1043a: enable EFI_LOADER_BOUNCE_BUFFER
nxp: ls1043a: enable dhcp boot
nxp: ls1043a: use default scan_dev_for_boot

 board/freescale/ls1088a/ls1088a.c               | 12 +++++++-----
 configs/ls1043aqds_defconfig                    |  1 +
 configs/ls1043aqds_lpuart_defconfig             |  1 +
 configs/ls1043aqds_nand_defconfig               |  1 +
 configs/ls1043aqds_nor_ddr3_defconfig           |  1 +
 configs/ls1043aqds_qspi_defconfig               |  1 +
 configs/ls1043aqds_sdcard_ifc_defconfig         |  1 +
 configs/ls1043aqds_sdcard_qspi_defconfig        |  1 +
 configs/ls1043aqds_tfa_SECURE_BOOT_defconfig    |  1 +
 configs/ls1043aqds_tfa_defconfig                |  1 +
 configs/ls1043ardb_SECURE_BOOT_defconfig        |  1 +
 configs/ls1043ardb_defconfig                    |  1 +
 configs/ls1043ardb_nand_SECURE_BOOT_defconfig   |  1 +
 configs/ls1043ardb_nand_defconfig               |  1 +
 configs/ls1043ardb_sdcard_SECURE_BOOT_defconfig |  1 +
 configs/ls1043ardb_sdcard_defconfig             |  1 +
 configs/ls1043ardb_tfa_SECURE_BOOT_defconfig    |  1 +
 configs/ls1043ardb_tfa_defconfig                |  1 +
 configs/ls1046aqds_SECURE_BOOT_defconfig        |  1 +
 configs/ls1046aqds_defconfig                    |  1 +
 configs/ls1046aqds_lpuart_defconfig             |  1 +
 configs/ls1046aqds_nand_defconfig               |  1 +
 configs/ls1046aqds_qspi_defconfig               |  1 +
 configs/ls1046aqds_sdcard_ifc_defconfig         |  1 +
 configs/ls1046aqds_sdcard_qspi_defconfig        |  1 +
 configs/ls1046aqds_tfa_SECURE_BOOT_defconfig    |  1 +
 configs/ls1046aqds_tfa_defconfig                |  1 +
 configs/ls1046ardb_emmc_defconfig               |  1 +
 configs/ls1046ardb_qspi_SECURE_BOOT_defconfig   |  1 +
 configs/ls1046ardb_qspi_defconfig               |  1 +
 configs/ls1046ardb_qspi_spl_defconfig           |  1 +
 configs/ls1046ardb_sdcard_SECURE_BOOT_defconfig |  1 +
 configs/ls1046ardb_sdcard_defconfig             |  1 +
 configs/ls1046ardb_tfa_SECURE_BOOT_defconfig    |  1 +
 configs/ls1046ardb_tfa_defconfig                |  1 +
 include/configs/ls1043a_common.h                |  9 ++-------
 include/configs/ls1046a_common.h                | 10 ++--------
 include/configs/ls1088ardb.h                    | 15 ++-------------
 include/configs/ls2080ardb.h                    | 15 ++-------------
 39 files changed, 49 insertions(+), 46 deletions(-)
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/12 nxp: ls1088a: fix dppa exit when using efi boot

Same issue for ls2080a was fixed by following patch:
b7b8410a8f ls2080: Exit dpaa only right before exiting U-Boot

---
 board/freescale/ls1088a/ls1088a.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
board/freescale/ls1088a/ls1088a.c +6 -4
index 953aab6e88..6a33958207 100644
@@ -643,6 +643,11 @@ int arch_misc_init(void)
 #endif
 
 #ifdef CONFIG_FSL_MC_ENET
+void board_quiesce_devices(void)
+{
+       fsl_mc_ldpaa_exit(gd->bd);
+}
+
 void fdt_fixup_board_enet(void *fdt)
 {
 	int offset;
@@ -732,7 +737,7 @@ void fsl_fdt_fixup_flash(void *fdt)
 
 int ft_board_setup(void *blob, bd_t *bd)
 {
-	int err, i;
+	int i;
 	u64 base[CONFIG_NR_DRAM_BANKS];
 	u64 size[CONFIG_NR_DRAM_BANKS];
 
@@ -762,9 +767,6 @@ int ft_board_setup(void *blob, bd_t *bd)
 
 #ifdef CONFIG_FSL_MC_ENET
 	fdt_fixup_board_enet(blob);
-	err = fsl_mc_ldpaa_exit(bd);
-	if (err)
-		return err;
 #endif
 	if (is_pb_board())
 		fixup_ls1088ardb_pb_banner(blob);
Signature · 1 line
2.11.0
#2 lore raw

PATCH 1/12 nxp: ls1088a: fix dppa exit when using efi boot

Quoted 9 lines

-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Mian Yousaf Kaukab
Sent: Tuesday, January 29, 2019 9:09 PM
To: u-boot at lists.denx.de
Cc: Priyanka Jain <[email protected]>
Subject: [U-Boot] [PATCH 01/12] nxp: ls1088a: fix dppa exit when using efi boot

Quoted 4 lines

Same issue for ls2080a was fixed by following patch:
b7b8410a8f ls2080: Exit dpaa only right before exiting U-Boot

Patch is good to go.

Regards
Ashish

Quoted 50 lines
---
 board/freescale/ls1088a/ls1088a.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
board/freescale/ls1088a/ls1088a.c +6 -5
index 953aab6e88..6a33958207 100644
@@ -643,6 +643,11 @@ int arch_misc_init(void)  #endif
 
 #ifdef CONFIG_FSL_MC_ENET
+void board_quiesce_devices(void)
+{
+       fsl_mc_ldpaa_exit(gd->bd);
+}
+
 void fdt_fixup_board_enet(void *fdt)
 {
 	int offset;
@@ -732,7 +737,7 @@ void fsl_fdt_fixup_flash(void *fdt)
 
 int ft_board_setup(void *blob, bd_t *bd)  {
-	int err, i;
+	int i;
 	u64 base[CONFIG_NR_DRAM_BANKS];
 	u64 size[CONFIG_NR_DRAM_BANKS];
 
@@ -762,9 +767,6 @@ int ft_board_setup(void *blob, bd_t *bd)
 
 #ifdef CONFIG_FSL_MC_ENET
 	fdt_fixup_board_enet(blob);
-	err = fsl_mc_ldpaa_exit(bd);
-	if (err)
-		return err;
 #endif
 	if (is_pb_board())
 		fixup_ls1088ardb_pb_banner(blob);
--

2.11.0

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.de
nx.de%2Flistinfo%2Fu- boot&amp;data=02%7C01%7CAshish.Kumar%40nxp.com%7C0dcdee6f35204c 1d80b408d6860013cf%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0% 7C636843732233772401&amp;sdata=47xZKLsi8ISbyaNswO0vr4WhOwkNl7lzX QZ7AoK0KnU%3D&amp;reserved=0

#3 lore raw

PATCH 2/12 nxp: ls1088a: fix fsl-mc search path

In reply to Mian Yousaf Kaukab

Path for fsl-mc node in kernel device-tree is /soc/fsl-mc whereas in u-boot it is /fsl-mc.

Fix the incorrect search path to fix following error:
fdt_fixup_board_enet: ERROR: fsl-mc node not found in device tree (error -1)

---
 board/freescale/ls1088a/ls1088a.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/freescale/ls1088a/ls1088a.c +1 -1
index 6a33958207..c46febdc92 100644
@@ -655,7 +655,7 @@ void fdt_fixup_board_enet(void *fdt)
 	offset = fdt_path_offset(fdt, "/fsl-mc");
 
 	if (offset < 0)
-		offset = fdt_path_offset(fdt, "/fsl,dprc@0");
+		offset = fdt_path_offset(fdt, "/soc/fsl-mc");
 
 	if (offset < 0) {
 		printf("%s: ERROR: fsl-mc node not found in device tree (error %d)\n",
Signature · 1 line
2.11.0
#4 lore raw

PATCH 3/12 Revert "ls1088a: remove dhcp function from u-boot env as boot source"

In reply to Mian Yousaf Kaukab

dhcp boot is a useful feature and works out-of-the-box for ls1088a platforms. Moreover, no solid reason is given for disabling it. Revert the patch to re-enable it.

This reverts commit 863e42e8b1f9e97d87919e20e34a7b98089f7522.

---
 include/configs/ls1088ardb.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/configs/ls1088ardb.h +2 -1
index f52ea4d746..6387b19dd5 100644
@@ -577,7 +577,8 @@
 
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 0) \
-	func(SCSI, scsi, 0)
+	func(SCSI, scsi, 0) \
+	func(DHCP, dhcp, na)
 #include <config_distro_bootcmd.h>
 #endif
 
Signature · 1 line
2.11.0
#5 lore raw

PATCH 4/12 nxp: ls1088a: use default scan_dev_for_boot

In reply to Mian Yousaf Kaukab

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

---
 include/configs/ls1088ardb.h | 12 ------------
 1 file changed, 12 deletions(-)
include/configs/ls1088ardb.h +0 -12
index 6387b19dd5..45af087dc6 100644
@@ -393,12 +393,6 @@
 				"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}; "		\
@@ -466,12 +460,6 @@
 				"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
#6 lore raw

PATCH 5/12 Revert "ls2080ardb: remove dhcp function from env as boot source"

In reply to Mian Yousaf Kaukab

dhcp boot is a useful feature and works out-of-the-box for ls2088a platforms. Moreover, no solid reason is given for disabling it. Revert the patch to re-enable it.

This reverts commit aea5cd75e63c20de4c00ce24a93eeee8542f923e.

---
 include/configs/ls2080ardb.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/configs/ls2080ardb.h +2 -1
index ef0f4ff48e..d3d759533d 100644
@@ -333,7 +333,8 @@ unsigned long get_board_sys_clk(void);
 #define BOOT_TARGET_DEVICES(func) \
 	func(USB, usb, 0) \
 	func(MMC, mmc, 0) \
-	func(SCSI, scsi, 0)
+	func(SCSI, scsi, 0) \
+	func(DHCP, dhcp, na)
 #include <config_distro_bootcmd.h>
 
 #ifdef CONFIG_TFABOOT
Signature · 1 line
2.11.0
#7 lore raw

PATCH 6/12 nxp: ls2080a: use default scan_dev_for_boot

In reply to Mian Yousaf Kaukab

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

---
 include/configs/ls2080ardb.h | 12 ------------
 1 file changed, 12 deletions(-)
include/configs/ls2080ardb.h +0 -12
index d3d759533d..7308d72e5d 100644
@@ -429,12 +429,6 @@ unsigned long get_board_sys_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}; "	\
@@ -498,12 +492,6 @@ unsigned long get_board_sys_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
#8 lore raw

PATCH 7/12 nxp: ls1046a: enable EFI_LOADER_BOUNCE_BUFFER

In reply to Mian Yousaf Kaukab

EFI applications need bounce buffers to work properly on these platforms.

---
 configs/ls1046aqds_SECURE_BOOT_defconfig        | 1 +
 configs/ls1046aqds_defconfig                    | 1 +
 configs/ls1046aqds_lpuart_defconfig             | 1 +
 configs/ls1046aqds_nand_defconfig               | 1 +
 configs/ls1046aqds_qspi_defconfig               | 1 +
 configs/ls1046aqds_sdcard_ifc_defconfig         | 1 +
 configs/ls1046aqds_sdcard_qspi_defconfig        | 1 +
 configs/ls1046aqds_tfa_SECURE_BOOT_defconfig    | 1 +
 configs/ls1046aqds_tfa_defconfig                | 1 +
 configs/ls1046ardb_emmc_defconfig               | 1 +
 configs/ls1046ardb_qspi_SECURE_BOOT_defconfig   | 1 +
 configs/ls1046ardb_qspi_defconfig               | 1 +
 configs/ls1046ardb_qspi_spl_defconfig           | 1 +
 configs/ls1046ardb_sdcard_SECURE_BOOT_defconfig | 1 +
 configs/ls1046ardb_sdcard_defconfig             | 1 +
 configs/ls1046ardb_tfa_SECURE_BOOT_defconfig    | 1 +
 configs/ls1046ardb_tfa_defconfig                | 1 +
 17 files changed, 17 insertions(+)
configs/ls1046aqds_SECURE_BOOT_defconfig +1 -0
index ae05dd150b..f54cefe1c6 100644
@@ -52,3 +52,4 @@ CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
 CONFIG_RSA=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1046aqds_defconfig +1 -0
index f7a35dfeb9..b815fc9819 100644
@@ -55,3 +55,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1046aqds_lpuart_defconfig +1 -0
index 0a8d51e43d..23d7ad2b95 100644
@@ -54,3 +54,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1046aqds_nand_defconfig +1 -0
index 9e11db7d7f..8b7a9fc450 100644
@@ -59,3 +59,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1046aqds_qspi_defconfig +1 -0
index a6bbf106e1..f951e78c5d 100644
@@ -49,3 +49,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1046aqds_sdcard_ifc_defconfig +1 -0
index edf915fdd6..cdce673ff7 100644
@@ -68,3 +68,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1046aqds_sdcard_qspi_defconfig +1 -0
index afb76d6900..85626e1a15 100644
@@ -64,3 +64,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1046aqds_tfa_SECURE_BOOT_defconfig +1 -0
index f57dda591a..44d90576c1 100644
@@ -57,3 +57,4 @@ CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
 CONFIG_RSA=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1046aqds_tfa_defconfig +1 -0
index f77aa23024..e4ccdc6d85 100644
@@ -61,3 +61,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1046ardb_emmc_defconfig +1 -0
index 181fa61422..8a9fa4add1 100644
@@ -60,3 +60,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1046ardb_qspi_SECURE_BOOT_defconfig +1 -0
index d8eb7b7ede..07437e9bc1 100644
@@ -46,3 +46,4 @@ CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
 CONFIG_RSA=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1046ardb_qspi_defconfig +1 -0
index fa4a08f024..d2850480d6 100644
@@ -49,3 +49,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1046ardb_qspi_spl_defconfig +1 -0
index 0a45653b98..6d1f190230 100644
@@ -63,3 +63,4 @@ CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
 CONFIG_SPL_GZIP=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1046ardb_sdcard_SECURE_BOOT_defconfig +1 -0
index 80c42c5bad..643a52039a 100644
@@ -61,3 +61,4 @@ CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
 CONFIG_RSA=y
 CONFIG_SPL_RSA=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1046ardb_sdcard_defconfig +1 -0
index a1bd39b17c..f1ae80628d 100644
@@ -59,3 +59,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1046ardb_tfa_SECURE_BOOT_defconfig +1 -0
index d570c6de05..deeb3c2de3 100644
@@ -47,3 +47,4 @@ CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
 CONFIG_RSA=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1046ardb_tfa_defconfig +1 -0
index fdc2521504..c86e182459 100644
@@ -51,3 +51,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
Signature · 1 line
2.11.0
#9 lore raw

PATCH 8/12 nxp: ls1046a: enable dhcp boot

In reply to Mian Yousaf Kaukab

dhcp boot is a useful feature and works out-of-the-box on these platforms. Enable it as a boot source.

---
 include/configs/ls1046a_common.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/configs/ls1046a_common.h +2 -1
index 6e36c9339b..eb4c78f549 100644
@@ -213,7 +213,8 @@
 #define BOOT_TARGET_DEVICES(func) \
 	func(SCSI, scsi, 0) \
 	func(MMC, mmc, 0) \
-	func(USB, usb, 0)
+	func(USB, usb, 0) \
+	func(DHCP, dhcp, na)
 #include <config_distro_bootcmd.h>
 #endif
 
Signature · 1 line
2.11.0
#10 lore raw

PATCH 9/12 nxp: ls1046a: use default scan_dev_for_boot

In reply to Mian Yousaf Kaukab

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

---
 include/configs/ls1046a_common.h | 7 -------
 1 file changed, 7 deletions(-)
include/configs/ls1046a_common.h +0 -7
index eb4c78f549..da1cfc0b88 100644
@@ -260,13 +260,6 @@
 			"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
#11 lore raw

PATCH 10/12 nxp: ls1043a: enable EFI_LOADER_BOUNCE_BUFFER

In reply to Mian Yousaf Kaukab

EFI applications need bounce buffers to work properly on these platforms.

---
 configs/ls1043aqds_defconfig                    | 1 +
 configs/ls1043aqds_lpuart_defconfig             | 1 +
 configs/ls1043aqds_nand_defconfig               | 1 +
 configs/ls1043aqds_nor_ddr3_defconfig           | 1 +
 configs/ls1043aqds_qspi_defconfig               | 1 +
 configs/ls1043aqds_sdcard_ifc_defconfig         | 1 +
 configs/ls1043aqds_sdcard_qspi_defconfig        | 1 +
 configs/ls1043aqds_tfa_SECURE_BOOT_defconfig    | 1 +
 configs/ls1043aqds_tfa_defconfig                | 1 +
 configs/ls1043ardb_SECURE_BOOT_defconfig        | 1 +
 configs/ls1043ardb_defconfig                    | 1 +
 configs/ls1043ardb_nand_SECURE_BOOT_defconfig   | 1 +
 configs/ls1043ardb_nand_defconfig               | 1 +
 configs/ls1043ardb_sdcard_SECURE_BOOT_defconfig | 1 +
 configs/ls1043ardb_sdcard_defconfig             | 1 +
 configs/ls1043ardb_tfa_SECURE_BOOT_defconfig    | 1 +
 configs/ls1043ardb_tfa_defconfig                | 1 +
 17 files changed, 17 insertions(+)
configs/ls1043aqds_defconfig +1 -0
index 8bde83deda..a0f9d62d3b 100644
@@ -53,3 +53,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1043aqds_lpuart_defconfig +1 -0
index 79448129bd..32da83fcd8 100644
@@ -52,3 +52,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1043aqds_nand_defconfig +1 -0
index ada225c3b6..5e7dbf9e46 100644
@@ -65,3 +65,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1043aqds_nor_ddr3_defconfig +1 -0
index e86d4196b5..acbacfc132 100644
@@ -51,3 +51,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1043aqds_qspi_defconfig +1 -0
index d948981080..a7e3327739 100644
@@ -46,3 +46,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1043aqds_sdcard_ifc_defconfig +1 -0
index afa91e8b3a..01279cfe3b 100644
@@ -65,3 +65,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1043aqds_sdcard_qspi_defconfig +1 -0
index 310cb2319a..6be253f8a2 100644
@@ -59,3 +59,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1043aqds_tfa_SECURE_BOOT_defconfig +1 -0
index ce6f1ef86f..881518444d 100644
@@ -55,3 +55,4 @@ CONFIG_USB_XHCI_DWC3=y
 CONFIG_RSA=y
 CONFIG_SPL_RSA=y
 CONFIG_RSA_SOFTWARE_EXP=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1043aqds_tfa_defconfig +1 -0
index dfd70b5312..08b4c4afa0 100644
@@ -56,3 +56,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1043ardb_SECURE_BOOT_defconfig +1 -0
index 0a51540674..3f5e0b720a 100644
@@ -48,3 +48,4 @@ CONFIG_USB_XHCI_DWC3=y
 CONFIG_RSA=y
 CONFIG_SPL_RSA=y
 CONFIG_RSA_SOFTWARE_EXP=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1043ardb_defconfig +1 -0
index 1462a44369..b1b46b1737 100644
@@ -46,3 +46,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1043ardb_nand_SECURE_BOOT_defconfig +1 -0
index 8a45f7c8d0..0feeb64f71 100644
@@ -65,3 +65,4 @@ CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
 CONFIG_RSA=y
 CONFIG_SPL_RSA=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1043ardb_nand_defconfig +1 -0
index 509f2f1e3c..a232b45a79 100644
@@ -63,3 +63,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1043ardb_sdcard_SECURE_BOOT_defconfig +1 -0
index 33ce8acd08..753957f658 100644
@@ -63,3 +63,4 @@ CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
 CONFIG_RSA=y
 CONFIG_SPL_RSA=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1043ardb_sdcard_defconfig +1 -0
index 91dac81e8b..23e54603bb 100644
@@ -61,3 +61,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1043ardb_tfa_SECURE_BOOT_defconfig +1 -0
index 0af2594205..ef01a167c4 100644
@@ -50,3 +50,4 @@ CONFIG_USB_XHCI_DWC3=y
 CONFIG_RSA=y
 CONFIG_SPL_RSA=y
 CONFIG_RSA_SOFTWARE_EXP=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls1043ardb_tfa_defconfig +1 -0
index 93cd5450dd..43cb6f92bd 100644
@@ -50,3 +50,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
Signature · 1 line
2.11.0
#12 lore raw

PATCH 11/12 nxp: ls1043a: enable dhcp boot

In reply to Mian Yousaf Kaukab

dhcp boot is a useful feature and works out-of-the-box on these platforms. Enable it as a boot source.

---
 include/configs/ls1043a_common.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/configs/ls1043a_common.h +2 -1
index 49b014181e..27bbfb4c95 100644
@@ -239,7 +239,8 @@
 #ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 0) \
-	func(USB, usb, 0)
+	func(USB, usb, 0) \
+	func(DHCP, dhcp, na)
 #include <config_distro_bootcmd.h>
 #endif
 
Signature · 1 line
2.11.0
#13 lore raw

PATCH 12/12 nxp: ls1043a: use default scan_dev_for_boot

In reply to Mian Yousaf Kaukab

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

---
 include/configs/ls1043a_common.h | 6 ------
 1 file changed, 6 deletions(-)
include/configs/ls1043a_common.h +0 -6
index 27bbfb4c95..baaaa52c8f 100644
@@ -281,12 +281,6 @@
 				"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
#14 lore raw

PATCH 12/12 nxp: ls1043a: use default scan_dev_for_boot

Quoted 9 lines

-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Mian Yousaf Kaukab
Sent: Tuesday, January 29, 2019 9:09 PM
To: u-boot at lists.denx.de
Cc: Priyanka Jain <[email protected]>
Subject: [U-Boot] [PATCH 12/12] nxp: ls1043a: use default scan_dev_for_boot

Quoted 4 lines

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

Patch-set is good to go.
Regards
Ashish

Quoted 34 lines
---
 include/configs/ls1043a_common.h | 6 ------
 1 file changed, 6 deletions(-)
include/configs/ls1043a_common.h +0 -7
index 27bbfb4c95..baaaa52c8f 100644
@@ -281,12 +281,6 @@
 				"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}; "	\
--

2.11.0

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.de
nx.de%2Flistinfo%2Fu- boot&amp;data=02%7C01%7CAshish.Kumar%40nxp.com%7C5a14ead970604e d4495308d68600ba6c%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0% 7C636843735039456923&amp;sdata=NrQOamGGbtmlkwhE%2BuS7FawEyJjP Wt3hjkplZC3m%2Bb4%3D&amp;reserved=0

#15 lore raw

cover nxp: fix dhcp and efi boot support for various socs

In reply to Mian Yousaf Kaukab
Quoted 13 lines

-----Original Message-----
From: Mian Yousaf Kaukab <[email protected]>
Sent: Tuesday, January 29, 2019 9:08 PM
To: u-boot at lists.denx.de
Cc: Prabhakar Kushwaha <[email protected]>; Priyanka Jain <[email protected]>; York Sun <[email protected]>; Mian Yousaf Kaukab <[email protected]>
Subject: [PATCH 00/12] nxp: fix dhcp and efi boot support for various socs

This patch series fixes dhcp and efi boot support for nxp ls1043a, ls1046a, ls1088a and ls208xa platforms.

Quoted 7 lines

Patches are independent and can be cherry-picked individually.

Thank you,

Best regards,
Yousaf

Subject change in all patches and fix checkpatch warnings for 2 patches

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

--pk