[PATCH 0/5] sandbox: implement cold reset

Heinrich Schuchardt xypron.glpk at gmx.de
Sun Oct 25 07:04:36 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.

Heinrich Schuchardt (5):
  sandbox: eth-raw: do not close the console input
  sandbox: enable poweroff command
  test/py: test poweroff
  sandbox: implement reset
  test: adjust sysreset tests

 arch/Kconfig                              |  3 ++-
 arch/sandbox/cpu/eth-raw-os.c             |  8 ++++----
 arch/sandbox/cpu/os.c                     | 19 ++++++++++++++++++-
 arch/sandbox/cpu/start.c                  | 22 ++++++++++++++++++++++
 arch/sandbox/cpu/state.c                  |  1 +
 arch/sandbox/include/asm/u-boot-sandbox.h |  3 +++
 drivers/sysreset/sysreset_sandbox.c       |  3 +++
 include/os.h                              |  5 +++++
 test/dm/sysreset.c                        | 11 ++++++++---
 test/py/tests/test_sandbox_exit.py        |  8 ++++----
 10 files changed, 70 insertions(+), 13 deletions(-)

--
2.28.0



More information about the U-Boot mailing list