From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: oss-tools@pengutronix.de
Subject: [OSS-Tools] [PATCH v2 0/8] state: allow lookup of barebox state partition by Type GUID
Date: Wed, 7 Jun 2023 14:16:20 +0200 [thread overview]
Message-ID: <20230607121628.3180139-1-a.fatoum@pengutronix.de> (raw)
This implements the binding extension introduced to barebox here:
https://lore.barebox.org/barebox/20230607120714.3083182-1-a.fatoum@pengutronix.de/T/#t
With this, barebox,state backend can optionally point at a device
instead of a partition. If this device is GPT-partitioned and has
a partition with a specific partition type GUID of
4778ed65-bf42-45fa-9c5b-287a1dc4aab1
It will be taken.
This series also fixes an annoying issue of barebox-state triggering
udev on every access, because the root block device corresponding
to the device tree node was opened r/w.
barebox-state will now open the disk read-only if possible and if
a partition exists that fits the barebox state location, it will
be opened instead.
v1 -> v2:
- added Uwe's Reviewed-by
- fix typo spotted by Roland
- Rebase on top of next
- Sync with v2 of barebox series:
- fix typo (Sascha)
- define new cdev_find_child_by_gpt_typeuuid helper (Marco)
- handle case of iterating over partitions before disk in
cdev_from_block_device
Ahmad Fatoum (8):
state: backend: direct: open block device in read-only mode if
possible
libdt: factor out u64 sysattr parsing into helper
libdt: drop broken if-branch
libdt: factor out __of_cdev_find helper
libdt: use block device partition instead of parent if found
state: align with barebox use of of_cdev_find
libdt: use of_find_device_by_uuid for partuuid lookup
state: allow lookup of barebox state partition by Type GUID
src/barebox-state/backend_bucket_direct.c | 5 +-
src/barebox-state/backend_storage.c | 2 +-
src/barebox-state/state.c | 52 +++-
src/barebox-state/state.h | 3 +-
src/dt/common.h | 8 +
src/dt/dt.h | 7 +
src/libdt-utils.sym | 4 +
src/libdt.c | 336 ++++++++++++++++++----
src/linux/uuid.h | 24 ++
src/state.h | 4 +
10 files changed, 368 insertions(+), 77 deletions(-)
create mode 100644 src/linux/uuid.h
--
2.39.2
next reply other threads:[~2023-06-07 12:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-07 12:16 Ahmad Fatoum [this message]
2023-06-07 12:16 ` [OSS-Tools] [PATCH v2 1/8] state: backend: direct: open block device in read-only mode if possible Ahmad Fatoum
2023-06-07 12:16 ` [OSS-Tools] [PATCH v2 2/8] libdt: factor out u64 sysattr parsing into helper Ahmad Fatoum
2023-06-07 12:16 ` [OSS-Tools] [PATCH v2 3/8] libdt: drop broken if-branch Ahmad Fatoum
2023-06-07 12:16 ` [OSS-Tools] [PATCH v2 4/8] libdt: factor out __of_cdev_find helper Ahmad Fatoum
2023-06-07 12:16 ` [OSS-Tools] [PATCH v2 5/8] libdt: use block device partition instead of parent if found Ahmad Fatoum
2023-06-07 12:16 ` [OSS-Tools] [PATCH v2 6/8] state: align with barebox use of of_cdev_find Ahmad Fatoum
2023-06-07 12:16 ` [OSS-Tools] [PATCH v2 7/8] libdt: use of_find_device_by_uuid for partuuid lookup Ahmad Fatoum
2023-06-07 12:16 ` [OSS-Tools] [PATCH v2 8/8] state: allow lookup of barebox state partition by Type GUID Ahmad Fatoum
2023-06-12 11:52 ` [OSS-Tools] [PATCH v2 0/8] " Ahmad Fatoum
2023-07-03 12:23 ` Roland Hieber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230607121628.3180139-1-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=oss-tools@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox