LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   UDEV and Raw devices (https://www.linuxquestions.org/questions/slackware-14/udev-and-raw-devices-230129/)

swissworks 09-13-2004 01:15 PM

UDEV and Raw devices
 
Hi!
I need some help: I nead to use raw devices (/dev/raw/raw*) with kernel 2.6 series...
with devfs I have no ploblem, but now... I can't create /dev/raw
I have installed a slackware 10.

Thanks for your help!!!!

Cedrik 09-13-2004 01:53 PM

Logically it is supported without any change if I read correctly :

KERNEL="raw[0-9]*", NAME="raw/%k"

in /etc/udev/rules.d/udev.rules

swissworks 09-14-2004 06:04 AM

yes, I've seen that... but the special devices aren't created.
The only one is /dev/rawctl

:scratch:

Cedrik 09-14-2004 06:11 AM

Have hotplug enabled ?

What is your output for :
cat /usr/src/linux/.config | grep -i raw

[edit]
from kernel config help, I see CONFIG_RAW_DRIVER is marked as obsolete :

The raw driver permits block devices to be bound to /dev/raw/rawN.
Once bound, I/O against /dev/raw/rawN uses efficient zero-copy I/O.
See the raw(8) manpage for more details.

The raw driver is deprecated and may be removed from 2.7
kernels. Applications should simply open the device (eg /dev/hda1) x with the O_DIRECT flag.

swissworks 09-14-2004 07:22 AM

out pu is:

CONFIG_IEEE1394_RAWIO=m
# CONFIG_IP_NF_RAW is not set
CONFIG_RAW_DRIVER=y
CONFIG_MAX_RAW_DEVS=256
CONFIG_SND_RAWMIDI=m

rc.hotplug is enabled...

The use of this dev is obsolete: now, to communicate direct to disk, it can be used O_DIRECT directive.
But this directive must be included into source code (with open()) and I can't modify it...

Cedrik 09-14-2004 09:59 AM

- Have you a /sys directory ?
- I presume your rc.udev is executable...

At least, I would attempt to recompile kernel with CONFIG_RAW_DRIVER as module, don't know if that will help though.

swissworks 09-14-2004 01:08 PM

Sure... sysfs is mounted and rc.udev is started at boot...

I'll try to ricompile with raw dev as module....
I think there's some misconfiguration in udev... baut I don't know how to solve this problem...
Thx for your help!


All times are GMT -5. The time now is 12:16 AM.