mbox series

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

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

Message

Enrico Jörns Oct. 11, 2024, 12:01 p.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 barebox and u-boot.

v9:
  * move BAREBOX_CONFIG hunk back to corresponding patch

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       |  44 +++++
 meta/lib/oeqa/selftest/cases/distrodata.py    |   2 +-
 meta/lib/oeqa/selftest/cases/uboot.py         |  43 +++++
 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 |  15 ++
 13 files changed, 337 insertions(+), 7 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

Antonin Godard Dec. 11, 2024, 2:19 p.m. UTC | #1
Hello Enrico,

Since this patch series introduces a new class for compiling barebox-based
bootloaders, it would be nice to have some documentation for it.

Openembedded-core classes are documented in yocto-docs[1], and documentation
patches are sent to docs@lists.yoctoproject.org.

Could anyone, preferably the author of the class, take some time to document the
usage of the class in yocto-docs/documentation/ref-manual/classes.rst, and the
variables the class defines (especially the ones that can be overridden for user
customization) in yocto-docs/documentation/ref-manual/variables.rst?

That would be greatly appreciated. I can help if needed.

[1]: https://git.yoctoproject.org/yocto-docs

Regards,
Antonin

--
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Enrico Jörns Dec. 18, 2024, 1:32 p.m. UTC | #2
Hi Antonin,

Am Mittwoch, dem 11.12.2024 um 15:19 +0100 schrieb Antonin Godard:
> Hello Enrico,
> 
> Since this patch series introduces a new class for compiling barebox-based
> bootloaders, it would be nice to have some documentation for it.
> 
> Openembedded-core classes are documented in yocto-docs[1], and documentation
> patches are sent to docs@lists.yoctoproject.org.
> 
> Could anyone, preferably the author of the class, take some time to document the
> usage of the class in yocto-docs/documentation/ref-manual/classes.rst, and the
> variables the class defines (especially the ones that can be overridden for user
> customization) in yocto-docs/documentation/ref-manual/variables.rst?

thank you for reaching out regarding the documentation of the barebox.bbclass.

I was on vacation last week and still have some year-end tasks to take care of
this week, so I'm not sure how soon I'll get to it.
However, I’m happy to contribute the corresponding class documentation.

> That would be greatly appreciated. I can help if needed.

Thanks a lot! I'll get back to you in case something is unclear (e.g. where to put which
information). Luckily all the documentation is rst which I am quite familiar with 
Antonin Godard Dec. 20, 2024, 12:11 p.m. UTC | #3
Hi Enrico,

On Wed Dec 18, 2024 at 2:32 PM CET, Enrico Jörns wrote:
> Hi Antonin,
>
> Am Mittwoch, dem 11.12.2024 um 15:19 +0100 schrieb Antonin Godard:
>> Hello Enrico,
>> 
>> Since this patch series introduces a new class for compiling barebox-based
>> bootloaders, it would be nice to have some documentation for it.
>> 
>> Openembedded-core classes are documented in yocto-docs[1], and documentation
>> patches are sent to docs@lists.yoctoproject.org.
>> 
>> Could anyone, preferably the author of the class, take some time to document the
>> usage of the class in yocto-docs/documentation/ref-manual/classes.rst, and the
>> variables the class defines (especially the ones that can be overridden for user
>> customization) in yocto-docs/documentation/ref-manual/variables.rst?
>
> thank you for reaching out regarding the documentation of the barebox.bbclass.
>
> I was on vacation last week and still have some year-end tasks to take care of
> this week, so I'm not sure how soon I'll get to it.

Ideally, some time before the next Walnascar release would be great.

I've created a bug to track this:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=15702.

> However, I’m happy to contribute the corresponding class documentation.
>
>> That would be greatly appreciated. I can help if needed.
>
> Thanks a lot! I'll get back to you in case something is unclear (e.g. where to put which
> information). Luckily all the documentation is rst which I am quite familiar with