From: Heinrich Schuchardt Date: Mon, 23 Mar 2020 16:01:28 +0100 Subject: [RFC] Sandbox reset In-Reply-To: References: <47945a9a-e16e-345e-59d3-6056d6d90495@gmx.de> Message-ID: <77ee9053-9d48-ada9-17f7-13e1ddf7fdf9@gmx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 3/23/20 2:18 PM, Simon Glass wrote: > Hi Heinrich, > > On Mon, 23 Mar 2020 at 00:40, Heinrich Schuchardt wrote: >> >> Hello Simon, >> >> currently the reset command on the sandbox exits the program. Is there >> any requirement for this behavior in our current testing landscape? For >> testing the UEFI sub-system I would prefer that the reset command >> restarts the sandbox and the poweroff command is used for leaving. > > I think it could be changed to do that. There are a few tests that > need 'bootm' to exit (e.g. vboot) I think. There might be other > places. > > Actually 'poweroff' should move to driver model. The sysreset uclass > has power-off capability. We still have to implement cold reset in sandbox_sysreset_request(). I guess it will take: os_fd_restore(); state_uninit(); dm_unint(); os_free(); and a longjmp() into main(). Anything I missed? Best regards Heinrich