On Thu, Dec 11, 2025 at 10:00:45PM +0100, Ahmad Fatoum wrote: > Our current of global.boot.default expanding to bootsource doesn't work > when booting from boot-only flash.
I wondered what boot-only flash is. Maybe better "flash containing only the bootloader" > +Generic Boot Targets > +^^^^^^^^^^^^^^^^^^^^ > + > +A single boot target can yield multiple entries, e.g., one for each > +bootloader spec file detected at runtime as described in the next section. > + > +There is also a number of generic default boot targets available, when > +``CONFIG_BOOT_DEFAULTS`` is enabled. These expands to a single device at > most: > + > +* ``bootsource``: expands to the device barebox booted from > +* ``diskuuid.*``: expands to the device with specified ``*`` diskuuid > + > +For these targets that expand to a single device, a partition can also be > specified, > +e.g., ``bootsource.esp`` to reference the partition with the ``esp`` > partition > +label within the bootsource. > + > +Following target can expand to multiple devices: > + > +* ``storage.removable``: expands to built-in storage devices, like USB sticks s/built-in/removable/ "like USB sticks or SD cards in slots" to better differentiate against eMMC. > +* ``storage.builtin``: expands to built-in storage devices, like eMMC > +* ``storage``: expands to all of the above ``storage.*`` These are explained in the boot command help text. Please add these new targets there 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 |
