Block lock-bits

David Woodhouse dwmw2 at infradead.org
Fri Mar 19 10:55:17 EST 2004


On Fri, 2004-03-19 at 09:43 -0600, Eisenhut, Daniel (MED) wrote:
> I've set up MTD to use my NOR flash chips (Intel StrataFlash J3) and can
> successfully read and write using /dev/mtdblock/X.  Now I need to be able to
> set and clear the lock-bits on the individual blocks.  My question is how?

ioctl(MEMUNLOCK) on /dev/mtdX character device.

If this is the silly chip that automatically locks every time you power
cycle it, then perhaps we ought to be unlocking the whole thing when we
detect it.

-- 
dwmw2




More information about the linux-mtd mailing list