DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: "Jan Lübbe" <jlu@pengutronix.de>,
	"Leonard Göhrs" <l.goehrs@pengutronix.de>,
	distrokit@pengutronix.de
Cc: Michael Tretter <mtr@pengutronix.de>
Subject: Re: [DistroKit] [PATCH v1 2/5] v8a: images: imx8m: add barebox state partition
Date: Thu, 11 Jan 2024 19:06:27 +0100	[thread overview]
Message-ID: <0a782c11-f93e-4a7b-bd64-92e96bf023b0@pengutronix.de> (raw)
In-Reply-To: <bad10ed555ec11182cf9737f62bcbe98229e7354.camel@pengutronix.de>

On 11.01.24 18:07, Jan Lübbe wrote:
> On Thu, 2024-01-11 at 16:01 +0100, Leonard Göhrs wrote:
>> Having a place to store state allows us to use RAUC on i.MX8M based boards.
>>
>> Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
>> ---
>>  configs/platform-v8a/config/images/imx8m.config | 7 ++++++-
>>  1 file changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/configs/platform-v8a/config/images/imx8m.config b/configs/platform-v8a/config/images/imx8m.config
>> index 59cdac1..fcb3c07 100644
>> --- a/configs/platform-v8a/config/images/imx8m.config
>> +++ b/configs/platform-v8a/config/images/imx8m.config
>> @@ -9,8 +9,13 @@ image @IMAGE@ {
>>                 in-partition-table = false
>>                 holes = {"(440; 32K)"}

If you are changing the partitioning, please increase the barebox
partition size too. As we are adding more boards to the same binary,
this area will get more crowded and we are already nearly at the
limit.

>>         }
>> -       partition root-A {
>> +       partition barebox-state {
>>                 offset = 2M
>> +               size = 1M
> 
> There's no need to use 1MB for the state partition, a few sectors should be
> enough (i.e. 32KB).
> 
>> +               partition-type-uuid = 4778ed65-bf42-45fa-9c5b-287a1dc4aab1 # barebox-state
>> +               image = /dev/null
>> +       }
>> +       partition root-A {
> 
> Keep the root-A partition @ 2M and add a small state partition before the
> rootfs.
> 
>>                 image = "root.ext2"
>>                 partition-type-uuid = b921b045-1df0-41c3-af44-4c6f280d3fae
>>         }
> 
> Similar to the rock3a.config, we should have a barebox env partition as well.

@Michael, as we are touching partitioning, should we increase the partition
size in the same go? What size would you suggest?

Cheers,
Ahmad

> 
> Jan

-- 
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 |




  reply	other threads:[~2024-01-11 18:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-11 15:01 [DistroKit] [PATCH v1 0/5] v8a: imx8m: add i.MX8MP based TQ MBa8MPxL board Leonard Göhrs
2024-01-11 15:01 ` [DistroKit] [PATCH v1 1/5] tf-a: add patch to auto-detect the correct UART on i.MX8M Leonard Göhrs
2024-01-11 18:03   ` Ahmad Fatoum
2024-01-16 10:50     ` Leonard Göhrs
2024-01-16 11:08       ` Marco Felsch
2024-01-11 15:01 ` [DistroKit] [PATCH v1 2/5] v8a: images: imx8m: add barebox state partition Leonard Göhrs
2024-01-11 17:07   ` Jan Lübbe
2024-01-11 18:06     ` Ahmad Fatoum [this message]
2024-01-11 15:01 ` [DistroKit] [PATCH v1 3/5] v8a: imx8m: add i.MX8MP based TQ MBa8MPxL board Leonard Göhrs
2024-01-11 15:01 ` [DistroKit] [PATCH v1 4/5] v8a: imx8m: enable image generation for TQ MBa8MPxL Leonard Göhrs
2024-01-11 15:01 ` [DistroKit] [PATCH v1 5/5] v8a: imx8m: enable barebox state " Leonard Göhrs
2024-01-11 18:08   ` Ahmad Fatoum

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=0a782c11-f93e-4a7b-bd64-92e96bf023b0@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=distrokit@pengutronix.de \
    --cc=jlu@pengutronix.de \
    --cc=l.goehrs@pengutronix.de \
    --cc=mtr@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