From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: "Christian Marangi (Ansuel)" <ansuelsmth@gmail.com>
Cc: Ulf Hansson <ulf.hansson@linaro.org>,
Riyan Dhiman <riyandhiman14@gmail.com>,
linux-doc@vger.kernel.org,
Linus Walleij <linus.walleij@linaro.org>,
Dominique Martinet <dominique.martinet@atmark-techno.com>,
Li Zhijian <lizhijian@fujitsu.com>,
Daniel Golle <daniel@makrotopia.org>,
Miquel Raynal <miquel.raynal@bootlin.com>,
Christoph Hellwig <hch@lst.de>, Rob Herring <robh@kernel.org>,
Jonathan Corbet <corbet@lwn.net>,
Christoph Hellwig <hch@infradead.org>,
Jorge Ramirez-Ortiz <jorge@foundries.io>,
Lorenzo Bianconi <lorenzo@kernel.org>,
devicetree@vger.kernel.org, Conor Dooley <conor+dt@kernel.org>,
Ming Lei <ming.lei@redhat.com>,
linux-block@vger.kernel.org, Avri Altman <avri.altman@wdc.com>,
Christophe JAILLET <christophe.jaillet@wanadoo.fr>,
Al Viro <viro@zeniv.linux.org.uk>,
Li Lingfeng <lilingfeng3@huawei.com>,
Jens Axboe <axboe@kernel.dk>,
Christian Brauner <brauner@kernel.org>,
INAGAKI Hiroshi <musashino.open@gmail.com>,
linux-mmc@vger.kernel.org,
Adrian Hunter <adrian.hunter@intel.com>,
linux-kernel@vger.kernel.org,
Mikko Rapeli <mikko.rapeli@linaro.org>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
upstream@airoha.com, Christian Heusel <christian@heusel.eu>,
Jens Wiklander <jens.wiklander@linaro.org>
Subject: Re: Co-existence of GPT and fixed partitions (Was: Re: [PATCH v6 5/6] block: add support for partition table defined in OF)
Date: Wed, 11 Jun 2025 20:15:04 +0200 [thread overview]
Message-ID: <e3e7d5fc-ed5b-4292-bf60-4e536386f3b9@pengutronix.de> (raw)
In-Reply-To: <4218cdae-07ee-433c-8a68-bb07885e43ab@pengutronix.de>
Hi,
On 12/5/24 13:12, Ahmad Fatoum wrote:
>> Or you are telling me you had a downstream patch that declares additional
>> partition in addition to a disk with a GPT partition table?
>> If that's the case, I'm confused of why the additional partition can't
>> be declared
>> directly in GPT.
>
> Many of the older boards supported by barebox used to place the barebox image
> and the environment prior to the first partition in the unpartitioned area.
>
> To still be able to access them, fixed partitions were used and the rest
> of the system was described by MBR/GPT partitions.
>
> This was partially made necessary by BootROMs having strange expectations
> of where the bootloader needs to be placed, which partially overlapped
> the MBR/GPT itself, making it difficult to define a partition for the bootloader.
>
> For newer boards, it's more common to place the bootloader in a GPT partition
> now. barebox has no DT binding for generically describing such a GPT partition
> though, so boards may create a fixed-partition "alias" and use that.
FTR, starting with barebox v2025.03.0, barebox' default is to fix up a
partitions container with a barebox,fixed-partition compatible for
everything that's not an MTD. This avoids clashing with the binding
added here for MMCs and possibly a future binding for partitioning EEPROMs.
Cheers,
Ahmad
>
> Cheers,
> Ahmad
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2025-06-11 18:15 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-02 22:11 [PATCH v6 0/6] block: partition table OF support Christian Marangi
2024-10-02 22:11 ` [PATCH v6 1/6] block: add support for defining read-only partitions Christian Marangi
2024-10-02 22:11 ` [PATCH v6 2/6] docs: block: Document support for read-only partition in cmdline part Christian Marangi
2024-10-02 22:11 ` [PATCH v6 3/6] block: introduce add_disk_fwnode() Christian Marangi
2024-10-03 12:09 ` Christoph Hellwig
2024-10-02 22:11 ` [PATCH v6 4/6] mmc: block: attach partitions fwnode if found in mmc-card Christian Marangi
2024-10-02 22:11 ` [PATCH v6 5/6] block: add support for partition table defined in OF Christian Marangi
2024-12-05 11:21 ` Co-existence of GPT and fixed partitions (Was: Re: [PATCH v6 5/6] block: add support for partition table defined in OF) Ahmad Fatoum
2024-12-05 11:54 ` Christian Marangi (Ansuel)
2024-12-05 12:12 ` Ahmad Fatoum
2025-06-11 18:15 ` Ahmad Fatoum [this message]
2024-10-02 22:11 ` [PATCH v6 6/6] dt-bindings: mmc: Document support for partition table in mmc-card Christian Marangi
2024-10-07 20:22 ` [PATCH v6 0/6] block: partition table OF support Jens Axboe
2024-10-08 9:10 ` Ulf Hansson
2024-10-08 13:24 ` Jens Axboe
2024-10-08 14:33 ` Ulf Hansson
2024-10-08 14:42 ` Jens Axboe
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=e3e7d5fc-ed5b-4292-bf60-4e536386f3b9@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=adrian.hunter@intel.com \
--cc=ansuelsmth@gmail.com \
--cc=avri.altman@wdc.com \
--cc=axboe@kernel.dk \
--cc=brauner@kernel.org \
--cc=christian@heusel.eu \
--cc=christophe.jaillet@wanadoo.fr \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=daniel@makrotopia.org \
--cc=devicetree@vger.kernel.org \
--cc=dominique.martinet@atmark-techno.com \
--cc=hch@infradead.org \
--cc=hch@lst.de \
--cc=jens.wiklander@linaro.org \
--cc=jorge@foundries.io \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=lilingfeng3@huawei.com \
--cc=linus.walleij@linaro.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=lizhijian@fujitsu.com \
--cc=lorenzo@kernel.org \
--cc=mikko.rapeli@linaro.org \
--cc=ming.lei@redhat.com \
--cc=miquel.raynal@bootlin.com \
--cc=musashino.open@gmail.com \
--cc=riyandhiman14@gmail.com \
--cc=robh@kernel.org \
--cc=ulf.hansson@linaro.org \
--cc=upstream@airoha.com \
--cc=viro@zeniv.linux.org.uk \
/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
all inboxes | Powered by JetHome®