Pvr500mce:_working!


title: PVR500MCE: Working! date: 2005-05-22 10:04:05

Finally got my new PVR-500MCE working under Linux with the ivtv drivers. I'd been getting (black, fade to static, fade to black, rinse & repeat), and since a number of other people had reported the same problems I was beginning to think I'd just have to wait for the developers to catch up. But the solution turned out to be pretty simple. In the output from dmesg, I kept getting this line:

May 22 02:22:11 hunsacker ivtv: Encoder Firmware may be buggy, use version 0x02040011

What the hell, maybe the developers know what they're talking about, right? So I visited the wiki page, grabbed the revision they recommended, then ran:

ivtvfwextract.pl /path/to/firmware /tmp/encode.img /tmp/decode.img
mv /lib/modules/ivtv-fw-enc.bin /lib/modules/ivtv-fw-enc.bin-old
cp /tmp/encode.img /lib/modules
ln -s /lib/modules/encode.img  /lib/modules/ivtv-fw-enc.bin
shutdown -h now

I waited a minute to make sure the card would lose the firmware, rebooted, then ran these two bit from my Makefile:

insmod:
     sudo modprobe cx25840 debug=1 no_black_magic=1
        sudo modprobe tuner debug=1
        sudo modprobe wm8775 debug=1
        sudo modprobe tveeprom debug=1
        sudo modprobe ivtv ivtv_debug=1
        sudo modprobe tda9887 debug=1

test:
       /home/aardvark/bin/ivtv-0.3.3h/utils/ivtvctl --set-input 6 ; \
       for i in `seq 2 99` ; do \
                        ptune.pl --channel $$i --input /dev/video0 --freqtable ntsc-cable --tuner-num 0 ; \
                        cat /dev/video0 > test-channel-$${i}-$${j}-input-6-dev-0-tuner-0.mpg & \
                        sleep 5 && kill $$! ; \
        done

And sure enough, it worked! Now: on to MythTV!