public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Alexandre Gambier <a.gambier@ftemaximal.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] MTD partitions not mounted by the kernel
Date: Fri, 11 Feb 2011 08:56:02 +0100	[thread overview]
Message-ID: <4D54EB92.7080703@ftemaximal.fr> (raw)
In-Reply-To: <1297362291.27125.12.camel@ws-apr.office.loc>

Hello Andreas,

Thanks for this explanation.

I will try to write my own driver for my board.

Best regards
alex

On 02/10/2011 07:24 PM, Andreas Pretzsch wrote:
> Am Donnerstag, den 10.02.2011, 17:04 +0100 schrieb Alexandre Gambier:
>> Dear Wolfgang,
>>
>> I tried to put some printk in the MTD driver and it seems that the
>> parse_mtd_partitions function is never called...
> parse_mtd_partitions() is called from the mapping drivers. See e.g.
> linux/drivers/mtd/maps/ and linux/drivers/mtd/nand/.
>
> The mtd-id provided in kernel-cmdline has to match the name of the
> mapping driver, e.g. "physmap-flash" in case of
> drivers/mtd/maps/physmap.c.
>
> See linux/drivers/mtd/cmdlinepart.c for the format. Your spec looks
> fine, presumably beside "NOR" and "NAND" names.
>
>> I will try to find what's wrong with my kernel configuration.
> You'll need CONFIG_MTD_PARTITIONS and CONFIG_MTD_CMDLINE_PARTS.
>
> Also check /proc/cmdline that it's really passed and not overwritten by
> hardcoded kernel commandline (CONFIG_CMDLINE_BOOL not set).
>
>> alex
>>
>> On 02/10/2011 03:59 PM, Wolfgang Denk wrote:
>>> Dear Alexandre Gambier,
>>>
>>> In message<4D53F9FA.2070702@ftemaximal.fr>   you wrote:
>>>> mtdids  : nor0=NOR,nand0=NAND
>>> ...
>>>> mtdparts=NOR:512k(U-Boot),128k(Environment),4M(Kernel),-(FreeNOR);NAND:32M(FS),-(FreeNAND)
>>> ...
>>>> The problem is that once my system is running the MTD devices in /dev
>>>> are not created and the file /proc/mtd is empty.
>>>>
>>>> Is my command line wrong ?
>>> I think so. Most probably your kernel uses different identifiers
>>> instead of "NOR" and "NAND".  Check the kernel boot messages!
>>>
>>> Best regards,
>>>
>>> Wolfgang Denk
>>>
>> _______________________________________________
>> U-Boot mailing list
>> U-Boot at lists.denx.de
>> http://lists.denx.de/mailman/listinfo/u-boot

  reply	other threads:[~2011-02-11  7:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-10 14:45 [U-Boot] MTD partitions not mounted by the kernel Alexandre Gambier
2011-02-10 14:50 ` Albert ARIBAUD
2011-02-10 14:59 ` Wolfgang Denk
2011-02-10 16:04   ` Alexandre Gambier
2011-02-10 18:24     ` Andreas Pretzsch
2011-02-11  7:56       ` Alexandre Gambier [this message]
2011-02-11  9:06         ` Wolfgang Denk
2011-02-11  9:34           ` Alexandre Gambier

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=4D54EB92.7080703@ftemaximal.fr \
    --to=a.gambier@ftemaximal.fr \
    --cc=u-boot@lists.denx.de \
    /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