From: Cam Mayor <cmayor@iders.ca>
To: "Luca Contini" <luca.contini@mediaenabling.com>,
<linux-mtd@lists.infradead.org>
Subject: Re: mounting mtd device
Date: Fri, 19 Sep 2003 11:49:43 -0500 [thread overview]
Message-ID: <03091911494401.08026@kilauea.iders.ca> (raw)
In-Reply-To: <00a601c37ec3$46b95760$b670a8c0@laptoplukkino>
On Friday 19 September 2003 10:32, Luca Contini wrote:
> Hi all,
> I've successfully compiled the mtd subsystem as a module (mtdblock.o and
> mtd_blkdevs.o).
> I've also successfully inserted those modules using insmod utility, so that
> now I can see the mtdblock block device (major number 31) in the
> /proc/devices list.
> But when I try to mount the corresponding /dev/mtdblock0 device to /mnt/mtd
> I got the following error:
> ** mount: /dev/mtdblock0: unknown device **
>
> The /dev/mtdblock0 device relies on major number 31, minor number 0 and is
> a block device.
> Also, I've placed a
> printk("<1>open\n")
> in the 'blktrans_open' function to see whether the mount is at least trying
> to open the device but with no result.
> Does anyone know why?
I'm new to MTD, but i don't see enough information here. How did you try and
mount it? For instance, did you do "mount -t jffs2 /dev/mtdblock0 /mnt/mtd",
or did you just type "mount /dev/mtdblock0 /mnt/mtd"? (jffs2 is an arbitrary
example).
Is your device actually detected? Just because you have the module installed
and showing up in /proc/devices doesn't mean it was detected. what does
/proc/mtd say? For instance, mine says:
# cat /proc/mtd
dev: size erasesize name
mtd0: 00800000 00020000 "flash"
mtd1: 0000c000 00000010 "SRAM"
mtd2: 00000080 00010000 "BootROM"
mtd3: 00800000 00020000 "Physically mapped flash"
mtd4: 00400000 00020000 "system"
mtd5: 00400000 00020000 "userarea"
mtd6: 09000000 00004000 "guidenand"
this shows which mtd devices are actually there to be accessed.
cheers,
cam
--
Cameron Mayor
Iders Incorporated
next prev parent reply other threads:[~2003-09-19 16:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-19 15:32 mounting mtd device Luca Contini
2003-09-19 16:49 ` Cam Mayor [this message]
2003-09-23 9:44 ` Luca Contini
2003-09-23 17:35 ` Luca Contini
2003-09-23 18:42 ` Steve Brockway
2003-09-23 21:54 ` Cam Mayor
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=03091911494401.08026@kilauea.iders.ca \
--to=cmayor@iders.ca \
--cc=linux-mtd@lists.infradead.org \
--cc=luca.contini@mediaenabling.com \
/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