]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(st): don't try to read boot partition on SD cards
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 10 Mar 2022 21:21:55 +0000 (22:21 +0100)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 11 Mar 2022 09:39:57 +0000 (10:39 +0100)
commit9492b391a35c66e1e7630e95347259191b28314d
treecc505e4270abb0ebce6e63aa71e87c1023ec0c6c
parent7c6d460efffa3bfce1ad2a16cd1b5d6fc8801f4c
fix(st): don't try to read boot partition on SD cards

When trying to boot from an SD card with STM32MP_EMMC_BOOT enabled,
booting fails with:

ERROR:   Got unexpected value for active boot partition, 0
ASSERT: plat/st/common/bl2_stm32_io_storage.c:285

because SD cards don't provide a boot partition. So only try reading
from such a partition when booting from eMMC.

Fixes: 214c8a8d08b2 ("feat(plat/st): add STM32MP_EMMC_BOOT option")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Change-Id: I354b737a3ae3ea577e83dfeb7096df22275d852d
plat/st/common/bl2_stm32_io_storage.c