From owner-freebsd-multimedia@FreeBSD.ORG Thu Dec 28 22:53:05 2006 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3340C16A407 for ; Thu, 28 Dec 2006 22:53:05 +0000 (UTC) (envelope-from ryallsd@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by mx1.freebsd.org (Postfix) with ESMTP id A9BB213C463 for ; Thu, 28 Dec 2006 22:53:04 +0000 (UTC) (envelope-from ryallsd@gmail.com) Received: by nf-out-0910.google.com with SMTP id x37so5297738nfc for ; Thu, 28 Dec 2006 14:53:03 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KjkOAZnPXDeCLKPqR3pySWoxsEk1ARVqAPAH8GWMLyvQXQ+5pBnhFrR20fJ7AXsmtqXOCUCTOA2p7Ax4b1ouKu6ou1opaejU7S1mETYBOLC9U2ST3RQw/VxU4/quD4wZK8ie02q/uHzXPFCUAlRmbSn3Kj5V97haOJM3pNEICuE= Received: by 10.82.139.17 with SMTP id m17mr983239bud.1167346383517; Thu, 28 Dec 2006 14:53:03 -0800 (PST) Received: by 10.82.154.7 with HTTP; Thu, 28 Dec 2006 14:53:03 -0800 (PST) Message-ID: Date: Thu, 28 Dec 2006 14:53:03 -0800 From: "Derrick Ryalls" To: "usleepless@gmail.com" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061224230155.fc0a6c6a.torfinn.ingolfsen@broadpark.no> <20061225001321.5dfb2975.torfinn.ingolfsen@broadpark.no> <20061228145909.bbb6d193.torfinn.ingolfsen@broadpark.no> Cc: freebsd-multimedia@freebsd.org Subject: Re: MythTV port - status report X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Dec 2006 22:53:05 -0000 On 12/28/06, usleepless@gmail.com wrote: > Derrick, Torfinn, > > On 12/28/06, Derrick Ryalls wrote: > > On 12/28/06, Torfinn Ingolfsen wrote: > > > On Thu, 28 Dec 2006 02:30:23 -0800 > > > Derrick Ryalls 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 > Thanks! I look forward to trying it out.