summaryrefslogtreecommitdiff
path: root/include/configs/ge_bx50v3.h
diff options
context:
space:
mode:
authorRobert Beckett <bob.beckett@collabora.com>2020-01-31 16:08:03 +0300
committerStefano Babic <sbabic@denx.de>2020-02-09 23:47:20 +0300
commit5e13def1eee097878acf67af5483660d27b86c44 (patch)
tree0e26dbe63d6bc31d536383de293c59a8c2a5f65f /include/configs/ge_bx50v3.h
parent30f0909c7ec68066295a5b115c08fdb703118d33 (diff)
downloadu-boot-5e13def1eee097878acf67af5483660d27b86c44.tar.xz
board: ge: bx50v3, mx53ppd: fix firstboot detection
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>
Diffstat (limited to 'include/configs/ge_bx50v3.h')
-rw-r--r--include/configs/ge_bx50v3.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/configs/ge_bx50v3.h b/include/configs/ge_bx50v3.h
index 98ef71daa1..7a0c63b350 100644
--- a/include/configs/ge_bx50v3.h
+++ b/include/configs/ge_bx50v3.h
@@ -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=" \