mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* barebox-bringup utility
@ 2026-01-05 14:08 Sascha Hauer
  2026-01-05 14:40 ` Ahmad Fatoum
  0 siblings, 1 reply; 3+ messages in thread
From: Sascha Hauer @ 2026-01-05 14:08 UTC (permalink / raw)
  To: Barebox List

Hi,

Claude Code struggles to to bring up barebox properly with
labgrid-pytest and running barebox on real hardware with the barebox
integrated pytest infrastructure is also not easy as there are several
assumptions about QEMU in it. I thought letting Claude write a small
python tool to start barebox in QEMU. It turned out to be useful for
interactive usage as well, so here it is:

https://github.com/saschahauer/barebox-bringup

It makes starting barebox as easy as:

barebox-bringup -c ~/test/arm/imx6s-riotboard.yaml
barebox-bringup -c test/arm/virt@multi_v7_defconfig.yaml

It will open a console which captures the barebox output from the start.
The tool has options to capture to a log file and to accept input from a
fifo.

At least with real hardware the closest I could get was:

labgrid-client -c ~/test/arm/imx6s-riotboard.yaml -s barebox console

This loses output though, as the console is only started after barebox
has already started, so I usually had running a permanent console on
another terminal.

Maybe there are ways to improve the barebox pytest or to improve labgrid
itself, but in the meantime somebody might find this useful as well.

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-01-06  7:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-05 14:08 barebox-bringup utility Sascha Hauer
2026-01-05 14:40 ` Ahmad Fatoum
2026-01-06  7:11   ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox