All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vernon Sauder <vernoninhand@gmail.com>
To: Markus Wagner <Markus.Wagner@delec.de>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Problems mounting jffs2 image on nor flash > Erase at 0x.... failed	immediately: -EROFS. Is the sector locked?
Date: Wed, 07 May 2008 23:03:43 -0400	[thread overview]
Message-ID: <48226D8F.3030603@gmail.com> (raw)
In-Reply-To: <1423A303F72A2F4FB7801E51406342EA10ECCD@delec-server-01.DELEC.local>

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

  reply	other threads:[~2008-05-08  3:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-30  8:05 Problems mounting jffs2 image on nor flash > Erase at 0x.... failed immediately: -EROFS. Is the sector locked? Markus Wagner
2008-05-08  3:03 ` Vernon Sauder [this message]
2008-05-08  6:59   ` AW: Problems mounting jffs2 image on nor flash > Erase at 0x....failed " Markus Wagner

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=48226D8F.3030603@gmail.com \
    --to=vernoninhand@gmail.com \
    --cc=Markus.Wagner@delec.de \
    --cc=linux-mtd@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.