Skip to contentSkip to conversation

Opening flash device for update - locking

DISCUSSION MikeW 1 participant 2 messages May 16, 2007 Memory technology devices (MTD)

lore
Share & tools
lore

MikeW

author
#0 lore raw

A utility program cannot open a /dev/mtd in mode O_RDWR - permission denied (/dev permission bits are OK)

Presumably this is because the device is locked.

OK, there is a MEMUNLOCK ioctl - hopefully this can be called on a device that is only opened in O_RDONLY mode ?!

Regards,
MikeW

author
#1 lore raw

Re: Opening flash device for update - support for SPI device

Quoted 11 lines · MikeW <mw_phil <at> yahoo.co.uk> writes:

A utility program cannot open a /dev/mtd in mode O_RDWR - permission denied (/dev permission bits are OK)

Presumably this is because the device is locked.

OK, there is a MEMUNLOCK ioctl - hopefully this can be called on a device that is only opened in O_RDONLY mode ?!

Regards,
MikeW

Having checked MEMINFO flags=0x04, type=0x0E, I now realise that this device (ST M25P32) may not be well-supported by MTD, and does not appear to be writeable using our current MTD driver.

Regards,
MikeW