From: Marek Vasut <marek.vasut@gmail.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@vger.kernel.org>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Wolfram Sang <wsa@the-dreams.de>,
Richard Weinberger <richard@nod.at>,
Linux-Renesas <linux-renesas-soc@vger.kernel.org>,
Boris Brezillon <boris.brezillon@bootlin.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Simon Horman <horms+renesas@verge.net.au>,
Linux ARM <linux-arm-kernel@lists.infradead.org>,
Marek Vasut <marek.vasut+renesas@gmail.com>
Subject: Re: [PATCH 6/9] ARM: dts: wheat: Drop MTD partitioning from DT
Date: Wed, 23 May 2018 00:01:57 +0200 [thread overview]
Message-ID: <fc1cfd7e-db27-9277-dbed-cc2274c614a6@gmail.com> (raw)
In-Reply-To: <CAMuHMdXRnoyhNz=3v_=ZCV=FWX4TwKqx7MpH0g3c7GwtXKP1tg@mail.gmail.com>
On 05/22/2018 04:43 PM, Geert Uytterhoeven wrote:
> On Tue, May 22, 2018 at 2:02 PM, Marek Vasut <marek.vasut@gmail.com> wrote:
>> Drop the MTD partitioning from DT, since it does not describe HW
>> and to give way to a more flexible kernel command line partition
>> passing.
>>
>> To retain the original partitioning, assure you have enabled
>> CONFIG_MTD_CMDLINE_PARTS in your kernel config and add the
>> following to your kernel command line:
>>
>> mtdparts=spi0.0:256k@0(loader),4096k(user),-(flash)
>
> I think the "@0" can be dropped, as it's optional?
> 4m?
My take on this is that the loader is actually at offset 0x0 of the MTD
device and we explicitly state that in the mtdparts to anchor the first
partition within the MTD device and all the other partitions are at
offset +(sum of the sizes of all partitions listed before the current
one) relative to that first partition.
Removing the @0 feels fragile at best and it seems to depend on the
current behavior of the code.
> (Gaining more knowledge during reviewing ;-)
>
>> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
>
> Gr{oetje,eeting}s,
>
> Geert
>
--
Best regards,
Marek Vasut
next prev parent reply other threads:[~2018-05-22 22:01 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-22 12:02 [PATCH 1/9] ARM: shmobile: defconfig: Enable MTD command line partition parsing Marek Vasut
2018-05-22 12:02 ` [PATCH 2/9] ARM: dts: lager: Drop MTD partitioning from DT Marek Vasut
2018-05-22 12:34 ` Wolfram Sang
2018-05-22 14:32 ` Geert Uytterhoeven
2018-05-22 21:55 ` Marek Vasut
2018-05-22 12:02 ` [PATCH 3/9] ARM: dts: stout: " Marek Vasut
2018-05-22 12:34 ` Wolfram Sang
2018-05-22 14:33 ` Geert Uytterhoeven
2018-05-22 12:02 ` [PATCH 4/9] ARM: dts: koelsch: " Marek Vasut
2018-05-22 12:34 ` Wolfram Sang
2018-05-22 14:29 ` Geert Uytterhoeven
2018-05-22 12:02 ` [PATCH 5/9] ARM: dts: porter: " Marek Vasut
2018-05-22 12:34 ` Wolfram Sang
2018-05-22 14:34 ` Geert Uytterhoeven
2018-05-22 12:02 ` [PATCH 6/9] ARM: dts: wheat: " Marek Vasut
2018-05-22 12:34 ` Wolfram Sang
2018-05-22 14:43 ` Geert Uytterhoeven
2018-05-22 22:01 ` Marek Vasut [this message]
2018-05-23 6:25 ` Geert Uytterhoeven
2018-05-24 14:52 ` Marek Vasut
2018-05-28 8:41 ` Simon Horman
2018-05-28 8:54 ` Geert Uytterhoeven
2018-05-28 9:36 ` Simon Horman
2018-05-30 10:13 ` Marek Vasut
2018-05-31 11:40 ` Simon Horman
2018-05-22 12:02 ` [PATCH 7/9] ARM: dts: gose: " Marek Vasut
2018-05-22 12:34 ` Wolfram Sang
2018-05-22 14:44 ` Geert Uytterhoeven
2018-05-22 12:02 ` [PATCH 8/9] ARM: dts: alt: " Marek Vasut
2018-05-22 12:34 ` Wolfram Sang
2018-05-22 14:45 ` Geert Uytterhoeven
2018-05-22 12:02 ` [PATCH 9/9] ARM: dts: silk: " Marek Vasut
2018-05-22 12:34 ` Wolfram Sang
2018-05-22 14:46 ` Geert Uytterhoeven
2018-05-22 12:32 ` [PATCH 1/9] ARM: shmobile: defconfig: Enable MTD command line partition parsing Wolfram Sang
2018-05-22 14:29 ` Geert Uytterhoeven
2018-05-28 8:40 ` Simon Horman
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=fc1cfd7e-db27-9277-dbed-cc2274c614a6@gmail.com \
--to=marek.vasut@gmail.com \
--cc=boris.brezillon@bootlin.com \
--cc=devicetree@vger.kernel.org \
--cc=geert+renesas@glider.be \
--cc=geert@linux-m68k.org \
--cc=horms+renesas@verge.net.au \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=marek.vasut+renesas@gmail.com \
--cc=richard@nod.at \
--cc=wsa@the-dreams.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;
as well as URLs for NNTP newsgroup(s).