Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev and 2005.0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
gian
Apprentice
Apprentice


Joined: 26 Jul 2004
Posts: 212
Location: Europe

PostPosted: Fri Apr 08, 2005 4:29 pm    Post subject: udev and 2005.0 Reply with quote

since 2005.0 (but it might be I set some USE flag I did not set before)
emerge world -pv
would emerge udev... does that mean that amd64 is doing the transition from devfs to udev ??
(I've noted that even just
emerge gnome -pv
would emerge udev (and this is a bit surprising to me... what does udev have to do with gnome ??)
Back to top
View user's profile Send private message
barum87
n00b
n00b


Joined: 28 Mar 2005
Posts: 62

PostPosted: Fri Apr 08, 2005 5:40 pm    Post subject: ... Reply with quote

I thought 2005.0 included udev by default
I think under kernel 2.6, devfs is deprecated.
Back to top
View user's profile Send private message
gian
Apprentice
Apprentice


Joined: 26 Jul 2004
Posts: 212
Location: Europe

PostPosted: Fri Apr 08, 2005 6:55 pm    Post subject: Reply with quote

I also thought so (that devfs was deprecated), but when I installed 2004.3 and followed as any "Good Newbye" should the handbook, it told me to install devfs or die !

Obviously I'm totally clueless regarding udev ...
Back to top
View user's profile Send private message
zaai
Apprentice
Apprentice


Joined: 24 Jul 2004
Posts: 175

PostPosted: Fri Apr 08, 2005 7:38 pm    Post subject: Reply with quote

You're both right.
'devfs' is deprecated in kernel 2.6 and udev is recommended. Both still work though and gentoo 2004.3 had devfs enabled by default. Gentoo 2005.0 has udev enabled, although it still saves the /dev tree.

Simply put, devfs and udev create the device nodes under /dev. These nodes provide access to your devices (hardware and software). The node number map to the same number as found in 'cat /proc/devices'. The role of devfs and udev is to create a /dev/<node> when the device is detected by hotplug, and remove it when it is disabled.
The difference between the two is that udev works in user space and devfs operates in the kernel. udev has several advantages because of this. For more information see the references below.

I've been using a pure udev system on amd64 for a year now and it works like a charm.
- disabled devfs in the kernel
- emerge udev
- unmerge devfs
- disabled device tarball (RC_DEVICE_TARBALL="no" in /etc/conf.d/rc)
You need to be careful with the last step, if you're not sure leave it set to yes.
The nice thing of setting this to no is that you will only see detected devices under /dev
However, this also means that if a device has no rules defined it won't show and you'll have to create the device node manually.

One example of a missing device node is /dev/ppp. The workaround is to put
"mknod -m 660 /dev/ppp c 108 0" in /etc/conf.d/local.start
This creates a character device with major number 108 and minor number 0.
Where does 108 come from? "cat /proc/devices" shows you the list of character and block devices, and 108 is ppp.

More information can be found here:
http://www.gentoo.org/doc/en/udev-guide.xml
http://webpages.charter.net/decibelshelp/LinuxHelp_UDEVPrimer.html
http://ftp.kernel.org/pub/linux/utils/kernel/hotplug/udev-FAQ
_________________
* most bugs can be reduced to either dependency or state *

Athlon64 X2 4800+ on Asus M2N SLI deluxe with 4GB Dual channel
video nVidia GForce 7300 GS 512MB (snail); xorg-7.2
kernel 2.6.24-gentoo-r3


Last edited by zaai on Fri Apr 08, 2005 8:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
gian
Apprentice
Apprentice


Joined: 26 Jul 2004
Posts: 212
Location: Europe

PostPosted: Fri Apr 08, 2005 7:45 pm    Post subject: Reply with quote

WOW ! thanks, clear as glass !

(should I also unset the devfs flag in /etc/conf.d/rc just below the tarball one ?)
Back to top
View user's profile Send private message
dragonian
n00b
n00b


Joined: 22 Feb 2005
Posts: 41

PostPosted: Fri Apr 08, 2005 8:09 pm    Post subject: Reply with quote

I still can't get udev to work. Something about my combination is not good. I've followed a couple of things that are supposed to work, and still i get segfaults boot.

I have not gotten udev to work. I don't know if it's genkernel or lvm, or ?? but it segfaults, and I can't access my root device.

So I use devfs, and it works fine, I haven't tried it in a week or so, since it's rather painfull.
Back to top
View user's profile Send private message
zaai
Apprentice
Apprentice


Joined: 24 Jul 2004
Posts: 175

PostPosted: Fri Apr 08, 2005 8:42 pm    Post subject: Reply with quote

Do you look here?
If you use genkernel then take a look at Hint 2.
Otherwise you need to provide more information as to what steps you take and what your kernel configuration is.
_________________
* most bugs can be reduced to either dependency or state *

Athlon64 X2 4800+ on Asus M2N SLI deluxe with 4GB Dual channel
video nVidia GForce 7300 GS 512MB (snail); xorg-7.2
kernel 2.6.24-gentoo-r3
Back to top
View user's profile Send private message
dragonian
n00b
n00b


Joined: 22 Feb 2005
Posts: 41

PostPosted: Sat Apr 09, 2005 7:32 am    Post subject: Reply with quote

zaai wrote:
Do you look here?
If you use genkernel then take a look at Hint 2.
Otherwise you need to provide more information as to what steps you take and what your kernel configuration is.


Yes. I have. and a number of other threads and guides, etc. It tries to use it nicely, however it segfaults on boot (before i get to userspace).
I started this thread. I'm fairly certain that the problem lies with the startic udev tarball linked in, in a genkernel. I did try this briefly, however the 39 did not work (for me) as mentioned, and I have not had any time to try any other combinations.

I did notice that genkernel recently got a new ebuild, I'm going to try that when the opportunity arises.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum