`
hududanyzd
  • 浏览: 780290 次
文章分类
社区版块
存档分类
最新评论

JFFS2 & MTD mount Question?

 
阅读更多

Original Question:

2008-12-26 01:06:38 Help: mount -t jffs2 /dev/mtd2 /mnt failed!
Tony Liu (CHINA)
Message ID: 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 jffs2 /dev/mtd2 /mnt

mount: mounting /dev/mtd2 on /mnt failed

Why & How to do ?

BR!


2008-12-26 03:02:08 Re: Help: mount -t jffs2 /dev/mtd2 /mnt failed!
Tony Liu (CHINA)
Message ID: 67122

Test mtd2 can use? As below:

root:/bin> time cp md5sum /dev/mtd2
real0m 1.83s
user0m 0.00s
sys0m 0.38s

From the information mtd2 is OK?

But mount failed!

???????????????


2008-12-26 03:35:47 Re: Help: mount -t jffs2 /dev/mtd2 /mnt failed!
Tony Liu (CHINA)
Message ID: 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 ?

很是奇怪?

原因何在?

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics