[uClinux-dev] Eraseall for MTD block devices

Suresh Steven Veigas suresh.veigas at amdlbct.com
Fri Oct 7 04:21:26 EDT 2005


Thanks Erwin, By changing the device nodes, eraseall is working fine now

hi all,
In my board, earlier the flash was AM29LV160DB  (2MB),       now i am using
S29GL032M(R4)     (4MB),  The system is booting normally, but i am facing
problem in mounting jffs2 and using eraseall for 4MB flash.  The system is
hanging after issuing these commands.  in eraseall i am getting console
output as follows
-------------
# # eerraasseeaallll  //ddeevv//mmttdd22

EMraTsiDng_ 6i4 oKicbyttel @
 0
   --  0 % complete.
EMraTsiDng_ 6i4 oKicbyttel @
 1
  0000 --  2 % complete.
EMraTsiDng_ 6i4 oKicbyttel @
 2
  0000 --  4 % complete.
EMraTsiDng_ 6i4 oKicbyttel @
 3
  0000 --  6 % complete.
EMraTsiDng_ 6i4 oKicbyttel @
 4
  0000 --  8 % complete.
EMraTsiDng_ 6i4 oKicbyttel @
 5
  0000 -- 10 % complete.
EMraTsiDng_ 6i4 oKicbyttel @
 6
  0000 -- 12 % complete.
EMraTsiDng_ 6i4 oKicbyttel @
 7
  0000 -- 14 % complete.
EMraTsiDng_ 6i4 oKicbyttel @
 8
  0000 -- 16 % complete.
EMraTsiDng_ 6i4 oKicbyttel @
 9
  0000 -- 18 % complete.
EMraTsiDng_ 6i4 oKicbyttel @
 a
  0000 -- 20 % complete.
EMraTsiDng_ 6i4 oKicbyttel @
 b
  0000 -- 22 % complete.
EMraTsiDng_ 6i4 oKicbyttel @
 c
  0000 -- 25 % complete.
EMraTsiDng_ 6i4 oKicbyttel @
 d
  0000 -- 27 % complete.
EMraTsiDng_ 6i4 oKicbyttel @
 e
  0000 -- 29 % complete.
EMraTsiDng_ 6i4 oKicbyttel @
 f
  0000 -- 31 % complete.
EMraTsiDng_ 6i4 oKicbyttel @
 1
  00

-----------------

I have 2 partitions,  Boot ROM and User FS, Boot ROM is 1MB and USER FS is
3MB,
BootROM  0xFFC00000       :  size 0x100000
UserFS     0xFFD00000  : size 0x300000
as per logs, by executing eraseall, it is erasing from FFD00000 to FFDFFFFF
blocks  nearly 1 MB (assuming), Its hanging when it enters next locations
starts from FFE00000.

Please tell me where i am actually going wrong,

thanks in advance
Steven



----- Original Message -----
From: "Erwin Authried" <eauth at softsys.co.at>
To: "uClinux development list" <uclinux-dev at uclinux.org>
Sent: Wednesday, September 28, 2005 3:20 PM
Subject: Re: [uClinux-dev] Eraseall for MTD block devices


> Am Die, den 27.09.2005 schrieb Suresh Steven Veigas um 6:28:
> > Hi,
> > Thanks you,
> > I tried using char device to use eraseall function, here i am getting
error
> > message like this
> >
> > # # eerraasseeaallll  mmttdd22
> > eraseall: mtd2: Permission denied
> >
> > The permissions are like this
> > # # llss  --llaa
> > crw-------    1 0        0        127,   0 mbus
> > crw-------    1 0        0        126,   0 um
> > crw-------    1 0        0        125,   0 keypump
> > crw-------    1 0        0        124,   0 lcd
> > crw-------    1 0        0        123,   0 buzzer
> > crw-------    1 0        0        122,   0 uu
> > crw-------    1 0        0        121,   0 magcard
> > crw-------    1 0        0        120,   0 qspi
> > crw-------    1 0        0        119,   0 glcd
> > crw-------    1 0        0        108,   0 ppp
> > crw-------    1 0        0         90,   2 mtd2
> > crw-------    1 0        0         90,   1 mtd1
> > crw-------    1 0        0         90,   0 mtd0
> > brw-------    1 0        0         31,   2 mtdblock2
> > brw-------    1 0        0         31,   1 mtdblock1
> > brw-------    1 0        0         31,   0 mtdblock0
> > crw-------    1 0        0          4,  65 ttyS1
> > crw-------    1 0        0          4,  64 ttyS0
> > crw-------    1 0        0          4,   3 tty3
> > crw-------    1 0        0          4,   2 tty2
> > crw-------    1 0        0          4,   1 tty1
> > crw-------    1 0        0          4,   0 tty0
> > brw-------    1 0        0          1,   3 ram3
> > brw-------    1 0        0          1,   2 ram2
> > brw-------    1 0        0          1,   1 ram1
> > brw-------    1 0        0          1,   0 ram0
> > crw-------    1 0        0          1,   9 urandom
> > crw-------    1 0        0          1,   8 random
> > crw-------    1 0        0          1,   5 zero
> > crw-------    1 0        0          1,   3 null
> > crw-------    1 0        0          1,   2 kmem
> > crw-------    1 0        0          1,   1 mem
> > crw-------    1 0        0          5,  65 cua1
> > crw-------    1 0        0          5,  64 cua0
> > crw-------    1 0        0          5,   1 console
> > crw-------    1 0        0          5,   0 tty
> > drwxr-xr-x    1 0        0              32 ..
> > drwxr-xr-x    1 0        0              32 .
>
> Hi,
> your dev nodes are wrong. It should be:
> c 90 0 mtd0
> c 90 2 mtd1
> c 90 4  mtd2
>
> In addition, the major number for mtdblock is 90, 31 is for blkmem.
>
> Regards,
> Erwin
>
>
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org
>



Confidentiality Notice:

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at AMDLBCT or sysadmin at amdlbct.com immediately and destroy all copies of this message and any attachments.




More information about the uClinux-dev mailing list