From: regigao <regigao@sinamail.com>
To: <linux-mtd@lists.infradead.org>
Subject: /dev/mtdblock0 : No such device
Date: Mon, 18 Mar 2002 09:18:12 +0800 [thread overview]
Message-ID: <20020318011812.26887.qmail@sinamail.com> (raw)
Hi
I have a board with two Intel Flash E28F640.
The Flash mapping address starts from 0xff000000 to 0xffffffff
Each Flash is 8 MB , so the total size is 16 MB
I use kernel 2.4.18 , and enable the MTD options with
CONFIG_MTD
CONFIG_MTD_CHAR
CONFIG_MTD_BLOCK
CONFIG_MTD_CFI
CONFIG_MTD_CFI_GEOMETRY
CONFIG_MTD_CFI_B1
CONFIG_MTD_CFI_I2
CONFIG_MTD_CFI_INTELEXT
CONFIG_MTD_PHYSMAP
CONFIG_MTD_PHYSMAP_START ( 0xff000000 )
CONFIG_MTD_PHYSMAP_LEN ( 0x01000000 )
CONFIG_MTD_PHYSMAP_BUSWIDTH ( 1 )
I also enable the JFFS option in File systems
When I boot the kernel , I can see the detection message
physmap flash device: 1000000 at ff000000
Physically mapped flash: Found 1 x16 devices at 0x800000 in 8-bit mode
mtd: Giving out device 0 to Physically mapped flash
I cat /proc/mtd and it shows the MTD device
# cat /proc/mtd
dev: size erasesize name
mtd0: 01000000 00020000 "Physically mapped flash"
Now I use mkfs.jffs to build a jffs image(img_file) and cp it to /dev/mtd0
# cp img_file /dev/mtd0
But whenever I try to mount /dev/mtdblock0 , it shows No such device
# mount -t jffs /dev/mtdblock0 tmp
mount: Mounting /dev/mtdblock0 on /tmp/tmp failed: No such device
I am sure that I have the device file ( mtdblock0 ) in the /dev/
# ls -la /dev/mtdblock0
brw-r--r-- 1 root root 31, 0 Dec 11 2001 /dev/mtdblock0
Does anyone have any suggestions about what I might be getting wrong ?
thanks !
==================================================================
〔新浪網公告〕
上網免撥接費! [帳號] sina [密碼] sina@u2online [撥接電話] 4050-8888,
或請至http://u2.sina.com.tw/sina下載自動設定軟體
reply other threads:[~2002-03-18 1:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020318011812.26887.qmail@sinamail.com \
--to=regigao@sinamail.com \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox