summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVignesh Raghavendra <vigneshr@ti.com>2023-01-23 23:13:34 +0530
committerPraneeth Bajjuri <praneeth@ti.com>2023-01-25 14:10:19 -0600
commitf1d2af0e8875d841c3f378c2ae5272c1e231336c (patch)
tree020935e612eb59825edde038e43237f800dc4ee0 /include
parent98e87f5dbceac19a560d28accb0c5ba04e747d20 (diff)
configs: am62ax_evm: Enable NAND kernel boot through UBIFS
User can specify/override the NAND partition and UBIFS volume for booting via ${nbootpart} and ${nbootvolume} variables respectively. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/am62ax_evm.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/configs/am62ax_evm.h b/include/configs/am62ax_evm.h
index 6c3a139cae..0c0d6e1edb 100644
--- a/include/configs/am62ax_evm.h
+++ b/include/configs/am62ax_evm.h
@@ -91,6 +91,28 @@
"${bootdir}/${name_fit}\0" \
"partitions=" PARTS_DEFAULT
+#define EXTRA_ENV_AM62A7_BOARD_SETTINGS_OSPI_NAND \
+ "nbootpart=ospi.rootfs\0" \
+ "nbootvolume=ubi0:rootfs\0" \
+ "bootdir=/boot\0" \
+ "rd_spec=-\0" \
+ "ubi_init=ubi part ${nbootpart}; ubifsmount ${nbootvolume};\0" \
+ "args_ospi_nand=setenv bootargs console=${console} " \
+ "${optargs} ubi.mtd=${nbootpart} " \
+ "root=${nbootvolume} rootfstype=ubifs\0" \
+ "init_ospi_nand=run args_all args_ospi_nand ubi_init\0" \
+ "get_fdt_ospi_nand=ubifsload ${fdtaddr} ${bootdir}/${fdtfile};\0" \
+ "get_overlay_ospi_nand=" \
+ "fdt address ${fdtaddr};" \
+ "fdt resize 0x100000;" \
+ "for overlay in $name_overlays;" \
+ "do;" \
+ "ubifsload ${dtboaddr} ${bootdir}/${overlay} && " \
+ "fdt apply ${dtboaddr};" \
+ "done;\0" \
+ "get_kern_ospi_nand=ubifsload ${loadaddr} ${bootdir}/${name_kern}\0" \
+ "get_fit_ospi_nand=ubifsload ${addr_fit} ${bootdir}/${name_fit}\0"
+
#if defined(CONFIG_TARGET_AM62A7_A53_EVM)
#if defined(DEFAULT_RPROCS)
#undef DEFAULT_RPROCS
@@ -113,6 +135,7 @@
DEFAULT_MMC_TI_ARGS \
EXTRA_ENV_AM62A7_BOARD_SETTINGS \
EXTRA_ENV_AM62A7_BOARD_SETTINGS_MMC \
+ EXTRA_ENV_AM62A7_BOARD_SETTINGS_OSPI_NAND \
EXTRA_ENV_RPROC_SETTINGS \
EXTRA_ENV_DFUARGS