Author |
Message |
rkremser
|
Posted: Sun Feb 20, 2005 5:10 pm |
|
Joined: Wed Sep 08, 2004 10:15 pm
Posts: 82
|
modprobe ivtv -fb error durring pvr 350 tv out r5 10a instal
Hello, trying to get pvr 350 tv out working. I have had it working before updating using r5 a10 but now after installing it i can't get it up again. I have updated my ivtv file as well as my XF86Config-4 file (below) and upon reboot i get a message stating that x could not start. The error that it is showing is that /dev/fb0 can not be found which the pvr's frame buffer was the first time i ran modprobe to get the tuner card reconized. (after that first time it would not run again)
Ivtv
alias char-major-61 lirc_i2c
alias char-major-81 videodev
alias char-major-81-0 ivtv
alias char-major-81-1 bttv
options ivtv ivtv_debug=1
#type=2 for NTSC only
options tuner type=39
options saa7127 enable_output=1 output_select=0
options msp3400 once=1 simple=1
add below ivtv msp3400 saa7115 saa7127 tuner
add above ivtv lirc_dev lirc_i2c ivtv-fb
|
|
Top |
|
 |
douglaing
|
Posted: Sun Feb 20, 2005 11:45 pm |
|
Joined: Sun Feb 20, 2005 11:29 am
Posts: 19
Location:
Garden Grove, CA
|
I am new to this and started with R5A9 and now R5A10, I did the "modprobe ivtv" and "echo ivtv >> /etc/modules" to get it working for viewing and recording but have the same problem with the output.
It seems that the R5A10 has better support and there is a section in setup after you are up and runing to output to it. "Use the PRV=350's TV out / MPEG decoder".
I get an error when I try this "Unable to initialize video", there is also a output device selection on the same screen that defaults "dev/video16" not sure if that is correct or how to set it. I have two PRV-350's in my system.
O well hope someone will help us both, it would be nice to get the S-video output working on one of the cards.
_________________ Doug Laing
doug@laingelectronics.com
Hotmail/Trillian ( doug-laing@hotmail.com)
|
|
Top |
|
 |
jmoger
|
Posted: Mon Feb 21, 2005 5:25 pm |
|
Joined: Mon Feb 21, 2005 4:40 pm
Posts: 5
|
I'm no expert on setting up the PVR-350. In fact I gave up on R4V5 in December trying to do the same thing.
I did, however, try again this past weekend with R5A10 and I am now 95% operational.... including PVR-350 TV-Out. Still can't get LIRC to work! (grrrrr)
Sounds like you guys are 90% there. Getting the tuning and recording to work is harder, I think.
There are 2 parts to this whole setup: (1) the ivtv-fb kernel module which allows for hardware playback and (2) ivtvdev_drv which is the XFree86 driver module for TV-Out.
Kernel/Console
If the following command displays a channel on your TV then you've got the ivtv-fb kernel module working.
dd if=/dev/video0 of=/dev/video16
This might take a few seconds to work (but not more than 5-7 seconds).
If this does not work then you gotta get ivtv-fb working.
I had to append ivtv-fb to the end of /etc/modules to ensure that the kernel driver is loaded at boot time.
I also had the dreaded Green & Purple TV-Out screen. I fixed it with the suggested command from the forum (search: purple)
/usr/local/bin/ivtvctl -j reg=0x6c,val=0xfa -d /dev/video16
There is confusion on which registers and values to use. These worked for me. This is something that must be executed on every boot. You could append it to /etc/init.d/bootmisc.sh
Something to note about framebuffers... my experience has been that if you do not boot with a graphical console (vga=791, or whatever) then when the ivtv-fb module is loaded it tries to use /dev/fb0 which prevents the boot process from continuing. If you boot with a graphical console then tty0 (the boot console) will consume /dev/fb0 and ivtv-fb will consume /dev/fb1 when its loaded.
How do you know if you're booting with a graphical console? If you have more than 25 lines on the screen then you are booting with a graphical console. Or you can run "dmesg | grep fb"
You might see something like...
vesafb: framebuffer at 0xf0000000, mapped to 0xd0880000, size 3072k
vesafb: mode is 1024x768x16, linelength=2048, pages=0
vesafb: protected mode interface info at c000:c2c0
vesafb: scrolling: redraw
vesafb: Truecolor: size=0:5:6:5, shift=0:11:5:0
fb0: VESA VGA frame buffer device
ivtv-osd: fb1: iTVC15 TV out frame buffer device
vesafb is for the console.
XFree86
It appears that R5A10 does NOT come with the XFree86 driver (/usr/X11R6/lib/modules/ivtvdev_drv.o). I downloaded the ivtv source package for 0.2RC-E - this includes a binary of the the XFree86 driver although you will have to rename it when you copy it (in the ivtv archive its called ivtvdev_drv_o). There are several links in the forums to Chris Kennedy's ftp server which contains lots of different revs of ivtv. You will want 0.2RC-something. I chose E, I think. Probably won't make too much difference.
For XFree86 you'll need the PCI address of your PVR-350. You can discover this by running "lspci" which will vomit alot of resource garbage. Locate your PVR-350 card. Mine identifies as:
0000:02:09.0 Multimedia video controller: Internext Compression Inc iTVC15 MPEG-2 Encoder (rev 01)
You need the leading digits for the BusID section.
Here is a snippet of my XFree86 config...
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "TV Screen" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
# PS/2 Mouse using /dev/input/mice in Kernel 2.6
# Serial Mouse not detected
InputDevice "USB Mouse" "CorePointer"
EndSection
Section "Monitor"
Identifier "NTSC Monitor"
HorizSync 30-68
VertRefresh 60
Mode "720x480"
DotClock 34.564
HTimings 720 752 840 928
VTimings 480 484 488 504
Flags "-HSync" "-VSync"
EndMode
EndSection
Section "Device"
Identifier "Hauppauge PVR 350 iTVC15 Framebuffer"
Driver "ivtvdev"
Option "ivtv" "/dev/fb1"
BusID "0x2:0x09:0"
EndSection
Section "Screen"
Identifier "TV Screen"
Device "Hauppauge PVR 350 iTVC15 Framebuffer"
Monitor "NTSC Monitor"
DefaultDepth 24
DefaultFbbpp 32
Subsection "Display"
Depth 24
FbBpp 32
Modes "720x480"
EndSubsection
EndSection
Good luck!
|
|
Top |
|
 |
rkremser
|
Posted: Tue Feb 22, 2005 11:51 am |
|
Joined: Wed Sep 08, 2004 10:15 pm
Posts: 82
|
What you describe could be exactly why i was having the problems, the XFree86 not having the drivers. How exactly did you download/install them. I haven't downloaded anything to my box yet other than apt-get which i haven't had much luck with anyways. I know general commands and use ssh so if you could give me the steps you used it would really help me out.
|
|
Top |
|
 |
jmoger
|
Posted: Tue Feb 22, 2005 1:04 pm |
|
Joined: Mon Feb 21, 2005 4:40 pm
Posts: 5
|
As root execute this command:
wget http://205.209.168.201/~ckennedy/ivtv/i ... 0-rc3e.tgz
This will download the 0.2.0-rc3e IVTV package.
tar xfvz ./ivtv-0.2.0-rc3e.tgz
This will extract the tar ball to the current directory
cp ./ivtv-0.2.0-rc3e/utils/ivtvdev_drv_o /usr/X11R6/lib/modules/ivtvdev_drv.o
Notice the change in filename!
Make sure /etc/X11/XF86Config-4 is properly setup to use the ivtv driver (like my above snippet)
Cross your fingers and reboot.
|
|
Top |
|
 |
attench
|
Posted: Fri Feb 25, 2005 10:24 pm |
|
Joined: Thu Dec 30, 2004 7:45 pm
Posts: 1
|
I have been following the forum for a couple of months now. This message has brought me extremely close to getting it working. I have the same model of hauppage card as you have here. Everything is working as you have stated here. My problem is that I cant get X11 to start with the tv out. It works fine when displaying to the monitor. the tuner output is a little choppy. It was smoother with V4.5. I am now using V5a10. To bad, the developer didn't include a working sample 350 tv out file. The ones from v4.5 wont work in this version. Could you please post your complete XF86Config-4 file? Thanks a bunch.
|
|
Top |
|
 |
douglaing
|
Posted: Sat Feb 26, 2005 11:27 pm |
|
Joined: Sun Feb 20, 2005 11:29 am
Posts: 19
Location:
Garden Grove, CA
|
Well today I followed jmojer's instructions with some luck but now quite. As I had two 350 cards in the box I removed one and was able to work it all out. Then I added the second card and used the "lspci" command to figure out the new card setting.
Now looking for how to get the IR remote working.......
Thanks jmojer for all the help
_________________ Doug Laing
doug@laingelectronics.com
Hotmail/Trillian ( doug-laing@hotmail.com)
|
|
Top |
|
 |
jmoger
|
Posted: Sun Feb 27, 2005 5:18 pm |
|
Joined: Mon Feb 21, 2005 4:40 pm
Posts: 5
|
I did get the remote working. Search the forums for lirc remote problems. There is a thread which links to a working lircd.conf definition for the remote. As an alternative you could google for Jarod Wilson (RHCE who maintains a very thorough HOWTO for MythTV on Fedora). His site contains useful info including sample PVR-350 definitions for XFree and LIRCd. My recommendation is that you do not need to override the lircrc file in your home folder - that file is for button preferences, not really for making LIRC work. I also had to jiggle the crappy 1/8" connector - for whatever reason it wasn't seated properly.
|
|
Top |
|
 |
rkremser
|
Posted: Fri Mar 04, 2005 5:51 am |
|
Joined: Wed Sep 08, 2004 10:15 pm
Posts: 82
|
Jmoger, you mentioned a problem if that you do not boot with a graphical console that when ivtv loads there are issues. It seems i'm running into exactly this problem but can't seem to find a way around it. You mention something about vga=791 but i don't really know what you are referring to and how to get around it. I tried to use a video mode with 60 horizontal lines but that did not change anything. dmesg | grep fb returns this
root@mythtv:~# dmesg | grep fb
ACPI: RSDT (v001 PTLTD RSDT 0x06040000 LTP 0x00000000) @ 0x07efb8d5
ACPI: FADT (v001 HP Hawk 0x06040000 PTL 0x000f4240) @ 0x07effb65
ACPI: BOOT (v001 PTLTD $SBFTBL$ 0x06040000 LTP 0x00000001) @ 0x07effbd9
vesafb: probe of vesafb0 failed with error -6
Modules linked in: ivtv_fb shpchp pciehp pci_hotplug hw_random intel_agp agpgart pcspkr tsdev evdev snd_ens1370 snd_rawmidi snd_seq_device snd_pcm snd_timer snd_page_alloc gameport snd_ak4531_codec snd soundcore msp3400 saa7127 saa7115 tuner tveeprom ivtv i2c_algo_bit i2c_core videodev md5 ipv6 autofs4 af_packet 8139too mii crc32 parport_pc parport 8250 serial_core ds yenta_socket pcmcia_core thermal processor fan button battery ac rtc sbp2 ohci1394 ieee1394 usb_storage ohci_hcd uhci_hcd usbcore tmscsim ide_cd ide_scsi
[<c02ae850>] fb_sysmove_buf_aligned+0x0/0x40
[<c02ae9d0>] fb_sysmove_buf_unaligned+0x0/0xd0
[<c02a5a93>] fbcon_putcs+0x83/0x90
[<c02ae850>] fb_sysmove_buf_aligned+0x0/0x40
[<c02ae9d0>] fb_sysmove_buf_unaligned+0x0/0xd0
[<c02a5a93>] fbcon_putcs+0x83/0x90
[<c02a43dc>] fbcon_takeover+0x4c/0x80
[<c02a997e>] fbcon_fb_registered+0x1e/0x20
[<c02a99cc>] fbcon_event_notify+0x4c/0x80
[<c02b1d7e>] fb_alloc_cmap+0x7e/0xb0
[<c89002d4>] init_module+0x2d4/0x39f [ivtv_fb]
Thanks for any input.
|
|
Top |
|
 |
tjc
|
Posted: Fri Mar 04, 2005 7:47 am |
|
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location:
Arlington, MA
|
rkremser wrote: You mention something about vga=791 but i don't really know what you are referring to and how to get around it.
Sigh... He's talking about changing the setting in lilo.conf from "791" to "normal". For the rest of the details, SEARCH THE FORUM! You should've been around long enough by now to know this already.
|
|
Top |
|
 |
Thermopyle
|
Posted: Thu Mar 17, 2005 11:43 am |
|
Joined: Mon Oct 04, 2004 12:56 pm
Posts: 57
|
omg I'm going crazy! I'm so close it's scary. I've got the dd if=/dev/video0 if=/dev/video16 working flawlessly. When I use /dev/fb1 as the output in the mythtv tv playback settings it's very jumpy. If I switch that output to /dev/video16 it's nice and smooth but there's a black box that is covering up the tv picture and OSD (On Screen Display) entirely that blinks when I change channels. If I do ivtvfbctl -alpha 0 I see the picture and it's flawless :) Problem is there's no OSD. If I do ivtvfbctl -alpha 100 The black box becomes grey and I can see through to the tv picture but the osd is extremely faded. Any ideas on where to look for what's sending this black box to the framebuffer?
|
|
Top |
|
 |
flytech
|
Posted: Thu Mar 31, 2005 11:44 am |
|
Joined: Thu Mar 31, 2005 11:34 am
Posts: 1
|
Thermopyle wrote: omg I'm going crazy! I'm so close it's scary. I've got the dd if=/dev/video0 if=/dev/video16 working flawlessly. When I use /dev/fb1 as the output in the mythtv tv playback settings it's very jumpy. If I switch that output to /dev/video16 it's nice and smooth but there's a black box that is covering up the tv picture and OSD (On Screen Display) entirely that blinks when I change channels. If I do ivtvfbctl -alpha 0 I see the picture and it's flawless  Problem is there's no OSD. If I do ivtvfbctl -alpha 100 The black box becomes grey and I can see through to the tv picture but the osd is extremely faded. Any ideas on where to look for what's sending this black box to the framebuffer?
Has this been resolved or covered elsewhere (already tried searching)? I am experiencing the same "black box" issue as Thermopyle. If I revert to the pre-X config and send TV out to the monitor it's fine, so I assume I'm missing some settings for the framebuffer, but have no idea which ones.
|
|
Top |
|
 |
SnapperDragon
|
Posted: Thu Mar 31, 2005 12:03 pm |
|
Joined: Sat Feb 28, 2004 10:04 am
Posts: 173
Location:
Canton, MI USA
|
I suggest going with R5A12.
If you do this, then you have a good chance of getting my new script working for you. It is supposed to take care of all of the details for pvr-350 out.
Please read the first post completely. It's not exactly fool proof, and I'd hate to have you lose time getting my script to work when I created it to save you time in the firt place...
http://mysettopbox.tv/phpBB2/viewtopic.php?t=3886
|
|
Top |
|
 |
Thermopyle
|
Posted: Wed Apr 06, 2005 9:34 am |
|
Joined: Mon Oct 04, 2004 12:56 pm
Posts: 57
|
I fixed the problem with the black box. The ivtvdev driver I was using was the issue I believe I used the rc3c driver's binary using the command from the utils directory of the ivtv source:
[code]install -c -m 0444 ivtvdev_drv_o /usr/X11R6/lib/modules/drivers/ivtvdev_drv.o[/code]
|
|
Top |
|
 |