All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthieu CASTET <matthieu.castet@parrot.com>
To: Bharat Bhushan <bharat.76@gmail.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: linux kernel can not find m25p80 mtdparts
Date: Tue, 19 May 2009 12:26:15 +0200	[thread overview]
Message-ID: <4A128947.9090708@parrot.com> (raw)
In-Reply-To: <a29be8140905170249v18e4f13eg5430f3e44280fe30@mail.gmail.com>

Bharat Bhushan a écrit :
> Hi Everyone,
> 
> I am naive as far as linux kernel interface with MTD devices. I face
> difficulty on MIPS based board having M25P80. Bootloader is u-boot.
> When linux boots, I pass the command-line argument as:
> 
> Kernel command line:
> mtdpart=m25p80:256k(boot),64k(boot_config),64k(board_config),2048k(kernel),4096k(filesystem)
> root=/dev/mtdpart rootfstype=squashfs,yaffg
> And Error I get is :
> 
>     VFS: Cannot open root device "mtdpart" or unknown-block(0,0)
>     Please append a correct "root=" boot option; here are the
> available partitions:
>     Kernel panic - not syncing: VFS: Unable to mount root fs on
> unknown-block(0,0)
> 
> Some questions in above command-line I have:
> 
> 1. Does kernel recognize m25p80 by same name. How can I check where it
> is mapped in kernel. Then only mtdpart makes sense: I think so? I
> expected it to be at 0xbf040000. I do not know in kernel where to find
> this mapping. I tried drivers/mtd/ for chips specifics, but could not
> make out much.
> 2. When cmdline say root=/dev/mtdpart, do `mtdpart' should be defined
> in kernel somewhere?
> 
> Can someone please explain, which all part of kernel I need to look into.
> 

What's your spi driver ?

      reply	other threads:[~2009-05-19 10:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-17  9:49 linux kernel can not find m25p80 mtdparts Bharat Bhushan
2009-05-19 10:26 ` Matthieu CASTET [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=4A128947.9090708@parrot.com \
    --to=matthieu.castet@parrot.com \
    --cc=bharat.76@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.