Skip to contentSkip to conversation

MTD, JFFS, my target -- bringing them together?

DISCUSSION Juan Gonzo 2 participants 2 messages Jul 5, 2000 Memory technology devices (MTD)

lore
Share & tools
lore

Juan Gonzo

author
#0 lore raw

Ok,

I am using Intel Strataflash with the CFI command set. I have managed to compile the kernel with the MTD code in place. I would like to use JFFS for the filesystem. The following were enabled with make oldconfig:

Memory Technology Device (MTD) support Common Flash Interface (CFI) support
CFI support for Intel/Sharp Extended Command Set
chips
CFI chips on memory bus support
Direct blockdevice access to MTD devices Journalling Flash filesystem (JFFS) support

Quoted 1 line

From previous emails, it seems I have to supply a

read16() and write16() function for MTD to work properly on my system. Is this right? Is that all I have to supply? What about all that info from the website about populating the mtd_info struct and the add_mtd_device business? Do I still have to do that?

Thanks for any help,
-- kelly

_______________________________________________________
Do You Yahoo!?
Get your free @yahoo.ca address at http://mail.yahoo.ca

To unsubscribe, send "unsubscribe mtd" to [email protected]

#1 lore raw
Quoted 6 lines · Juan Gonzo

From previous emails, it seems I have to supply a read16() and write16() function for MTD to work properly on my system. Is this right? Is that all I have to supply? What about all that info from the website about populating the mtd_info struct and the add_mtd_device business? Do I still have to do that?

No you don't. All you need to do is provide something based on the physmap.c file which the CFI chip driver can use to access the chips. In fact, in the majority of cases you should get away with only changing a couple of #defines in that file to say where in physical memory the chips are, and how large the range is that they're mapped into.

Signature · 6 lines
dwmw2




To unsubscribe, send "unsubscribe mtd" to [email protected]