]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: ge: bx50v3, mx53ppd: fix firstboot detection
authorRobert Beckett <bob.beckett@collabora.com>
Fri, 31 Jan 2020 13:08:03 +0000 (15:08 +0200)
committerStefano Babic <sbabic@denx.de>
Sun, 9 Feb 2020 20:47:20 +0000 (21:47 +0100)
Use `test' command to test for file existence instead of relying on the
old functionality of the `ext2load' command (which now reports an error
when attempting to load a zero length file).

Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
Signed-off-by: Ian Ray <ian.ray@ge.com>
include/configs/ge_bx50v3.h
include/configs/mx53ppd.h

index 98ef71daa1649ea76d219435d9170be4eb71328c..7a0c63b350f4db7b176ee24c9cbf70de73ce73db 100644 (file)
@@ -93,8 +93,7 @@
                "if ext2load ${dev} ${devnum}:5 0x7000A000 /boot/console; " \
                        "then setenv quiet; fi\0" \
        "hasfirstboot=" \
-               "ext2load ${dev} ${devnum}:${partnum} 0x7000A000 " \
-               "/boot/bootcause/firstboot\0" \
+               "test -e ${dev} ${devnum}:${partnum} /boot/bootcause/firstboot\0" \
        "swappartitions=" \
                "setexpr partnum 3 - ${partnum}\0" \
        "failbootcmd=" \
index a4452b8f9eb29f491161b29c5246d462296d98cc..101abc4302f4d67b5bb8ccc75439f6f38ccd3e00 100644 (file)
@@ -72,8 +72,8 @@
                "rootwait ${bootargs}\0" \
        "doquiet=if ext2load ${dev} ${devnum}:5 0x7000A000 /boot/console; " \
                "then setenv quiet; fi\0" \
-       "hasfirstboot=ext2load ${dev} ${devnum}:${partnum} 0x7000A000 " \
-               "/boot/bootcause/firstboot\0" \
+       "hasfirstboot=" \
+               "test -e ${dev} ${devnum}:${partnum} /boot/bootcause/firstboot\0" \
        "swappartitions=setexpr partnum 3 - ${partnum}\0" \
        "failbootcmd=" \
                "cls; " \