public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Martin Egholm Nielsen <martin@egholm-nielsen.dk>
To: linux-mtd@lists.infradead.org
Subject: Re: Access to NOR from Linux - what is required?
Date: Tue, 14 Nov 2006 21:02:11 +0100	[thread overview]
Message-ID: <ejd7c4$jua$1@sea.gmane.org> (raw)
In-Reply-To: <f96d234e0611140947n36d1269ao8235f7cbec4fd920@mail.gmail.com>

Cliff Brake wrote:
>>I know this is a rather vague question, but how do I gain access to the
>>NOR flash on my board?

=== 8< 8< 8< ===

> You can often just map in your NOR device using the kernel command
> line without any kernel changes.  Something like:
> 
> CONFIG_MTD_PARTITIONS=y
> CONFIG_MTD_CMDLINE_PARTS=y
> CONFIG_CMDLINE="mtdparts=phys_mapped_flash:256k(boot)ro,0x1C0000(kernel),-(root)"
> CONFIG_MTD_PHYSMAP=y
> CONFIG_MTD_PHYSMAP_START=0x0000000
> CONFIG_MTD_PHYSMAP_LEN=0x4000000
> CONFIG_MTD_PHYSMAP_BANKWIDTH=4
> 
> There is documentation on mtdparts in:
> drivers/mtd/cmdlinepart.c

Super, I'll try this in the morning and let you know! Thanks for now...

// Martin

      reply	other threads:[~2006-11-14 20:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-14 14:36 Access to NOR from Linux - what is required? Martin Egholm Nielsen
2006-11-14 17:47 ` Cliff Brake
2006-11-14 20:02   ` Martin Egholm Nielsen [this message]

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='ejd7c4$jua$1@sea.gmane.org' \
    --to=martin@egholm-nielsen.dk \
    --cc=linux-mtd@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox