LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-13-2004, 01:15 PM   #1
swissworks
LQ Newbie
 
Registered: Sep 2004
Posts: 5

Rep: Reputation: 0
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!!!!
 
Old 09-13-2004, 01:53 PM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
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
 
Old 09-14-2004, 06:04 AM   #3
swissworks
LQ Newbie
 
Registered: Sep 2004
Posts: 5

Original Poster
Rep: Reputation: 0
yes, I've seen that... but the special devices aren't created.
The only one is /dev/rawctl

 
Old 09-14-2004, 06:11 AM   #4
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
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.

Last edited by Cedrik; 09-14-2004 at 06:15 AM.
 
Old 09-14-2004, 07:22 AM   #5
swissworks
LQ Newbie
 
Registered: Sep 2004
Posts: 5

Original Poster
Rep: Reputation: 0
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...
 
Old 09-14-2004, 09:59 AM   #6
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
- 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.
 
Old 09-14-2004, 01:08 PM   #7
swissworks
LQ Newbie
 
Registered: Sep 2004
Posts: 5

Original Poster
Rep: Reputation: 0
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Require Raw devices on FC3 - New to Linux mikeh7519 Fedora 0 11-10-2005 06:36 PM
assigning raw devices: error when going to init3 GlennsPref Mandriva 1 11-25-2004 09:03 PM
Raw devices gauol Linux - General 2 09-23-2004 02:01 PM
Raw Devices rajar11 Linux - Newbie 4 06-16-2004 01:36 PM
udev and 51 sound devices! tamills Linux - Hardware 0 05-15-2004 05:43 PM


All times are GMT -5. The time now is 04:37 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration