summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Nikolaus Schaller <hns@goldelico.com>2012-11-20 13:01:50 +0100
committerH. Nikolaus Schaller <hns@goldelico.com>2012-11-20 13:01:50 +0100
commitbe4355beaced36b28499e00ec84e006ca74c45a1 (patch)
tree513bdd381c03badbf85e436b3b82bdcbcda48149
parentc562f9b26c9f5abfe5b89c1fbe816e24a705334f (diff)
downloadbootable_bootloader_goldelico_gta04-be4355beaced36b28499e00ec84e006ca74c45a1.zip
bootable_bootloader_goldelico_gta04-be4355beaced36b28499e00ec84e006ca74c45a1.tar.gz
bootable_bootloader_goldelico_gta04-be4355beaced36b28499e00ec84e006ca74c45a1.tar.bz2
fixed issue with u-boot test command; added forcemenu variable that can be set through fw_setenv in Linux
-rw-r--r--boot-scr/boot.txt18
1 files changed, 12 insertions, 6 deletions
diff --git a/boot-scr/boot.txt b/boot-scr/boot.txt
index 8b3bbad..be65192 100644
--- a/boot-scr/boot.txt
+++ b/boot-scr/boot.txt
@@ -39,9 +39,10 @@ echo "*** if you boot from NAND don-t worry about error messages when U-Boot tri
i2c dev 0
status init
status set 8 # give fast feedback that U-Boot did start (red power led)
-flash=no
-if test "${gta04}" != "${VERSION}"
+# we have to add an "x" because the test command treats empty string as equal to anything
+
+if test "x${gta04}" != "x${VERSION}"
then
# set up default environment
@@ -176,7 +177,7 @@ echo *** initializing LCM ***
if lcm start || test "${flash}" = "yes"
then
- if test "${flash}" = "yes"
+ if test "x${flash}" = "xyes"
then
lcm color ff0000 # will flash - turn screen red
else
@@ -187,13 +188,18 @@ then
run showimg
fi
- if test "${flash}" = "yes" || status check 1 # we want to flash or AUX button is (still) pressed
+ if test "x${flash}" = "xyes" || test "x${forcemenu}" = "xyes" || status check 1 # we want to flash or AUX button is (still) pressed
then
+ if test "x${forcemenu}" = "xyes"
+ then # reset
+ setenv forcemenu
+ saveenv
+ fi
echo *** initializing TSC for boot menu ***
tsc init # tsc selection will be 0
while true
do
- if test "${flash}" != "yes"
+ if test "x${flash}" != "xyes"
then
echo *** loading boot menu image ***
setenv imgaddr 80600000
@@ -301,7 +307,7 @@ then
setenv defaultdisplay lcd
saveenv
run mmcboot
- elif test "${flash}" = "yes" || tsc selection 99
+ elif test "x${flash}" = "xyes" || tsc selection 99
then
echo *** NAND flash ***
# note: MLO is configured to load U-Boot from MMC