You are not logged in.

#1 2011-09-10 04:56:54

sultanoswing
Member
Registered: 2008-07-23
Posts: 288

[SOLVED] How to: Hauppauge HVR-2210 drivers/firmware on 3.0-3.6

I've been spending all afternoon on this, searching here, there and everywhere.

I've just installed a Hauppage HVR-2210 (a 2200-variant (88953) with a remote control) PCIe DVB tuner card:
http://www.linuxtv.org/wiki/index.php/H … V-HVR-2200

It SHOULD work on Linux / MythTV - but (see several posts below) it doesn't work 'out of the box', so to speak.

I followed the guide above, but can't get the drivers to compile and install using the instructions above (and numerous variations). The AUR packages don't compile, so I downloaded the git source & I've managed to overcome the various compile errors by editing various makefiles and using "make menuconfig" to compile only drivers I want, but just when I thought all was good, I ran into the following with "sudo make install"

make[1]: *** No rule to make target `media-install', needed by `install'.  Stop.
make[1]: Leaving directory `/home/mcm/Desktop/media_build/v4l'
make: *** [install] Error 2

Surely someone must have compiled and installed V4L drivers successfully under 3.0-ARCH recently - or at least has this (or a similar) Hauppauge card working?

[EDIT 1: solution is outlined in the posts below]

[EDIT 2: see below for a fix to the slow boot with new udev and kernel 3.2]

[EDIT 3: Updated for kernel 3.4.4-3]

[EDIT 4: Updated for kernel 3.6 and to ensure you load all firmwares!]

Last edited by sultanoswing (2012-10-18 21:24:19)


Arch-lts (x86_64) w/Gnome 3.20.2
ASUS P7P55-E-Pro, Geforce GTX460, i5-750, 8GB, Samsung 830 SSD | Intel NUC 5i5RYK | ASUS ux303ua | HP Folio 13

Offline

#2 2011-09-10 09:49:37

ethail
Member
From: Spain
Registered: 2011-02-10
Posts: 225

Re: [SOLVED] How to: Hauppauge HVR-2210 drivers/firmware on 3.0-3.6

V4L drivers are in the kernel, and IIRC ARCH stock kernel is build with them. Installing drivers and so outside of pacman is discouraged in Arch, better to make a PKGBUILD for that


My GitHub Page

Best Testing Repo Warning: [testing] means it can eat you hamster, catch fire and you should keep it away from children. And I'm serious here, it's not an April 1st joke.

Offline

#3 2011-09-10 11:08:34

arne
Member
Registered: 2009-09-29
Posts: 8

Re: [SOLVED] How to: Hauppauge HVR-2210 drivers/firmware on 3.0-3.6

I am trying to compile a v4l driver for the Philips Semiconductors SAA7160 (rev 03) and get the error File not found: /lib/modules//build/.config at ./scripts/make_kconfig.pl line 32.

Offline

#4 2011-09-10 17:03:01

fsckd
Forum Moderator
Registered: 2009-06-15
Posts: 3,565

Re: [SOLVED] How to: Hauppauge HVR-2210 drivers/firmware on 3.0-3.6

arne wrote:

I am trying to compile a v4l driver for the Philips Semiconductors SAA7160 (rev 03) and get the error File not found: /lib/modules//build/.config at ./scripts/make_kconfig.pl line 32.

No need to cross post (read this please). You have an existing thread here: https://bbs.archlinux.org/viewtopic.php?id=126238, if anyone wants to specifically help arne, reply there.

Last edited by fsckd (2011-09-10 17:20:13)


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#5 2011-09-10 23:03:31

sultanoswing
Member
Registered: 2008-07-23
Posts: 288

Re: [SOLVED] How to: Hauppauge HVR-2210 drivers/firmware on 3.0-3.6

Since I'm having no luck compiling the driver seperately and using AUR, I tried installing xf86-video-v4l. No difference - mythtv still not seeing the card, and no device is present in /dev/dvb/.

The card is detected by the kernel & lsmod shows the module (saa7164) loaded, but the boot message comes up with the following:

localhost kernel: [    6.493314] Linux media interface: v0.10
localhost kernel: [    6.517989] Linux video capture interface: v2.00
localhost kernel: [    6.569803] saa7164 driver loaded
localhost kernel: [    6.569841] saa7164 0000:0b:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
localhost kernel: [    6.569844] saa7164[0]: Your board isn't known (yet) to the driver.
localhost kernel: [    6.569845] saa7164[0]: Try to pick one of the existing card configs via
localhost kernel: [    6.569846] saa7164[0]: card=<n> insmod option.  Updating to the latest
localhost kernel: [    6.569847] saa7164[0]: version might help as well.
localhost kernel: [    6.574524] saa7164[0]: Here are valid choices for the card=<n> insmod option:
localhost kernel: [    6.575918] saa7164[0]:    card=0 -> Unknown
localhost kernel: [    6.576734] saa7164[0]:    card=1 -> Generic Rev2
localhost kernel: [    6.577632] saa7164[0]:    card=2 -> Generic Rev3
localhost kernel: [    6.578534] saa7164[0]:    card=3 -> Hauppauge WinTV-HVR2250
localhost kernel: [    6.579615] saa7164[0]:    card=4 -> Hauppauge WinTV-HVR2200
localhost kernel: [    6.580696] saa7164[0]:    card=5 -> Hauppauge WinTV-HVR2200
localhost kernel: [    6.581780] saa7164[0]:    card=6 -> Hauppauge WinTV-HVR2200
localhost kernel: [    6.582861] saa7164[0]:    card=7 -> Hauppauge WinTV-HVR2250
localhost kernel: [    6.583942] saa7164[0]:    card=8 -> Hauppauge WinTV-HVR2250
localhost kernel: [    6.586351] CORE saa7164[0]: subsystem: 0070:8953, board: Unknown [card=0,autodetected]
localhost kernel: [    6.586356] saa7164[0]/0: found at 0000:0b:00.0, rev: 129, irq: 17, latency: 0, mmio: 0xf7c00000
localhost kernel: [    6.586362] saa7164 0000:0b:00.0: setting latency timer to 64
localhost kernel: [    6.586378] saa7164_initdev() Unsupported board detected, registering without firmware

So - how to use insmod to pass the identifying information to the kernel? Why does it say "registering without firmware", and how may I get this firmware if needed?

I've followed the instructions on the HVR-2200 wiki, downloading & installing the fw files thusly:

wget http://www.steventoth.net/linux/hvr22xx/22xxdrv_27086.zip
wget http://www.steventoth.net/linux/hvr22xx/HVR-12x0-14x0-17x0_1_25_25271_WHQL.zip
http://www.steventoth.net/linux/hvr22xx/extract.sh
sh extract.sh
cp *fw /lib/firmware

Last edited by sultanoswing (2011-09-10 23:09:37)


Arch-lts (x86_64) w/Gnome 3.20.2
ASUS P7P55-E-Pro, Geforce GTX460, i5-750, 8GB, Samsung 830 SSD | Intel NUC 5i5RYK | ASUS ux303ua | HP Folio 13

Offline

#6 2011-09-11 02:39:07

sultanoswing
Member
Registered: 2008-07-23
Posts: 288

Re: [SOLVED] How to: Hauppauge HVR-2210 drivers/firmware on 3.0-3.6

OK - some progress. I set up the following in /etc/modprobe.d/saa7164:

option saa7164 card=4

Now the error is no firmware:

[    6.596375] Linux media interface: v0.10
[    6.604904] Linux video capture interface: v2.00
[    6.714489] saa7164 driver loaded
[    6.714528] saa7164 0000:0b:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[    6.715774] CORE saa7164[0]: subsystem: 0070:8953, board: Hauppauge WinTV-HVR2200 [card=4,insmod option]
[    6.715778] saa7164[0]/0: found at 0000:0b:00.0, rev: 129, irq: 17, latency: 0, mmio: 0xf7c00000
[    6.715785] saa7164 0000:0b:00.0: setting latency timer to 64
[    6.847843] saa7164_downloadfirmware() no first image
[    6.848827] saa7164_downloadfirmware() Waiting for firmware upload (NXP7164-2010-03-10.1.fw)
[    7.052145] saa7164_downloadfirmware() Upload failed. (file not found?)

Hmmmm.


Arch-lts (x86_64) w/Gnome 3.20.2
ASUS P7P55-E-Pro, Geforce GTX460, i5-750, 8GB, Samsung 830 SSD | Intel NUC 5i5RYK | ASUS ux303ua | HP Folio 13

Offline

#7 2011-09-11 02:54:52

sultanoswing
Member
Registered: 2008-07-23
Posts: 288

Re: [SOLVED] How to: Hauppauge HVR-2210 drivers/firmware on 3.0-3.6

[SOLVED] Looking at the above log, I needed and downloaded the following firmware:

http://steventoth.net/linux/hvr22xx/firmwares/4038864/

Unpacked and moved to the /lib/firmware directory, and the card is now detected in MythTV. Now to get it TV working.... smile


Arch-lts (x86_64) w/Gnome 3.20.2
ASUS P7P55-E-Pro, Geforce GTX460, i5-750, 8GB, Samsung 830 SSD | Intel NUC 5i5RYK | ASUS ux303ua | HP Folio 13

Offline

#8 2011-09-12 07:02:03

sultanoswing
Member
Registered: 2008-07-23
Posts: 288

Re: [SOLVED] How to: Hauppauge HVR-2210 drivers/firmware on 3.0-3.6

Update: using a modprobe conf file (/etc/modprobe.d/saa7164.conf) I set:

option saa7164 card=5

- this works the best of the options, but is still not working.

Since I have the Hauppauge HVR-2210 variant, this resulted in the firmware loading, although still with errors. As evidenced above - the 2210 isn't one of the card=n options. The card is listed in the kernel output as "CORE saa7164[0]: subsystem: 0070:8953, board: Unknown". Apparently the 8953 variant (the 2210) is still not ready for prime time.

With the help of the Arch Wiki mythTV walkthrough (https://wiki.archlinux.org/index.php/My … tal_signal), I was able to run a tuner scan ("scan nz-TeAroha channels.conf") successfully, and pull the data and generate a channels.conf file, so the card at least partly works. But no picture in mythTV, and nothing from mplayer ("mplayer dvb://"TV ONE") - just a black screen & no audio.

Two threads on this topic:
http://www.spinics.net/lists/linux-media/msg31442.html
http://www.pcmediacenter.com.au/forum/t … ge__st__90

Work continues....I might try the patch mentioned in the first link.

Further update: I managed to compile and install the drivers! I pulled the tarball for the AUR package "v4l-dvd-git". Ran makepkg to pull the git tree. Opened the v4l folder under sources and manually edited all references in the makefiles from "(KERNELSOURCE) "to "3.0-ARCH". I then compiled manually, disregarding the AUR script, which insists on an unmodified src. sudo make install worked!

The HVR-2210 is still not listed under the card=n options, and the firmware still loads with errors - but at least I now know how to compile the source on 3.0-ARCH.

Last edited by sultanoswing (2011-09-14 11:32:05)


Arch-lts (x86_64) w/Gnome 3.20.2
ASUS P7P55-E-Pro, Geforce GTX460, i5-750, 8GB, Samsung 830 SSD | Intel NUC 5i5RYK | ASUS ux303ua | HP Folio 13

Offline

#9 2011-09-14 11:26:05

sultanoswing
Member
Registered: 2008-07-23
Posts: 288

Re: [SOLVED] How to: Hauppauge HVR-2210 drivers/firmware on 3.0-3.6

I now have this difficult-to-get-working card going & am watching live TV in MythTV!

Basic Outline:

1. Download AUR package "v4l-dvb-git" (https://aur.archlinux.org/packages.php?ID=45680). Untar it somewhere convenient.
2. Run the PKGBUILD (makepkg) and it will pull the latest src
3. cd /src/media_build/v4l
4. Edit "Makefile" and "Makefile.sound", replacing instances of "$(KERNELRELEASE)" or "KERNELRELEASE" with "3.0-ARCH" (no quotes).
5. Browse back up to "media_build" directory and "make menuconfig" and deselect drivers you don't want. I had to deselect '"cx28835", as it caused a compile error. YMMV.
6. To get my HVR-2210 working, I also had to patch the files in the directory "/src/media_build/linux/drivers/media/video/saa7164" according to these instructions at this post: http://www.pcmediacenter.com.au/forum/t … _p__316006. Note: I had to manually patch the files as the 'patch' command errored.
7. After patching, run "make" and then "sudo make install".
8. In my case I had to add an option in /etc/modprobe.d/saa7164.conf > "option saa7164 card=10"

SUCCESS!!! smile

Last edited by sultanoswing (2011-09-14 11:27:25)


Arch-lts (x86_64) w/Gnome 3.20.2
ASUS P7P55-E-Pro, Geforce GTX460, i5-750, 8GB, Samsung 830 SSD | Intel NUC 5i5RYK | ASUS ux303ua | HP Folio 13

Offline

#10 2011-09-15 05:42:14

rsambuca
Member
From: Calgary, Canada
Registered: 2008-07-21
Posts: 143

Re: [SOLVED] How to: Hauppauge HVR-2210 drivers/firmware on 3.0-3.6

Wow, that looks like some pretty good work there.  I have just built a new rig for mythtv, and can't get the Hauppauge 2250 to work.  I'll see what I can do with your instructions here.

Offline

#11 2011-09-17 04:22:33

sultanoswing
Member
Registered: 2008-07-23
Posts: 288

Re: [SOLVED] How to: Hauppauge HVR-2210 drivers/firmware on 3.0-3.6

Yeah, it's been some effort... now to get mythtv properly configured to pull EPG data. Then, to get a nice frontend, like XBMC, working.

Ahhh - the fun & games! If I knew what I as doing, I'd submit a patch for the AUR package so it properly took care of the KERNELRELEASE problem.

[EDIT]
The above still works for the newer 3.1.0-4 kernel release. However, the latest media_build git seems to have the files already patched, which is nice. I was working with several different folders and file versions at the time though, so I could be mistaken.

The new media_build also seems to build properly without hacking the make files. I did have some trouble (could have been related to the v4l-dvb-git AUR package I also tried to upgrade with) with the modules not running.... turned out I had to remove all compressed modules e.g. "saa7164.ko.gz" from "/lib/modules/3.1.0-4-ARCH/kernel/media/video/".

Last edited by sultanoswing (2011-11-11 21:19:20)


Arch-lts (x86_64) w/Gnome 3.20.2
ASUS P7P55-E-Pro, Geforce GTX460, i5-750, 8GB, Samsung 830 SSD | Intel NUC 5i5RYK | ASUS ux303ua | HP Folio 13

Offline

#12 2012-01-28 06:37:39

sultanoswing
Member
Registered: 2008-07-23
Posts: 288

Re: [SOLVED] How to: Hauppauge HVR-2210 drivers/firmware on 3.0-3.6

Just to update this thread.

The HVR-2210 now works with the 3.2.1-1 and later kernels without needing to compile your own patched drivers. No modprobe.d options file is needed. The card is still reported as "unrecognized Hauppauge Model #89009", but works OK (although I still don't have dual tuners working - that could be my MythTV setup).

It does run into the "delayed UDEV startup" problem though, and it's due to the saa7164 module:
https://bbs.archlinux.org/viewtopic.php?id=134012

Putting 'saa7164' into the MODULES array in rc.conf doesn't solve the slow startup. What you need to do is:

1. Remove 'saa7164' from MODULES in rc.conf.
2. Add 'blacklist saa7164' in /etc/modprobe.d/modprobe.conf
3. Add '/sbin/modprobe saa7164' in /etc/rc.local

Sorted.

Last edited by sultanoswing (2012-01-29 12:35:14)


Arch-lts (x86_64) w/Gnome 3.20.2
ASUS P7P55-E-Pro, Geforce GTX460, i5-750, 8GB, Samsung 830 SSD | Intel NUC 5i5RYK | ASUS ux303ua | HP Folio 13

Offline

#13 2012-02-15 09:09:01

longstaffkj
Member
Registered: 2012-02-15
Posts: 3

Re: [SOLVED] How to: Hauppauge HVR-2210 drivers/firmware on 3.0-3.6

Thanks Sultansoswing. I am awaiting delivery of my new PC with a Hauppauge HVR2210 MCE Kit in it. It only just occurred to me that I might struggle for support in Linux for the card. Looks like you have it covered. Hopefully full support for this card will come along soon. I'm sure this information will get me going in the meentime.

Offline

#14 2012-07-15 22:22:35

sultanoswing
Member
Registered: 2008-07-23
Posts: 288

Re: [SOLVED] How to: Hauppauge HVR-2210 drivers/firmware on 3.0-3.6

An update for kernel 3.4.4-3 and the current state of affairs (as at 16 July 2012).

After the dreaded glibc update (symlink /lib/), and a subsequent screwup on my part (deleting /lib/ and having to chroot from a recovery disc) my HVR-2210 stopped working.

Error was "unable to download firmware" i.e. the firmware files were missing. Not sure if this is kernel 3.4.4-3 specific (unlikely) or just because I'd deleted a bunch of stuff (most likely).

Downloading the firmware specified in the current v4l driver tree (NXP7164-2010-03-10.1.fw - size=4019072), and placing it into /lib/firmware/ solved the problem.

So - kernel 3.4.4-3 and driver work out of the box. No need to compile anything. You might, however need to get the firmware downloaded and into the right place.

Get the firmware here:

wget http://www.steventoth.net/linux/hvr22xx/firmwares/4019072/NXP7164-2010-03-10.1.fw

In summary - it's MUCH easier these days than the process listed above. smile

Last edited by sultanoswing (2012-07-15 22:24:29)


Arch-lts (x86_64) w/Gnome 3.20.2
ASUS P7P55-E-Pro, Geforce GTX460, i5-750, 8GB, Samsung 830 SSD | Intel NUC 5i5RYK | ASUS ux303ua | HP Folio 13

Offline

#15 2012-10-18 05:21:58

armadillorillo
Member
Registered: 2012-10-18
Posts: 2

Re: [SOLVED] How to: Hauppauge HVR-2210 drivers/firmware on 3.0-3.6

sorry to bump this, but have you been able to use the analogue inputs (ie composite/component connections) on this tuner?

Offline

#16 2012-10-18 21:15:28

sultanoswing
Member
Registered: 2008-07-23
Posts: 288

Re: [SOLVED] How to: Hauppauge HVR-2210 drivers/firmware on 3.0-3.6

sorry to bump this, but have you been able to use the analogue inputs (ie composite/component connections) on this tuner?

No - but then I've never tried. And we've just had the analogue switch-off in our country, so it's digital-only, baby!

As a further update - I'd been having annoying pixellation problems every ~20-30 minutes in mythtv (both liveTV and recordings). To cut a LOOONG story short, you need to extract some additional firmware to stop this (source: http://www.linuxtv.org/wiki/index.php/H … V-HVR-2200, and thanks to J McKnight for noticing the dmesg output):

wget http://www.steventoth.net/linux/hvr22xx/22xxdrv_27086.zip
wget http://www.steventoth.net/linux/hvr22xx/HVR-12x0-14x0-17x0_1_25_25271_WHQL.zip
wget http://www.steventoth.net/linux/hvr22xx/extract.sh

sh extract.sh
cp *fw /lib/firmware
# for some linux distros, might need the following line instead of the above
cp *fw /lib/firmware/

Turned out I hadn't done this step when I reinstalled everything onto a new SSD recently smile

The additional firmware is for the RF modulator in the card - specifically, the tda10048. Without this, it SEEMS to work fine, until you get otherwise inexplicable pixellation. I hope this info saves someone else a week's work and several dollars in trialling new/different aerial connectors and attenuators!

Last edited by sultanoswing (2012-10-18 21:22:01)


Arch-lts (x86_64) w/Gnome 3.20.2
ASUS P7P55-E-Pro, Geforce GTX460, i5-750, 8GB, Samsung 830 SSD | Intel NUC 5i5RYK | ASUS ux303ua | HP Folio 13

Offline

#17 2012-10-18 21:29:47

armadillorillo
Member
Registered: 2012-10-18
Posts: 2

Re: [SOLVED] How to: Hauppauge HVR-2210 drivers/firmware on 3.0-3.6

sultanoswing wrote:

sorry to bump this, but have you been able to use the analogue inputs (ie composite/component connections) on this tuner?

No - but then I've never tried. And we've just had the analogue switch-off in our country, so it's digital-only, baby!


if you have a VCR or something like a ps1/ps2 on hand would you be able to check for me please? I found this for a reasonable price down here but the only thing holding me back is whether or not those inputs work in linux. tongue

Last edited by armadillorillo (2012-10-18 22:03:31)

Offline

#18 2012-10-19 07:19:12

sultanoswing
Member
Registered: 2008-07-23
Posts: 288

Re: [SOLVED] How to: Hauppauge HVR-2210 drivers/firmware on 3.0-3.6

armadillorillo wrote:
sultanoswing wrote:

sorry to bump this, but have you been able to use the analogue inputs (ie composite/component connections) on this tuner?

No - but then I've never tried. And we've just had the analogue switch-off in our country, so it's digital-only, baby!


if you have a VCR or something like a ps1/ps2 on hand would you be able to check for me please? I found this for a reasonable price down here but the only thing holding me back is whether or not those inputs work in linux. tongue

To be honest I've already spent enough damn time over the last couple of weeks fiddling to get rid of the pixellation problem I was having due to missing RF demodulation firmware.

The VCR is long ago packed away in the attic, and PS2 is in a different part of the house. Also, we run PAL here, and from the linuxtv HVR2200 wiki:

"Note: this method (as of 2012/03/02) will only give NTSC for analog TV, the driver does not have PAL support. You can at this point patch your code with the patch here".

If the deal is good, perhaps go for it and try yourself? At worst you'll have a well functioning digital DVB-T dual tuner card. Good luck!


Arch-lts (x86_64) w/Gnome 3.20.2
ASUS P7P55-E-Pro, Geforce GTX460, i5-750, 8GB, Samsung 830 SSD | Intel NUC 5i5RYK | ASUS ux303ua | HP Folio 13

Offline

Board footer

Powered by FluxBB