LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   ARM9 linux2.6.15 MTD jffs2 for help (https://www.linuxquestions.org/questions/linux-hardware-18/arm9-linux2-6-15-mtd-jffs2-for-help-507802/)

hall919 12-05-2006 09:34 PM

ARM9 linux2.6.15 MTD jffs2 for help
 
I have Single Board Computer with ARM9 processor,The OS is linux2.6.15.4. Now I amend the /fs/Kconfig to provide devfs .
I using MTD drivers in my flash ROM .
0x00000000-0x00020000 : "bootloader"
0x00020000-0x00200000 : "kernel"
0x00200000-0x00600000 : "ramdisk"
0x00600000-0x01000000 : "jfss2"

The MTD partition table has been found successful.
But under the dir /dev,there have not the mtd device files.
So I add the node:
mknod /dev/mtdblock3 b 31 3
#dd if=/dev/zero of=/dev/mtdblock3 bs=1024 count=5000

#dd if=jffs2for2-6.image of=/dev/mtdblock3 bs=1024 count=5000
503+1 records in
503+1 records out
mount the jffs2:
# mount -t jffs2 /dev/mtdblock3 /jffs2/
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x0090 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0x0090 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0x0090 instead
...................................
jffs2_scan_inode_node(): CRC failed on node at 0x00021f64: Read 0x59827962, calculated 0x188f5e3d
jffs2_scan_inode_node(): CRC failed on node at 0x00022284: Read 0xaf391f4d, calculated 0x431d6f71
jffs2_scan_inode_node(): CRC failed on node at 0x00022b38: Read 0xdf8769a0, calculated 0x33a3199c
................................................
Further such events for this erase block will not be printed
Empty flash at 0x0004fffc ends at 0x00050000
CLEANMARKER node found at 0x00050000, not first node in block (0x00040000)
Empty flash at 0x0006fffc ends at 0x00070000
CLEANMARKER node found at 0x00070000, not first node in block (0x00060000)
Empty flash at 0x0096000c ends at 0x00962000

What'wrong ?Help me
Why not there have the mtd nodes in devfs ? With linux2.4.20 there arm mtdblock in /dev.
Why I can't mount the jffs2 partition?


All times are GMT -5. The time now is 07:06 PM.