LinuxQuestions.org
Help answer threads with 0 replies.
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-25-2019, 10:03 PM   #1
gabs247
Member
 
Registered: Jan 2018
Posts: 46

Rep: Reputation: Disabled
Installing HVR-2200 Tuner on Debian Stretch


I had some hardware issues on my server, and so had to rebuild it. I decided to upgrade to the latest version of OpenMediaVault 4.1 (Debian 9.11).

However, I'm having difficulties with my Hauppague HVR-2200 tuner card. I installed the drivers previous via this guide: https://www.linuxtv.org/wiki/index.p...WinTV-HVR-2200

But I can't seem to find the saa7164 driver in the dmesg output? When I try to do a dvbscan, I get:

ERROR: initial tuning failed
dumping lists (0 services)


I'm not really sure what else to do, there appear to adapters in /dev/dvb but something is not right...I remember having a bit of trouble last time getting the drivers installed, but I don't think I got to this point. Can anyone offer any advice, as I'd like to get the tuner card working again if possible???

Thanks in advance.
 
Old 10-26-2019, 04:45 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,359
Blog Entries: 7

Rep: Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935
Is the kernel module installed?
Code:
sudo modprobe --dump-modversions saa7164
If not then, you'll need to install, find, build one.

If you do have firmware installed then do you have a channels.conf?
If not make one.
Example:
Code:
[12.1]
    VCHANNEL = 12.1
    SERVICE_ID = 1
	VIDEO_PID = 49
	AUDIO_PID = 52
	FREQUENCY = 189028615
	MODULATION = VSB/8
	DELIVERY_SYSTEM = ATSC
    
[12.2]
    VCHANNEL = 12.2
    SERVICE_ID = 2
	VIDEO_PID = 65
	AUDIO_PID = 68
	FREQUENCY = 189028615
	MODULATION = VSB/8
	DELIVERY_SYSTEM = ATSC
    
[12.3]
    VCHANNEL = 12.3
    SERVICE_ID = 3
	VIDEO_PID = 81
	AUDIO_PID = 84
	FREQUENCY = 189028615
	MODULATION = VSB/8
	DELIVERY_SYSTEM = ATSC
    
    ...
After that
Code:
conf="$HOME/.mplayer/dvb_channel.conf"
dvbv5-zap -ssrc "$conf" 12.2
Code:
mplayer/mpv/ffplay /dev/dvb/adapter0/dvr0
dvbv5-zap is part of v4l-utils
https://www.linuxtv.org/wiki/index.php/Dvbv5-zap
https://www.linuxtv.org/wiki/index.php/V4l-utils

Your first task, get firmware working.
 
Old 10-27-2019, 02:26 AM   #3
gabs247
Member
 
Registered: Jan 2018
Posts: 46

Original Poster
Rep: Reputation: Disabled
Ok, that's the problem then, as the modprobe output is:

modprobe: FATAL: Module saa7164 not found.

I don't know, I've tried following the guide So obviously the firmware is not installed. The guide seems to indicate how to do it, but maybe it's not working for this latest kernel??? I tried to make install it but I got errors as well:

Preparing to compile for kernel version 4.19.0
File not found: /lib/modules/4.19.0-0.bpo.5-amd64/build/.config at ./scripts/make_kconfig.pl line 33, <IN> line 4.
make[1]: *** No rule to make target '.config', needed by '.myconfig'. Stop.

Any advice on what is wrong?
 
Old 10-27-2019, 08:19 AM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,359
Blog Entries: 7

Rep: Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935
You'll have to figure out how to get/build/install firmware for that if you can.

https://www.linuxtv.org/wiki/index.p...WinTV-HVR-2200

These exist
Code:
wget --spider http://www.steventoth.net/linux/hvr22xx/22xxdrv_27086.zip
Spider mode enabled. Check if remote file exists.
--2019-10-27 07:09:19--  http://www.steventoth.net/linux/hvr22xx/22xxdrv_27086.zip
Resolving www.steventoth.net (www.steventoth.net)... 23.253.43.151
Connecting to www.steventoth.net (www.steventoth.net)|23.253.43.151|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9386645 (9.0M) [application/zip]
Remote file exists.

wget --spider http://www.steventoth.net/linux/hvr22xx/HVR-12x0-14x0-17x0_1_25_25271_WHQL.zip
Spider mode enabled. Check if remote file exists.
--2019-10-27 07:09:50--  http://www.steventoth.net/linux/hvr22xx/HVR-12x0-14x0-17x0_1_25_25271_WHQL.zip
Resolving www.steventoth.net (www.steventoth.net)... 23.253.43.151
Connecting to www.steventoth.net (www.steventoth.net)|23.253.43.151|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1545106 (1.5M) [application/zip]
Remote file exists.

wget --spider http://www.steventoth.net/linux/hvr22xx/extract.sh
Spider mode enabled. Check if remote file exists.
--2019-10-27 07:10:26--  http://www.steventoth.net/linux/hvr22xx/extract.sh
Resolving www.steventoth.net (www.steventoth.net)... 23.253.43.151
Connecting to www.steventoth.net (www.steventoth.net)|23.253.43.151|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2349 (2.3K) [text/x-sh]
Remote file exists.
You say that they don't work?

https://askubuntu.com/questions/3086...n-ubuntu-13-04

Good luck. Let everyone know if/when/how you got the firmware working.

http://www.hauppauge.com/pages/suppo...ort_linux.html
http://www.kernellabs.com/blog/?p=676

Or you may just forget it and get a newer card that has current kernel support.
 
Old 11-09-2019, 08:14 PM   #5
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
Quote:
But I can't seem to find the saa7164 driver in the dmesg output?
You seem to be assuming that if this module doesn't load at boot time automatically that you don't have a saa7164 kernel module. It may not load as it may be listed differently in the modules.alias file.

I run Fedora and I have this module

Code:
$ locate saa7164 | grep $(uname -r)
/usr/lib/modules/5.3.6-100.fc29.x86_64/kernel/drivers/media/pci/saa7164
/usr/lib/modules/5.3.6-100.fc29.x86_64/kernel/drivers/media/pci/saa7164/saa7164.ko.xz
/usr/src/kernels/5.3.6-100.fc29.x86_64/drivers/media/pci/saa7164
/usr/src/kernels/5.3.6-100.fc29.x86_64/drivers/media/pci/saa7164/Kconfig
/usr/src/kernels/5.3.6-100.fc29.x86_64/drivers/media/pci/saa7164/Makefile
/usr/src/kernels/5.3.6-100.fc29.x86_64/include/config/video/saa7164.h
I can load it manually with modprobe

Code:
$ sudo modprobe saa7164
$ lsmod | grep saa7164
saa7164               147456  0
tveeprom               28672  1 saa7164
dvb_core              155648  1 saa7164
videodev              237568  1 saa7164
However even after loading this module into the kernel:

Code:
$ sudo modprobe --dump-modversions saa7164
modprobe: FATAL: Module saa7164 not found.
Apparently the --dump-modversions option doesn't really work. If you simply tried sudo modprobe saa7164 it might load.

On Debian try:

Code:
$ locate saa7164 | grep $(uname -r)
# if it is found
$ sudo modprobe saa7164
$ lsmod | grep saa7164
This driver appears in the modules.alias file

Code:
$ grep saa7164 /usr/lib/modules/$(uname -r)/modules.alias
alias pci:v00001131d00007164sv*sd*bc*sc*i* saa7164
with a vendor ID of 1131 and device ID of 7164 which corresponds in /usr/share/hwdata/pci.ids to

Code:
# Syntax:
# vendor  vendor_name
#       device  device_name                             <-- single tab
#               subvendor subdevice  subsystem_name     <-- two tabs

1131  Philips Semiconductors
        7164  SAA7164
                0070 8900  WinTV HVR-2200
                0070 8901  WinTV HVR-2200
                0070 8940  WinTV HVR-2200 (submodel 89619)
                0070 8951  WinTV HVR-2200
                0070 8953  WinTV HVR-2200
                0070 8980  WinTV HVR-2200
                0070 8991  WinTV HVR-2200
                0070 8993  WinTV HVR-2200
                0070 89a0  WinTV HVR-2200
                0070 89a1  WinTV HVR-2200
The subvendor id corresponds to Hauppauge

Code:
0070  Hauppauge computer works Inc.

Last edited by tofino_surfer; 11-10-2019 at 02:53 PM.
 
Old 11-16-2019, 01:57 PM   #6
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
Quote:
Or you may just forget it and get a newer card that has current kernel support.
The saa7164 module is supported in the 5.3.6 kernel so the Hauppauge WinTV HVR-2200 does have current kernel support. It may not appear in the Hauppauge page you linked as it is not currently manufactured however there is a module for the saa7164 in the 5.3 kernel.

Since the OP has already bought this card it makes sense to see if this module exists in Debian and can be loaded manually with modprobe.

On Debian try:

Code:
$ locate saa7164 | grep $(uname -r)
# if it is found
$ sudo modprobe saa7164
$ lsmod | grep saa7164
 
Old 11-17-2019, 01:48 AM   #7
gabs247
Member
 
Registered: Jan 2018
Posts: 46

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by tofino_surfer View Post
The saa7164 module is supported in the 5.3.6 kernel so the Hauppauge WinTV HVR-2200 does have current kernel support. It may not appear in the Hauppauge page you linked as it is not currently manufactured however there is a module for the saa7164 in the 5.3 kernel.

Since the OP has already bought this card it makes sense to see if this module exists in Debian and can be loaded manually with modprobe.

On Debian try:

Code:
$ locate saa7164 | grep $(uname -r)
# if it is found
$ sudo modprobe saa7164
$ lsmod | grep saa7164
Nothing found unfortunately from locate
 
Old 11-17-2019, 02:02 AM   #8
gabs247
Member
 
Registered: Jan 2018
Posts: 46

Original Poster
Rep: Reputation: Disabled
I don't see any aliases either, buy I'm just a Linux newbie and things are in different spots it seems.
 
Old 11-17-2019, 08:57 AM   #9
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,359
Blog Entries: 7

Rep: Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935Reputation: 1935
Code:
locate saa7164 | grep $(uname -r)
/usr/lib/modules/5.3.7-arch1-1-ARCH/kernel/drivers/media/pci/saa7164
/usr/lib/modules/5.3.7-arch1-1-ARCH/kernel/drivers/media/pci/saa7164/saa7164.ko.xz
Code:
uname -r
5.3.7-arch1-1-ARCH
From post 3. You are using kernel 4.19? Can you install kernel 5.3?

https://packages.debian.org/sid/kernel/
https://qa.debian.org/developer.php?...sts.debian.org
https://www.cyberciti.biz/linux-news...to-install-it/
Code:
 wget --spider https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/linux-5.3.4.tar.xz
Spider mode enabled. Check if remote file exists.
--2019-11-17 07:53:01--  https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/linux-5.3.4.tar.xz
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving mirrors.edge.kernel.org (mirrors.edge.kernel.org)... 147.75.197.195, 2604:1380:1:3600::1
Connecting to mirrors.edge.kernel.org (mirrors.edge.kernel.org)|147.75.197.195|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 108563300 (104M) [application/x-xz]
 
Old 11-17-2019, 03:58 PM   #10
gabs247
Member
 
Registered: Jan 2018
Posts: 46

Original Poster
Rep: Reputation: Disabled
It's openmediavaulf 4.19, which is debian 9.1? I don't think I can upgrade the kernel without blowing the server up ��
 
Old 11-17-2019, 04:31 PM   #11
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: KDE Neon
Posts: 1,244

Rep: Reputation: 520Reputation: 520Reputation: 520Reputation: 520Reputation: 520Reputation: 520
looking over the third post, are you able to install the kernel-headers for your kernel? That should allow you compile the module.
May also need to install the build-esesntal tools.
 
Old 11-17-2019, 09:53 PM   #12
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
Quote:
From post 3. You are using kernel 4.19? Can you install kernel 5.3?
This shouldn't be necessary. I run Manjaro KDE as well and the saa7164 module is available with the 4.19 kernel that comes with Manjaro. Also the saa7164 chip that is used in the HVR 2200 is over 10 years old so the kernel module is quite old as well. It dates from September 2009 and was in the 2.6 kernel. There would be no need for a 5.x kernel.

Quote:
Saa7164 driver

In September 2009, Steven Toth at kernellabs submitted code to the linux kernel mailing list that adds support for the NXP SAA7164 PCIe A/V bridge used by the Hauppauge HVR-2200 and HVR-2250 series of products. See instructions at Hauppauge WinTV-HVR-2200. Note that support is still limited to DVB-T / ATSC / QAM digital TV only; there is no analog support yet.
Code:
$ locate saa7164
/usr/lib/modules/4.19.80-1-MANJARO/kernel/drivers/media/pci/saa7164
/usr/lib/modules/4.19.80-1-MANJARO/kernel/drivers/media/pci/saa7164/saa7164.ko.xz
$ sudo modprobe saa7164 
$ lsmod | grep saa7164
saa7164               147456  0
tveeprom               24576  1 saa7164
dvb_core              159744  1 saa7164
videodev              217088  2 saa7164,videobuf2_common

$ grep saa7164 /usr/lib/modules/$(uname -r)/modules.alias
alias pci:v00001131d00007164sv*sd*bc*sc*i* saa7164

$ uname -r
4.19.80-1-MANJARO
$ cat /etc/os-release 
NAME="Manjaro Linux"
ID=manjaro
ID_LIKE=arch
PRETTY_NAME="Manjaro Linux"
Quote:
I don't see any aliases either, buy I'm just a Linux newbie and things are in different spots it seems.
I don't know where Debian keeps the modules.alias file but on both Fedora and Manjaro it is at /usr/lib/modules/$(uname -r)/modules.alias. You could try $ locate modules.alias

Last edited by tofino_surfer; 11-18-2019 at 12:00 AM.
 
Old 03-15-2020, 07:31 PM   #13
gabs247
Member
 
Registered: Jan 2018
Posts: 46

Original Poster
Rep: Reputation: Disabled
FYI, I just wanted to close this one up. I eventually had to start from scratch again with my server. Strangely, it only lasted about 6 months, and then stopped working again...not sure if it was a dodgy installation or the OS running on a USB...

I had some troubles getting it reinstalled on the USB again. Evnetually, I bought two new cheap 16GB sticks, not really having much expectation that they'd last long, but wanted to make sure it was due to the USB that my machine wasn't working properly and not more severe hardware issues with the rest of the box :S

It took a while, but eventually, I got it working again, and it has been working fine for the last couple of months (this time, I took frequent images of the USB OS as well so wouldn't have to go through that pain again, hoepfully).

Anyway, I've just had the time and the courage to check my tuner driver again. It was failing to load OOTB, but I followed the following: https://www.linuxtv.org/wiki/index.p...WinTV-HVR-2200

The section "Making it Work Easily" acuallly worked no problems for me! It has loaded up correctly now, so fingers crossed I can integrated it into a tuner app and back into KODI again:


[ 7.132404] CORE saa7164[0]: subsystem: 0070:8980, board: Hauppauge WinTV-HVR2200 [card=4,autodetected]
[ 7.132409] saa7164[0]/0: found at 0000:01:00.0, rev: 129, irq: 16, latency: 0, mmio: 0xf7400000
[ 7.360936] saa7164_downloadfirmware() no first image
[ 7.360994] saa7164_downloadfirmware() Waiting for firmware upload (NXP7164-2010-03-10.1.fw)
[ 7.567025] saa7164 0000:01:00.0: firmware: direct-loading firmware NXP7164-2010-03-10.1.fw
[ 7.567027] saa7164_downloadfirmware() firmware read 4019072 bytes.
[ 7.567027] saa7164_downloadfirmware() firmware loaded.
[ 7.567029] saa7164_downloadfirmware() SecBootLoader.FileSize = 4019072
[ 7.567033] saa7164_downloadfirmware() FirmwareSize = 0x1fd6
[ 7.567033] saa7164_downloadfirmware() BSLSize = 0x0
[ 7.567034] saa7164_downloadfirmware() Reserved = 0x0
[ 7.567034] saa7164_downloadfirmware() Version = 0x1661c00
[ 12.184884] saa7164_downloadimage() Image downloaded, booting...
[ 12.292889] saa7164_downloadimage() Image booted successfully.
[ 15.304789] saa7164_downloadimage() Image downloaded, booting...
[ 16.924907] saa7164_downloadimage() Image booted successfully.
[ 16.973592] tveeprom: audio processor is SAA7164 (idx 43)
[ 16.973593] tveeprom: decoder processor is SAA7164 (idx 40)
[ 16.973596] saa7164[0]: Hauppauge eeprom: model=89619
[ 17.385044] dvbdev: DVB: registering new adapter (saa7164)
[ 17.385048] saa7164 0000:01:00.0: DVB: registering adapter 0 frontend 0 (NXP TDA10048HN DVB-T)...
[ 20.270874] dvbdev: DVB: registering new adapter (saa7164)
[ 20.270883] saa7164 0000:01:00.0: DVB: registering adapter 1 frontend 0 (NXP TDA10048HN DVB-T)...
[ 20.306769] saa7164[0]: registered device video0 [mpeg]
[ 20.532696] saa7164[0]: registered device video1 [mpeg]
[ 20.743420] saa7164[0]: registered device vbi0 [vbi]
[ 20.743501] saa7164[0]: registered device vbi1 [vbi]
[ 20.745233] saa7164 driver loaded


Like I said, not sure why it was not installing last year for me, something obviously wasn't right with the OS...

Thanks again for the advice!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Hauppage Win TV HVR 2200 MC card. pamecnav Linux - Newbie 2 03-02-2012 12:49 PM
Hauppauge WinTV-HVR-2200 Jesgrew Linux - Hardware 1 05-02-2010 01:59 AM
How To Install Hauppauge TV-Tuner WinTV-HVR-1600 on Mandriva 09 ? dolphans1 Mandriva 75 01-27-2009 05:29 AM
Hauppauge HVR-1800 TV Capture/Tuner Card Woodsman Slackware 3 09-11-2008 04:59 PM
Hauppage wintv hvr 950 usb tuner gymnart Linux - Hardware 9 03-23-2007 07:46 PM

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

All times are GMT -5. The time now is 06:32 PM.

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