AnsweredAssumed Answered

flash_eraseall - Cant write to /dev/mtd11 - permission denied please Help!!

Question asked by alfonsokame on Nov 30, 2012
Latest reply on Dec 5, 2012 by Scott Wood

Hello,

I ve got a P1021rdb-PC board and I have to configure so that it boots from the EEPROM SPI Flash.

I want to write the SPI bootloader to the corresponding

 

Here is what I do:

 

cat /pro/ c/mtd

dev:    size   erasesize  name

mtd0: 00040000 00020000 "NOR Vitesse-7385 Firmware"

mtd1: 00040000 00020000 "NOR DTB Image"

mtd2: 00380000 00020000 "NOR Linux Kernel Image"

mtd3: 00b00000 00020000 "NOR JFFS2 Root File System"

mtd4: 00100000 00020000 "NOR U-Boot Image"

mtd5: 00100000 00004000 "NAND U-Boot Image"

mtd6: 00100000 00004000 "NAND DTB Image"

mtd7: 00400000 00004000 "NAND Linux Kernel Image"

mtd8: 00400000 00004000 "NAND Compressed RFS Image"

mtd9: 00700000 00004000 "NAND JFFS2 Root File System"

mtd10: 00f00000 00004000 "NAND Writable User area"

mtd11: 000a0000 00010000 "SPI Flash U-Boot Image"

mtd12: 00060000 00010000 "SPI Flash DTB Image"

mtd13: 00400000 00010000 "SPI Flash Linux Kernel Image"

mtd14: 00400000 00010000 "SPI Flash Compressed RFSImage"

mtd15: 00700000 00010000 "SPI Flash JFFS2 RFS"


root@p1021rdb:~# ls /dev/mtd*s -l

crw------- 1 root root 90,  0 Jan  1  1970 /dev/mtd0

crw------- 1 root root 90,  1 Jan  1  1970 /dev/mtd0ro

crw------- 1 root root 90,  2 Jan  1  1970 /dev/mtd1

crw------- 1 root root 90, 20 Jan  1  1970 /dev/mtd10

crw------- 1 root root 90, 21 Jan  1  1970 /dev/mtd10ro

crw------- 1 root root 90, 22 Jan  1  1970 /dev/mtd11

crw------- 1 root root 90, 23 Jan  1  1970 /dev/mtd11ro

crw------- 1 root root 90, 24 Jan  1  1970 /dev/mtd12

crw------- 1 root root 90, 25 Jan  1  1970 /dev/mtd12ro

crw------- 1 root root 90, 26 Jan  1  1970 /dev/mtd13

crw------- 1 root root 90, 27 Jan  1  1970 /dev/mtd13ro

crw------- 1 root root 90, 28 Jan  1  1970 /dev/mtd14

crw------- 1 root root 90, 29 Jan  1  1970 /dev/mtd14ro

crw------- 1 root root 90, 30 Jan  1  1970 /dev/mtd15

crw------- 1 root root 90, 31 Jan  1  1970 /dev/mtd15ro

crw------- 1 root root 90,  3 Jan  1  1970 /dev/mtd1ro

crw------- 1 root root 90,  4 Jan  1  1970 /dev/mtd2

crw------- 1 root root 90,  5 Jan  1  1970 /dev/mtd2ro

crw------- 1 root root 90,  6 Jan  1  1970 /dev/mtd3

crw------- 1 root root 90,  7 Jan  1  1970 /dev/mtd3ro

crw------- 1 root root 90,  8 Jan  1  1970 /dev/mtd4

crw------- 1 root root 90,  9 Jan  1  1970 /dev/mtd4ro

crw------- 1 root root 90, 10 Jan  1  1970 /dev/mtd5

crw------- 1 root root 90, 11 Jan  1  1970 /dev/mtd5ro

crw------- 1 root root 90, 12 Jan  1  1970 /dev/mtd6

crw------- 1 root root 90, 13 Jan  1  1970 /dev/mtd6ro

ct 90, 14 Jan  1  1970 /dev/mtd7

crw------- 1 root root 90, 15 Jan  1  1970 /dev/mtd7ro

crw------- 1 root root 90, 16 Jan  1  1970 /dev/mtd8

crw------- 1 root root 90, 17 Jan  1  1970 /dev/mtd8ro

crw------- 1 root root 90, 18 Jan  1  1970 /dev/mtd9

crw------- 1 root root 90, 19 Jan  1  1970 /dev/mtd9ro

brw-rw---- 1 root disk 31,  0 Jan  1  1970 /dev/mtdblock0

brw-rw---- 1 root disk 31,  1 Jan  1  1970 /dev/mtdblock1

brw-rw---- 1 root disk 31, 10 Jan  1  1970 /dev/mtdblock10

brw-rw---- 1 root disk 31, 11 Jan  1  1970 /dev/mtdblock11

brw-rw---- 1 root disk 31, 12 Jan  1  1970 /dev/mtdblock12

brw-rw---- 1 root disk 31, 13 Jan  1  1970 /dev/mtdblock13

brw-rw---- 1 root disk 31, 14 Jan  1  1970 /dev/mtdblock14

brw-rw---- 1 root disk 31, 15 Jan  1  1970 /dev/mtdblock15

brw-rw---- 1 root disk 31,  2 Jan  1  1970 /dev/mtdblock2

brw-rw---- 1 root disk 31,  3 Jan  1  1970 /dev/mtdblock3

brw-rw---- 1 root disk 31,  4 Jan  1  1970 /dev/mtdblock4

brw-rw---- 1 root disk 31,  5 Jan  1  1970 /dev/mtdblock5

brw-rw---- 1 root disk 31,  6 Jan  1  1970 /dev/mtdblock6

brw-rw---- 1 root disk 31,  7 Jan  1  1970 /dev/mtdblock7

brw-rw---- 1 root disk 31,  8 Jan  1  1970 /dev/mtdblock8

brw-rw---- 1 root disk 31,  9 Jan  1  1970 /dev/mtdblock9

root@p1021rdb:~# flash_eraseall /dev/mtd11

flash_eraseall has been replaced by `flash_erase <mtddev> 0 0`; please use it

flash_erase: error!: /dev/mtd11

             error 13 (Permission denied)


These Character devices (mtdxx) have even minor number. They seem to be OK. What I m missing here??


even "cat /dev/null > /dev/mtd11" doesnt work


Please Help!!


Thank you very much in advance!!

 

 

 


Outcomes