[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] One more Flash mounting issue



John,
 
I have been trying to get a flash mount using jffs2 system. I have got almost everything else working except for this.
 
Here is what I do:
 
1). Make a jffs2 file system
2). cp to the flash partition (mtd6) that happens to be the jffs partition (cp /dev/mtd6)
3). do a mount -t jffs2 /dev/mtdblock6 /tmp
 
I get the following : mount: Mounting /dev/mtdblock6 on /tmp failed: No such device
 
For some reason it does not see the device?? I cannot get enough info to troubleshoot this.
 
Here is an ls from /dev :
console    kmem       mtdblock1  mtdr4      ptyp6      tty        ttyp9
fb0        mem        mtdblock2  mtdr5      ptyp7      ttyS0      ttypa
flash      mtd0       mtdblock3  mtdr6      ptyp8      ttyp0      ttypb
fslfifo0   mtd1       mtdblock4  mtdr7      ptyp9      ttyp1      ttypc
fslfifo1   mtd2       mtdblock5  null       ptypa      ttyp2      ttypd
fslfifo2   mtd3       mtdblock6  ptyp0      ptypb      ttyp3      ttype
fslfifo3   mtd4       mtdblock7  ptyp1      ptypc      ttyp4      ttypf
fslfifo4   mtd5       mtdr0      ptyp2      ptypd      ttyp5      urandom
fslfifo5   mtd6       mtdr1      ptyp3      ptype      ttyp6      zero
fslfifo6   mtd7       mtdr2      ptyp4      ptypf      ttyp7
fslfifo7   mtdblock0  mtdr3      ptyp5      random     ttyp8
 
And here is a : cat /proc/mtd:
 
dev:    size   erasesize  name
mtd0: 00020000 00020000 "Bootloader"
mtd1: 00020000 00020000 "Bootargs"
mtd2: 00020000 00020000 "MAC"
mtd3: 00080000 00020000 "Config"
mtd4: 00020000 00020000 "Spare"
mtd5: 00300000 00020000 "Image"
mtd6: 00400000 00020000 "JFFS2"
mtd7: 00800000 00020000 "Flash"
mtd8: 000fd000 00001000 "Romfs"
 
 
It seems that mtdblock6 is there?? Have you seen this, but I cannot mount... Is this broke in the latest CVS version? Am I missing something in the build?
 
Also, after the cp, I stopped the processor using XMD and looked at the flash where the jffs2 file system image was written... It checks out, every byte was written properly. Also, I can do an eraseall /dev/mtdx on any of the partitions and it works!
 
Thanks for any help. This is the Avnet LX board (One of the last problems to solve before uploading)...
 
Thanks!!
 
Greg Miller