From: Thomas Gleixner <tglx@linutronix.de>
To: Marc Singer <elf@buici.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: cmdlineparts and chip initialization order
Date: Thu, 11 Nov 2004 23:51:13 +0100 [thread overview]
Message-ID: <1100213473.5074.81.camel@thomas> (raw)
In-Reply-To: <20041111220146.GA1898@buici.com>
On Thu, 2004-11-11 at 14:01 -0800, Marc Singer wrote:
> With a command line like this:
> console=ttyAM0 root=/dev/hda1 mtdparts=norflash:2m(boot),-(root);nandflash:32k(apex)ro,-(root)
> I am able to initialization partitions for the NOR flash, but not the
> NAND flash. It look like the problem is that the NOR flash driver is
> initializing before the mtdparts command line parsed, but the NAND
> flash isn't.
> Moving the cmdlinepart.o file to the end of the list appears to
> prevent the command line from being parsed.
The commandline parition code must be registered as a partition parser
before any mapping driver is initialized. So it's not surprising that it
does not work when it is linked in last, as the init functions are
called in link order
> BTW, it looks like none of the other NAND drivers expect a command
> line partition setup. Has anyone else tried?
It has nothing to do with NOR or NAND. The driver calls a parition
parser.
Provide more detailed information, please. Switch on MTD debugging and
add some MTD_DEBUG in the relevant places.
tglx
next prev parent reply other threads:[~2004-11-11 22:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-11 22:01 cmdlineparts and chip initialization order Marc Singer
2004-11-11 22:51 ` Thomas Gleixner [this message]
2004-11-12 10:18 ` Marc Singer
2004-11-12 10:27 ` Marc Singer
2004-11-11 23:18 ` Aras Vaichas
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=1100213473.5074.81.camel@thomas \
--to=tglx@linutronix.de \
--cc=elf@buici.com \
--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