public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: mike <mikelee@avantwave.com>
To: linux-mtd@lists.infradead.org
Subject: Re: mtd permission denied
Date: Tue, 22 Mar 2005 10:49:48 +0800	[thread overview]
Message-ID: <423F87CC.10805@avantwave.com> (raw)
In-Reply-To: <1ffb4b0705032109224f2c7805@mail.gmail.com>

Hi all
    Also when i use jffs2 for data storage, i got these msg when 
mounting mtd. i have tried to erase and unlock the mtd , i got similar msg.

Erase at 0x00080000 failed immediately: -EROFS. Is the sector locked?
Erase at 0x00070000 failed immediately: -EROFS. Is the sector locked?
Erase at 0x00060000 failed immediately: -EROFS. Is the sector locked?
Erase at 0x00050000 failed immediately: -EROFS. Is the sector locked?
Erase at 0x00040000 failed immediately: -EROFS. Is the sector locked?
Erase at 0x00030000 failed immediately: -EROFS. Is the sector locked?
Erase at 0x00020000 failed immediately: -EROFS. Is the sector locked?
Erase at 0x00010000 failed immediately: -EROFS. Is the sector locked?
Erase at 0x000f0000 failed immediately: -EROFS. Is the sector locked?
Erase at 0x000e0000 failed immediately: -EROFS. Is the sector locked?
Erase at 0x000d0000 failed immediately: -EROFS. Is the sector locked?
Erase at 0x000c0000 failed immediately: -EROFS. Is the sector locked?
Erase at 0x000b0000 failed immediately: -EROFS. Is the sector locked?
Erase at 0x000a0000 failed immediately: -EROFS. Is the sector locked?
Erase at 0x00090000 failed immediately: -EROFS. Is the sector locked?

~ # flash_eraseall /dev/mtd4
flash_eraseall: /dev/mtd4: Permission denied
~ # flash_unlock /dev/mtd4
Could not open mtd device: /dev/mtd4
~ # mtd_debug info /dev/mtd4
mtd.type = MTD_NORFLASH
mtd.flags = MTD_ERASEABLE
mtd.size = 1048576 (1M)
mtd.erasesize = 65536 (64K)
mtd.oobblock = 0
mtd.oobsize = 0
mtd.ecctype = MTD_ECC_NONE
regions = 0

Thanks for helping
Mike,Lee


Mike Lee wrote:

>Hi all
>  i tried to flash_erase and other flash_* tools to my mtd device, the
>return value is permission denied, but i am already root login. I have
>selected MTD_CHAR and MTD_BLOCK in kernel.  Do i miss somethings?
>
>    My kernel version is 2.6.10, with cvs mtd patched.
>
>Mike,Lee
>
>______________________________________________________
>Linux MTD discussion mailing list
>http://lists.infradead.org/mailman/listinfo/linux-mtd/
>
>  
>

  reply	other threads:[~2005-03-22  2:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-21 17:22 mtd permission denied Mike Lee
2005-03-22  2:49 ` mike [this message]
2005-03-22  6:43 ` Aras Vaichas
2005-03-22 23:23   ` Aras Vaichas

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=423F87CC.10805@avantwave.com \
    --to=mikelee@avantwave.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox