|
大侠们帮忙:如何在mizi-Linux2.4.19上加入NandFlsah的Jffs2工具mkfs.jffs2等...
我最近刚从深圳远峰那搞了一块AT91RM9200的ARM9开发板,上面没有eraseall等的工具,在网上下载了MTD的工具可都是Linux2.6的核,配置不成功就没有往下做,能否从贵处得到指点帮忙,菜鸟HelecXu谢谢你,如有相关工具源码----> [email protected]嘿嘿!在网上太难搞,好多都要看英文,累....
修改了部分代码,启动相关信息如下:
NAND device: Manufacture ID: 0x52, Chip ID: 0xec (Samsung K9F5608U0B) // 修改过驱动.
Creating 6 MTD partitions on "Samsung K9F5608U0B":
0x00000000-0x00100000 : "AT91 NAND partition 1, kernel"
Could not find valid boot record
Could not mount NFTL device
0x00100000-0x01100000 : "AT91 NAND partition 2, filesystem"
Could not find valid boot record
Could not mount NFTL device
0x01100000-0x01200000 : "AT91 NAND partition 3a, storage"
Could not find valid boot record
Could not mount NFTL device
0x01200000-0x01300000 : "AT91 NAND partition 3b, storage"
Could not find valid boot record
Could not mount NFTL device
0x01300000-0x01400000 : "AT91 NAND partition 3c, storage"
Could not find valid boot record
Could not mount NFTL device
0x01400000-0x01500000 : "AT91 NAND partition 3d, storage"
Could not find valid boot record
Could not mount NFTL device
在/dev/mtd 和 /dev/mtdblock可以看到挂接的设备了,
# cd /dev/mtd
# ls
0 1 2 3 4 5 6 7 8
0ro 1ro 2ro 3ro 4ro 5ro 6ro 7ro 8ro
# cd /dev/mtdblock
# ls
0 1 2 3 4 5 6 7 8
# cat /proc/mtd
dev: size erasesize name
mtd0: 00040000 00020000 "Bootloader" // On Nor Falsh.
mtd1: 00100000 00020000 "Kernel"
mtd2: 00e80000 00020000 "Filesystem"
mtd3: 00100000 00004000 "AT91 NAND partition 1, kernel" // On Nand Flsah.
mtd4: 01000000 00004000 "AT91 NAND partition 2, filesystem"
mtd5: 00100000 00004000 "AT91 NAND partition 3a, storage"
mtd6: 00100000 00004000 "AT91 NAND partition 3b, storage"
mtd7: 00100000 00004000 "AT91 NAND partition 3c, storage"
mtd8: 00100000 00004000 "AT91 NAND partition 3d, storage"
#
用mount -t jffs2 /dev/mtdblock/5 /mnt/jffs2时显示了无数行信息:最后几行如下:
JFFS2: Erase block at 0x000f8000 is not formatted. It will be erased
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fc000: 0x8f8f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fc004: 0x8f8f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fc008: 0x8f8f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fc00c: 0x8f8f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fc010: 0x8f8f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fc014: 0x8f8f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fc018: 0x8f8f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fc01c: 0x8f8f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fc020: 0x8f8f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fc024: 0x8f8f instead
Further such events for this erase block will not be printed
ofs 0x000fd420 has already been seen. Skipping
JFFS2: Erase block at 0x000fc000 is not formatted. It will be erased
Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
mount: Mounting /dev/mtdblock/5 on /mnt/jffs2 failed: Invalid argument |
|