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 01-03-2006, 01:21 PM   #16
dannyl
Member
 
Registered: Aug 2003
Location: Near Marion, Ill.
Distribution: Slackware 12.2, Kubuntu, Zenwalk
Posts: 102

Original Poster
Rep: Reputation: 15

Ok I'm back on my Ubuntu system now. I wouldn't have a clue as to what all I need to check to see why udev works under Ubuntu and not Slackware.
 
Old 01-03-2006, 01:45 PM   #17
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
I would like to know, what does udev do that hotplug doesn't?

If someone uses a 2.6.x kernel without udev, what happens? something gets broken?
 
Old 01-03-2006, 02:56 PM   #18
dannyl
Member
 
Registered: Aug 2003
Location: Near Marion, Ill.
Distribution: Slackware 12.2, Kubuntu, Zenwalk
Posts: 102

Original Poster
Rep: Reputation: 15
From what I read, udev is supposed to replace hotplug. It is supposed to make it easier to use items like usb drives etc. The purpose is so you can plug in, say your camera, and it will just work.
 
Old 01-03-2006, 03:06 PM   #19
ingvildr
Member
 
Registered: Mar 2005
Location: England, South East
Distribution: Fedora
Posts: 358

Rep: Reputation: 30
it maps hardware to entries in the /dev directory. Although before you needed hotplug for it to notice you randomly placing in a usb pen drive now udev can do they by itself, so no more need for hotplug.
 
Old 01-03-2006, 04:26 PM   #20
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 441

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by raska
I would like to know, what does udev do that hotplug doesn't?

If someone uses a 2.6.x kernel without udev, what happens? something gets broken?
hotplug is the infrastructure that when you plug a device the kerner driver is loaded.
udev it the infrastructure that when you plug a device, the /dev/ entry is created so you don't have
a /dev/ directory with 3000 device nodes that are useless.
 
Old 01-03-2006, 05:17 PM   #21
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
ok, got it.

so it's kind of useful... should keep it close and working outright LOL
 
Old 01-03-2006, 08:50 PM   #22
dannyl
Member
 
Registered: Aug 2003
Location: Near Marion, Ill.
Distribution: Slackware 12.2, Kubuntu, Zenwalk
Posts: 102

Original Poster
Rep: Reputation: 15
Which brings us back to the original question. How do you make it all work in Slackware?
 
Old 01-04-2006, 04:24 AM   #23
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
Well for at least Slackware 10.1 and 10.2 udev is a required package and should already be installed, once I installed a 2.6 kernel I made the udev rc script executable
Code:
chmod +x /etc/rc.d/rc.udev
and than rebooted to boot from the new kernel and everything just worked
 
Old 01-04-2006, 12:54 PM   #24
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Rep: Reputation: 38
Ok, I did
[code]
chmod +x /etc/rc.d/rc.udev
then rebooted. I got a lot of errors during boot up that appeared to be related to hotplug. Udev still does not work.
 
Old 01-04-2006, 12:55 PM   #25
Macky
LQ Newbie
 
Registered: Apr 2005
Location: Stockholm
Distribution: Slackware 10.2, 2.6.15 kernel
Posts: 28

Rep: Reputation: 15
I had to go back to udev-0.50 from Slack 10.1 to make it work correctly on my machine. udev-0.64 just refused to work properly. Probably had something to do with the udevd not running. But as Phil said, just install 2.6 kernel, then hotplug package, then udev package, and make rc.udev executable. One might have to modify something in udev.rules later too.
 
Old 01-04-2006, 01:16 PM   #26
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Rep: Reputation: 38
Maybe /sbin/udevd needs to be executable?

edit

I downgrade udev to .50, but still no luck. Udev just refuses to work correctly. I really hate to switch Distros, because there are things I don't like about Ubuntu, but at least udev works the way it is supposed to.

Last edited by interndan; 01-04-2006 at 06:33 PM.
 
Old 01-04-2006, 07:36 PM   #27
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Rep: Reputation: 38
I'm obviously missing something. Do I need to recompile my kernel maybe? How could I check my current config to see if everything is in the kernel?
 
Old 01-05-2006, 11:37 AM   #28
dannyl
Member
 
Registered: Aug 2003
Location: Near Marion, Ill.
Distribution: Slackware 12.2, Kubuntu, Zenwalk
Posts: 102

Original Poster
Rep: Reputation: 15
So far none of the suggestions has worked. Does anyone know what I perhaps should start checking to see what is missing?
 
Old 01-05-2006, 12:16 PM   #29
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
Smile it must work

Ok, let's go thru the basics here...

here's my uname output, so you can see the running kernel
Code:
$ uname -a
Linux it010sam 2.6.15_raskol #1 PREEMPT Tue Jan 3 18:50:56 CST 2006 i686 pentium4 i386 GNU/Linux
my udev version 0.64, I think is the current one on the Slackware official packages
Code:
$ ls -l /var/log/packages/ | grep udev
-rw-r--r--  1 root root   2092 2005-10-03 13:02 udev-064-i486-2
I've this running, so udev is working fine
Code:
$ ps -aux | grep udev
root       305  0.0  0.0   1492   456 ?        S<s  Jan04   0:00 udevd
I have this piece'o code in /etc/rc.d/rc.S
Code:
# Initialize udev to manage /dev entries for 2.6.x kernels:
if [ -x /etc/rc.d/rc.udev ]; then
  if ! grep -w nohotplug /proc/cmdline 1> /dev/null 2> /dev/null ; then
    /etc/rc.d/rc.udev
  fi
fi
/etc/rc.d/rc.udev is executable:
Code:
$ ls -l /etc/rc.d/rc.udev
-rwxr-xr-x  1 root root 1396 2005-07-30 13:14 /etc/rc.d/rc.udev
and I have these udev-related-executable files on /sbin
Code:
$ ls -l /sbin | grep udev
-rwxr-xr-x  1 root bin   44296 2005-07-30 13:14 udev*
-rwxr-xr-x  1 root bin    8796 2005-07-30 13:14 udev_run_devd*
-rwxr-xr-x  1 root bin    8668 2005-07-30 13:14 udev_run_hotplugd*
-rwxr-xr-x  1 root bin    9824 2005-07-30 13:14 udevcontrol*
-rwxr-xr-x  1 root bin   23816 2005-07-30 13:14 udevd*
-rwxr-xr-x  1 root bin   18344 2005-07-30 13:14 udevsend*
-rwxr-xr-x  1 root bin   43848 2005-07-30 13:14 udevstart*
the /etc/rc.d/rc.udev script calls configurations and scripts on /etc/udev
and I've these files and dirs on /etc/udev
Code:
$ ls -l /etc/udev
total 4
drwxr-xr-x  2 root root 160 2005-07-30 13:14 rules.d
drwxr-xr-x  2 root root 192 2005-07-30 13:14 scripts
-rw-r--r--  1 root root 942 2005-07-30 13:14 udev.conf

$ ls -l /etc/udev/rules.d/
total 24
-rw-r--r--  1 root root  809 2005-07-30 13:14 compat.rules.unsupported
-rw-r--r--  1 root root 4210 2005-07-30 13:14 devfs.rules.unsupported
-rw-r--r--  1 root root 9020 2005-07-30 13:14 udev.rules

$ ls -l /etc/udev/scripts/
total 16
-rwxr-xr-x  1 root root  748 2005-07-30 13:14 floppy-extra-devs.sh*
-rwxr-xr-x  1 root root 1247 2005-07-30 13:14 ide-devfs.sh*
-rwxr-xr-x  1 root root 3169 2005-07-30 13:14 make_extra_nodes.sh*
-rwxr-xr-x  1 root root 1446 2005-07-30 13:14 scsi-devfs.sh*
if you want me to cat all those files for you, I'm willing to.

did I miss something? please let me know
 
Old 01-05-2006, 02:12 PM   #30
dannyl
Member
 
Registered: Aug 2003
Location: Near Marion, Ill.
Distribution: Slackware 12.2, Kubuntu, Zenwalk
Posts: 102

Original Poster
Rep: Reputation: 15
Making Udev Work

ok I obviously have some differences:

uname -a

Linux locallinux 2.6.13 #1 Tue Sep 6 17:56:37 PDT 2005 i686 unknown unknown GNU/
Linux

my udev version

bash-3.1$ ls -l /var/log/packages/ | grep udev
-rw-r--r-- 1 root root 2089 2006-01-04 13:58 udev-050-i486-1

problem with ps -aux, but

bash-3.1$ ps -aux | grep udev
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root 916 0.0 0.0 1460 356 ? S<s Jan04 0:00 udevd
danny 19443 0.0 0.1 1768 600 pts/1 S+ 13:09 0:00 grep udev

code from /etc/rc.d/rc.S

# Initialize udev to manage /dev entries for 2.6.x kernels:
if [ -x /etc/rc.d/rc.udev ]; then
if ! grep -w nohotplug /proc/cmdline 1> /dev/null 2> /dev/null ; then
/etc/rc.d/rc.udev
fi
fi

/etc/rc.d/rc.udev is executable

bash-3.1$ ls -l /etc/rc.d/rc.udev
-rwxr-xr-x 1 root root 1447 2006-01-04 14:51 /etc/rc.d/rc.udev

missing stuff here also what are the asterixes at the end of yours?

bash-3.1$ ls -l /sbin | grep udev
-rwxr-xr-x 1 root bin 48320 2005-01-14 18:30 udev
-rwxr-xr-x 1 root bin 7136 2005-01-14 18:30 udevd
-rwxr-xr-x 1 root bin 5608 2005-01-14 18:30 udevsend
lrwxrwxrwx 1 root root 10 2006-01-04 13:58 udevstart -> /sbin/udev

files from /etc/udev

bash-3.1$ ls -l /etc/udev
total 4
drwxr-xr-x 2 root root 80 2005-01-14 18:30 permissions.d
drwxr-xr-x 2 root root 160 2005-01-14 18:30 rules.d
drwxr-xr-x 2 root root 192 2005-01-14 18:30 scripts
-rw-r--r-- 1 root root 1057 2005-01-14 18:30 udev.conf

bash-3.1$ ls -l /etc/udev/rules.d/
total 20
-rw-r--r-- 1 root root 809 2005-01-14 18:30 compat.rules.unsupported
-rw-r--r-- 1 root root 4210 2005-01-14 18:30 devfs.rules.unsupported
-rw-r--r-- 1 root root 4495 2005-01-14 18:30 udev.rules

bash-3.1$ ls -l /etc/udev/scripts/
total 16
-rwxr-xr-x 1 root root 748 2005-01-14 18:30 floppy-extra-devs.sh
-rwxr-xr-x 1 root root 1247 2005-01-14 18:30 ide-devfs.sh
-rwxr-xr-x 1 root root 2803 2005-01-14 18:30 make_extra_nodes.sh
-rwxr-xr-x 1 root root 1446 2005-01-14 18:30 scsi-devfs.sh


Obviously I have some differences and some things missing. I would certainly appreciate any help/advice on how to correct this.
 
  


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
udev not making /dev/sound right in Slackware 10 glennt11 Slackware 5 01-16-2005 11:23 PM
making it work Cap'n Skyler Linux - Newbie 8 11-16-2004 02:07 AM
Uninstalled udev and now my video drivers don't work... Shafted Debian 1 07-01-2004 03:01 PM
'cdrecord -scanbus dev=ATAPI:' does not work with udev beolach Slackware 4 06-14-2004 03:03 AM
Making SCSI work gmartin Slackware 12 01-06-2004 01:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration