View previous topic :: View next topic |
Author |
Message |
smith84594 n00b
Joined: 06 Mar 2004 Posts: 72
|
Posted: Sat Mar 06, 2004 6:02 pm Post subject: kernel2.6.3 PVR-250 Howto |
|
|
After several hours of beating myself over the head, I finally was able to get my video0 up and running and here's how I did it.
I'm pretty new to gentoo, so please let me know if I'm doing anything unnecessary:
Install kernel-2.6.3 source (emerge gentoo-dev-sources):
Code: |
emerge gentoo-dev-sources
|
Then I applied a patch which fixes some of the tuner.o problems:
Code: |
cd /usr/src/linux
wget http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/old/patch-2.6.3-bk3.gz
zcat patch-2.6.3-bk3.gz | patch -p0 -E
|
Then I enabled these few kernel options:
Code: |
Navigate through and enable these:
Device Drivers -> Character Devices -> Linux Infrared Controller -> I2C Driver (M)
Device Drivers -> I2C -> I2C support (Y)
Device Drivers -> I2C -> I2C device interface (Y)
Device Drivers -> I2C -> I2C Algorithms -> I@C bit-banging interfaces (Y)
Device Drivers -> Multimedia Devices -> Video For Linux (Y)
Device Drivers -> Multimedia Devices -> Video For Linux (Y)
Device Drivers -> Multimedia Devices -> Video For Linux -> BT848 Video For Linux (M)
Device Drivers -> Graphics Support -> Support for Frame Buffer Devices (Y)
Device Drivers -> Graphics Support ->Console Display Driver Support -> Framebuffer Console support (Y)
|
*If you don't want to use a remote, you can skip the Linux Infrared Module
I don't know if there are any more kernel requirements, but that seemed to be enough for me.
Then install the kernel, and boot into it.
Code: |
make bzimage
make modules
make modules_install
cp arch/i386/boot/bzImage /boot/kernel-2.6.3
cp System.map /boot/System.map-2.6.3
cp .config /boot/config-2.6.3
|
*This assumes that you have grub configured to look for kernel-2.6.3 - may vary depending on your box
Next, download the latest ivtv drivers from ivtv.sourceforge.net, unpacked it, and changed directories:
Code: |
wget http://unc.dl.sourceforge.net/sourceforge/ivtv/ivtv-0.1.9.tar.gz
tar -xvzf ivtv-0.1.9.tar.gz
cd ivtv
|
then download the latest ivtv drivers patch and applied it - otherwise, they don't compile:
Code: |
wget https://www.lison.com/ivtv.patches/ivtv-0.1.9-2.6-3-20040206.diff
patch -p1 -i ivtv-0.1.9-2.6-3-20040206.diff
|
Then I compiled and installed the drivers:
Code: |
cd driver
make && make install
|
*I got a bunch of warning messages, but seems to work fine for me
Then I downloaded the pvr-250 firmware and compiled the utils:
Code: |
cd ../utils
wget http://hauppauge.lightpath.net/software/pvr250/pvr250_17_21288.exe
./ivtvfwextract.pl pvr250_17_21288.exe
make && make install
|
I made a file called "ivtv" in /etc/modules.d" and included the following lines:
Code: |
alias char-major-81 videodev
alias char-major-81-0 ivtv
alias char-major-61 lirc_i2c
options tuner type=2
options msp3400 once=1 simple=1
add below ivtv msp3400 saa7115 tuner
add above ivtv lirc_dev lirc_i2c
|
*A lot of guides have the "options ivtv debug=0" in their module configuration - My computer had problems when I tried this option, so I nixed it.
Finally, I edited my /etc/modules.autoload.d/kernel-2.6 file to include:
Rebooted, and now when I do cat /dev/video0, I get a bunch of stuff (which is a good thing). I found that in previous experiences, I had not applied the patch-2.6.3-bk3, so it gave me an input/output error.
I'll post some more stuff after I get lirc / myth working, but in the meantime, I hope this helps some of you get your boxes up and running.
-K
P.S. If you have an nvidia card, make sure you emerge nvidia-kernel after each kernel compile, otherwise, you'll get some error messages on startup and X won't work. |
|
Back to top |
|
|
misto n00b
Joined: 28 Feb 2004 Posts: 32
|
Posted: Mon Mar 15, 2004 7:27 pm Post subject: |
|
|
Hi! Thank you for your instructions, very helpful
When I try to do this: "zcat patch-2.6.3-bk3.gz | patch -p0 -E " I get the following output:
Quote: |
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nru a/Documentation/Changes b/Documentation/Changes
|--- a/Documentation/Changes Fri Feb 6 16:24:19 2004
|+++ b/Documentation/Changes Wed Feb 18 19:42:35 2004
--------------------------
|
Could anybody help me with this? Maybe it's something trivial, but I'm new to the whole Linux thing ,-)
Thanks
misto |
|
Back to top |
|
|
smith84594 n00b
Joined: 06 Mar 2004 Posts: 72
|
Posted: Mon Mar 15, 2004 8:50 pm Post subject: |
|
|
Sorry bout that, I think it might be the wrong patchlevel.
Try using "-p1" instead of "-p0".
If not, try some other numbers - the worst it can do as far as I know is to give you the same error message you have been receiving.
In case you're wondering what the -p# does, it strips away one level of the patch path.
i.e.
If I made a patch to patch stuff in the directory /boot/foo/foo2
a -p1 would make the patch apply to the directory foo/foo2
a -p2 would make the patch apply to the directory foo2
etc. etc.
Anyway, my motherboard bios just went kaput on me so I have no way of verifying this. If anybody else has had any success with this method, verification would be helpful
P.S. I don't have time to post it right now, but I will be elaborating on this guide later to include mythtv instructions and whatnot - I can verify that I had mythtv up and running before my motherboard crapped out. Damn you abit! |
|
Back to top |
|
|
quadt n00b
Joined: 13 Mar 2004 Posts: 14
|
Posted: Tue Mar 16, 2004 12:55 pm Post subject: Kernel 2.6.4 |
|
|
Any one know how the kernel 2.6.4 is going to work?
Have kernel 2.6.4 the patch-2.6.3-bk3.gz built in?
Or do i have to patch kernel 2.6.4 also? |
|
Back to top |
|
|
smith84594 n00b
Joined: 06 Mar 2004 Posts: 72
|
Posted: Tue Mar 16, 2004 8:34 pm Post subject: Re: Kernel 2.6.4 |
|
|
quadt wrote: | Any one know how the kernel 2.6.4 is going to work?
Have kernel 2.6.4 the patch-2.6.3-bk3.gz built in?
Or do i have to patch kernel 2.6.4 also? |
Since the is from the kernel.org website, I would expect that fix to be included in the 2.6.4 release. Once 2.6.4 becomes stable and my htpc gets a new mobo, I'll try it out and see if that needs to be done anymore. |
|
Back to top |
|
|
misto n00b
Joined: 28 Feb 2004 Posts: 32
|
Posted: Wed Mar 17, 2004 10:16 pm Post subject: |
|
|
Hmm.. it still doesn't work. When I try to cat /dev/video0, I always get an /dev/video0: Input/output error. Any ideas how to fix it? And yes, I've applied the patch-2.6.3-bk3 patch
Thanks!
misto |
|
Back to top |
|
|
evilnathan n00b
Joined: 17 Mar 2004 Posts: 5 Location: Kitchener, ON, CAN
|
Posted: Wed Mar 17, 2004 11:03 pm Post subject: |
|
|
Quote: | Hmm.. it still doesn't work. When I try to cat /dev/video0, I always get an /dev/video0: Input/output error. Any ideas how to fix it? And yes, I've applied the patch-2.6.3-bk3 patch |
I'm running 2.6.2 w/ivtv 0.19 and lirc, and every time I've gotten that error I've run test_ioctl -u 0x3000 to set the capture to NTSC. (of course, I guess if you're running PAL, that doesn't really help things at all does it?
That's *ABOUT* the only time I've ever run into that error message when cat'ing /dev/video0 |
|
Back to top |
|
|
misto n00b
Joined: 28 Feb 2004 Posts: 32
|
Posted: Thu Mar 18, 2004 8:26 pm Post subject: |
|
|
I've tried it with "./test_ioctl -u 0xff" but I still have the same error. Does anybody know other methods to find the problem? Can I run some tests or something?
Thanks! |
|
Back to top |
|
|
cca93014 Tux's lil' helper
Joined: 31 Jul 2002 Posts: 77 Location: London, UK
|
Posted: Tue Mar 23, 2004 7:27 am Post subject: |
|
|
Would there be any reason as to why I cant see the following in my kernel configuration:
Device Drivers -> Character Devices -> Linux Infrared Controller
??? |
|
Back to top |
|
|
Zippy n00b
Joined: 28 Jul 2002 Posts: 38
|
Posted: Tue Mar 23, 2004 1:48 pm Post subject: |
|
|
You need to patch your kernel source.....
Go here for a good guide (its posted on these forums)
http://wopr.yi.org/mythtv.html
It says youll need the patch from http://bytesex.org/patches/
to match your kernel type.
I havent finished following the guide yet, but Ill let you know how I get on
Zippy
(hey im three days older than you! Lol!) |
|
Back to top |
|
|
Zippy n00b
Joined: 28 Jul 2002 Posts: 38
|
Posted: Wed Mar 31, 2004 1:43 pm Post subject: |
|
|
Using the guide mentioned above (and bit from afew others, I ve managed to get everything working fine, except for the sound on my PVR 250. I know its something silly and obvious thats wrong. I always get the complex stuff right and the simple stuff wrong! lol!
Zippy
|
|
Back to top |
|
|
|