question about node creation /dev/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
Quoted 4 lines · vicky
Hi,
I have enabled mtd in my config. When I boot from the updated kernel I find that
/dev/mtdblockis not created?
Quoted 9 lines
How does the
/dev/mtdblockget 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=yCONFIG_MTD_PARTITIONS=yCONFIG_MTD_CHAR=yCONFIG_MTD_BLKDEVS=yCONFIG_MTD_BLOCK=yCONFIG_MTD_NAND=yCONFIG_MTD_NAND_VERIFY_WRITE=yCONFIG_MTD_NAND_IDS=y
begin:vcard
fn:vicky
n:;vicky
email;internet:[email protected]
version:2.1
end:vcard
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/mtdblockis not created?How does the
/dev/mtdblockget 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
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/mtdblockis not created?How does the
/dev/mtdblockget 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 (Битюцкий Артём)
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/mtdblockis not created?How does the
/dev/mtdblockget 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