View previous topic :: View next topic |
Author |
Message |
Apollyon n00b
Joined: 10 Mar 2003 Posts: 22 Location: Spain
|
Posted: Sat May 28, 2005 9:31 am Post subject: udev Status |
|
|
Hi,
I may be installing Gentoo on a new machine sometime soon, and I wanted to know what the status of Gentoo's udev support is. Last time I checked (admittedly a while ago, but less than a year) you still needed to compile devfs support in the kernel. Is this still the case? |
|
Back to top |
|
|
iverson0881 Apprentice
Joined: 08 Jan 2004 Posts: 285 Location: CA
|
|
Back to top |
|
|
Apollyon n00b
Joined: 10 Mar 2003 Posts: 22 Location: Spain
|
Posted: Sat May 28, 2005 10:13 am Post subject: |
|
|
Yes, that guide was around when I tried it too.
I see that it says "You can leave the /dev file system support (OBSOLETE) active if you wish ...". If I remember correctly, the Gentoo bootup scripts used to complained about not having devfs compiled in the kernel, even if you where going to use udev. Is this still the case, or have the scripts been fixed already? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Sat May 28, 2005 10:34 am Post subject: |
|
|
Apollyon,
udev Just Works. Get the 2005.0 install.
You can build the kernel to support either devfs or udev and switch back and forth if you need to. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
blue.sca l33t
Joined: 28 Aug 2003 Posts: 680 Location: Mainz, Germany
|
Posted: Sat May 28, 2005 11:01 am Post subject: |
|
|
hmm? pure udev works since about a year or so perfectly. devfs is gone on my system forever. _________________ geek by nature, linux by choice
i want my avatar back... thank you
:wq |
|
Back to top |
|
|
Apollyon n00b
Joined: 10 Mar 2003 Posts: 22 Location: Spain
|
Posted: Sat May 28, 2005 12:11 pm Post subject: |
|
|
Great, my next system will be udev only! Thanks! |
|
Back to top |
|
|
daoist n00b
Joined: 14 May 2003 Posts: 28
|
Posted: Sat May 28, 2005 12:51 pm Post subject: |
|
|
I have recently (finished 10 minutes ago) installing based on a stage1 tarball from 2005.0. During bootup I get a big scary screen browbeating me because I did not compile my kernel (2.6.11-gentoo-r9) with DEVFS support.
How do I suppress this message? Does it indicate some other problem with my system?
After hitting enter at the scary warning message the system appears to boot successfully.
I apologize if this is off-topic, but after searching this thread appears to be the same issue I'm having; the scary warning message |
|
Back to top |
|
|
blue.sca l33t
Joined: 28 Aug 2003 Posts: 680 Location: Mainz, Germany
|
Posted: Sat May 28, 2005 1:01 pm Post subject: |
|
|
are you using devfs or udev? _________________ geek by nature, linux by choice
i want my avatar back... thank you
:wq |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Sat May 28, 2005 1:02 pm Post subject: |
|
|
daoist,
Did you Code: | emerge udev coldplug hotplug | Check by doing it again with the -p option and seeing if any are flagged as New. Do it if needed.
You also need to Code: | rc-update add coldplug boot
rc-update add hotplug default | so that theservices run.
Check with _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Sat May 28, 2005 4:02 pm Post subject: |
|
|
Moved from Unsupported Software. _________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
daoist n00b
Joined: 14 May 2003 Posts: 28
|
Posted: Sat May 28, 2005 10:27 pm Post subject: |
|
|
NeddySeagoon wrote: | daoist,
Did you Code: | emerge udev coldplug hotplug | Check by doing it again with the -p option and seeing if any are flagged as New. Do it if needed.
You also need to Code: | rc-update add coldplug boot
rc-update add hotplug default | so that theservices run.
Check with |
Thanks for the quick reply.
According to http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1 I only need to emerge coldplug and hotplug if I'm using genkernel, but I am not using genkernel. And the handbook never mentions emerging udev, whether using genkernel or not :-/
Do I really need to use coldplug/hotplug? I don't want my system to take 10 minutes to start while it autodetects the hardware. I know what hardware I have, and I've compiled them into the kernel or made the appropriate modules. Should I just go back to a 2.4 series kernel?
Thanks for any advice you can give. |
|
Back to top |
|
|
blue.sca l33t
Joined: 28 Aug 2003 Posts: 680 Location: Mainz, Germany
|
Posted: Sun May 29, 2005 10:06 am Post subject: |
|
|
for the case you didn't already answered this question, what do you want to use? pure udev, udev + devfs or just devfs? _________________ geek by nature, linux by choice
i want my avatar back... thank you
:wq |
|
Back to top |
|
|
daoist n00b
Joined: 14 May 2003 Posts: 28
|
Posted: Sun May 29, 2005 10:50 am Post subject: |
|
|
heh, honestly I don't care.
Does udev do the slow autodetection thing like the livecd does? if so, then not only no, but hell no.
if udev can work without making the machine take several minutes to boot, then sure, how about udev. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Sun May 29, 2005 11:14 am Post subject: |
|
|
daoist,
No. It uses coldboot if you want, or you can do it manully with entries in /etc/modules.autolaod.d/kern.... _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Fat Bastard n00b
Joined: 06 May 2005 Posts: 53
|
Posted: Sun May 29, 2005 11:58 am Post subject: |
|
|
Oh, and just to state the (somewhat) obvious - the upstream udev developer is a Gentoo developer. |
|
Back to top |
|
|
Crispy Beef Apprentice
Joined: 29 Apr 2003 Posts: 194 Location: UK
|
Posted: Mon May 30, 2005 2:11 pm Post subject: |
|
|
Just out of interest what are the advantages of using udev over devfs? Is it really worth me switching to udev, if this can be done on a system already installed with devfs?
From what I've read if I did want to switch then all I need to do is compile coldplug (and udev obviously) and add it with rc-update as I already have hotplug installed.
Is there anything else to consider?
Edit: Have since done a proper search and found out a lot of info, but just to be sure I would still like to hear about how easy it is to switch to udev. _________________ --
______
Crispy |
|
Back to top |
|
|
blue.sca l33t
Joined: 28 Aug 2003 Posts: 680 Location: Mainz, Germany
|
Posted: Mon May 30, 2005 2:36 pm Post subject: |
|
|
took me about half an hour, without any fiddling with device nodes. look [url=http://webpages.charter.net/decibelshelp/LinuxHelp_UDEVPrimer.html]here[/code], the udev bible ;) should be most up-to-date. _________________ geek by nature, linux by choice
i want my avatar back... thank you
:wq |
|
Back to top |
|
|
Crispy Beef Apprentice
Joined: 29 Apr 2003 Posts: 194 Location: UK
|
Posted: Mon May 30, 2005 3:06 pm Post subject: |
|
|
Have just done the switch and completely disabled devfs in my kernel, now udev only. The only thing that I had to change was the entry for my mouse in the xorg.conf file. Had to switch it from /dev/mouse to /dev/input/mouse1, everything else seems to work as it did before. USB scanner, bluetooth dongle and printer all seem just fine.
There's two errors on startup which I need to investigate, will check out the link too, cheers. _________________ --
______
Crispy |
|
Back to top |
|
|
daoist n00b
Joined: 14 May 2003 Posts: 28
|
Posted: Tue May 31, 2005 2:14 am Post subject: |
|
|
thanks for all the quick replies. I've emerged udev and hotplug, and now it seem great. |
|
Back to top |
|
|
Crispy Beef Apprentice
Joined: 29 Apr 2003 Posts: 194 Location: UK
|
Posted: Tue May 31, 2005 11:09 am Post subject: |
|
|
The error message I get is when coldplug starts up and looks for usb devices. It says something along the lines of:
Code: | Can't find /proc/bus/usb/001/002 no such file or directory |
Would this be related to udev and the way it allocates names etc.? _________________ --
______
Crispy |
|
Back to top |
|
|
|