1. Article purpose[edit source]
This article explains how to configure fastboot mode in U-Boot.
2. Fastboot[edit source]
Fastboot is a protocol that was originally created for Android and is primarily used to modify the flash filesystem via a USB connection from a host computer.
3. Fastboot in U-Boot[edit source]
Fastboot is supported in U-Boot. It's not necessarily enabled by default.
A U-Boot binary, and so a fip, can support only one mass storage device for fastboot. For instance, if a U-Boot is configured to support fastboot on eMMC it cannot be used to program the SD-Card with fastboot.
To enable fastboot or modify fastboot configuration, U-Boot configuration must be modified. This can be done with the SDK.
3.1. With fragments[edit source]
To support fastboot on SD-Card on STM32MP157F-EV1 , following steps have to be followed.
- First of all, mmc device must be identified
SD-Card is on mmc0
- Append the corresponding fragment to the default configuration
cat ../fragment-04-fastboot_mmc0.fb_cfg >> configs/stm32mp15_defconfig
- Build U-Boot as usual with the SDK
make -f $PWD/../Makefile.sdk UBOOT_DEFCONFIG=stm32mp15_defconfig DEVICETREE=stm32mp157f-ev1 all
[edit source]
and make menuconfig