[PATCH v7 08/11] test: Try to shut down the lab console gracefully

Simon Glass sjg at chromium.org
Thu Oct 31 19:02:26 CET 2024


Hi Tom,

On Wed, 30 Oct 2024 at 00:53, Tom Rini <trini at konsulko.com> wrote:
>
> On Wed, Oct 09, 2024 at 07:51:42PM -0600, Simon Glass wrote:
>
> > Send the Labgrid quit characters to ask it to exit gracefully. This
> > typically allows it to power off the board being used. Only do this when
> > labgrid is being used (detected with an env var).
> >
> > If that doesn't work, try the less graceful approach.
> >
> > Signed-off-by: Simon Glass <sjg at chromium.org>
>
> I forget why we need this, and not just have the release hook power off
> the board, as part of releasing it.

It allows labgrid to exit gracefully, rather than being killed. This
allows it to do the 'off' part of strategy (which may power it off)
and release the device. Without this, every board disconnect leaves
the board in a bad state, requiring separate steps to recover the
board, then power it off.

For your lab, this won't be used, since USE_LABGRID is not set.

Regards,
SImon


More information about the U-Boot mailing list