Access to NOR from Linux - what is required?

Martin Egholm Nielsen martin at egholm-nielsen.dk
Tue Nov 14 15:02:11 EST 2006


Cliff Brake wrote:
>>I know this is a rather vague question, but how do I gain access to the
>>NOR flash on my board?

=== 8< 8< 8< ===

> You can often just map in your NOR device using the kernel command
> line without any kernel changes.  Something like:
> 
> CONFIG_MTD_PARTITIONS=y
> CONFIG_MTD_CMDLINE_PARTS=y
> CONFIG_CMDLINE="mtdparts=phys_mapped_flash:256k(boot)ro,0x1C0000(kernel),-(root)"
> CONFIG_MTD_PHYSMAP=y
> CONFIG_MTD_PHYSMAP_START=0x0000000
> CONFIG_MTD_PHYSMAP_LEN=0x4000000
> CONFIG_MTD_PHYSMAP_BANKWIDTH=4
> 
> There is documentation on mtdparts in:
> drivers/mtd/cmdlinepart.c

Super, I'll try this in the morning and let you know! Thanks for now...

// Martin





More information about the linux-mtd mailing list