Re: MTD and Adapter ROMs

David Woodhouse (dwmw2@infradead.org)
Fri, 07 Sep 2001 15:14:08 +0100


jfbeam@bluetopia.net said:
> Well, just having documentation on how all the spooge in drivers/mtd
> actually goes together would go along way to helping people use it.

Bah. That takes all the fun out of it.

> The flash chip is an SST 39SF010. It will appear somewhere in PCI
> memory space once I reenable the adapter ROM. It is a JEDEC compilant
> device. I have some code from SST for programming it, but I'd rather
> go the general route instead of the one-shot flash-and-run module.

> I think it'll be as "simple" as adding the ID to jedec.c. Load chips/
> *, maps/hpt-rom (doctored physmap to enable the rom and use it's
> location), and then see if I can get mtdchar to drive the mess.

Basically right. Once your map driver has successfully probed the chip and
registered the MTD device, you should be able to open /dev/mtd0 and read,
write and ioctl(MEMERASE) it. Not necessarily in that order.

--
dwmw2

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/