MTD partitions, MTD_WRITEABLE and flash_lock and flash_unlock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  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?

  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.

rday
--

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
========================================================================

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux