[PATCH 7/7] configs: HSD #1507526426-10: configs: socfpga: agilex: Add NAND boot support
Jit Loon Lim
jit.loon.lim at intel.com
Sun Sep 11 13:47:40 CEST 2022
From: Ley Foon Tan <ley.foon.tan at intel.com>
Add NAND boot env settings
Signed-off-by: Ley Foon Tan <ley.foon.tan at intel.com>
Signed-off-by: Jit Loon Lim <jit.loon.lim at intel.com>
---
include/configs/socfpga_soc64_common.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/configs/socfpga_soc64_common.h b/include/configs/socfpga_soc64_common.h
index ec283a9307..85f42d92c0 100644
--- a/include/configs/socfpga_soc64_common.h
+++ b/include/configs/socfpga_soc64_common.h
@@ -77,6 +77,11 @@
"scriptfile=u-boot.scr\0" \
"fatscript=if fatload mmc 0:1 ${scriptaddr} ${scriptfile};" \
"then source ${scriptaddr}; fi\0" \
+ "nandroot=/dev/mtdblock5\0" \
+ "nandload=nand read ${loadaddr} kernel; nand read ${fdt_addr} dtb\0" \
+ "nandboot=setenv bootargs " CONFIG_BOOTARGS \
+ " root=${nandroot} rw rootwait rootfstype=jffs2; " \
+ "booti ${loadaddr} - ${fdt_addr}\0" \
"socfpga_legacy_reset_compat=1\0"
/*
--
2.26.2
More information about the U-Boot
mailing list