Commit 3aae66e2 authored by Guillaume GARDET's avatar Guillaume GARDET Committed by Tom Rini
Browse files

am335x_evm: Add boot script support to am335x_evm



This patch adds boot script support to am335x_evm
Signed-off-by: default avatarGuillaume GARDET <guillaume.gardet@free.fr>
Cc: Tom Rini <trini@ti.com>
parent 10226f29
...@@ -115,6 +115,9 @@ ...@@ -115,6 +115,9 @@
"nfsroot=${serverip}:${rootpath},${nfsopts} rw " \ "nfsroot=${serverip}:${rootpath},${nfsopts} rw " \
"ip=dhcp\0" \ "ip=dhcp\0" \
"bootenv=uEnv.txt\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" \ "loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
"importbootenv=echo Importing environment from mmc ...; " \ "importbootenv=echo Importing environment from mmc ...; " \
"env import -t -r $loadaddr $filesize\0" \ "env import -t -r $loadaddr $filesize\0" \
...@@ -142,17 +145,21 @@ ...@@ -142,17 +145,21 @@
"mmcboot=mmc dev ${mmcdev}; " \ "mmcboot=mmc dev ${mmcdev}; " \
"if mmc rescan; then " \ "if mmc rescan; then " \
"echo SD/MMC found on device ${mmcdev};" \ "echo SD/MMC found on device ${mmcdev};" \
"if run loadbootenv; then " \ "if run loadbootscript; then " \
"echo Loaded environment from ${bootenv};" \ "run bootscript;" \
"run importbootenv;" \ "else " \
"fi;" \ "if run loadbootenv; then " \
"if test -n $uenvcmd; then " \ "echo Loaded environment from ${bootenv};" \
"echo Running uenvcmd ...;" \ "run importbootenv;" \
"run uenvcmd;" \ "fi;" \
"fi;" \ "if test -n $uenvcmd; then " \
"if run loadimage; then " \ "echo Running uenvcmd ...;" \
"run mmcloados;" \ "run uenvcmd;" \
"fi;" \ "fi;" \
"if run loadimage; then " \
"run mmcloados;" \
"fi;" \
"fi ;" \
"fi;\0" \ "fi;\0" \
"spiboot=echo Booting from spi ...; " \ "spiboot=echo Booting from spi ...; " \
"run spiargs; " \ "run spiargs; " \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment