Signed-off-by: Michael Olbrich
---
I didn't find a good place for this helper. It has nothing to do with
device trees and I didn't want to add it to code that is shared with
barebox. If there is a better place for it then I don't mind moving it.
Michael
Makefile.am| 1 +
Hi,
This adds support for backend-diskuuid / backend-offset. The corresponding
barebox patches can be found here:
https://lore.barebox.org/barebox/20220124100458.2924679-1-m.olbr...@pengutronix.de/
The mount point for the ESP is quite standardized. So let barebox-state
look there if nothing is
On some platforms (e.g. EFI on x86_64) the state backend can only be
selected by a partiton UUID. On existing devices with a DOS partition
table, there may be no spare partition available for state.
This makes it possible to select the disk via UUID. The exact position is
defined by an explicitly
Systemd mounts the EFI System Partition (ESP) to /boot or /efi.
So look there for the state.dtb when the devicetree in sysfs/procfs is
not available.
This way barebox-state can be used on EFI systems without manually
specifying the devicetree file.
Signed-off-by: Michael Olbrich
---
This ports the following barebox commit:
|commit ac71031705cedd53570b8b0a4a6b63473f7127c3
|Author: Ahmad Fatoum
|Date: Mon Jun 28 08:45:14 2021 +0200
|
|state: support deep probe
|
|With deep probe, drivers registered before of_populate_initcall must
|themselves take care to ensure