<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
try a /sbin/depmod -a without the uname -r<br>
<br>
When this happens, I backout, delete the 3 files and make, make install
again.<br>
Did you compile against the right kernel source?<br>
I know there was a bug with the makefile and the uname -r in the first
line. There was a patch submitted on the ivtv mail list today, or just
put in the path to your source tree.<br>
<br>
Cheers???<br>
<br>
Dave Anderson wrote:<br>
<blockquote type="cite"
 cite="mid6.0.0.22.2.20031112173156.01ba04e0@pop.ineedasite.com">I've
been trying to follow all this, but when I try to run depmod -a `uname
-r` I get the following.
  <br>
  <br>
[root@mythtv01 utils]# depmod -a `uname -r`
  <br>
depmod: *** Unresolved symbols in
/lib/modules/2.4.20-20_29.rh9.at/kernel/drivers/media/video/ivtv-fb.o
  <br>
depmod: *** Unresolved symbols in
/lib/modules/2.4.20-20_29.rh9.at/kernel/drivers/media/video/ivtv.o
  <br>
depmod: *** Unresolved symbols in
/lib/modules/2.4.20-20_29.rh9.at/kernel/drivers/media/video/msp3400.o
  <br>
  <br>
What do I need to do about this?
  <br>
  <br>
  <br>
At 08:28 PM 11/5/2003, you wrote:
  <br>
  <blockquote type="cite">Folks,
    <br>
    <br>
It took me some time to figure out how to get PVR350 tv-out, and now
that I
    <br>
have and I'm enjoying an amazingly high-quality picture, I'd like to
share my
    <br>
findings with other people still struggling.
    <br>
    <br>
NOTE: This is geared towards NTSC users.&nbsp; Sorry, I don't know how to do
PAL,
    <br>
but I suspect the following instructions should work with some minor
tweaks.
    <br>
    <br>
First, a few preliminaries:
    <br>
I'm running MythTV 0.12
    <br>
with decoder-alpha-311003A
    <br>
on a PVR-350
    <br>
    <br>
I would suggest you set your default init level to 3 for now until you
get
    <br>
everything working.
    <br>
    <br>
Boot into runlevel 3 with:
    <br>
init 3
    <br>
    <br>
1) get and compile MythTV
    <br>
    <br>
Not discussed here, because there is perfectly good documentation on
    <br>
<a class="moz-txt-link-freetext" href="http://www.mythtv.org">http://www.mythtv.org</a>
    <br>
    <br>
2) Get the latest decoder-alpha driver from
    <br>
<a class="moz-txt-link-freetext" href="http://www.kernel.org/pub/linux/kernel/people/axboe/ivtv/">http://www.kernel.org/pub/linux/kernel/people/axboe/ivtv/</a>
    <br>
NOTE: Jens's changes seem to have been merged back into the main cvs as
of Oct
    <br>
31, 2003 so you can probably just extract the latest cvs.
    <br>
    <br>
compile the drivers in drivers/ (possibly you'll need to do from inside
    <br>
drivers/ cp ../utils/videodev2.h . ), then make install.&nbsp; Then move to
the
    <br>
utils/ directory do another make and copy the four binaries into
    <br>
/usr/local/bin (QUESTION: Do they really need to be in the PATH?)
    <br>
    <br>
3) /etc/modules.conf
    <br>
    <br>
put this block in your /etc/modules.conf
    <br>
    <br>
==== START ====
    <br>
    <br>
# This is for WinTV PVR-350 IVTV
    <br>
alias char-major-61 lirc_i2c
    <br>
alias char-major-81&nbsp;&nbsp;&nbsp;&nbsp; videodev
    <br>
alias char-major-81-0&nbsp;&nbsp; ivtv
    <br>
alias char-major-81-1&nbsp;&nbsp; bttv
    <br>
options ivtv debug=1
    <br>
options tuner type=2
    <br>
options saa7127 enable_output=1 output_select=0
    <br>
options msp3400 once=1 simple=1
    <br>
add below ivtv msp3400 saa7115 saa7127 tuner
    <br>
add above ivtv lirc_dev lirc_i2c ivtv-fb
    <br>
post-install ivtv /usr/local/bin/test_ioctl -d /dev/video0 -u 0x3000
    <br>
post-install ivtv /usr/local/bin/test_ioctl -d /dev/video16 -u 0x3000
    <br>
post-install ivtv /usr/local/bin/test_ioctl -d /dev/video32 -u 0x3000
    <br>
post-install ivtv /usr/local/bin/test_ioctl -d /dev/video224 -u 0x3000
    <br>
    <br>
==== END ====
    <br>
    <br>
Note: you probably don't need the four post-install lines if you use
MythTV,
    <br>
because MythTV should probably do that for you anyway.
    <br>
    <br>
Also, the alias char-major-81-1&nbsp;&nbsp; bttv line is not necessary unless you
have
    <br>
an old Brooktree bt8x8-based card.&nbsp; If you don't, remove the line.
    <br>
    <br>
I suggest you create a user group for people who can run MythTV.&nbsp; On my
system
    <br>
I call it video.&nbsp; I run mythbackend as root, but I have a user mythtv
that
    <br>
runs mythfrontend.&nbsp; The user mythtv is member of the video group.
    <br>
    <br>
Now that you have changed /etc/modules.conf, run depmod -a `uname -r`
    <br>
    <br>
You may need to create some device files.&nbsp; Run this command (on one
line):
    <br>
for i in 0 1 2 3 16 32 224 ;do if [ !&nbsp; -f /dev/video$i ]; then echo
"Creating
    <br>
/dev/video$i" &amp;&amp; mknod /dev/video$i c 81 $i &amp;&amp; chown
:video /dev/video$i &amp;&amp;
    <br>
chmod 660 /dev/video$i; else echo "/dev/video$i already exists";fi;done
    <br>
    <br>
Finaly create a link from /dev/video0 to /dev/video with this:
    <br>
    <br>
ln -s video0 /dev/video
    <br>
    <br>
If you get a message saying /dev/video exists, you can ignore it if
/dev/video
    <br>
points to /dev/video0.&nbsp; If it doesn't, you have to figure out what
device the
    <br>
PVR-350 input is using.&nbsp; Normally whatever driver is loaded first, it
grabs
    <br>
/dev/video0.&nbsp; So if you load bttv before ivtv, bttv will use
/dev/video0, and
    <br>
ivtv will use /dev/video1.&nbsp; If you have multiple of the same cards in
the
    <br>
system, say a few PVR-x50s, the closer the card is to the AGP slot, the
    <br>
lesser the device number it gets assigned -- the PCI slot closest to
the AGP
    <br>
will be /dev/video0, the next after that (not necessarily the one
adjacent)
    <br>
will be /dev/video1, etc.
    <br>
    <br>
So figure out what device ivtv is using if it's not /dev/video0.
    <br>
    <br>
Ok, at this point you can attempt loading the ivtv-fb driver.&nbsp; Open
another
    <br>
bash session (I do this from another computer) and do tail -f
    <br>
/var/log/messages
    <br>
Then do:
    <br>
modprobe ivtv-fb
    <br>
    <br>
In the window where you're tailing the messages, look for a line that
says
    <br>
something like this:
    <br>
    <br>
fb1: iTVC15 TV out frame buffer device
    <br>
    <br>
Mind you, it can say fb0.&nbsp; It doesn't matter.&nbsp; What matters is that
this is
    <br>
the frame buffer allocated to PVR-350.&nbsp; Remember this number! You'll
need it
    <br>
in the next section.
    <br>
    <br>
Now just a quick test.&nbsp; Hook up your TV set to the composite out rca
jack of
    <br>
your PVR-350 and do this:
    <br>
rmmod saa7127
    <br>
insmod saa7127 enable_output=1 output_select=0 test_image=1
    <br>
    <br>
Do you see the color pattern on the TV screen?&nbsp; If yes, good, if not..
hmmm,
    <br>
something went wrong.&nbsp; Don't blame MythTV, because it has nothing to do
with
    <br>
it.&nbsp; Don't blame X, because it has nothing to do with it either.&nbsp;
Possibly
    <br>
try older/newer ivtv decoder drivers.&nbsp; Read these instruction again.&nbsp;
Post to
    <br>
the list.
    <br>
    <br>
If you see the pattern in black and white, try loading saa7127 with
option
    <br>
output_select set to 1.
    <br>
    <br>
If you see the color pattern, that is a very good sign.&nbsp; Now remove the
    <br>
saa7127 module and reload it without the test_image option:
    <br>
rmmod saa7127
    <br>
insmod saa7127 enable_output=1 output_select=0
    <br>
    <br>
Before you run the next test, you need to set your input, your TV
standard,
    <br>
etc:
    <br>
    <br>
do this with:
    <br>
    <br>
/usr/local/bin/test_ioctl -u 0x3000 -p 6
    <br>
    <br>
-u 0x3000 is for NTSC
    <br>
-p 6 is for S-Video input
    <br>
-p 0 I think was for Television (the coax cable)
    <br>
    <br>
Now do this:
    <br>
    <br>
cat /dev/video &gt; test.mpg
    <br>
    <br>
(assuming /dev/video points to the ivtv device)
    <br>
    <br>
After a few seconds, pres Ctrl-C and you should end up with a mpg
file.&nbsp; Copy
    <br>
that file to a computer that can play it and verify you're capturing
fine.
    <br>
    <br>
If yes, proceed to testing tv-out.&nbsp; If not, read the instructions
again.&nbsp; Try
    <br>
a different -p argument to test_ioctl.
    <br>
    <br>
If you got a working mpg, try watching TV with:
    <br>
    <br>
dd if=/dev/video of=/dev/video16 bs=64k
    <br>
(substitute /dev/video with whatever device ivtv is using -- it should
say in
    <br>
/var/log/messages)
    <br>
    <br>
If you see picture, congrats.&nbsp; In order to hear the sound, hook up the
RCA
    <br>
audio out jack of the PVR-350 to the line-in of your sound card.&nbsp; You
should
    <br>
now be enjoying a stunningly clear picture and good sound.&nbsp; If not,
sorry,
    <br>
try again.&nbsp; Watch those /var/log/messages for hints.
    <br>
    <br>
Now that tv-out is working, log in as the user who'll be running MytTV
and
    <br>
repeat the last test to make sure you can still get picture and sound
    <br>
working.&nbsp; Then proceed to the next section -- Xfree.
    <br>
    <br>
4)&nbsp; XFree part
    <br>
    <br>
Here are the relevant sections from my /etc/X11/XF86Config-4
    <br>
    <br>
Section "ServerLayout"
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Identifier&nbsp;&nbsp;&nbsp;&nbsp; "XFree86 Configured"
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Screen&nbsp; 0 "TV Screen"
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InputDevice&nbsp;&nbsp;&nbsp; "Mouse0" "CorePointer"
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InputDevice&nbsp;&nbsp;&nbsp; "Keyboard0" "CoreKeyboard"
    <br>
EndSection
    <br>
    <br>
Section "Monitor"
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Identifier&nbsp; "NTSC Monitor"
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HorizSync&nbsp; 30-68
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VertRefresh 50-120
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Mode "720x480"
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # D: 34.563 MHz, H: 37.244 kHz, V: 73.897 Hz
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DotClock 34.564
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HTimings 720 752 840 928
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VTimings 480 484 488 504
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flags&nbsp;&nbsp;&nbsp; "-HSync" "-VSync"
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EndMode
    <br>
EndSection
    <br>
    <br>
Section "Device"
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Identifier&nbsp; "Hauppauge PVR 350 iTVC15 Framebuffer"
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Driver&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "fbdev"
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Option&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "fbdev" "/dev/fb1"
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ### change fb1 to whatever number you got in the previous
section
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BusID "0:08:0"
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ### change the busid to whatever is reported by lspci -v
    <br>
EndSection
    <br>
    <br>
Section "Screen"
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Identifier&nbsp; "TV Screen"
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Device&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Hauppauge PVR 350 iTVC15 Framebuffer"
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Monitor&nbsp;&nbsp;&nbsp;&nbsp; "NTSC Monitor"
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DefaultDepth 24
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DefaultFbbpp 32
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Subsection "Display"
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Depth 24
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FbBpp 32
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Modes "720x480"
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EndSubsection
    <br>
EndSection
    <br>
    <br>
Save you XF86Config-4
    <br>
    <br>
I am using KDE with kdm set up to login the user mythtv automatically
and
    <br>
without a password.&nbsp; In ~mythtv/.kde/Autostart I have a link to
    <br>
/usr/local/bin/mythfrontend
    <br>
    <br>
What happens when I boot (with runlevel 5 being the default)is this:
kdm logs
    <br>
mythtv in automatically and starts mythfrontend.&nbsp; Mind you, this will
fail
    <br>
unless you start mythbackend as a daemon prior to starting X.
    <br>
    <br>
You need to switch to runlevel 5 now.&nbsp; Do so by running:
    <br>
init 5
    <br>
    <br>
You should see mythfrontend load.&nbsp; Go to Settings/TV Setting/Playback
and on
    <br>
the second (I think) screen check the "Use PVR-350" thing.&nbsp; Make sure
it says
    <br>
/dev/video16 in the box.
    <br>
    <br>
That's it folks.&nbsp; That was all I needed to do to get my PVR-350 TV
out.&nbsp; Now
    <br>
it's just sweet.&nbsp; Finally I have MythTV in all its glory and what a
treat!
    <br>
    <br>
Hope this helps.&nbsp; Sorry for typos and mistakes -- they are
unintentional.
    <br>
Please correct me when you see me giving wrong instructions.
    <br>
    <br>
IvanK.
    <br>
    <br>
    <br>
_______________________________________________
    <br>
mythtv-users mailing list
    <br>
<a class="moz-txt-link-abbreviated" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
    <br>
<a class="moz-txt-link-freetext" href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a>
    <br>
  </blockquote>
  <br>
  <pre wrap="">
<hr width="90%" size="4">
_______________________________________________
mythtv-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<a class="moz-txt-link-freetext" href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a>
  </pre>
</blockquote>
</body>
</html>