Unlocked flash is re-locked by unknow
Nicolas Pitre
nico at cam.org
Tue May 30 15:37:30 EDT 2006
On Tue, 30 May 2006, Henrik Bork Steffensen wrote:
> Hi,
> We have this custom arm based board were we ran Linux 2.4 for 3 years,
> now we are moving to 2.6 and has problems with our NOR Flash.
>
> After boot the flash is locked which is normal for this chip.
> Then we run flash_unlock and mounts the jffs2 fs.
> At this point we can create /remove files.
> But after a some time (or some actions) we get write errors.
> If we re-run flash_unlock, everything works fine again for
> some time (or some actions), then it locks again....
>
> We have tried to figure out which action lock's the device without
> success...
A spike on the flash power maybe?
> This is not a HW problem since booting 2.4 makes it work again.
Note that some newer flash parts have a pin that "force-locks" the flash
when asserted. Maybe you have one of those and the pin is floating?
And to sum it all the 2.6 kernel somehow has a different EMI picture
than the 2.4 and it causes the flash to lock itself that way?
Or maybe just modifying the kernel version number from 2.6 to 2.4 in the
source and recompiling will fix it? ;-)
> Please provide any hint, a simple link to will be fine.
Are you sure your 2.4.x code is not automatically unlocking the flash by
any chance which might just be masking the problem?
Nicolas
More information about the linux-mtd
mailing list