Boot from specified partition (or FS) UUID without knowing Device ID

Tom Rini trini at konsulko.com
Fri Feb 18 18:07:31 CET 2022


On Fri, Feb 18, 2022 at 02:01:41PM +0700, Tom Hale wrote:

> I want to have a fallback boot situation where boot is first tried from one
> partition, and then from another partition (on a different device) if the
> first partition isn't available (eg, if the first device fails).
> 
> Can I boot from a specific FS UUID or a partition UUID without knowing a
> particular device ID?  (I'm not sure if my devices will always be detected
> in a repeatable order).
> 
> Can fatload be used with only a partition UUID?  Or can I somehow get the
> dev number from the UUID?

As UUIDs are unique per device but our device probe order is (nominally,
there's counter examples) static, this would be a more board specific
way of going than knowing which media is which device.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220218/8299c83c/attachment.sig>


More information about the U-Boot mailing list