Partitioning NAND flash
Eirik Aanonsen
eaa at wprmedical.com
Fri Sep 5 01:06:56 EDT 2008
>NDFC NAND Driver initialized. Chip-Rev: 0x00000111
>NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB
>3,3V 8-bit)
>Scanning device for bad blocks
>Number of partitions 3
>Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
>0x00000000-0x00060000 : "u-boot"
>0x00060000-0x00068000 : "env"
>0x00068000-0x04000000 : "content"
>
>My problem is that I want to repartition the NAND flash, but am not sure
>where the current partitioning scheme is coming from. My bootargs to the
>kernel does not contain an mtdparts section and i don't see any
>reference to a "u-boot", "env", "content" partition in the mtd driver
>code itself.
>
>I have setup my NOR partitioning by modifying the DTS provided by the
>linux source, but there is nothing in there that refers to the NAND
>chip. I have tried providing an mtdparts argument to the kernel but this
>appears to be a no-op even though the appropriate option in the kernel
>is configured.
>
>I'm kind of at a loss after monkeying with this for the last couple
>days. Any help or direction to a good source of information would be
>greatly appreciated!
>
>Brian Szmyd | brian.szmyd at quantum.com
It should problably be positioned in your board spesific code then.
Search for use of:
static struct mtd_partition
This is used for both the nand and the nor flash and contains the partitions ( in my cases anyway )
( typical place could be arch/"cpu_type"/ )
Regards
Eirik Aanonsen
More information about the linux-mtd
mailing list