How to cope with locked flash

Jörn Engel joern at wohnheim.fh-wedel.de
Thu Sep 15 14:08:16 EDT 2005


On Thu, 15 September 2005 09:38:51 -0700, Todd Poynor wrote:
> 
> Some people hack the kernel to unlock writeable partitions during the 
> boot sequence.  One of these days should look at adding flags to jffs2 
> to unlock the flash at mount time.

We created a patch for our bootloader to do the work.  If the
bootloader needs flash write support anyway, it is the natural place
for the code.

Next best thing, imo, would be the mtd mapping driver.  JFFS2 should
stay clear of this, if possible.  We should aim to isolate hardware
stuff to drivers/mtd/ and keep fs/* unaware.  Some things like wbuf
require fs knowledge, but unlock doesn't.

Jörn

-- 
Those who come seeking peace without a treaty are plotting.
-- Sun Tzu




More information about the linux-mtd mailing list