[linux-dvb] Five dvb cards linux 2.6.11 + UDEV 053

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 10 March 2005 01:12, Johannes Stezenbach wrote:
> Kenneth Aafl?y wrote:
> > This is with a recompiled udev after I changed the macros in
> > /usr/include/sys/sysmacros.h.
> > 
> > version 054
> > looking at '/class/dvb/dvb4.frontend0'
> > opened class_dev->name='dvb4.frontend0'
> > configured rule in '/etc/udev/rules.d/udev.rules[55]' applied, 'dvb4.frontend0' becomes '%c'
> > creating device node '/dev/dvb/adapter4/frontend0', major = '212', minor = '259', mode = '0660', uid = '0', gid = '44'
> > 
> > But even after recompiling dvb-utils (szap), it can't find the device.
> > ls lists the devices on adapter 4 as 212:0..8 though.
> 
> Hmm, next bug...
> 
> You could try
> $ perl -e '@s=stat("/dev/dvb/adapter0/demux0"); print "@s\n";'
> 12 6884 8624 1 0 44 54276 0 1110142423 1110142423 1110142423 4096 0
> 
> The 54276 is the dev_t number, see new_decode_dev() from kdev_t.h.

[kenneth@orion]:adapter5$ perl -e '@s=stat("/dev/dvb/adapter4/demux0"); print "@s\n";'
10 113133 8624 1 0 44 54276 0 1110414468 1110414468 1110414468 4096 0

> > I think a recompile of glibc is needed to completly fix this,
> > but I do not plan on doing this, since I only have two cards :)
> 
> Hm, my Debian udev sources have "USE_KLIBC = true" commented
> out in the Makefile. That explains the broken makedev().

I was not able to build it with klibc, crapped out on some header replaced by
gcc. Moving that away temporary and including sys/stat.h in udev.c makes it go.
So now I'm running with a static udev and klibc.

[kenneth@orion]:adapter4$ perl -e '@s=stat("demux0"); print "@s\n";'
10 132218 8624 1 0 44 1102852 0 1110415562 1110415562 1110415562 4096 0

[kenneth@orion]:adapter4$ szap -a 4 -n 1
reading channels from file '/root/.szap/channels.conf'
zapping to 1 'DTV2 (Cable)':
sat 0, frequency = 11247 MHz V, symbolrate 24500000, vpid = 0x0201, apid = 0x0284
using '/dev/dvb/adapter4/frontend0' and '/dev/dvb/adapter4/demux0'
status 02 | signal 0000 | snr 3747 | ber 00009308 | unc 00000000 |

Looks like that did the trick (the card is not connected right now)!

Note that I only needed to recompile udev, no other package was touched.

Kenneth



[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux