video card error Hauppauge WinTV-HVR 1850 kernel 2.6.27-17-generic (Ubuntu Intrepid)
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
video card error Hauppauge WinTV-HVR 1850 kernel 2.6.27-17-generic (Ubuntu Intrepid)
Hello,
I am trying to install a Hauppauge 1850 video card into Linux Home automation system (LinuxMCE) which is based on Ubuntu Intrepid (I can't upgrade the kernel since this is what the LinuxMCE distribution supports)
I am feeding analog signal to the video card, either through a coax analog connection or an RCA analog connection. I cannot see any picture from the card (I verified that the video card is working properly under a Windows Vista OS)
I am trying to use the video card using a lightweight application such as tvtime, xawtv. In all applications I am failing to see an image. (For example, tvtime shows the message "No inputs avialble Cannot open capture device /dev/video0". Right clicking on Input configuration / Change video source doesn't give any options)
I installed the drivers for the card, according to the instructions in:
Building the drivers from source, according to the section "Making it Work / Analog" fails with error.
Code:
cd v4l-dvb
make
I'm getting the following compilation error:
Quote:
avner@dcerouter:~$ cd v4l-dvb/
avner@dcerouter:~/v4l-dvb$ make
make -C /home/avner/v4l-dvb/v4l
make[1]: Entering directory `/home/avner/v4l-dvb/v4l'
creating symbolic links...
make -C firmware prep
make[2]: Entering directory `/home/avner/v4l-dvb/v4l/firmware'
make[2]: Leaving directory `/home/avner/v4l-dvb/v4l/firmware'
make -C firmware
make[2]: Entering directory `/home/avner/v4l-dvb/v4l/firmware'
make[2]: Nothing to be done for `default'.
make[2]: Leaving directory `/home/avner/v4l-dvb/v4l/firmware'
Kernel build directory is /lib/modules/2.6.27-17-generic/build
make -C /lib/modules/2.6.27-17-generic/build SUBDIRS=/home/avner/v4l-dvb/v4l modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.27-17-generic'
CC [M] /home/avner/v4l-dvb/v4l/dvb_demux.o
/home/avner/v4l-dvb/v4l/dvb_demux.c: In function 'dvbdmx_write':
/home/avner/v4l-dvb/v4l/dvb_demux.c:1137: error: implicit declaration of function 'memdup_user'
/home/avner/v4l-dvb/v4l/dvb_demux.c:1137: warning: assignment makes pointer from integer without a cast
make[3]: *** [/home/avner/v4l-dvb/v4l/dvb_demux.o] Error 1
make[2]: *** [_module_/home/avner/v4l-dvb/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.27-17-generic'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/avner/v4l-dvb/v4l'
make: *** [all] Error 2
According to the instructions in the section "Making it Work / Firmware" I downloaded the prebuilt firmware and created the files: v4l-cx23885-avcore-01.fw and v4l-cx23885-enc.fw. Then I loaded the drivers using:
everything I have read said that was already in the kernel your stock kernel if I missed something let me know because you do not need to build it. could you do a cold boot and then post your lsmod for me.
v4l2 is the handler on this and I do not see that in your demsg I just see v4l1 the 2.6.27.17 kernel has v4l2 I just want to see if it is loading. 2.6.27 kernel around then was when v4l2 came out I wonder when ubuntu built this they did not configure 4vl2. if so look for the other kernel that ubuntu uses besides generic.
I was wrong the kernel team did not support it till 2.6.28
give me your output of lsmod
Last edited by Drakeo; 09-05-2010 at 11:27 PM.
Reason: mis read info
The best thing you could do is upgrade to kernel 2.6.30
I cannot upgrade to kernel 2.6.30, because the LinuxMCE distribution is based on kernel 2.6.27-17-generic
Building from source still breaks. Below is what I'm getting following the above instructions.
Regards,
Avner
Quote:
avner@dcerouter:~$ sudo apt-get install fakeroot kernel-wedge build-essential makedumpfile kernel-package
Reading package lists... Done
Building dependency tree
Reading state information... Done
fakeroot is already the newest version.
fakeroot set to manually installed.
build-essential is already the newest version.
build-essential set to manually installed.
The following extra packages will be installed:
crash kexec-tools
Suggested packages:
kernel-patch-lkcd dumputils docbook-utils libdb3-dev linux-source kernel-source
The following NEW packages will be installed:
crash kernel-package kernel-wedge kexec-tools makedumpfile
0 upgraded, 5 newly installed, 0 to remove and 6 not upgraded.
Need to get 2484kB of archives.
After this operation, 8196kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
crash kernel-package kernel-wedge kexec-tools makedumpfile
Authentication warning overridden.
Get:1 http://ca.archive.ubuntu.com intrepid/main crash 4.0-6.3-1ubuntu2 [1531kB]
Get:2 http://ca.archive.ubuntu.com intrepid/main kernel-package 11.001-0.1 [510kB]
Get:3 http://ca.archive.ubuntu.com intrepid/main kernel-wedge 2.29ubuntu2 [40.0kB]
Get:4 http://ca.archive.ubuntu.com intrepid/main kexec-tools 20070330-4ubuntu6 [58.9kB]
Get:5 http://ca.archive.ubuntu.com intrepid/main makedumpfile 1.2.9-0ubuntu3 [344kB]
Fetched 2484kB in 4s (577kB/s)
Selecting previously deselected package crash.
(Reading database ...
178315 files and directories currently installed.)
Unpacking crash (from .../crash_4.0-6.3-1ubuntu2_i386.deb) ...
Unpacking kernel-package (from .../kernel-package_11.001-0.1_all.deb) ...
Selecting previously deselected package kernel-wedge.
Unpacking kernel-wedge (from .../kernel-wedge_2.29ubuntu2_all.deb) ...
Selecting previously deselected package kexec-tools.
Unpacking kexec-tools (from .../kexec-tools_20070330-4ubuntu6_i386.deb) ...
Selecting previously deselected package makedumpfile.
Unpacking makedumpfile (from .../makedumpfile_1.2.9-0ubuntu3_i386.deb) ...
Processing triggers for man-db ...
Setting up crash (4.0-6.3-1ubuntu2) ...
Setting up kernel-package (11.001-0.1) ...
Setting up kernel-wedge (2.29ubuntu2) ...
Setting up kexec-tools (20070330-4ubuntu6) ...
Setting up makedumpfile (1.2.9-0ubuntu3) ...
Quote:
avner@dcerouter:~$ sudo apt-get build-dep linux
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
Quote:
avner@dcerouter:~$ sudo apt-get install linux-firmware-nonfree
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package linux-firmware-nonfree
avner@dcerouter:~$ cd v4l-dvb-20100517/
avner@dcerouter:~/v4l-dvb-20100517$
avner@dcerouter:~/v4l-dvb-20100517$ make
make -C /home/avner/v4l-dvb-20100517/v4l
make[1]: Entering directory `/home/avner/v4l-dvb-20100517/v4l'
perl scripts/make_config_compat.pl /lib/modules/2.6.27-17-generic/build ./.myconfig ./config-compat.h
creating symbolic links...
make -C firmware prep
make[2]: Entering directory `/home/avner/v4l-dvb-20100517/v4l/firmware'
make[2]: Leaving directory `/home/avner/v4l-dvb-20100517/v4l/firmware'
make -C firmware
make[2]: Entering directory `/home/avner/v4l-dvb-20100517/v4l/firmware'
CC ihex2fw
Generating vicam/firmware.fw
Generating dabusb/firmware.fw
Generating dabusb/bitstream.bin
Generating ttusb-budget/dspbootcode.bin
Generating cpia2/stv0672_vp4.bin
Generating av7110/bootcode.bin
make[2]: Leaving directory `/home/avner/v4l-dvb-20100517/v4l/firmware'
Kernel build directory is /lib/modules/2.6.27-17-generic/build
make -C /lib/modules/2.6.27-17-generic/build SUBDIRS=/home/avner/v4l-dvb-20100517/v4l modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.27-17-generic'
CC [M] /home/avner/v4l-dvb-20100517/v4l/tuner-xc2028.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/tuner-simple.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/tuner-types.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/mt20xx.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/tda8290.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/tea5767.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/tea5761.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/tda9887.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/tda827x.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/au0828-core.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/au0828-i2c.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/au0828-cards.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/au0828-dvb.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/au0828-video.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/au8522_dig.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/au8522_decoder.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/flexcop-pci.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/flexcop-usb.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/flexcop.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/flexcop-fe-tuner.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/flexcop-i2c.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/flexcop-sram.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/flexcop-eeprom.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/flexcop-misc.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/flexcop-hw-filter.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/flexcop-dma.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/bttv-driver.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/bttv-cards.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/bttv-if.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/bttv-risc.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/bttv-vbi.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/bttv-i2c.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/bttv-gpio.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/bttv-input.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/bttv-audio-hook.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cpia2_v4l.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cpia2_usb.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cpia2_core.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-alsa-main.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-alsa-pcm.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-driver.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-cards.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-i2c.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-firmware.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-gpio.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-queue.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-streams.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-fileops.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-ioctl.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-controls.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-mailbox.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-vbi.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-audio.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-video.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-irq.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-av-core.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-av-audio.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-av-firmware.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-av-vbi.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-scb.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-dvb.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx18-io.o
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx231xx-audio.o
In file included from /home/avner/v4l-dvb-20100517/v4l/cx231xx-audio.c:41:
/home/avner/v4l-dvb-20100517/v4l/cx231xx.h:746: warning: 'struct IR_i2c' declared inside parameter list
/home/avner/v4l-dvb-20100517/v4l/cx231xx.h:746: warning: its scope is only this definition or declaration, which is probably not what you want
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx231xx-video.o
In file included from /home/avner/v4l-dvb-20100517/v4l/cx231xx-video.c:44:
/home/avner/v4l-dvb-20100517/v4l/cx231xx.h:746: warning: 'struct IR_i2c' declared inside parameter list
/home/avner/v4l-dvb-20100517/v4l/cx231xx.h:746: warning: its scope is only this definition or declaration, which is probably not what you want
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx231xx-i2c.o
In file included from /home/avner/v4l-dvb-20100517/v4l/cx231xx-i2c.c:30:
/home/avner/v4l-dvb-20100517/v4l/cx231xx.h:746: warning: 'struct IR_i2c' declared inside parameter list
/home/avner/v4l-dvb-20100517/v4l/cx231xx.h:746: warning: its scope is only this definition or declaration, which is probably not what you want
CC [M] /home/avner/v4l-dvb-20100517/v4l/cx231xx-cards.o
In file included from /home/avner/v4l-dvb-20100517/v4l/cx231xx-cards.c:37:
/home/avner/v4l-dvb-20100517/v4l/cx231xx.h:746: warning: 'struct IR_i2c' declared inside parameter list
/home/avner/v4l-dvb-20100517/v4l/cx231xx.h:746: warning: its scope is only this definition or declaration, which is probably not what you want
/home/avner/v4l-dvb-20100517/v4l/cx231xx-cards.c:286: warning: 'struct IR_i2c' declared inside parameter list
/home/avner/v4l-dvb-20100517/v4l/cx231xx-cards.c:286: error: conflicting types for 'cx231xx_set_ir'
/home/avner/v4l-dvb-20100517/v4l/cx231xx.h:746: error: previous declaration of 'cx231xx_set_ir' was here
/home/avner/v4l-dvb-20100517/v4l/cx231xx-cards.c: In function 'cx231xx_set_ir':
/home/avner/v4l-dvb-20100517/v4l/cx231xx-cards.c:293: error: dereferencing pointer to incomplete type
make[3]: *** [/home/avner/v4l-dvb-20100517/v4l/cx231xx-cards.o] Error 1
make[2]: *** [_module_/home/avner/v4l-dvb-20100517/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.27-17-generic'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/avner/v4l-dvb-20100517/v4l'
make: *** [all] Error 2
I forgot to add the result for the last instruction. I already have it installed:
Quote:
avner@dcerouter:~$ sudo apt-get install mercurial linux-headers-$(uname -r) build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
mercurial is already the newest version.
linux-headers-2.6.27-17-generic is already the newest version.
linux-headers-2.6.27-17-generic set to manually installed.
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.