[PATCH v2 0/8] sandbox: implement cold reset
Heinrich Schuchardt
xypron.glpk at gmx.de
Tue Oct 27 19:46:56 CET 2020
The command to shut down a device is 'poweroff'. It is a deficit of the
sandbox that it does not support resetting yet but shuts down upong seeing
the 'reset' command.
The patch series implements the cold reset function as a relaunch of the
U-Boot binary via execv().
Unit tests are adjusted.
A bug leading to closing the console input file descriptor is resolved.
Add some of the sandbox API to the HTML documentation.
v2:
use O_CLOEXEC in os_open()
avoid longjmp()
add more comments
add the os.h to the HTML documentation
Heinrich Schuchardt (8):
sandbox: eth-raw: do not close the console input
sandbox: enable poweroff command
test/py: test poweroff
sandbox: use O_CLOEXEC in os_open()
sandbox: implement reset
test: adjust sysreset tests
sandbox: update function descriptions in os.h
doc: add sandbox API
arch/Kconfig | 3 +-
arch/sandbox/cpu/eth-raw-os.c | 8 +-
arch/sandbox/cpu/os.c | 16 +-
arch/sandbox/cpu/start.c | 26 +++
arch/sandbox/cpu/state.c | 1 +
arch/sandbox/include/asm/u-boot-sandbox.h | 10 +
doc/api/index.rst | 1 +
doc/api/sandbox.rst | 9 +
drivers/sysreset/sysreset_sandbox.c | 3 +
include/os.h | 236 +++++++++++++---------
test/dm/sysreset.c | 11 +-
test/py/tests/test_sandbox_exit.py | 8 +-
12 files changed, 227 insertions(+), 105 deletions(-)
create mode 100644 doc/api/sandbox.rst
--
2.28.0
More information about the U-Boot
mailing list