From: Stefano Manni <stefano.manni@gmail.com>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox <barebox@lists.infradead.org>
Subject: Re: fixed partitions issue
Date: Thu, 31 Jul 2025 19:43:29 +0200 [thread overview]
Message-ID: <HKY90T.CZFW9DH4XY4I3@gmail.com> (raw)
In-Reply-To: <bbc6d12d-4c8a-463a-ae7e-8b2f36afebb9@pengutronix.de>
Hi Ahmad,
On mer, lug 30 2025 at 14:40:20 +02:00:00, Ahmad Fatoum
<a.fatoum@pengutronix.de> wrote:
>>
>> barebox_state: partition@200000 {
>> label = "barebox-state";
>> reg = <0x0100000 0x100000>;
>
> The first cell is the start address, so this should be 0x200000, not
> 0x0100000.
you are right I was in the mid of a change to resize partitions. Now
the dts looks like:
barebox: partition@0 {
label = "barebox";
reg = <0x0 0x0200000>;
};
barebox_env: partition@200000 {
label = "barebox-env";
reg = <0x0200000 0x040000>;
};
barebox_state: partition@240000 {
label = "barebox-state";
reg = <0x0240000 0x040000>;
};
>
> Do you maybe have board code that calls devfs_add_partition()?
no
>
> The output of devinfo in both versions would be useful as well to
> understand this.
unfortunately devinfo reports the same information on both v2025.01.0
and v2025.07.0
`-- 2008000.spi@2008000.of
`-- flash@00
`-- nor0
`-- 0x00000000-0x00ffffff ( 16 MiB): /dev/nor0
`-- nor0.barebox
`-- 0x00000000-0x001fffff ( 2 MiB): /dev/nor0.barebox
`-- nor0.barebox-env
`-- 0x00000000-0x0003ffff ( 256 KiB): /dev/nor0.barebox-env
`-- nor0.barebox-state
`-- 0x00000000-0x0003ffff ( 256 KiB): /dev/nor0.barebox-state
On v2025.07.0 every time I write barebox-env part (e.g. with nv
command) also barebox
part is written. This on v2025.01.0 does not happen.
I supposed the problem was in the fixed-partition bindings but maybe it
is somewhere
else, for example in the spinor driver.
Is that something I may test to understand more?
Best,
Stefano
next prev parent reply other threads:[~2025-07-31 15:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-30 10:45 fixed partitions issue Stefano Manni
2025-07-30 12:40 ` Ahmad Fatoum
2025-07-31 17:43 ` Stefano Manni [this message]
2025-08-05 5:24 ` 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=HKY90T.CZFW9DH4XY4I3@gmail.com \
--to=stefano.manni@gmail.com \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.