summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorApurva Nandan <a-nandan@ti.com>2023-01-23 23:13:31 +0530
committerPraneeth Bajjuri <praneeth@ti.com>2023-01-25 14:10:19 -0600
commit6fe3175fb74d3b59edbdf9c05bb4546650c43b1a (patch)
tree8688a39685ee9b44267095680ffda79a8592cdb2 /include
parentdfc772ee2d54e6e79e27a65d90f4febfb01ef95c (diff)
configs: am62x_evm: Enable OSPI 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: Apurva Nandan <a-nandan@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/am62x_evm.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/include/configs/am62x_evm.h b/include/configs/am62x_evm.h
index f66e616693..e14a18500a 100644
--- a/include/configs/am62x_evm.h
+++ b/include/configs/am62x_evm.h
@@ -140,6 +140,27 @@
"run get_fdt_usb;" \
"run run_kern\0"
+#define EXTRA_ENV_AM625_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"
#define BOOTENV_DEV_LINUX(devtypeu, devtypel, instance) \
"bootcmd_linux=" \
@@ -415,7 +436,8 @@
EXTRA_ENV_AM625_BOARD_SETTINGS \
EXTRA_ENV_AM625_BOARD_SETTINGS_MMC \
EXTRA_ENV_DFUARGS \
- EXTRA_ENV_AM625_BOARD_SETTING_USBMSC
+ EXTRA_ENV_AM625_BOARD_SETTING_USBMSC \
+ EXTRA_ENV_AM625_BOARD_SETTINGS_OSPI_NAND
/* Now for the remaining common defines */
#include <configs/ti_armv7_common.h>