public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Robin Gilks <robin.gilks@tait.co.nz>
To: mtd list <linux-mtd@lists.infradead.org>
Subject: Re: mtdparts howto required!!
Date: Fri, 19 Mar 2004 11:16:21 +1300	[thread overview]
Message-ID: <405A1FB5.2010808@tait.co.nz> (raw)
In-Reply-To: <1079599371.16952.119.camel@hades.cambridge.redhat.com>

David Woodhouse wrote:
> On Thu, 2004-03-18 at 12:30 +1300, Robin Gilks wrote:

[snip]

> 
> I'm not sure I understand this. What does physmap.c need to do other
> than passing in the 'master' mtd device as the first argument to
> parse_mtd_partitions()?

The ioremap fails before it can get this far because there is no start 
address or size defined for the default device. I've patched in a 
generic map as follows and its then fine.

struct map_info physmap_map = {
	.name = "phys_mapped_flash",
	.size = CONFIG_MTD_PHYSMAP_LEN,
	.buswidth = CONFIG_MTD_PHYSMAP_BUSWIDTH,
	.phys = CONFIG_MTD_PHYSMAP_START,
};


I may have missed something here - perhaps something is supposed to set 
these values by probing but if thats the case I've missed it I'm afraid!!



-- 
Robin Gilks
Senior Design Engineer          Phone: (+64)(3) 357 1569
Tait Electronics                Fax  :  (+64)(3) 359 4632
PO Box 1645 Christchurch        Email : robin.gilks@tait.co.nz
New Zealand

      reply	other threads:[~2004-03-18 22:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-15 22:49 mtdparts howto required!! Robin Gilks
2004-03-17 23:30 ` Robin Gilks
2004-03-18  8:42   ` David Woodhouse
2004-03-18 22:16     ` Robin Gilks [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=405A1FB5.2010808@tait.co.nz \
    --to=robin.gilks@tait.co.nz \
    --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