I helped another guy get this working under Etch, so this might also work for you.

The structures of XOrg have changed between Xorg 6 and Xorg 7. They have flattened out and some stuff has been moved around slightly. I managed to get the driver file to compile and create a ivtvdev_drv.so file. I am attaching a patch file that you can apply from the top level (above ivtv_xdriver_0.10.6). Once you have applied the patch file, you will then need to go on down to the bottom directory, and edit the Makefile that should now exist, and change the location of your Xorg sources. I think that you can update the definition of "TOP" and everything else should fall into place.

Further clarifications can be found in the thread titled:
Compiling X driver under Debian / ETch?]

Attached is the patch I created.

Don't hesitate to ask if you run into issues/concerns.

Basically, you need to 'apt-get source xserver-xorg-core. Do a debuild on it to get it configured. Then unpack the ivtv_xdriver. Apply the patch. Customize the Makefile and 'make' it. Then install the resulting .o file.

He suggested I put this in the wiki, and maybe I will. But, I just wasn't sure it was a polished enough procedure to put into the wiki.

B-Fly wrote:
Hello all,

I am trying to get the TV-out of my PVR350 operational, by installing
the Xdriver. Unfortunately I haven't been very successful so far. I
tried the precompiled binary driver and tried to build from source.
Below I will give my notes. Hope you can help (or supply a working
Xdriver for Debian Unstable :).

First some background info, just to be complete: I am running Debian
Unstable, with the xserver-xorg version 7.0.23. Ivtv is version 0.4.6,
later version is not "possible" (easy) since the driver for the Samsung
TCPG 6221P30A tuner is not yet in the kernel source. MythTV is able to
play MPEG files via TV-out.

1. Install the binary Xdriver (0.10.6) from
http://www.ivtvdriver.org/index.php/Download

/etc/X11/xorg.conf:

Section "Device"
        Identifier "PVR350"
        Driver "ivtvdev"
        Option  "fbdev" "/dev/fb1"  # fb0 is for my matrox G200
        Option "VideoOverlay" "on"
        Option "XVideo" "1"
        BusID   "PCI:02:05:0"
EndSection

Section "Monitor"
        Identifier  "PAL TV"
        HorizSync  30-68
        VertRefresh 50-120
        Mode "720x576"
          DotClock 42.6
          HTimings 720 760 832 944
          VTimings 576 577 580 602
          Flags    "-HSync" "-VSync"
        EndMode
EndSection

Section "Screen"
        Identifier  "TV"
        Device      "PVR350"
        Monitor     "PAL TV"
        DefaultDepth 24
        DefaultFbbpp 32
        Subsection "Display"
          Depth 24
          FbBpp 32
          Modes "720x576"
        EndSubsection
EndSection

And now the errors...

/var/log/Xorg.0.log (hopefully the interesting parts):

[...]
(II) Module vbe: vendor="X.Org Foundation"
        compiled for 7.1.1, module version = 1.1.0
        ABI class: X.Org Video Driver, version 1.0
(II) LoadModule: "ivtvdev"
[...]
(II) IVTVDEV_TST: driver for framebuffer: PVR-350
(II) Primary Device is: PCI 00:02:0
(--) Chipset PVR-350 found
[...]
(II) Setting vga for screen 0.
(EE) IVTVDEV_TST(0)Framebuffer id from dev /dev/fb1is 1
(EE) IVTVDEV_TST(0)open /dev/video48 returned  8
(EE) IVTVDEV_TST(0)get_fb returned  0 fbid 1
(**) IVTVDEV_TST(0)Depth 24, (**) framebuffer bpp 32
(==) IVTVDEV_TST(0)RGB weight 888
(==) IVTVDEV_TST(0)Default visual is TrueColor
(==) IVTVDEV_TST(0)Using gamma correction (1.0, 1.0, 1.0)
(II) IVTVDEV_TST(0)Hardware: cx23415 TV out (vidmem: 1665k)
(II) IVTVDEV_TST(0)Checking Modes against framebuffer device...
(II) IVTVDEV_TST(0)     mode "720x576" ok
(II) IVTVDEV_TST(0)Checking Modes against monitor...
(--) IVTVDEV_TST(0)Virtual size is 720x576 (pitch 720)
(**) IVTVDEV_TST(0) Mode "720x576": 42.6 MHz (scaled from 0.0 MHz), 45.1
kHz, 75.0 Hz
(II) IVTVDEV_TST(0)Modeline "720x576"   42.60  720 760 832 944  576 577
580 602 -hsync -vsync
(++) IVTVDEV_TST(0)DPI set to (100, 100)
[...]
(**) IVTVDEV_TST(0)Using "Shadow Framebuffer"
[...]
Backtrace:
0: /usr/bin/X11/X(xf86SigHandler+0x84) [0x80c42e4]
1: [0xffffe420]
2: /usr/bin/X11/X(AddScreen+0x1ed) [0x806dced]
3: /usr/bin/X11/X(InitOutput+0x22e) [0x809fd5e]
4: /usr/bin/X11/X(main+0x276) [0x806e486]
5: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xc8) [0xb7dd2ea8]
6: /usr/bin/X11/X(FontFileCompleteXLFD+0xa9) [0x806d9d1]

Fatal server error:
Caught signal 4.  Server aborting


2.  Compile Xdriver from source:

http://ivtv.writeme.ch/tiki-index.php?page=XDriverHowTo
# apt-get -b source xserver-xorg xserver-xorg-core
Note: no directory xorg-server-1.0.2/config/cf is created...
#wget http://dl.ivtvdriver.org/xdriver/0.10.6/ivtv_xdriver_src_0.10.6.tgz
#tar -zxvf ivtv_xdriver_src_0.10.6.tgz
#cd ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/ivtv/
#xmkmf /home/video/driver/xorg-server-1.0.2
mv -f Makefile Makefile.bak
imake -I/home/video/driver/xorg-server-1.0.2/config/cf
-DTOPDIR=/home/video/driver/xorg-server-1.0.2 -DCURDIR=.
Imakefile.c:39: error: Imake.tmpl: No such file or directory
imake: Exit code 1.
  Stop.

Try another way:

http://www.gossamer-threads.com/lists/ivtv/users/29059#29059
download patch
#patch -p0 <ivtv_xdriver-0.10.6-xorg-7.0-2.patch
#aptitude install autoconf libtool
#cd ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/ivtv
#touch AUTHORS ChangeLog NEWS README autoreconf -is
automake: configure.ac: installing `./install-sh'
automake: configure.ac: installing `./mkinstalldirs'
automake: configure.ac: installing `./missing'
Makefile.am:26: bad macro name [EMAIL PROTECTED]@_drv_la_LTLIBRARIES'
Makefile.am:27: bad macro name [EMAIL PROTECTED]@_drv_la_LDFLAGS'
Makefile.am:28: bad macro name [EMAIL PROTECTED]@_drv_ladir'
Makefile.am:30: bad macro name [EMAIL PROTECTED]@_drv_la_SOURCES'
automake: Makefile.am: installing `./INSTALL'
automake: Makefile.am: installing `./COPYING'
configure.ac: 38: required file `./[config.h].in' not found
automake: Makefile.am: [EMAIL PROTECTED]@_drv.la' is not a standard libtool
library name
Makefile.am:30: invalid unused variable name: [EMAIL PROTECTED]@_drv_la_SOURCES'
Makefile.am:27: invalid unused variable name: [EMAIL PROTECTED]@_drv_la_LDFLAGS'
autoreconf: automake failed with exit status: 1

Perhaps this will work:

http://www.mail-archive.com/[email protected]/msg02566.html
#aptitude install xserver-xorg-dev libxvmc-dev x11proto-core-dev
x11proto-input-dev x11proto-kb-dev x11proto-render-dev
x11proto-video-dev x11proto-xext-dev x11proto-fonts-dev
#autoreconf -is --force
Makefile.am:26: bad macro name [EMAIL PROTECTED]@_drv_la_LTLIBRARIES'
Makefile.am:27: bad macro name [EMAIL PROTECTED]@_drv_la_LDFLAGS'
Makefile.am:28: bad macro name [EMAIL PROTECTED]@_drv_ladir'
Makefile.am:30: bad macro name [EMAIL PROTECTED]@_drv_la_SOURCES'
configure.ac: 38: required file `./[config.h].in' not found
automake: Makefile.am: [EMAIL PROTECTED]@_drv.la' is not a standard libtool
library name
Makefile.am:30: invalid unused variable name: [EMAIL PROTECTED]@_drv_la_SOURCES'
Makefile.am:27: invalid unused variable name: [EMAIL PROTECTED]@_drv_la_LDFLAGS'
autoreconf: automake failed with exit status: 1

I am lost... please help!

Thanks,

Ronald



_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users



--
Mark Paulus
2424 Garden of the Gods Rd  | Phone:  v622-5578 / 719-535-5578
0419/117 - LEC Access ; D5-1010   | FAX:    719-535-1665
Colo Springs, CO  80919    | 1800PageMCI / 1406052
AIM : mgpaulus1    /  sametime : mark.paulus

Attachment: ivtv_xdriver.patch.gz
Description: application/gzip

begin:vcard
fn:Mark Paulus
n:Paulus;Mark
org:MCI;Lec Interfaces / 40419
adr;dom:;;2424 Garden of the Gods Rd;Colorado Springs;CO;80919
email;internet:[EMAIL PROTECTED]
title:Mark Paulus
tel;work:719-535-5578
tel;pager:800-pagemci / 1406052
tel;home:v622-5578
version:2.1
end:vcard

_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users

Reply via email to