From: Scott Wood <scottwood@freescale.com>
To: Huang Changming-R66093 <r66093@freescale.com>
Cc: Wood Scott-B07421 <B07421@freescale.com>,
"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>
Subject: Re: [PATCH 4/4] powerpc/85xx: add the P1020UTM-PC DTS support
Date: Wed, 14 Mar 2012 22:25:09 -0500 [thread overview]
Message-ID: <20120315032509.GA16517@schlenkerla.am.freescale.net> (raw)
In-Reply-To: <110EED8CC96DFC488B7E717A2027A27C04CBF1@039-SN1MPN1-003.039d.mgd.msft.net>
On Wed, Mar 14, 2012 at 09:30:27PM -0500, Huang Changming-R66093 wrote:
> > -----Original Message-----
> > From: Wood Scott-B07421
> > Sent: Thursday, March 15, 2012 2:50 AM
> > To: Huang Changming-R66093
> > Cc: linuxppc-dev@lists.ozlabs.org
> > Subject: Re: [PATCH 4/4] powerpc/85xx: add the P1020UTM-PC DTS support
> >
> > On 03/14/2012 04:08 AM, Chang-Ming.Huang@freescale.com wrote:
> > > +&lbc {
> > > + nor@0,0 {
> > > + #address-cells = <1>;
> > > + #size-cells = <1>;
> > > + compatible = "cfi-flash";
> > > + reg = <0x0 0x0 0x2000000>;
> > > + bank-width = <2>;
> > > + device-width = <1>;
> > > +
> > > + partition@0 {
> > > + /* 256KB for DTB Image */
> > > + reg = <0x0 0x00040000>;
> > > + label = "NOR (RO) DTB Image";
> > > + read-only;
> > > + };
> > > +
> > > + partition@40000 {
> > > + /* 3.75 MB for Linux Kernel Image */
> > > + reg = <0x00040000 0x003c0000>;
> > > + label = "NOR (RO) Linux Kernel Image";
> > > + read-only;
> > > + };
> > > +
> > > + partition@400000 {
> > > + /* 27MB for Root file System */
> > > + reg = <0x00400000 0x01b00000>;
> > > + label = "NOR (RW) Root File System";
> > > + };
> > > +
> > > + partition@1f00000 {
> > > + /* This location must not be altered */
> > > + /* 512KB for u-boot Bootloader Image */
> > > + /* 512KB for u-boot Environment Variables */
> > > + reg = <0x01f00000 0x00100000>;
> > > + label = "NOR (RO) U-Boot Image";
> > > + read-only;
> > > + };
> >
> > Don't put (RW) or (RO) in the label; that information is already there in
> > the read-only property.
> But for the user, after booting the kernel, he don't know these partition are read-only or can be wrote.
> If add (RW) or (RO), user can know which partition can be wrote or can't directly.
So fix the Linux MTD code to properly tell the user the read-only status
of any partition.
-Scott
next prev parent reply other threads:[~2012-03-15 3:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-14 9:08 [PATCH 1/4] powerpc/85xx: add P1020MBG-PC platform support Chang-Ming.Huang
2012-03-14 9:08 ` [PATCH 2/4] powerpc/85xx: add P1020UTM-PC " Chang-Ming.Huang
2012-03-14 9:08 ` [PATCH 3/4] powerpc/85xx: add the P1020MBG-PC DTS support Chang-Ming.Huang
2012-03-14 9:08 ` [PATCH 4/4] powerpc/85xx: add the P1020UTM-PC " Chang-Ming.Huang
2012-03-14 18:50 ` Scott Wood
2012-03-15 2:30 ` Huang Changming-R66093
2012-03-15 3:25 ` Scott Wood [this message]
2012-03-16 15:40 ` [PATCH 3/4] powerpc/85xx: add the P1020MBG-PC " Kumar Gala
2012-03-16 15:49 ` [PATCH 2/4] powerpc/85xx: add P1020UTM-PC platform support Kumar Gala
2012-03-16 15:49 ` [PATCH 1/4] powerpc/85xx: add P1020MBG-PC " Kumar Gala
2012-03-16 15:54 ` Kumar Gala
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=20120315032509.GA16517@schlenkerla.am.freescale.net \
--to=scottwood@freescale.com \
--cc=B07421@freescale.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=r66093@freescale.com \
/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).