Re: How to cope with locked flash

Jörn Engel
2005-09-15T18:08:38Z

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