Skip to content
Snippets Groups Projects
Commit cf073e49 authored by Alexander Holler's avatar Alexander Holler Committed by Albert ARIBAUD
Browse files

omap3_beagle: enable the use of a plain text file


Using the new env import command it is possible to use plain text files instead
of script-images. Plain text files are much easier to handle.

E.g. If your boot.scr contains the following:
-----------------------------------
setenv dvimode 1024x768-16@60
run loaduimage
run mmcboot
-----------------------------------
you could create a file named uEnv.txt and use that instead of boot.scr:
-----------------------------------
dvimode=1024x768-16@60
uenvcmd=run loaduimage; run mmcboot
-----------------------------------
The variable uenvcmd (if existent) will be executed (using run) after uEnv.txt
was loaded. If uenvcmd doesn't exist the default boot sequence will be started,
therefore you could just use
-----------------------------------
dvimode=1024x768-16@60
-----------------------------------
as uEnv.txt because loaduimage and mmcboot is part of the default boot sequence

Signed-off-by: default avatarJason Kridner <jkridner@beagleboard.org>
Signed-off-by: default avatarSandeep Paulraj <s-paulraj@ti.com>
parent 70d8c944
No related branches found
No related tags found
No related merge requests found
...@@ -228,9 +228,9 @@ ...@@ -228,9 +228,9 @@
"omapdss.def_disp=${defaultdisplay} " \ "omapdss.def_disp=${defaultdisplay} " \
"root=${nandroot} " \ "root=${nandroot} " \
"rootfstype=${nandrootfstype}\0" \ "rootfstype=${nandrootfstype}\0" \
"loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \ "loadbootenv=fatload mmc ${mmcdev} ${loadaddr} uEnv.txt\0" \
"bootscript=echo Running bootscript from mmc ...; " \ "importbootenv=echo Importing environment from mmc ...; " \
"source ${loadaddr}\0" \ "env import -t $loadaddr $filesize\0" \
"loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \ "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \
"mmcboot=echo Booting from mmc ...; " \ "mmcboot=echo Booting from mmc ...; " \
"run mmcargs; " \ "run mmcargs; " \
...@@ -242,15 +242,19 @@ ...@@ -242,15 +242,19 @@
#define CONFIG_BOOTCOMMAND \ #define CONFIG_BOOTCOMMAND \
"if mmc rescan ${mmcdev}; then " \ "if mmc rescan ${mmcdev}; then " \
"if run loadbootscript; then " \ "echo SD/MMC found on device ${mmcdev};" \
"run bootscript; " \ "if run loadbootenv; then " \
"else " \ "run importbootenv;" \
"if run loaduimage; then " \ "fi;" \
"run mmcboot; " \ "if test -n $uenvcmd; then " \
"else run nandboot; " \ "echo Running uenvcmd ...;" \
"fi; " \ "run uenvcmd;" \
"fi; " \ "fi;" \
"else run nandboot; fi" "if run loaduimage; then " \
"run mmcboot;" \
"fi;" \
"fi;" \
"run nandboot;" \
#define CONFIG_AUTO_COMPLETE 1 #define CONFIG_AUTO_COMPLETE 1
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment