summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/board/env
Commit message (Collapse)AuthorAgeFilesLines
* sandbox: ship sample environmentAhmad Fatoum2021-07-031-13/+0
| | | | | | | | | | | | | | | | | | | | 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@pengutronix.de> Link: https://lore.barebox.org/20210629063730.7001-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* sandbox: state: reword warning about initial state errorsAhmad Fatoum2021-04-131-4/+5
| | | | | | | | | The message didn't explicitly say it is expected behavior to not find barebox-state on startup. Reword the message to make this clearer. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Link: https://lore.pengutronix.de/20210404111831.592821-2-ahmad@a3f.at Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* sandbox: env: set nv.autoboot=abort to drop to shellAhmad Fatoum2021-04-131-0/+1
| | | | | | | | | | | | | | barebox on sandbox defaults to network boot, which fails either due to missing TAP support (like not having CAP_NET_ADMIN) or because the files couldn't be fetched. Arguably, the most user-friendly thing is to drop to shell. Do so. Users can still override nv.autoboot if they want to boot differently. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.pengutronix.de/20210404111831.592821-1-ahmad@a3f.at Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* sandbox: dts: include state node by defaultAhmad Fatoum2020-10-131-0/+12
| | | | | | | | | | | | For testing barebox-state, it would be nice to have a state pre-configured out-of-the-box. Add one to sandbox.dts. Because the barebox message on an non-configured state can looks quite scary, add an init script that tells the user that all is well. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* sandbox: update to new environmentMichael Grzeschik2014-02-033-15/+11
| | | | | Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* move boards to arch/<architecure>/boardsJean-Christophe PLAGNIOL-VILLARD2010-07-232-0/+15
this will allow each arch to handle the boards more simply and depending on there need the env var BOARD will refer to the current board dirent for sandbox as we have only one board the board dirent is arch/sandbox/board Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>