[PATCH 17/17] include: configs: Update env for selecting right dtb

Sinthu Raja sinthu.raja at mistralsolutions.com
Sat Jun 26 16:56:02 CEST 2021


From: Amarnath MB <amarnath.mb at ti.com>

Now that single defconfig can be used for booting J721E EVM and
EAIK, default device tree will not work for selecting dtb for
kernel. Update the findfdt env to select right dtb based on
board_name env variable.

Signed-off-by: Amarnath MB <amarnath.mb at ti.com>
Signed-off-by: Sinthu Raja <sinthu.raja at ti.com>
---
 include/configs/j721e_evm.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h
index b707fc4e89..4de59dfe32 100644
--- a/include/configs/j721e_evm.h
+++ b/include/configs/j721e_evm.h
@@ -68,6 +68,10 @@
 	"default_device_tree=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0"	\
 	"findfdt="							\
 		"setenv name_fdt ${default_device_tree};"		\
+		"if test $board_name = j721e; then "			\
+			"setenv name_fdt k3-j721e-common-proc-board.dtb; fi;" \
+		"if test $board_name = j721e-eaik; then "		\
+			"setenv name_fdt k3-j721e-eaik.dtb; fi;"	\
 		"setenv fdtfile ${name_fdt}\0"				\
 	"name_kern=Image\0"						\
 	"console=ttyS2,115200n8\0"					\
-- 
2.31.1



More information about the U-Boot mailing list