am335x_evm: Add boot script support to am335x_evm
PATCH 1/1 am335x_evm: Add boot script support to am335x_evm
This patch adds boot script support to am335x_evm
Signed-off-by Guillaume GARDET <[email protected]>
Cc Tom Rini <[email protected]>
--- include/configs/am335x_evm.h | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-)
include/configs/am335x_evm.h +18 -11
@@ -115,6 +115,9 @@"nfsroot=${serverip}:${rootpath},${nfsopts} rw " \"ip=dhcp\0" \"bootenv=uEnv.txt\0" \ +"loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr\0" \ +"bootscript=echo Running bootscript from mmc${mmcdev} ...; " \ +"source ${loadaddr}\0" \"loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \"importbootenv=echo Importing environment from mmc ...; " \"env import -t -r $loadaddr $filesize\0" \
@@ -142,17 +145,21 @@"mmcboot=mmc dev ${mmcdev}; " \"if mmc rescan; then " \"echo SD/MMC found on device ${mmcdev};" \ -"if run loadbootenv; then " \ -"echo Loaded environment from ${bootenv};" \ -"run importbootenv;" \ -"fi;" \ -"if test -n $uenvcmd; then " \ -"echo Running uenvcmd ...;" \ -"run uenvcmd;" \ -"fi;" \ -"if run loadimage; then " \ -"run mmcloados;" \ -"fi;" \ +"if run loadbootscript; then " \ +"run bootscript;" \ +"else " \ +"if run loadbootenv; then " \ +"echo Loaded environment from ${bootenv};" \ +"run importbootenv;" \ +"fi;" \ +"if test -n $uenvcmd; then " \ +"echo Running uenvcmd ...;" \ +"run uenvcmd;" \ +"fi;" \ +"if run loadimage; then " \ +"run mmcloados;" \ +"fi;" \ +"fi ;" \"fi;\0" \"spiboot=echo Booting from spi ...; " \"run spiargs; " \
Signature · 1 line
1.8.4.5
PATCH 1/1 am335x_evm: Add boot script support to am335x_evm
Ping.
Guillaume
Le 11/09/2014 09:23, Guillaume GARDET a ?crit :
Quoted 56 lines
This patch adds boot script support to
am335x_evmSigned-off-by Guillaume GARDET <[email protected]>Cc Tom Rini <[email protected]>--- include/configs/am335x_evm.h | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-)include/configs/am335x_evm.h +18
-11@@ -115,6 +115,9 @@"nfsroot=${serverip}:${rootpath},${nfsopts} rw " \"ip=dhcp\0" \"bootenv=uEnv.txt\0" \ +"loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr\0" \ +"bootscript=echo Running bootscript from mmc${mmcdev} ...; " \ +"source ${loadaddr}\0" \"loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \"importbootenv=echo Importing environment from mmc ...; " \"env import -t -r $loadaddr $filesize\0" \@@ -142,17 +145,21 @@"mmcboot=mmc dev ${mmcdev}; " \"if mmc rescan; then " \"echo SD/MMC found on device ${mmcdev};" \ -"if run loadbootenv; then " \ -"echo Loaded environment from ${bootenv};" \ -"run importbootenv;" \ -"fi;" \ -"if test -n $uenvcmd; then " \ -"echo Running uenvcmd ...;" \ -"run uenvcmd;" \ -"fi;" \ -"if run loadimage; then " \ -"run mmcloados;" \ -"fi;" \ +"if run loadbootscript; then " \ +"run bootscript;" \ +"else " \ +"if run loadbootenv; then " \ +"echo Loaded environment from ${bootenv};" \ +"run importbootenv;" \ +"fi;" \ +"if test -n $uenvcmd; then " \ +"echo Running uenvcmd ...;" \ +"run uenvcmd;" \ +"fi;" \ +"if run loadimage; then " \ +"run mmcloados;" \ +"fi;" \ +"fi ;" \"fi;\0" \"spiboot=echo Booting from spi ...; " \"run spiargs; " \
Quoted 4 lines · Guillaume GARDET
This patch adds boot script support to
am335x_evmSigned-off-by Guillaume GARDET <[email protected]>Cc Tom Rini <[email protected]>
Applied to u-boot-ti/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140918/ea66083c/attachment.pgp>