Question re initiliazation of MTD NAND flash
Thomas Gleixner
tglx at linutronix.de
Mon Jan 31 18:37:43 EST 2005
On Mon, 2005-01-31 at 23:28 +0000, Alex wrote:
> Well..., it appears that I have put wrong value for CONFIG_MTD_PHYSMAP_LEN
> ... but what should be done to indicate that
> I want two banks (partitions) out of MTD flash each of 8Mb length ?
> - or should I at this point put there the total length,
> which is 16 MB ? ... deal with partioning later ?
>
> Is there any documentation (or how to) on this?
> (obviously I am doing it first time ... ;-) ).
>
CONFIG_MTD_PHYSMAP_START is the physical address of your NOR FLASH
CONFIG_MTD_PHYSMAP_LEN is the size of your NOR FLASH in bytes
You can enable commandline partition parsing and provide the partition
info on the kernel commandline. There is some "documentation" in the
code. :)
Another option is to write our own board driver (by copying one which
fits your needs closely and tweaking it for your board)
NAND is a different beast. You will have to write a board driver (same
procedure as above), but there's some documentation available.
See http://www.linux-mtd.infradead.org/tech/mtdnand/index.html
tglx
More information about the linux-mtd
mailing list