mbox series

[v6,0/7] Add barebox bootloader support (and testing)

Message ID 20240912091857.2631678-1-ejo@pengutronix.de
Headers show
Series Add barebox bootloader support (and testing) | expand

Message

Enrico Jörns Sept. 12, 2024, 9:18 a.m. UTC
This adds support for the barebox bootloader (and tools) to oe-core.

In order to have proper testing, this extends oe-selftest to allow
basic testing of bootloaders. While at it, cover both u-boot and barebox.

v6:
* replace barebox.inc by barebox.bbclass (move content of
  barebox-common.inc into .bbclass and .bb files)
* support for UNPACKDIR

Enrico Jorns (5):
  barebox: set default BAREBOX_CONFIG for qemu machines
  oeqa/utils/qemurunner: support ignoring vt100 escape sequences
  oeqa: support passing custom boot patterns to runqemu
  oeqa/selftest/cases: add basic u-boot test
  oeqa/selftest/cases: add basic barebox tests

Marco Felsch (2):
  barebox: add initial support
  barebox-tools: add initial barebox tools support

 meta/classes-recipe/barebox.bbclass           | 160 ++++++++++++++++++
 meta/conf/distro/include/maintainers.inc      |   2 +
 meta/conf/machine/qemuarm.conf                |   1 +
 meta/conf/machine/qemuarm64.conf              |   1 +
 meta/conf/machine/qemux86-64.conf             |   1 +
 meta/lib/oeqa/selftest/cases/barebox.py       |  43 +++++
 meta/lib/oeqa/selftest/cases/uboot.py         |  42 +++++
 meta/lib/oeqa/targetcontrol.py                |   5 +-
 meta/lib/oeqa/utils/commands.py               |   5 +-
 meta/lib/oeqa/utils/qemurunner.py             |   6 +-
 .../barebox/barebox-tools_2024.08.0.bb        |  59 +++++++
 meta/recipes-bsp/barebox/barebox_2024.08.0.bb |  14 ++
 12 files changed, 333 insertions(+), 6 deletions(-)
 create mode 100644 meta/classes-recipe/barebox.bbclass
 create mode 100644 meta/lib/oeqa/selftest/cases/barebox.py
 create mode 100644 meta/lib/oeqa/selftest/cases/uboot.py
 create mode 100644 meta/recipes-bsp/barebox/barebox-tools_2024.08.0.bb
 create mode 100644 meta/recipes-bsp/barebox/barebox_2024.08.0.bb

Comments

Richard Purdie Sept. 18, 2024, 10:11 a.m. UTC | #1
On Thu, 2024-09-12 at 11:18 +0200, Enrico Jörns via lists.openembedded.org wrote:
> This adds support for the barebox bootloader (and tools) to oe-core.
> 
> In order to have proper testing, this extends oe-selftest to allow
> basic testing of bootloaders. While at it, cover both u-boot and barebox.
> 
> v6:
> * replace barebox.inc by barebox.bbclass (move content of
>   barebox-common.inc into .bbclass and .bb files)
> * support for UNPACKDIR
> 
> Enrico Jorns (5):
>   barebox: set default BAREBOX_CONFIG for qemu machines
>   oeqa/utils/qemurunner: support ignoring vt100 escape sequences
>   oeqa: support passing custom boot patterns to runqemu
>   oeqa/selftest/cases: add basic u-boot test
>   oeqa/selftest/cases: add basic barebox tests
> 
> Marco Felsch (2):
>   barebox: add initial support
>   barebox-tools: add initial barebox tools support

We had some testing capacity so I ran this through automated testing.
The one issue that showed up so far was:

https://valkyrie.yoctoproject.org/#/builders/29/builds/174/steps/13/logs/warnings

which is at least easily fixed! The rest of the build is still going.

Cheers,

Richard
Enrico Jörns Sept. 18, 2024, 10:39 a.m. UTC | #2
Hi Richard,

Am Mittwoch, dem 18.09.2024 um 11:11 +0100 schrieb Richard Purdie:
> On Thu, 2024-09-12 at 11:18 +0200, Enrico Jörns via lists.openembedded.org wrote:
> > This adds support for the barebox bootloader (and tools) to oe-core.
> > 
> > In order to have proper testing, this extends oe-selftest to allow
> > basic testing of bootloaders. While at it, cover both u-boot and barebox.
> > 
> > v6:
> > * replace barebox.inc by barebox.bbclass (move content of
> >   barebox-common.inc into .bbclass and .bb files)
> > * support for UNPACKDIR
> > 
> > Enrico Jorns (5):
> >   barebox: set default BAREBOX_CONFIG for qemu machines
> >   oeqa/utils/qemurunner: support ignoring vt100 escape sequences
> >   oeqa: support passing custom boot patterns to runqemu
> >   oeqa/selftest/cases: add basic u-boot test
> >   oeqa/selftest/cases: add basic barebox tests
> > 
> > Marco Felsch (2):
> >   barebox: add initial support
> >   barebox-tools: add initial barebox tools support
> 
> We had some testing capacity so I ran this through automated testing.
> The one issue that showed up so far was:
> 
> https://valkyrie.yoctoproject.org/#/builders/29/builds/174/steps/13/logs/warnings
> 
> which is at least easily fixed! The rest of the build is still going.

thanks for the test run and the first result.

Indeed, looks easily fixable 
Richard Purdie Sept. 18, 2024, 11:21 a.m. UTC | #3
On Wed, 2024-09-18 at 12:39 +0200, Enrico Jörns wrote:
> Hi Richard,
> 
> Am Mittwoch, dem 18.09.2024 um 11:11 +0100 schrieb Richard Purdie:
> > On Thu, 2024-09-12 at 11:18 +0200, Enrico Jörns via
> > lists.openembedded.org wrote:
> > > This adds support for the barebox bootloader (and tools) to oe-
> > > core.
> > > 
> > > In order to have proper testing, this extends oe-selftest to
> > > allow
> > > basic testing of bootloaders. While at it, cover both u-boot and
> > > barebox.
> > > 
> > > v6:
> > > * replace barebox.inc by barebox.bbclass (move content of
> > >   barebox-common.inc into .bbclass and .bb files)
> > > * support for UNPACKDIR
> > > 
> > > Enrico Jorns (5):
> > >   barebox: set default BAREBOX_CONFIG for qemu machines
> > >   oeqa/utils/qemurunner: support ignoring vt100 escape sequences
> > >   oeqa: support passing custom boot patterns to runqemu
> > >   oeqa/selftest/cases: add basic u-boot test
> > >   oeqa/selftest/cases: add basic barebox tests
> > > 
> > > Marco Felsch (2):
> > >   barebox: add initial support
> > >   barebox-tools: add initial barebox tools support
> > 
> > We had some testing capacity so I ran this through automated
> > testing.
> > The one issue that showed up so far was:
> > 
> > https://valkyrie.yoctoproject.org/#/builders/29/builds/174/steps/13/logs/warnings
> > 
> > which is at least easily fixed! The rest of the build is still
> > going.
> 
> thanks for the test run and the first result.
> 
> Indeed, looks easily fixable 
Enrico Jörns Sept. 18, 2024, 11:45 a.m. UTC | #4
Am Mittwoch, dem 18.09.2024 um 12:21 +0100 schrieb Richard Purdie:
> On Wed, 2024-09-18 at 12:39 +0200, Enrico Jörns wrote:
> > Hi Richard,
> > 
> > Am Mittwoch, dem 18.09.2024 um 11:11 +0100 schrieb Richard Purdie:
> > > On Thu, 2024-09-12 at 11:18 +0200, Enrico Jörns via
> > > lists.openembedded.org wrote:
> > > > This adds support for the barebox bootloader (and tools) to oe-
> > > > core.
> > > > 
> > > > In order to have proper testing, this extends oe-selftest to
> > > > allow
> > > > basic testing of bootloaders. While at it, cover both u-boot and
> > > > barebox.
> > > > 
> > > > v6:
> > > > * replace barebox.inc by barebox.bbclass (move content of
> > > >   barebox-common.inc into .bbclass and .bb files)
> > > > * support for UNPACKDIR
> > > > 
> > > > Enrico Jorns (5):
> > > >   barebox: set default BAREBOX_CONFIG for qemu machines
> > > >   oeqa/utils/qemurunner: support ignoring vt100 escape sequences
> > > >   oeqa: support passing custom boot patterns to runqemu
> > > >   oeqa/selftest/cases: add basic u-boot test
> > > >   oeqa/selftest/cases: add basic barebox tests
> > > > 
> > > > Marco Felsch (2):
> > > >   barebox: add initial support
> > > >   barebox-tools: add initial barebox tools support
> > > 
> > > We had some testing capacity so I ran this through automated
> > > testing.
> > > The one issue that showed up so far was:
> > > 
> > > https://valkyrie.yoctoproject.org/#/builders/29/builds/174/steps/13/logs/warnings
> > > 
> > > which is at least easily fixed! The rest of the build is still
> > > going.
> > 
> > thanks for the test run and the first result.
> > 
> > Indeed, looks easily fixable 
Richard Purdie Sept. 18, 2024, 9:37 p.m. UTC | #5
On Wed, 2024-09-18 at 13:45 +0200, Enrico Jörns wrote:
> Am Mittwoch, dem 18.09.2024 um 12:21 +0100 schrieb Richard Purdie:
> > On Wed, 2024-09-18 at 12:39 +0200, Enrico Jörns wrote:
> > > Hi Richard,
> > > 
> > > Am Mittwoch, dem 18.09.2024 um 11:11 +0100 schrieb Richard
> > > Purdie:
> > > > On Thu, 2024-09-12 at 11:18 +0200, Enrico Jörns via
> > > > lists.openembedded.org wrote:
> > > > > This adds support for the barebox bootloader (and tools) to
> > > > > oe-
> > > > > core.
> > > > > 
> > > > > In order to have proper testing, this extends oe-selftest to
> > > > > allow
> > > > > basic testing of bootloaders. While at it, cover both u-boot
> > > > > and
> > > > > barebox.
> > > > > 
> > > > > v6:
> > > > > * replace barebox.inc by barebox.bbclass (move content of
> > > > >   barebox-common.inc into .bbclass and .bb files)
> > > > > * support for UNPACKDIR
> > > > > 
> > > > > Enrico Jorns (5):
> > > > >   barebox: set default BAREBOX_CONFIG for qemu machines
> > > > >   oeqa/utils/qemurunner: support ignoring vt100 escape
> > > > > sequences
> > > > >   oeqa: support passing custom boot patterns to runqemu
> > > > >   oeqa/selftest/cases: add basic u-boot test
> > > > >   oeqa/selftest/cases: add basic barebox tests
> > > > > 
> > > > > Marco Felsch (2):
> > > > >   barebox: add initial support
> > > > >   barebox-tools: add initial barebox tools support
> > > > 
> > > > We had some testing capacity so I ran this through automated
> > > > testing.
> > > > The one issue that showed up so far was:
> > > > 
> > > > https://valkyrie.yoctoproject.org/#/builders/29/builds/174/steps/13/logs/warnings
> > > > 
> > > > which is at least easily fixed! The rest of the build is still
> > > > going.
> > > 
> > > thanks for the test run and the first result.
> > > 
> > > Indeed, looks easily fixable 
Enrico Jörns Sept. 19, 2024, 9:47 a.m. UTC | #6
Am Mittwoch, dem 18.09.2024 um 22:37 +0100 schrieb Richard Purdie:
> On Wed, 2024-09-18 at 13:45 +0200, Enrico Jörns wrote:
> > Am Mittwoch, dem 18.09.2024 um 12:21 +0100 schrieb Richard Purdie:
> > > On Wed, 2024-09-18 at 12:39 +0200, Enrico Jörns wrote:
> > > > Hi Richard,
> > > > 
> > > > Am Mittwoch, dem 18.09.2024 um 11:11 +0100 schrieb Richard
> > > > Purdie:
> > > > > On Thu, 2024-09-12 at 11:18 +0200, Enrico Jörns via
> > > > > lists.openembedded.org wrote:
> > > > > > This adds support for the barebox bootloader (and tools) to
> > > > > > oe-
> > > > > > core.
> > > > > > 
> > > > > > In order to have proper testing, this extends oe-selftest to
> > > > > > allow
> > > > > > basic testing of bootloaders. While at it, cover both u-boot
> > > > > > and
> > > > > > barebox.
> > > > > > 
> > > > > > v6:
> > > > > > * replace barebox.inc by barebox.bbclass (move content of
> > > > > >   barebox-common.inc into .bbclass and .bb files)
> > > > > > * support for UNPACKDIR
> > > > > > 
> > > > > > Enrico Jorns (5):
> > > > > >   barebox: set default BAREBOX_CONFIG for qemu machines
> > > > > >   oeqa/utils/qemurunner: support ignoring vt100 escape
> > > > > > sequences
> > > > > >   oeqa: support passing custom boot patterns to runqemu
> > > > > >   oeqa/selftest/cases: add basic u-boot test
> > > > > >   oeqa/selftest/cases: add basic barebox tests
> > > > > > 
> > > > > > Marco Felsch (2):
> > > > > >   barebox: add initial support
> > > > > >   barebox-tools: add initial barebox tools support
> > > > > 
> > > > > We had some testing capacity so I ran this through automated
> > > > > testing.
> > > > > The one issue that showed up so far was:
> > > > > 
> > > > > https://valkyrie.yoctoproject.org/#/builders/29/builds/174/steps/13/logs/warnings
> > > > > 
> > > > > which is at least easily fixed! The rest of the build is still
> > > > > going.
> > > > 
> > > > thanks for the test run and the first result.
> > > > 
> > > > Indeed, looks easily fixable 
Richard Purdie Sept. 19, 2024, 10:01 a.m. UTC | #7
On Thu, 2024-09-19 at 11:47 +0200, Enrico Jörns wrote:
> Am Mittwoch, dem 18.09.2024 um 22:37 +0100 schrieb Richard Purdie:
> > On Wed, 2024-09-18 at 13:45 +0200, Enrico Jörns wrote:
> > > Am Mittwoch, dem 18.09.2024 um 12:21 +0100 schrieb Richard Purdie:
> > > > On Wed, 2024-09-18 at 12:39 +0200, Enrico Jörns wrote:
> > > > > Hi Richard,
> > > > > 
> > > > > Am Mittwoch, dem 18.09.2024 um 11:11 +0100 schrieb Richard
> > > > > Purdie:
> > > > > > On Thu, 2024-09-12 at 11:18 +0200, Enrico Jörns via
> > > > > > lists.openembedded.org wrote:
> > > > > > > This adds support for the barebox bootloader (and tools) to
> > > > > > > oe-
> > > > > > > core.
> > > > > > > 
> > > > > > > In order to have proper testing, this extends oe-selftest to
> > > > > > > allow
> > > > > > > basic testing of bootloaders. While at it, cover both u-boot
> > > > > > > and
> > > > > > > barebox.
> > > > > > > 
> > > > > > > v6:
> > > > > > > * replace barebox.inc by barebox.bbclass (move content of
> > > > > > >   barebox-common.inc into .bbclass and .bb files)
> > > > > > > * support for UNPACKDIR
> > > > > > > 
> > > > > > > Enrico Jorns (5):
> > > > > > >   barebox: set default BAREBOX_CONFIG for qemu machines
> > > > > > >   oeqa/utils/qemurunner: support ignoring vt100 escape
> > > > > > > sequences
> > > > > > >   oeqa: support passing custom boot patterns to runqemu
> > > > > > >   oeqa/selftest/cases: add basic u-boot test
> > > > > > >   oeqa/selftest/cases: add basic barebox tests
> > > > > > > 
> > > > > > > Marco Felsch (2):
> > > > > > >   barebox: add initial support
> > > > > > >   barebox-tools: add initial barebox tools support
> > > > > > 
> > > > > > We had some testing capacity so I ran this through automated
> > > > > > testing.
> > > > > > The one issue that showed up so far was:
> > > > > > 
> > > > > > https://valkyrie.yoctoproject.org/#/builders/29/builds/174/steps/13/logs/warnings
> > > > > > 
> > > > > > which is at least easily fixed! The rest of the build is still
> > > > > > going.
> > > > > 
> > > > > thanks for the test run and the first result.
> > > > > 
> > > > > Indeed, looks easily fixable