Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have Single Board Computer with ARM9 processor,The OS is linux184.108.40.206. 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?