Skip to contentSkip to conversation

question about node creation /dev/mtd*

DISCUSSION vicky 3 participants 5 messages Jan 18, 2008 Memory technology devices (MTD)

lore
Share & tools
lore

vicky

author
#0 lore raw

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

author
#1 lore raw
Quoted 4 lines · vicky

Hi,

I have enabled mtd in my config. When I boot from the updated kernel I find that /dev/mtdblock is not created?

Quoted 9 lines

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

begin:vcard
fn:vicky
n:;vicky
email;internet:[email protected]
version:2.1
end:vcard

#2 lore raw
In reply to vicky
Quoted 10 lines · On Fri, 18 Jan 2008 17:42:39 +0530 vicky <[email protected]> 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

#3 lore raw
Quoted 14 lines · Josh Boyer
Quoted 10 lines · On Fri, 18 Jan 2008 17:42:39 +0530 vicky <[email protected]> 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.

Quoted 4 lines

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.

Signature · 2 lines
Best regards,
Artem Bityutskiy (Битюцкий Артём)
#4 lore raw
Quoted 15 lines · On Fri, 18 Jan 2008 14:56:42 +0200 Artem Bityutskiy <[email protected]>…
Quoted 14 lines · Josh Boyer
Quoted 10 lines · On Fri, 18 Jan 2008 17:42:39 +0530 vicky <[email protected]> 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.

Quoted 8 lines
Quoted 4 lines

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