[PATCH v4 00/11] boot: Support priority for global bootmeths

Tom Rini trini at konsulko.com
Thu Oct 23 00:16:47 CEST 2025


On Wed, 15 Oct 2025 16:44:03 +0100, Simon Glass wrote:

> At present global bootmeths always run first, before all other
> bootmeths. Optimisations in the code take advantage of this, putting
> them at the end, so they can be used once and then forgotten.
> 
> In some cases it is useful to run global bootmeths later in the boot.
> For example, the EFI-bootmgr bootmeth may itself scan devices and the
> network, so running it first can hold up the boot significantly for
> boards not actually relying on EFI-bootmgr to boot.
> 
> [...]

Applied to u-boot/master, thanks!

[01/11] boot: Try all bootmeths on the final partition
        commit: 396c9b59644081a05a8b078eadc2c4aead37160d
[02/11] boot: Add a new test for global bootmeths
        commit: a2301201e36d665c08b51617e1c66133b32d9808
[03/11] boot: Update first_glob_method when dropping a bootmeth
        commit: eca985905d7956ca69e1abfe9ef1d3eb5c64c0a9
[04/11] boot: Add a flag for whether there are global bootmeths
        commit: 0fe6de0dc5b137a2def3a8cc0baa2fb73a3f8541
[05/11] boot: Keep track of which bootmeths have been used
        commit: bef963cb751049cacc86f2754452efadd03ae2f0
[06/11] boot: Support rescanning the global bootmeths
        commit: 8e31093dbce4fb233c6f14520149293b92981b50
[07/11] boot: Only run global bootmeths once each
        commit: e52053c93c128284ccfae11001d7b211bb081aeb
[08/11] boot: Implement a priority for global bootmeths
        commit: 4ce78089b2a615eab466347e8996fbd54a876234
[09/11] boot: Don't change the method count after global bootmeths
        commit: eff1dca96330269c8281b17d00f5d2d0e62bd26e
[10/11] boot: Run global bootmeths after all bootdevs are exhausted
        commit: 060ce66b83e5ed19180103c26e525d85c2a2aa8b
[11/11] boot: Run the EFI bootmgr just before network devices
        commit: 6a56d10fdcf1309d2070b62dc15e80a047da971b
-- 
Tom




More information about the U-Boot mailing list