[Buildroot] [PATCH 4/4] stm32mp157c_dk2: fix U-Boot corruption on the first boot

Sergey Matyukevich geomatsi at gmail.com
Sun Jul 4 15:27:28 UTC 2021


Hello Thomas,

> > Both trusted and basic images successfully boot only once. Subsequent
> > boot attempts fail to reach U-Boot. The root cause turns out to be in
> > U-Boot corruption during the first boot. The stm32mp1 U-Boot stores its
> > environment at the end of GPT partition named 'ssbl' since v2020.10-rc2.
> > However Buildroot genimage template for stm32mp157 boards creates 'ssbl'
> > partition w/o extra space for U-Boot primary and redundant environments.
> > Add post-build script that appends placeholder for environment to U-Boot
> > image.
> > 
> > Signed-off-by: Sergey Matyukevich <geomatsi at gmail.com>
> 
> What about making the ssbl partition larger in the genimage
> configuration file ?

Appending env placeholders looked a bit more ergonomic and future proof
to me. But just making 'ssbl' larger also works fine. 

Regards,
Sergey



More information about the buildroot mailing list