blspec
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Apr 13 07:01:44 PDT 2026
Hello Alexander,
On 4/10/26 4:02 PM, Alexander Shiyan wrote:
> Hello All.
>
> Can anyone explain how to use the built-in blspec support?
> I would like to try setting up booting via exlinux.conf...
exlinux.conf and bootloader spec are different formats.
Here's a bootloader spec example:
$ cat /loader/entries/imx8mp-evk.conf
title PTXdist - Pengutronix-DistroKit imx8mp-evk
version 6.18
options rootwait
linux /boot/Image
devicetree /boot/imx8mp-evk.dtb
linux-appendroot true
You can have multiple files under /loader/entries and barebox will
iterate over them, extract the compatible of the referenced devicetree,
compare it against its own and then decide what to boot.
The linux-appendroot key is barebox-specific and means barebox should
fixup root= according to the device it found the bootloader spec file
on. This is useful for the case where the bootloader spec files are
directly in the rootfs and not in a separate partition.
Cheers,
Ahmad
>
> Thanks!
>
>
--
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 |
More information about the barebox
mailing list