[mythtv-users] udev and DVB problems

Piers Kittel mythtv at biased.org
Tue Apr 10 10:55:33 UTC 2007


Hello all,

Am moving my mythtv stuff (recordings, database, DVB card etc) to new  
hardware, but am having a nasty problem making me tear my hair out.

Anyway.  I've got 2 x Nova-T DVB-T tuners.  The new hardware is  
running Debian Etch 4.0 installed yesterday.  I compiled kernel  
2.6.20-6 with the stock kernel's DVB drivers built in as a module.   
The module gets loaded and both DVB cards are detected fine.  So I go  
to test the DVB card using the following command:

scan dvb-t/uk-Mendips

but I get:

scanning dvb-t/uk-Mendips
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
main: 2247: FATAL: failed to open '/dev/dvb/adapter0/frontend0': 2 No  
such file or directory

So I check /dev, sure enough, there's no directory named "dvb" in there.

Reading about, I try

cd /dev
MAKEDEV dvb

but I get:

udev active, devices will be created in /dev/.static/dev/

Sure enough, I get /dev/.static/dev/dvb and associated.

Looking around some more, a few HOWTOs (inc MythTV's own HOWTO) I  
seem to need to create a script called dvb.sh and put it in /etc/udev/ 
scripts containing:

#!/bin/sh
/bin/echo $1 | /bin/sed -e 's,dvb\([0-9]\)\.\([^0-9]*\)\([0-9]\),dvb/ 
adapter\1/\2\3,'

and then add

KKERNEL="dvb*", PROGRAM="/etc/udev/scripts/dvb.sh %k", NAME="%c",  
GROUP="video", MODE="0660"

in /etc/udev/rules.d/udev.rules

I duly did so, and nothing happens.  Scrolling back into the bootup  
messages and I spot:

* .udev/ already exists on the static /dev!
Starting the hotplug events dispatcher: udevdudevd[481]:  
add_to_rules: invalid KERNEL operation
udevd[481] add_to_rules: invalid rule '/etc/udev/rules.d/udev.rules:98'

Looking around a bit even more, seems that udev has been changed a  
bit, so I changed the KERNEL line to contain:

KERNEL=="dvb*", PROGRAM="/etc/udev/scripts/dvb.sh %k", NAME="%c",  
GROUP="video", MODE="0660"

(so a lot of HOWTO guides are out of date).

Even after all this, still *no* /dev/dvb.  No error message when udev  
starts:

* .udev/ already exists on the static /dev!
Starting the hotplug events dispatcher: udevd.

Not sure how serious the first line is.

  so what should I do now to make my DVB cards accessible by software?

Thanks very much for your help in advance!

Regards - Piers



More information about the mythtv-users mailing list