Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70816 - udev should care about dvb devices.
Summary: udev should care about dvb devices.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-11 09:36 UTC by Alexander Jenisch
Modified: 2006-06-16 11:51 UTC (History)
2 users (show)

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


Attachments
DVB patch for udev configuration (udev-050-dvb.patch,885 bytes, patch)
2005-01-29 07:50 UTC, Lukas Turek
Details | Diff
Ebuild with added DVB patch (udev-050-r1.ebuild,4.10 KB, application/octect-stream)
2005-01-29 07:52 UTC, Lukas Turek
Details
Diff to ebuild with DVB patch (udev-050.ebuild.diff,905 bytes, patch)
2005-01-30 13:29 UTC, Lukas Turek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Jenisch 2004-11-11 09:36:54 UTC
i do have the problem, that my dvb devices are not created by udev and that i have to run the "MAKEDEVICES.sh" script by hand all the time. it seems that device files need to be there before the kernel modules are loaded. otherwise i'll always get something like this:

nt@eNTi $ ./dvbscan dvb-s/Astra-28.2E 
scanning dvb-s/Astra-28.2E
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
main:1957: FATAL: failed to open '/dev/dvb/adapter0/frontend0': 6 No such device or address

even though the device files are there (i've put the script into local.start).
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2004-11-11 10:06:33 UTC
a quick grep over the source of udev gave these results:


etc/udev/udev.permissions.debian:dvb/*:root:video:0660
etc/udev/udev.rules.debian:KERNEL="dvb*",               PROGRAM="/etc/udev/dvb.sh %k", NAME="%c"
extras/dvb.sh:echo $1 | sed -e 's#^dvb\([0-9]\)\.\([^0-9]*\)\([0-9]\)#dvb/adapter\1/\2\3#'


I really wonder why functionallity that is persent in udev is not present in gentoo.
Porting it do gentoo should be just adding the above rules and extras/dvb.sh.

Comment 2 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-11-11 13:02:15 UTC
Care to attach a patch to do this?

And is the dvb support for sysfs now in the main kernel tree?
Comment 3 Alexander Jenisch 2004-11-14 09:02:16 UTC
is anyone doing it? i'm not really good at writing udev rules or patches...
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2004-11-14 10:35:12 UTC
Please try to do it yourself, its just copying the debian rules(and adjusting script path) and make the ebuild install the dvb.sh script.
Comment 5 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-11-17 12:32:14 UTC
Um, I need a patch for this, otherwise this bug is closed.

If you do generate one, please reopen it and attach it.
Comment 6 Alexander Jenisch 2004-11-17 13:29:08 UTC
i really don't know how do that (yet). i'll probably look into it, if i have can find the time. maybe someone with a little more experience could handle this? i just wonder if i'm the only one having issues with that...
Comment 7 Lukas Turek 2005-01-29 07:49:01 UTC
I modified udev configuration according to https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=139097 about a month ago, when I bought a DVB card. It works OK since then. Now I've accidentally found this bugreport, so I created the patch and also a modified ebuild for latest version of udev (050). It adds the patch and also copies dvb.sh to /etc/udev/scripts.

(I hope someone will notice this, otherwise I'll file a new bug after a few days)
Comment 8 Lukas Turek 2005-01-29 07:50:49 UTC
Created attachment 49836 [details, diff]
DVB patch for udev configuration
Comment 9 Lukas Turek 2005-01-29 07:52:04 UTC
Created attachment 49837 [details]
Ebuild with added DVB patch
Comment 10 Stefan Schweizer (RETIRED) gentoo-dev 2005-01-29 08:14:41 UTC
please attach a diff to the ebuild 
Comment 11 Lukas Turek 2005-01-30 13:29:38 UTC
Created attachment 49990 [details, diff]
Diff to ebuild with DVB patch
Comment 12 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-02-08 13:31:15 UTC
Will be fixed in next version of the udev release, thanks for the patches.