View previous topic :: View next topic |
Author |
Message |
drunkentiger n00b
Joined: 23 Mar 2004 Posts: 14
|
Posted: Tue Mar 23, 2004 12:49 am Post subject: MythTV Setup Guide/HOWTO |
|
|
Hi all-
I've drafted a setup guide to MythTV specifically tailored for Gentoo users. I thought it might help some people here, so here's my first post.
Major Updates:
May 27, 2004: Added 0.15 upgrade procedure.
April 27, 2004: Added MythWeb section.
Thanks.
Last edited by drunkentiger on Thu May 27, 2004 9:34 pm; edited 2 times in total |
|
Back to top |
|
|
ShockValue Tux's lil' helper
Joined: 26 Mar 2003 Posts: 137
|
Posted: Tue Mar 23, 2004 1:07 am Post subject: |
|
|
Wish I woulda had this post BEFOre the 2 weeks I just spent fighting to get Myth up and running
Are you saying it is possible to get 720x480 out of a nvidia card if you use the ivtv drivers, or are you talking for a PVR350 only? |
|
Back to top |
|
|
drunkentiger n00b
Joined: 23 Mar 2004 Posts: 14
|
Posted: Tue Mar 23, 2004 1:13 am Post subject: |
|
|
Quote: | Are you saying it is possible to get 720x480 out of a nvidia card if you use the ivtv drivers, or are you talking for a PVR350 only? |
I tried to, but I couldn't get the nvidia card to do 720x480. The log file for X kept saying that it was an invalid mode although the PVR-350 can do that resolution w/o problems. A little nervous to force settings with the nvidia card...
Btw, if anyone sees errors/omissions, etc. let me know. Thanks. |
|
Back to top |
|
|
50cc n00b
Joined: 19 Feb 2004 Posts: 49 Location: The Netherlands
|
Posted: Tue Mar 23, 2004 10:49 am Post subject: |
|
|
I'll try some stuff from you guide later, i hope it helps. I'm starting to go crazy.
I did notice something that i'm not very sure about. I read in some online information (no idea where i've read half of the internet trying to got mythtv to work) that you should do
Then look at /var/log/messages and look for a line with 'tuner' and 'type' in it. You should then use the 'type' that's in that line.
Code: |
Mar 23 11:41:10 mythtv tveeprom.c: starting probe for adapter ivtv i2c driver #0 (0x10005)
Mar 23 11:41:10 mythtv tveeprom.c: detecting tveeprom client on address 0xa0
Mar 23 11:41:10 mythtv 9 [04] 20 77 00 40 de 15 68 00
Mar 23 11:41:10 mythtv 3 [05] 99 00
Mar 23 11:41:10 mythtv 8 [06] 06 bc 00 00 17 35 a9
Mar 23 11:41:10 mythtv 2 [07] 70
Mar 23 11:41:10 mythtv Not sure what to do with tag [07]
Mar 23 11:41:10 mythtv 3 [09] 13 5f
Mar 23 11:41:10 mythtv Not sure what to do with tag [09]
Mar 23 11:41:10 mythtv 3 [0a] 04 2f
Mar 23 11:41:10 mythtv 3 [0b] 59 8c
Mar 23 11:41:10 mythtv Not sure what to do with tag [0b]
Mar 23 11:41:10 mythtv 2 [0e] 01
Mar 23 11:41:10 mythtv 2 [0f] 01
Mar 23 11:41:10 mythtv Not sure what to do with tag [0f]
Mar 23 11:41:10 mythtv 2 [10] 01
Mar 23 11:41:10 mythtv Not sure what to do with tag [10]
Mar 23 11:41:10 mythtv 2 [11] 00
Mar 23 11:41:10 mythtv Not sure what to do with tag [11]
Mar 23 11:41:10 mythtv tvee: Hauppauge: model=48134, rev=J347, serial#=6821342
Mar 23 11:41:10 mythtv tvee: tuner=LG TP18PSB01D (idx=47, type=28)
Mar 23 11:41:10 mythtv tvee: tuner fmt=PAL(B/G) (eeprom=0x04, v4l2=0x00000007)
Mar 23 11:41:10 mythtv tvee: audio_processor=CS5331 (type=9)
|
The 'don't know that to do' stuff is new, don't know what that is?
So:
Code: |
alias char-major-81 videodev
alias char-major-81-0 ivtv
alias char-major-61 lirc_i2c
options ivtv ivtv-debug=0 mpg_buffers=90
options tuner type=2
options msp3400 once=1 simple=1 debug=0
add below ivtv msp3400 saa7115 tuner
add above ivtv lirc_dev lirc_i2c
|
Would in my case be
Code: |
alias char-major-81 videodev
alias char-major-81-0 ivtv
alias char-major-61 lirc_i2c
options ivtv ivtv-debug=0 mpg_buffers=90
options tuner type=28
options msp3400 once=1 simple=1 debug=0
add below ivtv msp3400 saa7115 tuner
add above ivtv lirc_dev lirc_i2c
|
I changed 'options tuner type=28'.
Is what i am doing correct or not?? No idea really. |
|
Back to top |
|
|
50cc n00b
Joined: 19 Feb 2004 Posts: 49 Location: The Netherlands
|
Posted: Tue Mar 23, 2004 2:09 pm Post subject: |
|
|
Can't get the patch for 2.6.4-r1 working. I did
'emerge gentoo-dev-sources'
and got
/usr/src/linux-2.4.6-gentoo-r1
i did
'wget http://bytesex.org/patches/2.6.4-1/patch-2.6.4-kraxel.gz'
gunzip patch-2.6.4-kraxel.gz
and then
ln -s /usr/src/linux-2.4.6.-gentoo-r1 /usr/src/linux
cd /usr/src/linux
patch -p1 /tmp/patch-2.6.4-kraxel
after doing patch nothing happened, i had to press ctrl-c to stop it.
What am i doing wrong? |
|
Back to top |
|
|
drunkentiger n00b
Joined: 23 Mar 2004 Posts: 14
|
Posted: Wed Mar 24, 2004 1:17 am Post subject: |
|
|
Quote: | after doing patch nothing happened |
Make sure you are using the right patch level. If you're sure that's right, try cat piped to patch. Personally I like to do the gunzip and patch in a single command like so: Code: | gunzip -c patch-2.6.4-kraxel.gz | patch -p1 |
|
|
Back to top |
|
|
dwilson Tux's lil' helper
Joined: 10 Feb 2003 Posts: 115
|
Posted: Wed Mar 24, 2004 8:04 am Post subject: this is bad |
|
|
Well, I've been trying for awhile to get ivtv working with linux-2.6.4-ck1 sources. I haven't been able to really accomplish anything, but your guide seemed interesting, so I tried it.
Main problem is that I don't get all of the kernel options in the guide using the gentoo-dev-sources with the appropriate patch. In fact, I get more of the reccomended settings available off of an unpatched ck-sources. I don't think I had anything different that would effect ivtv except, but I am recompiling anyways with my settings as close the guide as I am getting them. I will post the results when they occur. |
|
Back to top |
|
|
50cc n00b
Joined: 19 Feb 2004 Posts: 49 Location: The Netherlands
|
Posted: Wed Mar 24, 2004 12:02 pm Post subject: |
|
|
I got the patch working, instead of
Code: |
patch -p1 /tmp/ivtv.h.0.1.9-ng-ck19-2.6.4.diff
|
I did:
Code: |
patch -p1 -i /tmp/ivtv.h.0.1.9-ng-ck19-2.6.4.diff
|
But after that i ran into a new problem (starting to really go insane now).The patch for the 2.6.4 kernel doesn't make sense. It want's to remove stuff from ivtv.h which issen't there in the first place.
Also if you look here (https://www.lison.com/ivtv.patches/) you can see that the patches for 2.6.1 to 2.6.3 are way bigger than the patch for 2.6.4
My guess is that the real patch for 2.6.4 isn't ready yet.
I've now got a working 2.6.4 gentoo kernel, but no ivtv drivers for it.
Does anyone know howto emerge an older gentoo-dev-kernel?? |
|
Back to top |
|
|
haven Tux's lil' helper
Joined: 19 Nov 2003 Posts: 141 Location: Belfast, Uk
|
Posted: Wed Mar 24, 2004 4:12 pm Post subject: |
|
|
It looks like a nice guide, well done
I just wish somone would write a how-to for the UK as I've virutally given up trying to get my tuner to work with UK channels. If anyone knows of any UK based PVR-350 guides then I'd be an incredibly happy man.
Thanks |
|
Back to top |
|
|
drunkentiger n00b
Joined: 23 Mar 2004 Posts: 14
|
Posted: Wed Mar 24, 2004 11:31 pm Post subject: |
|
|
Quote: | Also if you look here (https://www.lison.com/ivtv.patches/) you can see that the patches for 2.6.1 to 2.6.3 are way bigger than the patch for 2.6.4
My guess is that the real patch for 2.6.4 isn't ready yet. |
I took a look at the directory and it seems the 2.6.4 patch is incomplete as you suggested (seems like just ivtv.h?) against CK sources, so it probably won't patch correctly against the dev-sources kernel.
Quote: | Does anyone know howto emerge an older gentoo-dev-kernel?? |
Try:
Code: | emerge =gentoo-dev-sources-2.6.3-r1 |
Last edited by drunkentiger on Wed Mar 24, 2004 11:35 pm; edited 1 time in total |
|
Back to top |
|
|
drunkentiger n00b
Joined: 23 Mar 2004 Posts: 14
|
Posted: Wed Mar 24, 2004 11:34 pm Post subject: |
|
|
Quote: | I get more of the reccomended settings available off of an unpatched ck-sources |
Can't say about the 2.6.4-ck1 sources, but the 2.6.3-r1 gentoo-dev-sources kernel (plus kraxel patch) works and gives all of the options I listed since that is the one I used. |
|
Back to top |
|
|
drunkentiger n00b
Joined: 23 Mar 2004 Posts: 14
|
Posted: Wed Mar 24, 2004 11:46 pm Post subject: |
|
|
Quote: | I just wish somone would write a how-to for the UK as I've virutally given up trying to get my tuner to work with UK channels. If anyone knows of any UK based PVR-350 guides then I'd be an incredibly happy man. |
Have you tried loading the tveeprom module and seeing what tuner you have (it should tell you in the text dump)? If not, try tuner types between 20 to 28 for PAL. Then, you need to do the test_ioctl junk, namely:
Code: | test_ioctl -u 0xff
test_ioctl -p 4
test_ioctl -f width=720,height=576
test_ioctl -v input=3,output=1 |
Now try to dump your tuner stream:
Code: | cat /dev/video0 > test.mpg |
Let me know if that helps... |
|
Back to top |
|
|
Snoozer n00b
Joined: 10 Feb 2004 Posts: 15
|
Posted: Thu Mar 25, 2004 5:58 am Post subject: |
|
|
Would any of you MythTv gurus happen to know how to put MythTv in 'native ALSA' mode? I've seen this mentioned in a few forums but none of them explain exactly how to do it. A file called 'settings.pro' has been mentioned but I can't seem to find it on my system.. |
|
Back to top |
|
|
50cc n00b
Joined: 19 Feb 2004 Posts: 49 Location: The Netherlands
|
Posted: Thu Mar 25, 2004 11:14 am Post subject: |
|
|
Instead of going back to 2.6.3 i used a modified ivtv package from this site:
http://kmos.org/~ckennedy/ivtv/
And now finally after weeks i got a moving pretty good quality picture! And i could even change the channel!!
But now i still can't get mythtv working, keeps complaining about directfb stuff and that it can't find sound stuff. |
|
Back to top |
|
|
blue.sca l33t
Joined: 28 Aug 2003 Posts: 680 Location: Mainz, Germany
|
Posted: Thu Mar 25, 2004 12:00 pm Post subject: |
|
|
thanx for the how-to, just bookmarking this for further investigation _________________ geek by nature, linux by choice
i want my avatar back... thank you
:wq |
|
Back to top |
|
|
50cc n00b
Joined: 19 Feb 2004 Posts: 49 Location: The Netherlands
|
Posted: Thu Mar 25, 2004 6:03 pm Post subject: |
|
|
Using the ivtv drivers from the link below i get a jumpy picture.
http://kmos.org/~ckennedy/ivtv/
The entire tv screen jumps up and down, not extreme, but enough to be very annoying. Also the image isn't very sharp.
Anyone any hints? |
|
Back to top |
|
|
drunkentiger n00b
Joined: 23 Mar 2004 Posts: 14
|
Posted: Thu Mar 25, 2004 10:21 pm Post subject: |
|
|
50cc wrote: | Using the ivtv drivers from the link below i get a jumpy picture.
http://kmos.org/~ckennedy/ivtv/
The entire tv screen jumps up and down, not extreme, but enough to be very annoying. Also the image isn't very sharp.
Anyone any hints? |
Any reason you don't want to go with the 2.6.3-r1 kernel? Seems like you're expending a lot of (unnecessary) effort on getting a 2.6.4 kernel to work with ivtv... |
|
Back to top |
|
|
50cc n00b
Joined: 19 Feb 2004 Posts: 49 Location: The Netherlands
|
Posted: Thu Mar 25, 2004 10:47 pm Post subject: |
|
|
Well apparently this guy (http://kmos.org/~ckennedy/ivtv/) hase a new update every 5 seconds. I tried has latest and that worked a little better. There was no more jumping, but after a while mplayer exitst with errors.
I guess i will try the 2.6.3 kernel with the patches in the howto above. |
|
Back to top |
|
|
blanny n00b
Joined: 04 Apr 2004 Posts: 3
|
Posted: Sun Apr 04, 2004 4:30 am Post subject: |
|
|
anyone have a working link for the kraxel patch? |
|
Back to top |
|
|
sklettke Guru
Joined: 05 Nov 2002 Posts: 352 Location: Madison, WI
|
Posted: Mon Apr 05, 2004 1:25 am Post subject: Re: MythTV Setup Guide/HOWTO |
|
|
drunkentiger wrote: | Hi all-
I've drafted a setup guide to MythTV specifically tailored for Gentoo users. I thought it might help some people here, so here's my first post.
Thanks. |
Thanks for the guide. It will be very useful this summer when I am building my own HTPC. If you have the figure on hand, how much did this setup cost you? I'm hoping to build one for under $450 using the Epia M-10000 cpu and a cube case http://www.mini-itx.com/store/default.asp?c=3#venus
Thanks,
Scott _________________ Jab.ID: scottk@jabber.org
Kernel: 2.6.11-rc3-nitro0
KDE 3.3.2 with Xorg
MythBox: 2.6.5-gentoo-dev-r2 (LVMed 360GB in XFS; Athlon 2500+) |
|
Back to top |
|
|
ashtong n00b
Joined: 23 Jan 2003 Posts: 44
|
Posted: Wed Apr 07, 2004 7:40 pm Post subject: |
|
|
It's an excellent document; thanks very much for going to the trouble of writing it all down.
I've no doubt you've saved me hours (my hardware is very similar to yours).
--
Graham |
|
Back to top |
|
|
ajole n00b
Joined: 19 Aug 2003 Posts: 5
|
Posted: Thu Apr 08, 2004 8:11 am Post subject: |
|
|
50cc wrote: | Can't get the patch for 2.6.4-r1 working. I did
'emerge gentoo-dev-sources'
and got
/usr/src/linux-2.4.6-gentoo-r1
i did
'wget http://bytesex.org/patches/2.6.4-1/patch-2.6.4-kraxel.gz'
gunzip patch-2.6.4-kraxel.gz
and then
ln -s /usr/src/linux-2.4.6.-gentoo-r1 /usr/src/linux
cd /usr/src/linux
patch -p1 /tmp/patch-2.6.4-kraxel
after doing patch nothing happened, i had to press ctrl-c to stop it.
What am i doing wrong? |
You've switched the 2.4.6 with 2.6.4 |
|
Back to top |
|
|
ashtong n00b
Joined: 23 Jan 2003 Posts: 44
|
Posted: Thu Apr 08, 2004 11:55 am Post subject: |
|
|
ajole wrote: | 50cc wrote: | Can't get the patch for 2.6.4-r1 working.
patch -p1 /tmp/patch-2.6.4-kraxel
after doing patch nothing happened, i had to press ctrl-c to stop it.
What am i doing wrong? |
You've switched the 2.4.6 with 2.6.4 |
Not only that, you missed out the '<' from the patch command. You'll definitely need to change that.
I recommend you go with the 2.6.3 kernel that is mentioned in the guide; getting the correct kernel parameters available is a right pain otherwise. There is also the issue of the ivtv patch for 2.6.4; it's much smaller than the ones for 2.6.3 as has been noted by others. I've not got that far yet myself, but that was enough for me to decide to stick with 2.6.3 for now.
Also note that the kernel option for the I2C driver (inside section "Linux InfraRed Controller") doesn't become available until you've enabled other stuff later in the menuconfig configuration. |
|
Back to top |
|
|
50cc n00b
Joined: 19 Feb 2004 Posts: 49 Location: The Netherlands
|
Posted: Thu Apr 08, 2004 12:20 pm Post subject: |
|
|
I went back to the 2.6.3 kernel, and did get 'mplayer /dev/video0' working. Using ptune.pl i could also change channels. I did not test any sound stuff. But using 2.6.3 i still got a black screen in mythtv when starting Live TV.
I am now using 2.4.23 without any kernel pathches, i coppied the videolinux.h from the ivtv/util dir to the ivtv/drivers dir. But the end result is the same as with 2.6.3, i can watch tv in mplayer. But not in mythtv.
When i start livetv in mythtv i get a black screen, and i have to restart mythfrontend.But i did notice that during the black screen there is a lot of harddisk activity.
My setup:
Asus Pundit, PVR350 and a PAL signal.
Any tips? |
|
Back to top |
|
|
ColeSlaw Apprentice
Joined: 19 Sep 2003 Posts: 176 Location: Kearney, NE USA
|
Posted: Thu Apr 08, 2004 5:51 pm Post subject: |
|
|
Has anybody tried using ivtv from portage? What kind of results have you gotten? If I don't hear anything negative soon, I think I will try it myself... _________________ My Folding@home Stats!
Join the GLUE folding Team! |
|
Back to top |
|
|
|