Setting up MTD via command line?

Jamie Guinan guinan at bluebutton.com
Tue Aug 31 12:18:14 EDT 2004


On Thu, 26 Aug 2004, Bo Henriksen wrote:

> Hi,
> 
> I'm having trouple understanding the new MTD interface with 2.6.8?
> Can anyone explain, or is there docs on how to setup MTD via command
> line, which I think was introduced so 
> you don't need to write your own driver for e.g. embedded processors
> such as ARM.

Hi Bo,

I found it in the config help for "Command line partition table parsing",
and also in the comments in cmdlinepart.c.

For the LogicPD board (lpd7a404 here), I used this kernel command-line,

  boot console=ttyAM1 root=/dev/mtdblock3 rootfstype=jffs2 \
    mtdparts=phys_mapped_flash:256k,256k,1536k,2048k

and (at least) these options,

  CONFIG_MTD_PARTITIONS=y
  CONFIG_MTD_CMDLINE_PARTS=y
  CONFIG_MTD_CFI=y
  CONFIG_MTD_PHYSMAP=y
  CONFIG_MTD_PHYSMAP_START=0x0
  CONFIG_MTD_PHYSMAP_LEN=0x4000000
  CONFIG_MTD_PHYSMAP_BANKWIDTH=4

Now I finally understand the thread from July where the developers were
discussing this (trading a whole C file (lpd7a400-flash.c) for the
"mtdparts=" parameter; good stuff).

Good luck,
-Jamie

> 
> Cheers,
> 
> Bo
> 
> 
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
> 





More information about the linux-mtd mailing list