JFFS2 & MTD mount Question?

Original Question:

2008-12-26 01:06:38Help: 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:08Re: 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:47Re: 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 ?

很是奇怪?

原因何在?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值