mtd permission denied

mike mikelee at avantwave.com
Mon Mar 21 21:49:48 EST 2005


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/
>
>  
>





More information about the linux-mtd mailing list