summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume La Roque <glaroque@baylibre.com>2020-10-30 16:03:44 +0100
committerNeil Armstrong <narmstrong@baylibre.com>2020-10-30 16:20:26 +0100
commit82f6508ad7e89f0afcd01007d541179fbc2b9c95 (patch)
tree1d47b9c0055658fac340e5fc795644ec6e592987
parentcdeb7b8f984e6d9bcdc5a6fdda6107af156d47bf (diff)
downloadu-boot-82f6508ad7e89f0afcd01007d541179fbc2b9c95.tar.gz
configs: meson64_android: don't show logo on ROM USB boot
When booting from rom usb, skip the boot logo logic as it's possible that the partition containing the logo does not exist yet. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Guillaume La Roque <glaroque@baylibre.com> Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
-rw-r--r--include/configs/meson64_android.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/configs/meson64_android.h b/include/configs/meson64_android.h
index 8fff915b50..c47d51c853 100644
--- a/include/configs/meson64_android.h
+++ b/include/configs/meson64_android.h
@@ -98,11 +98,14 @@
func(SYSTEM, system, na) \
#define PREBOOT_LOAD_LOGO \
- "mmc dev ${mmcdev};" \
- "part start mmc ${mmcdev} ${logopart} boot_start;" \
- "part size mmc ${mmcdev} ${logopart} boot_size;" \
- "if mmc read ${loadaddr} ${boot_start} ${boot_size}; then " \
+ "if test \"${boot_source}\" != \"usb\" && " \
+ "gpt verify mmc ${mmcdev} ${partitions}; then; " \
+ "mmc dev ${mmcdev};" \
+ "part start mmc ${mmcdev} ${logopart} boot_start;" \
+ "part size mmc ${mmcdev} ${logopart} boot_size;" \
+ "if mmc read ${loadaddr} ${boot_start} ${boot_size}; then " \
"bmp display ${loadaddr} m m;" \
+ "fi;" \
"fi;"
#define CONFIG_EXTRA_ENV_SETTINGS \