mvebu: image: fix generic-arm64.bootscript mmc selection
authorVladimir Vid <vladimir.vid@sartura.hr>
Fri, 7 Jun 2019 13:58:15 +0000 (15:58 +0200)
committerPetr Štetiar <ynezz@true.cz>
Fri, 28 Jun 2019 19:52:21 +0000 (21:52 +0200)
commit886f524c6b06bfba1f993d6c09b8262ce87cc15e
treefee154e3b582ab91dc532c161e08f29edb073ec2
parent9deef062a490ef901d96d552a808ee7b46c1d12c
mvebu: image: fix generic-arm64.bootscript mmc selection

Not all versions of ESPRESSObin require SD card, but can
be booted from the internal emmc flash (mmc dev 1) instead.
Add a simple check in the bootscript to see which mmc device
is detected and boot from it using mmcdev variable.

Tested-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
Signed-off-by: Vladimir Vid <vladimir.vid@sartura.hr>
(cherry picked from commit 008b41b9b0ddd4c5c877a769a85d27eb9c4e21a4)
target/linux/mvebu/image/generic-arm64.bootscript