* question about node creation /dev/mtd*
@ 2008-01-18 12:12 vicky
2008-01-18 12:27 ` vicky
2008-01-18 12:44 ` Josh Boyer
0 siblings, 2 replies; 5+ messages in thread
From: vicky @ 2008-01-18 12:12 UTC (permalink / raw)
To: linux-mtd
Hi,
I have enabled mtd in my config. When I boot from the updated kernel I
find that /dev/mtdblock is not created?
How does the /dev/mtdblock get created? I didn't find this in the
init/rcs script. I am under an impression that once the mtd is enabled
in the linux
config file the creation of the corresponding node is taken care in some
script.
I have a dummy nand driver written and placed in the mtd/nand location.
Please advice.
Vic
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: question about node creation /dev/mtd*
2008-01-18 12:12 question about node creation /dev/mtd* vicky
@ 2008-01-18 12:27 ` vicky
2008-01-18 12:44 ` Josh Boyer
1 sibling, 0 replies; 5+ messages in thread
From: vicky @ 2008-01-18 12:27 UTC (permalink / raw)
To: linux-mtd
[-- Attachment #1: Type: text/plain, Size: 725 bytes --]
vicky wrote:
> Hi,
>
> I have enabled mtd in my config. When I boot from the updated kernel I
> find that /dev/mtdblock is not created?
>
> How does the /dev/mtdblock get created? I didn't find this in the
> init/rcs script. I am under an impression that once the mtd is enabled
> in the linux
> config file the creation of the corresponding node is taken care in
> some script.
>
> I have a dummy nand driver written and placed in the mtd/nand location.
>
> Please advice.
>
> Vic
>
Adding to the email, I enabled the below options in my config file.
CONFIG_MTD=y
CONFIG_MTD_PARTITIONS=y
CONFIG_MTD_CHAR=y
CONFIG_MTD_BLKDEVS=y
CONFIG_MTD_BLOCK=y
CONFIG_MTD_NAND=y
CONFIG_MTD_NAND_VERIFY_WRITE=y
CONFIG_MTD_NAND_IDS=y
[-- Attachment #2: vicky_irobot.vcf --]
[-- Type: text/x-vcard, Size: 91 bytes --]
begin:vcard
fn:vicky
n:;vicky
email;internet:vicky.irobot@gmail.com
version:2.1
end:vcard
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: question about node creation /dev/mtd*
2008-01-18 12:12 question about node creation /dev/mtd* vicky
2008-01-18 12:27 ` vicky
@ 2008-01-18 12:44 ` Josh Boyer
2008-01-18 12:56 ` Artem Bityutskiy
1 sibling, 1 reply; 5+ messages in thread
From: Josh Boyer @ 2008-01-18 12:44 UTC (permalink / raw)
To: vicky; +Cc: linux-mtd
On Fri, 18 Jan 2008 17:42:39 +0530
vicky <vicky.irobot@gmail.com> wrote:
> Hi,
>
> I have enabled mtd in my config. When I boot from the updated kernel I
> find that /dev/mtdblock is not created?
>
> How does the /dev/mtdblock get created? I didn't find this in the
> init/rcs script. I am under an impression that once the mtd is enabled
> in the linux
> config file the creation of the corresponding node is taken care in some
> script.
You need to either have udev running, or create it manually yourself
with mknod (which can be done via a script you write). This is, of
course, assuming you have the mtdblock module loaded or compiled into
your kernel.
josh
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: question about node creation /dev/mtd*
2008-01-18 12:44 ` Josh Boyer
@ 2008-01-18 12:56 ` Artem Bityutskiy
2008-01-18 13:14 ` Josh Boyer
0 siblings, 1 reply; 5+ messages in thread
From: Artem Bityutskiy @ 2008-01-18 12:56 UTC (permalink / raw)
To: Josh Boyer; +Cc: linux-mtd, vicky
On Fri, 2008-01-18 at 06:44 -0600, Josh Boyer wrote:
> On Fri, 18 Jan 2008 17:42:39 +0530
> vicky <vicky.irobot@gmail.com> wrote:
>
> > Hi,
> >
> > I have enabled mtd in my config. When I boot from the updated kernel I
> > find that /dev/mtdblock is not created?
> >
> > How does the /dev/mtdblock get created? I didn't find this in the
> > init/rcs script. I am under an impression that once the mtd is enabled
> > in the linux
> > config file the creation of the corresponding node is taken care in some
> > script.
>
> You need to either have udev running, or create it manually yourself
> with mknod (which can be done via a script you write). This is, of
> course, assuming you have the mtdblock module loaded or compiled into
> your kernel.
udev will not help because MTD is not Linux Device Model-enabled, so
only ancient manual device node creation method may be used. There is a
MAKEDEV script in mtd-utils.git which may help.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: question about node creation /dev/mtd*
2008-01-18 12:56 ` Artem Bityutskiy
@ 2008-01-18 13:14 ` Josh Boyer
0 siblings, 0 replies; 5+ messages in thread
From: Josh Boyer @ 2008-01-18 13:14 UTC (permalink / raw)
To: dedekind; +Cc: linux-mtd, vicky
On Fri, 18 Jan 2008 14:56:42 +0200
Artem Bityutskiy <dedekind@infradead.org> wrote:
> On Fri, 2008-01-18 at 06:44 -0600, Josh Boyer wrote:
> > On Fri, 18 Jan 2008 17:42:39 +0530
> > vicky <vicky.irobot@gmail.com> wrote:
> >
> > > Hi,
> > >
> > > I have enabled mtd in my config. When I boot from the updated kernel I
> > > find that /dev/mtdblock is not created?
> > >
> > > How does the /dev/mtdblock get created? I didn't find this in the
> > > init/rcs script. I am under an impression that once the mtd is enabled
> > > in the linux
> > > config file the creation of the corresponding node is taken care in some
> > > script.
> >
> > You need to either have udev running, or create it manually yourself
> > with mknod (which can be done via a script you write). This is, of
> > course, assuming you have the mtdblock module loaded or compiled into
> > your kernel.
>
> udev will not help because MTD is not Linux Device Model-enabled, so
> only ancient manual device node creation method may be used. There is a
> MAKEDEV script in mtd-utils.git which may help.
MTD itself isn't, no. But I thought mtdblock got some of the sysfs
stuff for free because it hooked into the generic block layer?
It's been a while, I could be mistaken.
josh
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-01-18 13:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-18 12:12 question about node creation /dev/mtd* vicky
2008-01-18 12:27 ` vicky
2008-01-18 12:44 ` Josh Boyer
2008-01-18 12:56 ` Artem Bityutskiy
2008-01-18 13:14 ` Josh Boyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox