2008-12-26 05:06:38 Help: mount -t jffs2 /dev/mtd2 /mnt failed!
Tony Liu (CHINA)
Message: 67120
CPU: BF531
SPI Flash: M25P64
System start i can get the info as below:
root: /> cat /proc/mtd
dev: size erasesize name
mtd0: 00040000 00010000 "bootloader"
mtd1: 003c0000 00010000 "kernel"
mtd2: 00400000 00010000 "file system"
root: /> erase /dev/mtd2
Erasing 64 Kibyte @ 0 -- 0 % complete. Erasing 64 Kibyte @ 10000 -- 1 % ......................
Erased 4096 Kibyte @ 0 -- 100% complete.
root: /> mount -t j ffs2 /dev/mtd2 /mnt
mount: mounting /dev/mtd2 on /mnt failed
Why & How to do ?
BR!
QuoteReplyEditDelete
2008-12-26 07:02:08 Re: Help: mount -t jffs2 /dev/mtd2 /mnt failed!
Tony Liu (CHINA)
Message: 67122
Test mtd2 can use? As below:
root:/bin> time cp md5sum /dev/mtd2
real 0m 1.83s
user 0m 0.00s
sys 0m 0.38s
From the information mtd2 is OK?
But mount failed!
???????????????
QuoteReplyEditDelete
2008-12-26 07:35:47 Re: Help: mount -t jffs2 /dev/mtd2 /mnt failed!
Tony Liu (CHINA)
Message: 67123
Now mount jffs2 is ok. But I don't know the reason! Who could tell me?
System boot, then using:
root:> cd /dev
root:/dev> mount -t jffs2 mtd2 /mnt
It's OK!
But Using:
root:> mount -t jffs2 /dev/mtd2 /mnt
failed!
Must enter the /dev dir ?
QuoteReplyEditDelete
2008-12-26 08:36:42 Re: Help: mount -t jffs2 /dev/mtd2 /mnt failed!
Robin Getz (UNITED STATES)
Message: 67124
Tony:
You need for format the partition before you can mount it. (just like your desktop) - use mkfs.jffs2 - it's part of the mtd-utils
http://docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:mtd-utils
-Robin