[PATCH v2] sandbox: ship sample environment

Sascha Hauer sha at pengutronix.de
Sat Jul 3 13:06:58 PDT 2021


On Tue, Jun 29, 2021 at 08:37:30AM +0200, Ahmad Fatoum wrote:
> The idea of the stickypage was to have a 4K memory region persistent
> over resets. This region was implemented as mmap of a temporary hostfile,
> which was created on first barebox start and maintained over resets.
> 
> Usability was a bit lacking however:
>   - The temporary files weren't deleted
>   - state always showed warnings and errors on first boot. The banner
>     telling users to ignore this wasn't best user experience
>   - In the same vein, the power driver had logic to handle a fresh
>     (zeroed) stickypage and interpret that as POR boot
> 
> We can avoid all that, by just shipping a default stickypage and
> referencing that from DT. Do that.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> ---
> v1 -> v2:
>   - compile stickypage at build time instead of shipping it in binary
>     form. Sascha reports issues with binary patche handling outside git.
> ---

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list