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>
Tue, 18 Jun 2019 14:12:52 +0000 (16:12 +0200)
commit008b41b9b0ddd4c5c877a769a85d27eb9c4e21a4
tree1877cb2a7f8bc864795c9c280531b769ab86ed01
parentf342ffd300da48aa352c51bd65afebf6419b2228
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>
target/linux/mvebu/image/generic-arm64.bootscript