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

Kenneth Aafløy lists at kenneth.aafloy.net
Wed Mar 9 23:28:31 CET 2005


On Wednesday 09 March 2005 22:47, Johannes Stezenbach wrote:
> Johannes Stezenbach wrote:
> > http://lwn.net/Articles/49684/ suggests otherwise, but the mknod()
> > binary seems to clip the minor number to 8 bits. The mknod()
> > syscall however uses a fancy backwards compatible encoding
> > which allows more than 8 bit minor numbers, see new_decode_dev()
> > in the change of the bkbits page.
> > 
> > I guess udev has a a similar bug then.
> 
> More to the point, the makedev() macro in /usr/include/sys/sysmacros.h
> is out of date in my glibc. The one that is part of klibc which
> comes with udev 0.54 is OK.
> 
> static __inline__ dev_t makedev(int __ma, int __mi)
> {
>  return ((__ma & 0xfff) << 8) | (__mi & 0xff) | ((__mi & 0xfff00) << 12);
> }

I have udev 0.54 (debian unstable), but it's still not working:

dmesg:
dvb_ca adapter 5: DVB CAM detected and initialised successfully
saa7146: unregister extension 'dvb'.
saa7146: unregister extension 'budget dvb /w video in'.
saa7146: register extension 'dvb'.
ACPI: PCI interrupt 0000:02:06.0[A] -> GSI 18 (level, low) -> IRQ 18
saa7146: found saa7146 @ mem e19aa000 (revision 1, irq 18) (0x13c2,0x0003).
DVB: registering new adapter (Technotrend/Hauppauge WinTV Nexus-S rev2.X).
adapter has MAC addr = 00:d0:5c:21:02:8c
dvb-ttpci: gpioirq unknown type=0 len=0
dvb-ttpci: info @ card 4: firm f0240009, rtsl b0250018, vid 71010068, app 8000261d
dvb-ttpci: firmware @ card 4 supports CI link layer interface
dvb-ttpci: adac type set to 4 @ card 0
DVB: register adapter4/demux0 @ minor: 260 (0x104)
DVB: register adapter4/dvr0 @ minor: 261 (0x105)
DVB: register adapter4/video0 @ minor: 256 (0x100)
DVB: register adapter4/audio0 @ minor: 257 (0x101)
DVB: register adapter4/ca0 @ minor: 262 (0x106)
DVB: register adapter4/osd0 @ minor: 264 (0x108)
DVB: register adapter4/net0 @ minor: 263 (0x107)
saa7146_vv: saa7146 (0): registered device video0 [v4l2]
DVB: registering frontend 4 (ST STV0299 DVB-S)...
DVB: register adapter4/frontend0 @ minor: 259 (0x103)
dvb-ttpci: found av7110-0.
saa7146: register extension 'budget dvb /w video in'.
ACPI: PCI interrupt 0000:02:04.0[A] -> GSI 16 (level, low) -> IRQ 16
saa7146: found saa7146 @ mem e1a1a000 (revision 1, irq 16) (0x1131,0x4f56).
DVB: registering new adapter (KNC1 DVB-S).
adapter failed MAC signature check
encoded MAC from EEPROM was ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff
DVB: register adapter5/demux0 @ minor: 324 (0x144)
DVB: register adapter5/dvr0 @ minor: 325 (0x145)
DVB: register adapter5/net0 @ minor: 327 (0x147)
KNC1-5: MAC addr = 00:09:d6:63:08:6d
DVB: registering frontend 5 (ST STV0299 DVB-S)...
DVB: register adapter5/frontend0 @ minor: 323 (0x143)
DVB: register adapter5/ca0 @ minor: 326 (0x146)
ciintf_init: CI interface initialised

[kenneth at orion]:adapter4$ ll
total 0
crw-rw----  1 root video 213, 1 Mar  9 23:24 audio0
crw-rw----  1 root video 213, 6 Mar  9 23:24 ca0
crw-rw----  1 root video 213, 4 Mar  9 23:24 demux0
crw-rw----  1 root video 213, 5 Mar  9 23:24 dvr0
crw-rw----  1 root video 213, 3 Mar  9 23:24 frontend0
crw-rw----  1 root video 213, 7 Mar  9 23:24 net0
crw-rw----  1 root video 213, 8 Mar  9 23:24 osd0
crw-rw----  1 root video 213, 0 Mar  9 23:24 video0
[kenneth at orion]:adapter4$ szap -a 4 -n 1
reading channels from file '/home/kenneth/.szap/channels.conf'
zapping to 'DTV2 (Cable)':
sat 0, frequency = 11247 MHz V, symbolrate 24500000, vpid = 0x0201, apid = 0x0284
using '/dev/dvb/adapter4/frontend0' and '/dev/dvb/adapter4/demux0'
opening frontend failed: No such device or address

Kenneth




More information about the linux-dvb mailing list