Mtd block access (jffs2 formatted) and mtd char access(unformatted) on different partitions of a single flash device

David Woodhouse dwmw2 at infradead.org
Wed May 21 08:35:35 EDT 2003


On Wed, 2003-05-21 at 13:33, John Burch wrote:
> When accessing "raw" flash via the char driver, how can I initiate a
> sector erase?  
See how it's done in util/erase.c: ioctl(...MEMERASE...)

> Also, does the mtd driver for AMD CFI devices handle
> AMD's ability to support erasure of multiple sectors simultaneously?

Probably not yet, but there's no reason why it shouldn't. Criticism in
'diff -u' form is preferred :)

> David has it right.  The raw "in-kernel" driver deals with flash
> directly on its own, not through mtd.

Then you lose :) If you have sane code which handles multiple concurrent
erases, we'd be happy to merge it so that you can use the mtd driver
without losing out on that feature ;)

-- 
dwmw2




More information about the linux-mtd mailing list