[U-Boot] [PATCH v2 4/4] arm: am57xx: cl-som-am57x: update default env
Uri Mashiach
uri.mashiach at compulab.co.il
Mon Dec 5 09:27:58 CET 2016
Modify U-Boot default env settings.
Boot sequence:
1. SD card boot script
2. SD card boot no script
3. SATA boot script
4. SATA boot no script
5. eMMC boot script
6. eMMC boot no script
Signed-off-by: Uri Mashiach <uri.mashiach at compulab.co.il>
Acked-by: Igor Grinberg <grinberg at compulab.co.il>
Reviewed-by: Tom Rini <trini at konsulko.com>
---
include/configs/cl-som-am57x.h | 61 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
diff --git a/include/configs/cl-som-am57x.h b/include/configs/cl-som-am57x.h
index 839383f..b4364d4 100644
--- a/include/configs/cl-som-am57x.h
+++ b/include/configs/cl-som-am57x.h
@@ -134,4 +134,65 @@
#endif /* !CONFIG_SPL_BUILD */
+/* Default environment */
+#undef CONFIG_EXTRA_ENV_SETTINGS
+#define CONFIG_EXTRA_ENV_SETTINGS \
+ DEFAULT_LINUX_BOOT_ENV \
+ "autoload=no\0" \
+ "baudrate=115200\0" \
+ "console=ttyO2,115200n8\0" \
+ "bootdelay=3\0" \
+ "fdtfile=am57xx-sbc-am57x.dtb\0" \
+ "kernel=zImage-cl-som-am57x\0" \
+ "bootscr=bootscr.img\0" \
+ "displaytype=hdmi\0" \
+ "bootkernel=bootz ${loadaddr} - ${fdtaddr}\0" \
+ "mmcloadfdt=load mmc ${mmcdev} ${fdtaddr} ${fdtfile}\0" \
+ "mmcloadkernel=load mmc ${mmcdev} ${loadaddr} ${kernel}\0" \
+ "load_mmc=mmc dev ${mmcdev} && mmc rescan && " \
+ "run mmcloadkernel run mmcloadfdt\0" \
+ "mmcroot=/dev/mmcblk1p2\0" \
+ "mmcrootfstype=ext4 rw rootwait\0" \
+ "mmcargs=setenv bootargs console=${console} root=${mmcroot} " \
+ "rootfstype=${mmcrootfstype}\0" \
+ "mmcbootscript=setenv mmcdev 0; mmc dev ${mmcdev} && mmc rescan && " \
+ "load mmc ${mmcdev} ${loadaddr} ${bootscr} && " \
+ "echo Running bootscript from MMC/SD Card ... && " \
+ "source ${loadaddr}\0" \
+ "mmcboot=setenv mmcdev 0 && run load_mmc && " \
+ "run mmcargs && echo Booting from MMC/SD Card ... && " \
+ "run bootkernel\0" \
+ "emmcroot=/dev/mmcblk0p2\0" \
+ "emmcrootfstype=ext4 rw rootwait\0" \
+ "emmcargs=setenv bootargs console=${console} " \
+ "root=${emmcroot} " \
+ "rootfstype=${emmcrootfstype}\0" \
+ "emmcbootscript=setenv mmcdev 1; mmc dev ${mmcdev} && mmc rescan && " \
+ "load mmc ${mmcdev} ${loadaddr} ${bootscr} && " \
+ "echo Running bootscript from eMMC ... && " \
+ "source ${loadaddr}\0" \
+ "emmcboot=setenv mmcdev 1 && run load_mmc && " \
+ "run emmcargs && echo Booting from eMMC ... && " \
+ "run bootkernel\0" \
+ "sataroot=/dev/sda2\0" \
+ "satarootfstype=ext4 rw rootwait\0" \
+ "load_sata=load scsi 0 ${loadaddr} ${kernel} && " \
+ "load scsi 0 ${fdtaddr} ${fdtfile}\0" \
+ "sataargs=setenv bootargs console=${console} " \
+ "root=${sataroot} " \
+ "rootfstype=${satarootfstype}\0" \
+ "satabootscript=load scsi 0 ${loadaddr} ${bootscr} && " \
+ "echo Running bootscript from SATA ... && " \
+ "source ${loadaddr}\0" \
+ "sataboot=run load_sata && run sataargs && " \
+ "echo Booting from SATA ... && " \
+ "run bootkernel\0" \
+
+#undef CONFIG_BOOTCOMMAND
+#define CONFIG_BOOTCOMMAND \
+ "run mmcbootscript || run mmcboot || " \
+ "run satabootscript || run sataboot || " \
+ "run emmcbootscript || run emmcboot"
+
+
#endif /* __CONFIG_CL_SOM_AM57X_H */
--
2.7.4
More information about the U-Boot
mailing list