mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/3] use environment partitions in GPT
@ 2024-02-19 14:51 Sascha Hauer
  2024-02-19 14:51 ` [PATCH 1/3] partitions: efi: Allow to create barebox environment partition Sascha Hauer
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Sascha Hauer @ 2024-02-19 14:51 UTC (permalink / raw)
  To: Barebox List

We have specified a GUID for GPTs to be used as barebox environment
partition, but so far we haven't made any use of that. This series
changes that. We now start using environment partitions when we find
them, provided the board code hasn't specified any other partition.

This likely doesn't change much for existing boards because most of
them actually have an environment partition specified. For new boards
however it becomes feasible to not register a partition explicitly.

Something that has hold me back from doing this earlier was that barebox
was not able to create an environment partition itself, so barebox
couldn't persist the environment on an unpartitioned device. Now with
parted support this has changed, so I think it's worth it to give it a
try now.

Sascha

Sascha Hauer (3):
  partitions: efi: Allow to create barebox environment partition
  bootsource: add function to get device_node we booted from
  environment: use barebox environment from GPT partitions

 commands/parted.c       |  2 +-
 common/bootsource.c     | 14 +++++++++
 common/environment.c    | 65 ++++++++++++++++++++++++++++++++++++++++-
 common/oftree.c         |  7 +----
 common/partitions/efi.c |  3 ++
 include/bootsource.h    |  1 +
 include/efi/partition.h |  3 ++
 7 files changed, 87 insertions(+), 8 deletions(-)

-- 
2.39.2




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-02-20 10:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-19 14:51 [PATCH 0/3] use environment partitions in GPT Sascha Hauer
2024-02-19 14:51 ` [PATCH 1/3] partitions: efi: Allow to create barebox environment partition Sascha Hauer
2024-02-19 15:20   ` Ahmad Fatoum
2024-02-20 10:52     ` Sascha Hauer
2024-02-19 14:51 ` [PATCH 2/3] bootsource: add function to get device_node we booted from Sascha Hauer
2024-02-19 14:59   ` Marco Felsch
2024-02-19 15:21     ` Sascha Hauer
2024-02-20 10:56       ` Sascha Hauer
2024-02-19 14:51 ` [PATCH 3/3] environment: use barebox environment from GPT partitions Sascha Hauer
2024-02-19 15:06 ` [PATCH 0/3] use environment partitions in GPT Marco Felsch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox