User:Ggeller

From MythTV Book

Jump to: navigation, search

The (physical book) "Practical MythTV" was available at the local library -- that's how I got started with this. I also heard a talk by Cecil H. Watson, the KnoppMyth project leader, at SCALE a couple of years ago.

Contents

My Setup

Hardware

Antec Aria Case
Intel Desktop Board D865GVHZ
Pentium IV 2.4 GHz
1G RAM
200G IDE Hard Disk
DVD R/W

Hauppauge WinTV-HVR 1600

Card purchased from newegg.com 11/20/2009
WinTV-HVR-1600
ATSC/QAM
NTSC/FM
74541 LF
2909 MAC 000DFE608466

Software

I started out by installing Linuxmint 7. The I added some software with:

apt-get update
apt-get install emacs update-manager-core

I installed the mythtv packages using the synaptic package manager, see User:ggeller/packages

Testing

Following along with Verifying_Your_HardwareBeta, the interesting parts of dmesg are:

where the remote control is detected:

[    9.082620] lirc_dev: IR Remote Control driver registered, major 61 
[    9.086424] 
[    9.086428] lirc_mceusb2: Philips eHome USB IR Transceiver and Microsoft MCE 2005 Remote Control driver for LIRC $Revision: 1.44 $
[    9.086432] lirc_mceusb2: Daniel Melander <lirc@rajidae.se>, Martin Blatter <martin_a_blatter@yahoo.com>

and where the capture care is detected:

[    9.791133] Linux video capture interface: v2.00
[    9.886825] cx18:  Start initialization, version 1.0.1
[    9.887027] cx18-0: Initializing card #0
[    9.887032] cx18-0: Autodetected Hauppauge card
[    9.898025] cx18 0000:01:01.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
[    9.898039] cx18-0: Unreasonably low latency timer, setting to 64 (was 32)
[    9.901963] cx18-0: cx23418 revision 01010000 (B)
[   10.007985] ppdev: user-space parallel port driver
[   10.058148] Intel ICH 0000:00:1f.5: PCI INT B -> GSI 17 (level, low) -> IRQ 17
[   10.058236] Intel ICH 0000:00:1f.5: setting latency timer to 64
[   10.159479] tveeprom 0-0050: Hauppauge model 74541, rev C6B6, serial# 6325350
[   10.159485] tveeprom 0-0050: MAC address is 00-0D-FE-60-84-66
[   10.159488] tveeprom 0-0050: tuner model is Philips FM1236 MK5 (idx 116, type 43)
[   10.159492] tveeprom 0-0050: TV standards NTSC(M) (eeprom 0x08)
[   10.159495] tveeprom 0-0050: audio processor is CX23418 (idx 38)
[   10.159498] tveeprom 0-0050: decoder processor is CX23418 (idx 31)
[   10.159500] tveeprom 0-0050: has radio
[   10.159503] cx18-0: Autodetected Hauppauge HVR-1600
[   10.159506] cx18-0: VBI is not yet supported
[   10.171589] psmouse serio1: ID: 10 00 64<6>tuner 1-0043: chip found @ 0x86 (cx18 i2c driver #0-1)
[   10.338904] tda9887 1-0043: creating new instance
[   10.338909] tda9887 1-0043: tda988[5/6/7] found
[   10.340328] tuner 1-0061: chip found @ 0xc2 (cx18 i2c driver #0-1)
[   10.340396] cs5345 0-004c: chip found @ 0x98 (cx18 i2c driver #0-0)
[   10.354642] tuner-simple 1-0061: creating new instance
[   10.354648] tuner-simple 1-0061: type set to 43 (Philips NTSC MK3 (FM1236MK3 or FM1236/F))
[   10.356929] cx18-0: Disabled encoder IDX device
[   10.357084] cx18-0: Registered device video0 for encoder MPEG (2 MB)
[   10.357089] DVB: registering new adapter (cx18)
[   10.380439] intel8x0_measure_ac97_clock: measured 54515 usecs
[   10.380444] intel8x0: clocking to 48000
[   10.446472] MXL5005S: Attached at address 0x63
[   10.446479] DVB: registering adapter 0 frontend 0 (Samsung S5H1409 QAM/8VSB Frontend)...
[   10.446680] cx18-0: DVB Frontend registered
[   10.446751] cx18-0: Registered device video32 for encoder YUV (2 MB)
[   10.446815] cx18-0: Registered device video24 for encoder PCM audio (1 MB)
[   10.446915] cx18-0: Registered device radio0 for encoder radio
[   10.446919] cx18-0: Initialized card #0: Hauppauge HVR-1600
[   10.446975] cx18:  End initialization

Then I'm sort of stuck. Verifying_Your_HardwareBeta talks about IVTV.

Does IVTV work? Should it work?

http://ivtvdriver.org/index.php/Supported_hardware says:

Hauppauge WinTV HVR1500/1600 (CX23418 based) (there is a beta cx23418 driver here) is known not to work

But http://ivtvdriver.org/index.php?title=Supported_hardware&action=history shows that the last revision to the page was make on 22:49, 12 August 2008

So maybe it will work?

$ sudo modprobe ivtv

doesn't generate any error message on the console, but

$ dmesg | grep ivtv
[   15.450454] ivtv:  Start initialization, version 1.4.0
[   15.450518] ivtv:  End initialization

So it didn't work.

Head off to http://ivtvdriver.org/index.php/Cx18 and get the source for the beta driver from http://linuxtv.org/hg/v4l-dvb/archive/tip.tar.bz2

building the driver module thingie:

ggeller@mckinley ~/Desktop $ uname -r
2.6.28-11-generic
ggeller@mckinley ~/Desktop $ sudo apt-get install gcc linux-source-2.6.28 linux-headers-2.6.28-11
...
ggeller@mckinley ~/Desktop $ sudo -i
mckinley ~ # cd /usr/src/
mckinley src # tar xvf linux-source-2.6.28.tar.bz2
mckinley src # ln -s linux-source-2.6.28 linux
mckinley src # ln -s /usr/src/linux /lib/modules/2.6.28-11-generic/build

We are building a module to be into the current kernel. I edited /usr/src/linux/Makefile so that it looks like this:

VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 28
EXTRAVERSION = -11-generic
NAME = Erotic Pickled Herring

Deal with the configuration file:

mckinley src # cp /boot/config-2.6.28-11-generic /usr/src/linux/.config
mckinley src # cd /usr/src/linux
mckinley src # make oldconfig
...
mckinley linux # make prepare0
...
mckinley linux # make scripts
... (I got a few warnings. I think we can safely ignore them.)

Build the kernel module (not as root)

ggeller@mckinley ~ $ cd /home/ggeller/Desktop/ivtvdriver.org/
ggeller@mckinley ~/Desktop/ivtvdriver.org $ 
ggeller@mckinley ~/Desktop/ivtvdriver.org $ tar xjf tip.tar.bz2 
ggeller@mckinley ~/Desktop/ivtvdriver.org $ cd v4l-dvb-9d4c603b28c9/
ggeller@mckinley ~/Desktop/ivtvdriver.org/v4l-dvb-9d4c603b28c9 $ make
... (It takes a a 15 minutes or so to build the module)

Hmm... I don't see how to apply the instructions from Verifying_Your_HardwareBeta. Maybe I need to just skip ahead to the backend setup or something.

following the instructions from http://www.mythtv.org/wiki/Hauppauge_HVR-1600

wget http://dl.ivtvdriver.org/ivtv/firmware/cx18-firmware.tar.gz worked

v4l-cx23418-apu.fw v4l-cx23418-dig.fw v4l-cx23418-cpu.fw match the ones already in /lib/firmware

see also

George hosts a wiki dedicated to keeping computers running at wsms.wikiplanet.com

http://www.mythtv.org/wiki/Hauppauge_HVR-1600 has more specifics about the 1600.

Personal tools