public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Justin Treon <justin_treon@yahoo.com>
To: Nicolas Pitre <nico@cam.org>
Cc: linux-mtd@lists.infradead.org
Subject: Re: [PATCH 1/1] MTD: Unlocking all Intel flash that is locked on power up
Date: Fri, 9 Nov 2007 10:23:00 -0800 (PST)	[thread overview]
Message-ID: <461814.66132.qm@web43145.mail.sp1.yahoo.com> (raw)
In-Reply-To: <alpine.LFD.0.9999.0711091248130.21255@xanadu.home>

> > > > Adding the ability to unlocking all Intel flash that is locked on power up. 
> > > > Currently only Intel P30 flash is unlocked.  All Intel flash is locked on
> power
> > > up.
> > > 
> > > What if you wanted for some of your flash partitions to remain locked?
> > > 
> > 
> > It will not unlock any partitions that are listed are read only in your map.  
> > 
> > I prefer to use the command line partitioning so if I have
> > "mtdparts=M18:0x80000(blob)ro,0x280000(kernel)," mtd0, the boot loader, will
> remain
> > locked and mtd1, the kernel, will be unlocked.  
> 
> That might be your preference.  But locked flash blocks are more likely 
> to be immune against software bugs for example.  Unconditionally 
> unlocking all blocks without regards for the wish of the user is a bad 
> idea.  This is policy that is better decided elsewhere.

Setting an MTD partition to read only can be done in the maps files as will as in
the command line.  Those wishing to protect a partition should always set it to read
only for the very same reasons you mentioned.

> 
> I think that adding a mount flag to jffs2 to unlock the concerned 
> partition when it is about to be mounted read-write would be a much 
> better solution.  This has been discussed on the list long ago IIRC, but 
> no one came forward with a patch.
> 

Adding the ability to unlock a partition on mount is not a bad idea, but it should
not be the only way.  I often write to an mtd block device without mounting it and I
do not always use jffs2 as my writable filing system.

Justin

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

  reply	other threads:[~2007-11-09 18:23 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-09  0:03 [PATCH 1/1] MTD: Unlocking all Intel flash that is locked on power up Justin Treon
2007-11-09  0:51 ` Nicolas Pitre
2007-11-09 17:31   ` Justin Treon
2007-11-09 17:52     ` Nicolas Pitre
2007-11-09 18:23       ` Justin Treon [this message]
2007-11-09 18:31         ` Nicolas Pitre
2007-11-09 19:34           ` Justin Treon
2007-11-09 20:17             ` Nicolas Pitre
2007-11-09 20:36               ` Justin Treon
2007-11-09 20:42                 ` Nicolas Pitre
2007-11-09 23:05                   ` Jörn Engel
2007-11-12 21:23               ` Justin Treon
2007-11-12 21:43                 ` Nicolas Pitre
2007-11-12 22:50                   ` Jared Hulbert
2007-11-13  2:02                     ` NFTL for using FAT file system on NAND data partition Gangadhar Kodishala
2007-11-13  3:39                       ` falls huang
2007-11-13 18:10                         ` Gangadhar Kodishala
2007-11-13  4:48                     ` [PATCH 1/1] MTD: Unlocking all Intel flash that is locked on power up Nicolas Pitre
2007-11-13 17:40                       ` Jared Hulbert
2007-11-13 19:02                         ` Nicolas Pitre
2007-11-13 23:35                           ` Justin Treon
2007-11-14  0:16                             ` Justin Treon
2007-11-14  1:20                             ` Nicolas Pitre
2007-11-13  4:55                 ` Nicolas Pitre
2007-11-09  1:30 ` Josh Boyer
2007-11-09 18:08   ` Justin Treon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=461814.66132.qm@web43145.mail.sp1.yahoo.com \
    --to=justin_treon@yahoo.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=nico@cam.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox