From: Neil Armstrong Date: Fri, 30 Oct 2020 16:21:09 +0100 Subject: [PATCH] configs: meson64_android: don't show logo on ROM USB boot In-Reply-To: <20201030150345.121429-1-mkorpershoek@baylibre.com> References: <20201030150345.121429-1-mkorpershoek@baylibre.com> Message-ID: <19feb844-3fd9-ebe8-6a3a-6d18de201e6e@baylibre.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 30/10/2020 16:03, Mattijs Korpershoek wrote: > From: Guillaume La Roque > > 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 > Signed-off-by: Guillaume La Roque > Signed-off-by: Mattijs Korpershoek > --- > include/configs/meson64_android.h | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) > > diff --git a/include/configs/meson64_android.h b/include/configs/meson64_android.h > index 8fff915b50a4..c47d51c85368 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 \ > Applied to u-boot-amlogic