mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-17 12:41:32 +00:00
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>
This commit is contained in:
parent
30f0909c7e
commit
5e13def1ee
2 changed files with 3 additions and 4 deletions
|
@ -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=" \
|
||||
|
|
|
@ -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; " \
|
||||
|
|
Loading…
Add table
Reference in a new issue