diff options
author | Uri Mashiach <uri.mashiach@compulab.co.il> | 2016-12-28 18:28:36 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-01-02 11:14:07 -0500 |
commit | 99b02b4dce0b2fc759fb8ced5701c0d4fb7b2200 (patch) | |
tree | ab5fb25e28007519e5099ba9f19779c739274514 | |
parent | fc300e2c5d9b6217400d89a58e35a69b362ad288 (diff) | |
download | u-boot-99b02b4dce0b2fc759fb8ced5701c0d4fb7b2200.tar.gz u-boot-99b02b4dce0b2fc759fb8ced5701c0d4fb7b2200.tar.bz2 u-boot-99b02b4dce0b2fc759fb8ced5701c0d4fb7b2200.zip |
arm: am57xx: cl-som-am57x: update default env
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@compulab.co.il>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Reviewed-by: Tom Rini <trini@konsulko.com>
-rw-r--r-- | include/configs/cl-som-am57x.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/include/configs/cl-som-am57x.h b/include/configs/cl-som-am57x.h index 2001b0c9db..8297182a6c 100644 --- a/include/configs/cl-som-am57x.h +++ b/include/configs/cl-som-am57x.h @@ -133,4 +133,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 */ |