mtd char and block both on same nand flash

Amit Mistry amit at einfochips.com
Fri Jan 2 23:57:13 EST 2004


I have to write the MTD NAND driver for K9x1208 FLASH chip. Now, the
requirement is some of the blocks of FLASH need to be accessed like raw
block access as they contains bootloader and rest of the blocks will be
accessed through YAFFS file system. How can I access the some of the blocks
with raw FLASH access method and rest with some file system? May be the
correct question is: How can I distribute the whole NAND flash in a char
device for few blocks and block device for rest of the blocks?  In MTD
directory of linux kernel source, there are mtdchar.c and mtdblock.c they
provide the functionality of char and block driver. Can I use the mtdchar.c
and mtdblock.c of MTD layer or they are samples?  I would appreciate if you
can help me out. Thanks in advance.

Thanks & Regards,
Amit Mistry


Thanks & Regards,
Amit Mistry
Embedded Software Engineer
eInfochips Ltd.
email: amit at einfochips.com
phone: +91 - 79 - 6563705 x 535
---------------------------------------------------




More information about the linux-mtd mailing list