El Sun, Feb 22, 2009 at 08:37:15PM +0100 Matthias Kaehlcke ha dit: > Hi Robert, > > El Sun, Feb 22, 2009 at 02:02:12PM -0500 Robert P. J. Day ha dit: > > > > > i'm sure i could verify this by RTFS but i've had a long week and > > i'm feeling lazy so ... is it true that i can protect an MTD partition > > from accidental overwriting by defining it in the map file with the > > MAP_WRITEABLE flag? > > i suppose you mean MTD_WRITEABLE > > > and having done that, the only way to change that partition would be > > to use flash_unlock, write it, then flash_lock it again? as in, > > defining it with MAP_WRITEABLE is *exactly* equivalent to having > > locked it initially. or does that MAP_WRITEABLE mask flag mean > > something different? thanks. > > afaik the flag MTD_WRITEABLE marks a partition as writable at kernel > level (eg by marking it as 'ro' on the kernel command line) ~~ this marks the partition certainly as *read-only*, but i think you understand what i mean ;) -- Matthias Kaehlcke Embedded Linux Engineer Barcelona El trabajo es el refugio de los que no tienen nada que hacer (Oscar Wilde) .''`. using free software / Debian GNU/Linux | http://debian.org : :' : `. `'` gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4 `- -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ