[OSS-Tools] [PATCH 2/4] state: implement helper to find device path from diskuuid

2022-01-24 Thread Michael Olbrich
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 +

[OSS-Tools] [PATCH 0/4] improve barebox-state support on EFI system

2022-01-24 Thread Michael Olbrich
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

[OSS-Tools] [PATCH 3/4] state: support backend-diskuuid / backend-offset

2022-01-24 Thread Michael Olbrich
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

[OSS-Tools] [PATCH 4/4] state: automatically find state.dtb in the ESP

2022-01-24 Thread Michael Olbrich
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 ---

[OSS-Tools] [PATCH 1/4] state: support deep probe

2022-01-24 Thread 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