Following up on my recent blog to make my Hauppauge WinTV Nova-T play under Hardy, and my ongoing work for improving the driver situation under Ubuntu and Linux in general, I finally packaged the current development snapshot of the Video4Linux DVB drivers.
I used DKMS for generating a Debian package out of the driver source tree, which works really well after I sorted out a couple of issues with upstream (which are by and large fixed upstream now, thanks Matt and Mario!). The driver is shipped in source form (tarball), and DKMS takes care of automatically building it for the current kernel, and any later kernel you install in the future (e. g. if Hardy gets yet another kernel ABI).
So enjoy! Enable my PPA (https://launchpad.net/~pitti/+archive) and apt-get install v4l-dvb-dkms. After it finished building and installing, you can plug in your DVB-T stick and it should work (provided that v4l-dvb supports it at all, of course).
Please let me know how it goes for you! I appreciate any report about problems (include the output of “dkms status”) and suggestions.
#1 by Sean on 2008/10/01 - 17:58
Zitieren
Hi,
Any ideas on the locking up thing?
Thanks,
Sean
#2 by Matteo Lulli on 2008/10/11 - 19:46
Zitieren
Hi Martin,
firstly I wanted to say ‘thank you’ because your driver package made my ubuntu life easier, secondly I wanted to ask you some help because there could be some conflicting problems with the stk11xx module. In fact I have a syntek webcam which uses this module but after I installed the package I’ve got this message from the dmesg at the computer start:
[ 37.833249] stk11xx: disagrees about version of symbol video_devdata
[ 37.833254] stk11xx: Unknown symbol video_devdata
[ 37.833419] stk11xx: disagrees about version of symbol video_unregister_device
[ 37.833421] stk11xx: Unknown symbol video_unregister_device
[ 37.833480] stk11xx: disagrees about version of symbol video_device_alloc
The result is that the webcam doesn’t work.
So, could you get me some help?
Thanks
Matteo
#3 by R3M3 on 2008/11/16 - 19:27
Zitieren
How would one go about updating the source to a more recent version? As I understand it, there are bug fixes for my tuner that wouldn’t be incorporated in the June 2008 snapshot used. Is there an easy way of replacing the June v4l-dvb sources with more current ones?
#4 by Alex MP on 2008/12/07 - 04:15
Zitieren
Thnx a lot Martin, i had problems with my linux dist. because of having added by error worng repositories when trying to config my nvidia a pair of weeks ago, and since then i’ve had to re-install and fix almost everything.
I’ve been able to reconfigure everything but the stick driver, and was going to leave it as impossible when i founded your web. After trying to do it as you say several times with none good result, i uninstalled every package i had about v4l (anyway, i had assumed i was not gonna be able to use it until next upgrade or change of SO), and… ¡WOW! IT WORKS!!
Well… Before writing nothing else, im going to check i can really watch tv
but it seems everything is ok this time.
PD: Excuse my english, i should practice it more often
#5 by Alex MP on 2008/12/07 - 04:38
Zitieren
Ok; tested: IR WORKS. Thnx dude.
#6 by Brian on 2008/12/13 - 15:29
Zitieren
Hi,
installing the .deb does fail:
root@bru02:~/Desktop# dpkg -i v4l-dvb-dkms_0.20080610_all.deb
(Lese Datenbank … 136292 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereiten zum Ersetzen von v4l-dvb-dkms 0.20080610 (durch v4l-dvb-dkms_0.20080610_all.deb) …
——————————
Deleting module version: 0.20080610
completely from the DKMS tree.
——————————
Done.
Entpacke Ersatz für v4l-dvb-dkms …
Removing old module source…
Richte v4l-dvb-dkms ein (0.20080610) …
Loading new v4l-dvb-0.20080610 DKMS files…
Loading tarball for module: v4l-dvb / version: 0.20080610
Loading /usr/src/v4l-dvb-0.20080610…
Creating /var/lib/dkms/v4l-dvb/0.20080610/source symlink…
DKMS: ldtarball Completed.
Installing prebuilt kernel module binaries (if any)
Building module…
Kernel preparation unnecessary for this kernel. Skipping…
applying patch fix-kdir.patch…patching file v4l/Makefile
Building module:
cleaning build area….
make KERNELRELEASE=2.6.27-9-generic……………….(bad exit status: 2)
Error! Bad return status for module build on kernel: 2.6.27-9-generic (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/v4l-dvb/0.20080610/build/ for more information.
0
0
dpkg: Fehler beim Bearbeiten von v4l-dvb-dkms (–install):
Unterprozess post-installation script gab den Fehlerwert 10 zurück
Fehler traten auf beim Bearbeiten von:
v4l-dvb-dkms
The make.log does finally show this:
/var/lib/dkms/v4l-dvb/0.20080610/build/v4l/cxusb.c: In function ‘bluebird_patch_dvico_firmware_download’:
/var/lib/dkms/v4l-dvb/0.20080610/build/v4l/cxusb.c:704: error: assignment of read-only location ‘*(fw->data + ((long unsigned int)(long unsigned int)idoff + 2u))’
/var/lib/dkms/v4l-dvb/0.20080610/build/v4l/cxusb.c:706: error: assignment of read-only location ‘*(fw->data + ((long unsigned int)(long unsigned int)idoff + 3u))’
make[3]: *** [/var/lib/dkms/v4l-dvb/0.20080610/build/v4l/cxusb.o] Error 1
make[2]: *** [_module_/var/lib/dkms/v4l-dvb/0.20080610/build/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.27-9-generic’
make[1]: *** [default] Fehler 2
make[1]: Verlasse Verzeichnis ‘/var/lib/dkms/v4l-dvb/0.20080610/build/v4l’
make: *** [all] Fehler 2
Any ideas?
Brian
#7 by a aspire user on 2008/12/31 - 12:25
Zitieren
can you do one for fedora 6 i run linpus trying top get it to work on Klear (im in the uk)
i tried chanel scan but it doesnt work…
#8 by martinpitt on 2008/12/31 - 12:33
Zitieren
> can you do one for fedora 6 i run linpus
Sorry, I can’t, so far I only gave a quick try to Fedora 9. I doubt that either DKMS or the latest V4l-DVB tree even work on that old Fedora release.
#9 by dv6000 on 2009/01/10 - 13:00
Zitieren
First of all, thanks a lot for the single-line-command solution. I already managed to get the Pinnacle72e DVB Stick working, but the procedure was not so straightforward.
However, as many other users, I cannot get the webcam and the dvb stick working together. The behavior is described very well by DaveJackson: “Re-install v4l-dvb-dkms and it picks up the TV stick without a reboot and both the TV and the webcam work together”. Reboot and webcam is lost.
Here’s the dmesg after reinstalling (but before rebooting), with both webcam and dvb working greatly:
[code]
[ 30.717473] uvcvideo: Found UVC 1.00 device HP Webcam (04f2:b015)
[ 30.719587] input: HP Webcam as /devices/pci0000:00/0000:00:1d.7/usb7/7-4/7-4:1.0/input/input10
[ 30.757834] usbcore: registered new interface driver uvcvideo
...
[ 737.768876] dib0700: loaded with support for 7 different device-types
[ 737.769076] dvb-usb: found a 'Pinnacle PCTV 72e' in cold state, will try to load a firmware
[ 738.879058] dvb-usb: downloading firmware from file 'dvb-usb-dib0700-1.10.fw'
[ 739.123070] dib0700: firmware started successfully.
[ 739.624943] dvb-usb: found a 'Pinnacle PCTV 72e' in warm state.
[ 739.624986] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[ 739.625444] DVB: registering new adapter (Pinnacle PCTV 72e)
[ 739.853308] DVB: registering frontend 0 (DiBcom 7000PC)...
[ 740.032464] DiB0070: successfully identified
[ 740.032635] input: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:1d.7/usb7/7-1/input/input13
[ 740.059737] dvb-usb: schedule remote query interval to 150 msecs.
[ 740.059750] dvb-usb: Pinnacle PCTV 72e successfully initialized and connected.
[ 740.071632] usbcore: registered new interface driver dvb_usb_dib0700
[/code]
After the reboot, webcam is lost:
[code]
[ 31.311743] Linux video capture interface: v2.00
[ 31.762268] uvcvideo: disagrees about version of symbol video_devdata
[ 31.762271] uvcvideo: Unknown symbol video_devdata
[ 31.762560] uvcvideo: disagrees about version of symbol video_unregister_device
[ 31.762562] uvcvideo: Unknown symbol video_unregister_device
[ 31.762652] uvcvideo: disagrees about version of symbol video_device_alloc
[ 31.762654] uvcvideo: Unknown symbol video_device_alloc
[ 31.762714] uvcvideo: disagrees about version of symbol video_register_device
[ 31.762715] uvcvideo: Unknown symbol video_register_device
[ 31.762908] uvcvideo: disagrees about version of symbol video_device_release
[ 31.762909] uvcvideo: Unknown symbol video_device_release
[/code]
Any idea?
#10 by JayBlanc on 2009/01/12 - 19:18
Zitieren
Hi.
Your source package doesn’t appear to include what you used to make the DKMS tarball, and only includes the DKMS tarball its self.
Can you release a source package that builds the DKMS tarball from the separate components?
That would make it much easier to make my own versions of it based on new snapshots.
#11 by JayBlanc on 2009/01/12 - 23:56
Zitieren
Also, found out that your DKMS conf generation script is broken due to using the wrong way to increment a loop counter, making it set all the modules as [0] if you use the wrong shell.
#12 by martinpitt on 2009/01/18 - 11:23
Zitieren
@Jay: The script is at http://people.canonical.com/~pitti/scripts/make-v4l-dkms.sh .
Pingback: DVB-T und Ubuntu « Software und Ubuntu
#13 by Mark Berry on 2010/02/14 - 01:50
Zitieren
Just to say a huge THANK YOU. You have saved me hours, again. Best wishes, Mark.
#14 by Thomas on 2011/10/07 - 19:29
Zitieren
Hi Martin,
have tried your dkms and build runs fine. after depmod -a the modules were found by the system.
My problem is that my USB-DVB-T will not be recognized by the system. it´s an Elgato Diversity, wich is an rebuild from WinTV NOVA-TD. Maybe only the VENDOR:ID is´nt the same. So, what can i do to include my VENDOR:ID (0fd9:0011) in dvb-usb-dib0700 (thats is the driver for it).
Thanks in advance.
Thomas