Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27527 - udev guide for use with 2.6 kernels
Summary: udev guide for use with 2.6 kernels
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Submit New (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 25292
  Show dependency tree
 
Reported: 2003-08-29 05:48 UTC by Sven Vermeulen (RETIRED)
Modified: 2004-03-02 05:27 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
udev ebuild and patches (udev.ebuild.tar.gz,1.44 KB, application/octet-stream)
2003-10-22 17:37 UTC, Peter Gantner (a.k.a. nephros)
Details
ebuild update (udev.ebuild.tar.gz,1.45 KB, application/octet-stream)
2003-10-22 18:35 UTC, Peter Gantner (a.k.a. nephros)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Vermeulen (RETIRED) gentoo-dev 2003-08-29 05:48:05 UTC
I'm starting to develop a udev guide which will contain how to setup udev (and
hotplug and other things), why devfs isn't as good as people first thought, and
how we can have udev and devfs work together on dualboot systems (with both 2.4
and 2.6 kernels)

Any pointers to good stories are appreciated
Comment 1 John Christian Stoddart (RETIRED) gentoo-dev 2003-09-02 09:22:38 UTC
you might appreciate this fairly recent overview in http://kerneltrap.org/node/view/799.

Shows some of the new features, including the new (snazzier) kernel build scripts.
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2003-09-04 07:02:16 UTC
No word on udev though :(
Comment 3 David Cozatt 2003-10-08 17:19:31 UTC
http://lwn.net/Articles/28526/
 not much but a little

bus_drivr
Comment 4 John Christian Stoddart (RETIRED) gentoo-dev 2003-10-21 16:26:47 UTC
Published today in kerneltrap.org (http://kerneltrap.org/node/view/1031)
regarding the release of version 004 of udev. Just so as we keep our collective
eyes on the ball ...
Comment 5 Peter Gantner (a.k.a. nephros) 2003-10-22 17:36:25 UTC
Hmm, I wanted to submit it as a new bug, but you might enjoy it more.
Attached an ebuild for the latest udev release (which includes two small
fixes I took from LKML).
The tarball is to be extracted in $PORTDIR_OVERLAY and will create sys-apps/udev
have fun.
Comment 6 Peter Gantner (a.k.a. nephros) 2003-10-22 17:37:23 UTC
Created attachment 19641 [details]
udev ebuild and patches
Comment 7 Peter Gantner (a.k.a. nephros) 2003-10-22 18:35:41 UTC
Created attachment 19642 [details]
ebuild update

the previous ebuild version was old and buggy and accidentially uploaded.
Comment 8 Sven Vermeulen (RETIRED) gentoo-dev 2003-10-23 00:02:47 UTC
Thanks; how does one use udev? 
Comment 9 SpanKY gentoo-dev 2003-10-23 07:02:33 UTC
for updates to packages please file new bugs ... 004 is already in portage
though :)

as for using udev, i just had to emerge the latest baselayout and enable
hotplug support in my kernel ... the init.d scripts did the rest ...
Comment 10 Sven Vermeulen (RETIRED) gentoo-dev 2003-10-23 07:58:53 UTC
so fully disabling devfs in the kernel works on gentoo (i.e. udev takes over
the device naming stuff)?
Comment 11 SpanKY gentoo-dev 2003-10-23 08:06:52 UTC
yes and no ... the thread on gentoo-dev sums up the current state of things
...
http://article.gmane.org/gmane.linux.gentoo.devel/13148
Comment 12 Decibels 2003-12-13 21:55:53 UTC
> as for using udev, i just had to emerge the latest baselayout and enable
> hotplug support in my kernel ... the init.d scripts did the rest ...

Emerged the latest baselayout, (looks like the only thing left out)
see: * Populating /dev with device nodes...

Few new devices created in /dev but don't see any new "init.d scripts" that deal
with udev.  From the tarballs of udev 007 & 008 there is a init.d script for another distro that won't work with Gentoo. 

Manually created the /sys folder earlier, but don't see anything in baselayout creating it. My /sys folder is working fine, knows when items are plugged in or not. But don't see any changes for example when plug/unplug the scanner in /dev only in /sys.

bash-2.05b# lsbus -D usb
Bus: usb
Drivers:
  usbscanner
  microtekX6
        Devices:
                1-2:1.0

Not seeing any deletion of devices or creation when plug/unplug it though in /dev.
So even with the new baselayout this seems either Very Transparent or still not doing anything but within the /sys folder and hotplug. 

So is the functionality of the init.d scripts still missing? 
Comment 13 SpanKY gentoo-dev 2003-12-13 22:33:28 UTC
no, the only change needed with the init.d scripts is that it mounts a ramdisk on /dev, populates it with the previous dev snapshot, and then sets the hotplug manager to the udev binary

after that it's a 'bug' in udev ... has nothing to do with init scripts
Comment 14 Sven Vermeulen (RETIRED) gentoo-dev 2003-12-28 12:59:51 UTC
I've got some forum posts that talk about udev working with gentoo:

http://forums.gentoo.org/viewtopic.php?t=114303
http://forums.gentoo.org/viewtopic.php?t=115096
http://forums.gentoo.org/viewtopic.php?t=100173

I'll investigate those later on and see if I can write up something (and if everything works, integrate it in the handbook -- *after* the next gentoo release).
Comment 15 Decibels 2003-12-30 20:46:04 UTC
How bout this also:
http://forums.gentoo.org/viewtopic.php?t=116093
Comment 16 Phil Almquist 2004-02-07 00:41:18 UTC
udev ebuild suggestion:

initially backing up /dev on install like its done every reboot would start users off with a working /dev and solve a lot of problems for people losing alsa / nvidia nodes etc.
Comment 17 SpanKY gentoo-dev 2004-02-09 17:53:46 UTC
latest udev supports nvidia/alsa properly (at least it does on all my boxes)

next up would seem to be /dev/fb ...
Comment 18 Sven Vermeulen (RETIRED) gentoo-dev 2004-02-26 08:43:14 UTC
A draft document has been committed and is online at http://www.gentoo.org/doc/en/udev-guide.xml soon.

Comment away...
Comment 19 Jyrki Muukkonen 2004-02-26 17:36:39 UTC
Since baselayout-1.8.6.13-r1 there is no need to alter /sbin/rc or /etc/init.d/halt.sh. Just set RC_DEVICE_TARBALL="no" in /etc/conf.d/rc

BTW, what is the point of having two config files for rc scripts (/etc/rc.conf and /etc/conf.d/rc)?
Comment 20 SpanKY gentoo-dev 2004-02-26 17:48:40 UTC
i was actually just updating my baselayout and wondered the samething ... why do we have both /etc/rc.conf and /etc/conf.d/rc ... i'll talk to azarah ;)
Comment 21 Sven Vermeulen (RETIRED) gentoo-dev 2004-03-02 03:45:04 UTC
I've linked the udev-guide.xml file and am marking this one as FIXED. Regarding the /etc/conf.d/rc and /etc/rc.conf, please file a separate bugreport if necessary.