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.
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820
Rep:
ivtv driver compile problems
I am trying to get ivtv installed for my Hauppauge card. I installed the 2.6.8 kernel and its sources. When I run Make in the driver directory of /usr/local/ivtv the following error comes up. Can someone help me decifer this mess please?
Blackpearl:/usr/local/ivtv/driver # make
gcc -D__KERNEL__ -D__KERNEL_SYSCALLS__ -DMODULE -DMODVERSIONS -I/lib/modules/2.6.8-20041028004040-default/build/include -O2 -fomit-frame-pointer -march=i586 -mcpu=i586 -fno-strict-aliasing -Wno-unused -include /lib/modules/2.6.8-20041028004040-default/build/include/linux/modversions.h -c -o msp3400.o msp3400.c
<command line>:138983721:47472: /lib/modules/2.6.8-20041028004040-default/build/include/linux/modversions.h: No such file or directory
In file included from /usr/include/linux/module.h:20,
from msp3400.c:38:
/usr/include/asm/module.h:56:2: #error unknown processor family
In file included from /usr/include/linux/mm.h:206,
from /usr/include/linux/poll.h:10,
from /usr/include/linux/videodev.h:12,
from msp3400.c:46:
/usr/include/linux/page-flags.h:119: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/page-flags.h:119: error: requested alignment is not a constant
msp3400.c: In function `msp3400c_set_scart':
msp3400.c:344: error: structure has no member named `data'
msp3400.c: In function `msp3400c_setmode':
msp3400.c:408: error: structure has no member named `data'
msp3400.c: In function `msp3400c_setstereo':
msp3400.c:481: error: structure has no member named `data'
msp3400.c: In function `msp3400c_restore_dfp':
msp3400.c:609: error: structure has no member named `data'
msp3400.c: In function `autodetect_stereo':
msp3400.c:637: error: structure has no member named `data'
msp3400.c: In function `watch_stereo':
msp3400.c:737: error: structure has no member named `data'
msp3400.c: In function `msp3400c_thread':
msp3400.c:756: error: structure has no member named `data'
msp3400.c:761: error: too few arguments to function `daemonize'
msp3400.c:765: error: structure has no member named `sigmask_lock'
msp3400.c:767: error: structure has no member named `sigmask_lock'
msp3400.c: In function `msp3410d_thread':
msp3400.c:1011: error: structure has no member named `data'
msp3400.c:1014: error: too few arguments to function `daemonize'
msp3400.c:1018: error: structure has no member named `sigmask_lock'
msp3400.c:1020: error: structure has no member named `sigmask_lock'
msp3400.c: In function `msp_attach':
msp3400.c:1282: error: structure has no member named `data'
msp3400.c:1333: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/include/linux/module.h:514)
msp3400.c: In function `msp_detach':
msp3400.c:1357: error: structure has no member named `data'
msp3400.c:1383: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/include/linux/module.h:526)
msp3400.c: In function `msp_probe':
msp3400.c:1390: warning: passing arg 3 of `i2c_probe' from incompatible pointer type
msp3400.c: In function `msp_wake_thread':
msp3400.c:1396: error: structure has no member named `data'
msp3400.c: In function `msp_command':
msp3400.c:1408: error: structure has no member named `data'
make: *** [msp3400.o] Error 1
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820
Original Poster
Rep:
I found the problem. I had to download and install the frequencies file and Video::ivtv as well as extract the firmware from the Hauppauge cd.
I may try to write a how-to on this subject once SuSE 9.2 arrives. Getting a Huappauge PVR 250 working is a PITA, and the current documentation leaves a lot to be desired.
All I did is copy the header files from the utility directory to the driver directory in the ivtv directory. After that, I install the perl modules to use the included perl scripts.
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820
Original Poster
Rep:
The video.h file is important, but the SuSE 9.1 howto I was following said nothing of the video frequencies file or the firmware extract necessary to make the Hauppauge WinTV PVR 250 actually work. I found those instructions by googling the error messages from dmesg.
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820
Original Poster
Rep:
Sorry, I wasn't in front of my PVR when I posted so I may have the file name wrong. There is a file in the utils directory that is supposed to be copied prior to the compile.
I ended up getting snow when I ran the cat /dev/video test, yay!. Snow is what I expected as my satellite TV doesn't get connected for another week and I live a million miles from nowhere so broadcast is terrible. I was told if you see snow, then the capture card is working. Next weekend I will repeat the installation. By then I should have my new distro (SuSE 9.2pro) and a working satellite receiver for a clean signal. I assume I will have to either use a different input (composite, S-video?) for the satellite connection or use channel 3 or something, as the receiver will be controlling channel changing..
INPUT | Description
-------------------------------
0 | Plausible (S-Video)
1 | NA
2 | Plausible (Radio)
3 | NA
4 | Plausible (Tuner)
5 | Plausible (Composite)
6 | Plausible (S-Video)
7 | NA
8 | Plausible (S-Video)
9 | NA
I suggest using S-Video for satellite TV and DVD, but you will have to tell the card to switch to the stereo input connector. By default the audio from the TV tuner will be used.
Just to caution you, the MPEG encoder chip is very sensitive to heat.
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820
Original Poster
Rep:
Thanks for the heads up. The machine (see below) has a Volcano on it's processor and it is housed in an Antec case with two 6 inch input and exhaust fans. It stays pretty cool even under load.
I finally got ivtv working. I did a clean install of SuSE 9.2 pro and for some reason it was easier under 9.2 than under 9.1. Additionally, I used CPAN to take care of the perl requirements and it works like a charm. What a great tool CPAN is, like the apt-get of perl.
I successfully got the cat /dev/video > my.mpg test working, and will be installing mythtv on Saturday. I am keeping notes in the hope of writing a Mythtv/suse 9.2 how-to for Hauppage cards HOWTO.
Don't abandon your idea to write this up. ivtv didn't compile with Suse 9.2, and even after I did all the Frequencies stuff. I'm certain I don't understand "all the perl dependencies". It would be unfortunate, but switching to Mandrake may be easier.
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820
Original Poster
Rep:
While I got the ivtv driver working well enough (from the command-line) Myth-TV was a complete failure. I got it to launch once, but only displaying half the window and on the wrong display. It seems as though it doesn't like hydra display setups, or I must have missed something. I will try again sometime after Christmas.
Use CPAN for the perl stuff, it is way easier than tracking all that stuff down manually.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.