question about node creation /dev/mtd*

Josh Boyer jwboyer at linux.vnet.ibm.com
Fri Jan 18 08:14:05 EST 2008


On Fri, 18 Jan 2008 14:56:42 +0200
Artem Bityutskiy <dedekind at 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 at 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



More information about the linux-mtd mailing list