Problems mounting jffs2 image on nor flash > Erase at 0x.... failed immediately: -EROFS. Is the sector locked?

Vernon Sauder vernoninhand at gmail.com
Wed May 7 23:03:43 EDT 2008


Markus Wagner wrote:
> Hello,
>
> i have some problems to mount my jffs2 image on my NOR-Flash.
> I ported UBoot and Linux to my new board.
> So far UBoot works well but Linux has some problems to mount the flash.
>
> I can read from my flash with the dd command.
> But when I mount the flash with 'mount -t jffs2 /dev/mtdblock4 /mnt/' I get the error: 'Erase at 0x...... failed immediately: -EROFS. Is the sector locked?'
>
> Some Infos:
> Its an Intel P33 Strataflash.
>
> <SNIP>
>
> It seems to me that the kernel doesn't know that the flash is protected after power up.
>
> How can I get it to work?
> Where should I look at?
>
> Thanks for your help.
> Markus
>
>   
You did not mention exactly which device you are using. I just posted a 
patch to the list that added more StrataFlash devices to the fixup table 
so they are unlocked at power up.

See [PATCH] mtd: add more StrataFlash chip ids that need powerup fixup

Vern



More information about the linux-mtd mailing list