Sandbox reset
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.
Best regards
Heinrich
Hi Heinrich,
Quoted 7 lines · Heinrich Schuchardt
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.
Regards,
Simon
Quoted 11 lines · Simon Glass
Hi Heinrich,
Quoted 7 lines · Heinrich Schuchardt
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.
Quoted 6 lines
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
Hi Heinrich,
Quoted 24 lines · Heinrich Schuchardt
Quoted 11 lines · Simon Glass
Hi Heinrich,
Quoted 7 lines · Heinrich Schuchardt
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.
Quoted 6 lines
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:
Quoted 8 lines
os_fd_restore();state_uninit();dm_unint();os_free();and a
longjmp()intomain().Anything I missed?
Sounds right. Not to jump into the weeds, but it might be good to put that code next to the current main().
Regards,
Simon