LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-28-2004, 08:07 PM   #1
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Rep: Reputation: 46
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
 
Old 10-30-2004, 09:35 PM   #2
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Original Poster
Rep: Reputation: 46
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.
 
Old 10-30-2004, 10:58 PM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
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.
 
Old 10-31-2004, 10:08 AM   #4
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Original Poster
Rep: Reputation: 46
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.
 
Old 10-31-2004, 02:36 PM   #5
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
I used Mythtv and ivtv wiki site to put me in the right direction. However, the perl modules are optional.

I looked in the ivtv directory. There is no file that calls for video.h. Also I looked in the kernel directory. Nothing calls for video.h.
 
Old 11-01-2004, 12:40 PM   #6
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Original Poster
Rep: Reputation: 46
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..
 
Old 11-01-2004, 03:42 PM   #7
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Below is what I got from extensive testing.
Code:
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.
 
Old 11-19-2004, 09:19 AM   #8
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Original Poster
Rep: Reputation: 46
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.

Thanks for the help..
 
Old 12-12-2004, 07:49 PM   #9
stetrick
LQ Newbie
 
Registered: Dec 2004
Posts: 1

Rep: Reputation: 0
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.
 
Old 12-13-2004, 10:39 AM   #10
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Original Poster
Rep: Reputation: 46
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Scull Device Driver (problems to compile) manuzinhac Linux - Hardware 0 05-19-2005 09:00 AM
Want to compile a driver, but keep having problems justintime32 Debian 15 05-14-2005 04:06 PM
IVTV Driver Util Trouble zgauthier Linux - Software 0 12-29-2004 07:39 PM
ivtv driver j0han Linux - Software 4 12-01-2004 01:45 AM
ivtv driver j0han Linux - Hardware 3 11-24-2004 12:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration