Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Dec 2006 18:44:51 +0100
From:      Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no>
To:        freebsd-multimedia@freebsd.org
Subject:   Re: MythTV port - status report
Message-ID:  <20061230184451.8b1fa4df.torfinn.ingolfsen@broadpark.no>
In-Reply-To: <c39ec84c0612291406v60c6c8edgda86a19c3f4c5806@mail.gmail.com>
References:  <20061224230155.fc0a6c6a.torfinn.ingolfsen@broadpark.no> <c39ec84c0612241431n6f3e66e7n9a1a38f4258097e3@mail.gmail.com> <20061225001321.5dfb2975.torfinn.ingolfsen@broadpark.no> <d5eb95fc0612280230u66b81742od4f4435490b1bf5c@mail.gmail.com> <20061228145909.bbb6d193.torfinn.ingolfsen@broadpark.no> <d5eb95fc0612281435k1357d907p99adad9912313368@mail.gmail.com> <c39ec84c0612281449q6e62ac56pb54d42cd790fadd5@mail.gmail.com> <d5eb95fc0612281453n7cd2de31t92ca7a88ed67599b@mail.gmail.com> <c39ec84c0612291406v60c6c8edgda86a19c3f4c5806@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Fri, 29 Dec 2006 23:06:43 +0100
usleepless@gmail.com wrote:

> pvrxxx.tgz:
>   the port, extract in /usr/ports/multimedia

There were a couple of minor errors, here are the diffs:
--- Makefile.org        Sat Dec 30 18:07:22 2006
+++ Makefile    Sat Dec 30 18:08:04 2006
@@ -17,7 +17,7 @@
 
 MASTER_SITES=  http://www.mavetju.org/download/adopted/
http://dl.ivtvdriver.org/ivtv/firmware/ DISTFILES=     ${CXMSHAR}
${PVRTOOLS}.tar.gz pvrxxx_gpl.tgz v4l-cx25840.fw v4l-cx2341x-enc.fw
v4l-cx2341x-dec.fw -IGNOREFILES=   v4l-cx25840.fw v4l-cx2341x-enc.fw
+IGNOREFILES=   v4l-cx25840.fw v4l-cx2341x-enc.fw v4l-cx2341x-dec.fw 
 MAINTAINER=    usleepless@gmail.com
 COMMENT=       Hauppauge PVR-150/500 TV cards driver for the cxm
device, based on the pv250-port.


--- distinfo.org        Sat Dec 30 18:06:08 2006
+++ distinfo    Sat Dec 30 18:13:13 2006
@@ -4,10 +4,12 @@
 MD5 (pvr250-1.2.tar.gz) = ab6bd568158db4c45789777babe672c1
 SHA256 (pvr250-1.2.tar.gz) =
477a0fe2f2c032df75838eed0a371f42cc52069765fdbf92c0a64d666986bc4a SIZE
(pvr250-1.2.tar.gz) = 3946 -MD5 (pvrxxx_gpl.tgz) =
d8773e9098ea92897fa8697854ab40d5 -SHA256 (pvrxxx_gpl.tgz) =
a18f0eac045bde62121b68724770fe3282d20fd4ff082bd7feee831413a77962 -SIZE
(pvrxxx_gpl.tgz) = 45571 +MD5 (pvrxxx_gpl.tgz) =
4f6890c2ff3b2c2f236ed9d87bb66a68 +SHA256 (pvrxxx_gpl.tgz) =
71e52aab185048de9b9bcdf898175c8c95f11c29f3e6227bd3cde04c2cf8b68f +SIZE
(pvrxxx_gpl.tgz) = 45862 MD5 (v4l-cx25840.fw) = IGNORE
 SHA256 (v4l-cx25840.fw) = IGNORE
 MD5 (v4l-cx2341x-enc.fw) = IGNORE
 SHA256 (v4l-cx2341x-enc.fw) = IGNORE
+MD5 (v4l-cx2341x-dec.fw) = IGNORE
+SHA256 (v4l-cx2341x-dec.fw) = IGNORE


> sys/kern/subr_taskqueue.c(.diff):
>   this is how my subr_taskqueue.c looks like. it was taken from 7.0?,
> and it is the code that supports the new if_em and now pvrxxx too. it
> is needed to implement fast interrupts.
> sys/sys/taskqueue.h(.diff)
>   idem dito.

I noticed that the correct version of these files were already in
RELENG_6, so I upgraded my box (and hit a snag with a missing MFC.
Thankfully it was solved extremely quick over at the -stable list). It
is now running:
tingo@kg-quiet$ uname -a
FreeBSD kg-quiet.kg4.no 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #12: Sat
Dec 30 18:25:42 CET 2006     root@:/usr/obj/usr/src/sys/QUIET  amd64

> i can imagine very well that there might be problems. please let me
> know.

Ok, I did 'make patch-iicbb', made a new kernel and rebooted. Worked
flawlessly.
When I do 'make' it bombs out:
In file included
from /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:83:
@/dev/pci/pcivar.h: In function `pci_get_ether':
@/dev/pci/pcivar.h:217: warning: cast to pointer from integer of
different size @/dev/pci/pcivar.h: In function `pci_set_ether':
@/dev/pci/pcivar.h:217: warning: cast from pointer to integer of
different
size /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:
In function
`cxm_download_firmware': /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:756:
error: `cxm_decfw' undeclared (first use in this
function) /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:756:
error: (Each undeclared identifier is reported only
once /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:756:
error: for each function it appears
in.) /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:753:
warning: unused variable
`cxm_encfw' /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:
In function
`cxm_encoder_wait_for_lock': /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:1758:
error: `muted' undeclared (first use in this
function) /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:
In function
`cxm_write_ivar': /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:2409:
warning: cast to pointer from integer of different size *** Error code 1

Stop in /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm.
*** Error code 1

Stop in /usr/ports/multimedia/pvrxxx/work/modules/cxm.
*** Error code 1

Stop in /usr/ports/multimedia/pvrxxx.

I have include the complete make output (sea attached file).
-- 
Regards,
Torfinn Ingolfsen,
Norway


[-- Attachment #2 --]
Script started on Sat Dec 30 18:41:13 2006
root@kg-quiet# make
===>  Vulnerability check disabled, database not found
===>  Extracting for pvrxxx-20060822
=> MD5 Checksum OK for cxm-20051030.shar.
=> SHA256 Checksum OK for cxm-20051030.shar.
=> MD5 Checksum OK for pvr250-1.2.tar.gz.
=> SHA256 Checksum OK for pvr250-1.2.tar.gz.
=> MD5 Checksum OK for pvrxxx_gpl.tgz.
=> SHA256 Checksum OK for pvrxxx_gpl.tgz.
/bin/mkdir -p /usr/ports/multimedia/pvrxxx/work
cd /usr/ports/multimedia/pvrxxx/work;  /bin/sh /usr/ports/distfiles/cxm-20051030.shar;  /usr/bin/gzip -nf -9 -dc /usr/ports/distfiles//pvr250-1.2.tar.gz | /usr/bin/tar -xf -;  cd modules/cxm/cxm;  /usr/bin/gzip -nf -9 -dc /usr/ports/distfiles//pvrxxx_gpl.tgz | /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 pvrxxx-20060822
===>  Applying FreeBSD patches for pvrxxx-20060822
/usr/bin/sed -i.bak -e 's/tuner0/cxm0/'  /usr/ports/multimedia/pvrxxx/work/pvr250-1.2/setchannel.c
===>  Configuring for pvrxxx-20060822
cp /usr/ports/distfiles/v4l-cx25840.fw /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm_cx25840fw/cx25840.fw ;  cp /usr/ports/distfiles/v4l-cx2341x-dec.fw /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm_decfw/cxm_dec.fw ;  cp /usr/ports/distfiles/v4l-cx2341x-enc.fw /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm_encfw/cxm_enc.fw
===>  Building for pvrxxx-20060822
cd /usr/ports/multimedia/pvrxxx/work/modules/cxm; make
===> cxm (all)
Warning: Object directory not changed from original /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm
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 -O -pipe -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I-  -I../../.. -I. -I@ -I@/contrib/altq -I@/../include -finline-limit=8000 -fno-common  -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -c /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c
In file included from @/sys/systm.h:42,
                 from /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:42:
./machine/cpufunc.h: In function `invlpg':
./machine/cpufunc.h:448: warning: cast to pointer from integer of different size
In file included from /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:63:
./machine/bus.h: In function `bus_space_read_1':
./machine/bus.h:225: warning: cast to pointer from integer of different size
./machine/bus.h: In function `bus_space_read_2':
./machine/bus.h:235: warning: cast to pointer from integer of different size
./machine/bus.h: In function `bus_space_read_4':
./machine/bus.h:245: warning: cast to pointer from integer of different size
./machine/bus.h: In function `bus_space_write_1':
./machine/bus.h:520: warning: cast to pointer from integer of different size
./machine/bus.h: In function `bus_space_write_2':
./machine/bus.h:531: warning: cast to pointer from integer of different size
./machine/bus.h: In function `bus_space_write_4':
./machine/bus.h:542: warning: cast to pointer from integer of different size
./machine/bus.h: In function `bus_space_set_multi_1':
./machine/bus.h:826: warning: cast to pointer from integer of different size
./machine/bus.h: In function `bus_space_set_multi_2':
./machine/bus.h:840: warning: cast to pointer from integer of different size
./machine/bus.h: In function `bus_space_set_multi_4':
./machine/bus.h:854: warning: cast to pointer from integer of different size
./machine/bus.h: In function `bus_space_set_region_1':
./machine/bus.h:890: warning: cast to pointer from integer of different size
./machine/bus.h: In function `bus_space_set_region_2':
./machine/bus.h:904: warning: cast to pointer from integer of different size
./machine/bus.h: In function `bus_space_set_region_4':
./machine/bus.h:918: warning: cast to pointer from integer of different size
./machine/bus.h: In function `bus_space_copy_region_1':
./machine/bus.h:971: warning: cast to pointer from integer of different size
./machine/bus.h:972: warning: cast to pointer from integer of different size
./machine/bus.h:977: warning: cast to pointer from integer of different size
./machine/bus.h:978: warning: cast to pointer from integer of different size
./machine/bus.h: In function `bus_space_copy_region_2':
./machine/bus.h:1006: warning: cast to pointer from integer of different size
./machine/bus.h:1007: warning: cast to pointer from integer of different size
./machine/bus.h:1012: warning: cast to pointer from integer of different size
./machine/bus.h:1013: warning: cast to pointer from integer of different size
./machine/bus.h: In function `bus_space_copy_region_4':
./machine/bus.h:1041: warning: cast to pointer from integer of different size
./machine/bus.h:1042: warning: cast to pointer from integer of different size
./machine/bus.h:1047: warning: cast to pointer from integer of different size
./machine/bus.h:1048: warning: cast to pointer from integer of different size
In file included from /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:83:
@/dev/pci/pcivar.h: In function `pci_get_ether':
@/dev/pci/pcivar.h:217: warning: cast to pointer from integer of different size
@/dev/pci/pcivar.h: In function `pci_set_ether':
@/dev/pci/pcivar.h:217: warning: cast from pointer to integer of different size
/usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c: In function `cxm_download_firmware':
/usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:756: error: `cxm_decfw' undeclared (first use in this function)
/usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:756: error: (Each undeclared identifier is reported only once
/usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:756: error: for each function it appears in.)
/usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:753: warning: unused variable `cxm_encfw'
/usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c: In function `cxm_encoder_wait_for_lock':
/usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:1758: error: `muted' undeclared (first use in this function)
/usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c: In function `cxm_write_ivar':
/usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:2409: warning: cast to pointer from integer of different size
*** Error code 1

Stop in /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm.
*** Error code 1

Stop in /usr/ports/multimedia/pvrxxx/work/modules/cxm.
*** Error code 1

Stop in /usr/ports/multimedia/pvrxxx.
root@kg-quiet# ^D
Script done on Sat Dec 30 18:41:18 2006

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061230184451.8b1fa4df.torfinn.ingolfsen>