Re: MTD and Adapter ROMs

David Woodhouse
2001-09-07T14:14:20Z

> 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