MythTV port - status report

usleepless at gmail.com usleepless at gmail.com
Thu Dec 28 14:49:07 PST 2006


Derrick, Torfinn,

On 12/28/06, Derrick Ryalls <ryallsd at gmail.com> wrote:
> On 12/28/06, Torfinn Ingolfsen <torfinn.ingolfsen at broadpark.no> wrote:
> > On Thu, 28 Dec 2006 02:30:23 -0800
> > Derrick Ryalls <ryallsd at gmail.com> wrote:
> >
> > > This issue kinda fell off this thread with no mention of a possible
> >
> > The answers(s) are probably delayed, because of the holiday season.
> >
> > > solution.  I have a PVR-250 card and tried installing the pvr250 port.
> > >  I can stream video via mplayer /dev/cxm0 and set the channel, but
> > > when I run mythtv-setup, it says it failed to probe the device.  I
> > > tried the original sys file from my windows install cd as well as a
> > > sys file from hauppage directly, both have the same result.  Was there
> > > any determination/work-around for the ioctl issue?
> >
> > The problem is in the driver (ie. the pvr250 port). It needs to be
> > fixed to include the necessary ioctls.
> > I'm still waiting for hints on how to go about fixing it.
> >
> > Or you could use another driver, if one was available. I know usleep
> > have support for pvr-250 / 350 cards as a goal for the pvrxx driver,
> > but it just isn't there yet.
> >
>
> At the moment I am unable to try the pvrxxx port since I don't have
> the required .rom file on my released CD from hauppage, nor did I see
> one on their support website.  I am assuming that that file is only
> for the other cards, so it will be interesting to see how it turns
> out.
>
> I did try the driver from here
> http://mythtv.son.org/tiki-index.php?page=Multimedia+Drivers  (which
> previously worked for me), but got this build error:
>
> /usr/ports/multimedia/pvr250]$ sudo make
> Some tuners (for example the Philips FQ1216M) supports multiple standards.
> Use the following configuration screen (or 'make config') to choose
> your local  TV channel system if you have such a tuner.
> At this moment only the Philips FQ1216M is known to do this. If you
> don't have  one, just ignore it. If you have one, select one (1)
> entry.
> ===>  Vulnerability check disabled, database not found
> ===>  Found saved configuration for pvr250-20041230_2
> ===>  Extracting for pvr250-20041230_2
> => MD5 Checksum OK for cxm-20041230.shar.
> => No SHA256 checksum recorded for cxm-20041230.shar.
> => MD5 Checksum OK for pvr250-1.1.tar.gz.
> => No SHA256 checksum recorded for pvr250-1.1.tar.gz.
> => No SHA256 checksum for hcwPVRP2.sys recorded (expected IGNORE)
> /bin/mkdir -p /usr/ports/multimedia/pvr250/work
> cd /usr/ports/multimedia/pvr250/work;  /bin/sh
> /usr/ports/distfiles/cxm-20041230.shar;  /usr/bin/gzip -nf -9 -dc
> /usr/ports/distfiles//pvr250-1.1.tar.gz | /usr/bin/tar -xf -;
> c - dev/cxm
> x - dev/cxm/Patch.iicbb-fbsd4
> x - dev/cxm/Patch.iicbb-fbsd5
> x - dev/cxm/cxm.c
> x - dev/cxm/cxm.h
> x - dev/cxm/cxm_audio.c
> x - dev/cxm/cxm_eeprom.c
> x - dev/cxm/cxm_i2c.c
> x - dev/cxm/cxm_ir.c
> x - dev/cxm/cxm_tuner.c
> x - dev/cxm/cxm_video.c
> x - dev/cxm/cxm_extract_fw.c
> c - modules/cxm
> x - modules/cxm/Makefile
> c - modules/cxm/cxm
> x - modules/cxm/cxm/Makefile
> c - modules/cxm/cxm_iic
> x - modules/cxm/cxm_iic/Makefile
> ===>  Patching for pvr250-20041230_2
> ===>  Applying extra patch
> /usr/ports/multimedia/pvr250/files/patchtuner-uscable
> ===>  Applying extra patch
> /usr/ports/multimedia/pvr250/files/patchv4l-compat
> ===>  Applying FreeBSD patches for pvr250-20041230_2
> /usr/bin/sed -i.bak -e 's/bktr0/cxm0/'
> /usr/ports/multimedia/pvr250/work/pvr250-1.1/setchannel.c
> /usr/ports/multimedia/pvr250/work/pvr250-1.1/setsize.c
> ===>  Configuring for pvr250-20041230_2
> cd /usr/ports/multimedia/pvr250/work/dev/cxm;  cc -Wall -o
> cxm_extract_fw cxm_extract_fw.c;  ./cxm_extract_fw
> /usr/ports/distfiles/hcwPVRP2.sys
> cxm_extract_fw.c: In function `main':
> cxm_extract_fw.c:150: warning: implicit declaration of function `close'
> cxm_extract_fw.c:175: warning: suggest explicit braces to avoid ambiguous
> `else'
> cxm_extract_fw.c:189: warning: suggest explicit braces to avoid ambiguous
> `else'
> ===>  Building for pvr250-20041230_2
> cd /usr/ports/multimedia/pvr250/work/modules/cxm; make
> ===> cxm (all)
> Warning: Object directory not changed from original
> /usr/ports/multimedia/pvr250/work/modules/cxm/cxm
> @ -> /usr/src/sys
> machine -> /usr/src/sys/i386/include
> :> opt_cxm.h
> awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
> awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
> awk -f @/tools/makeobjops.awk @/dev/iicbus/iicbb_if.m -h
> awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
> awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -p
> awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -q
> awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -h
> cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE
> -nostdinc -I-  -I../../.. -I. -I@ -I@/contrib/altq -I@/../include
> -I/usr/include -finline-limit=8000 -fno-common
> -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx
> -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Wall -Wredundant-decls
> -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes
> -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -c
> /usr/ports/multimedia/pvr250/work/modules/cxm/cxm/../../../dev/cxm/cxm.c
> /usr/ports/multimedia/pvr250/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:59:31:
> machine/bus_memio.h: No such file or directory
> /usr/ports/multimedia/pvr250/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:156:
> error: unknown field `d_maj' specified in initializer
> /usr/ports/multimedia/pvr250/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:156:
> error: `MAJOR_AUTO' undeclared here (not in a function)
> /usr/ports/multimedia/pvr250/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:156:
> error: initializer element is not constant
> /usr/ports/multimedia/pvr250/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:156:
> error: (near initialization for `cxm_cdevsw.d_name')
> /usr/ports/multimedia/pvr250/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:
> In function `cxm_stop_encoder':
> /usr/ports/multimedia/pvr250/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:1106:
> warning: passing arg 1 of `msleep' discards qualifiers from pointer
> target type
> /usr/ports/multimedia/pvr250/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:
> In function `cxm_encoder_dma_done':
> /usr/ports/multimedia/pvr250/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:1313:
> warning: passing arg 1 of `wakeup' discards qualifiers from pointer
> target type
> /usr/ports/multimedia/pvr250/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:
> In function `cxm_attach':
> /usr/ports/multimedia/pvr250/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:1624:
> error: `PCIR_MAPS' undeclared (first use in this function)
> /usr/ports/multimedia/pvr250/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:1624:
> error: (Each undeclared identifier is reported only once
> /usr/ports/multimedia/pvr250/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:1624:
> error: for each function it appears in.)
> /usr/ports/multimedia/pvr250/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:
> In function `cxm_detach':
> /usr/ports/multimedia/pvr250/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:1963:
> error: `PCIR_MAPS' undeclared (first use in this function)
> /usr/ports/multimedia/pvr250/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:
> In function `cxm_intr':
> /usr/ports/multimedia/pvr250/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:2010:
> warning: passing arg 1 of `wakeup' discards qualifiers from pointer
> target type
> /usr/ports/multimedia/pvr250/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:
> In function `cxm_read':
> /usr/ports/multimedia/pvr250/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:2207:
> warning: passing arg 1 of `msleep' discards qualifiers from pointer
> target type
> *** Error code 1
>
> Stop in /usr/ports/multimedia/pvr250/work/modules/cxm/cxm.
> *** Error code 1
>
> Stop in /usr/ports/multimedia/pvr250/work/modules/cxm.
> *** Error code 1
>
> Stop in /usr/ports/multimedia/pvr250.
>
> I might need to retrace my steps as I don't recall seeing this before
> and the date stamp on the tar is quite old.  I also don't know the
> history of the needed ioctl's, hopefully they were known at the time
> of this driver's writing so there is a possibility of them being
> supported once the build issues are ironed out.

i will try to package my latest version of the pvrxxx asap.
 - it downloads the firmware images from ivtv
 - it supports the v4l2 interface you need ( or you'll need to tweak
mythtv to support the bsdstyle of accessing the device )

i hope to have it ready tomorrow.

regards,

usleep


More information about the freebsd-multimedia mailing list