From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 10 23:22:17 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5EEF816A407 for ; Tue, 10 Apr 2007 23:22:17 +0000 (UTC) (envelope-from usleepless@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2032713C4D0 for ; Tue, 10 Apr 2007 23:22:17 +0000 (UTC) (envelope-from usleepless@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so1427046pyh for ; Tue, 10 Apr 2007 16:22:16 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JgX4H+2cbo4SA4sXRL7ddinlkcnpcZKD9gint1pZGrcpkFOWo2Xu6RTXeyV/SgPylScBt998PGEQWg8olxYHB0N80DBcEDfNm8mcT7Msv1+VRzj6EbkRYC/tkUQARGkXuTXWWZ/Vd4ZRErREf8UYYDv/a11j2ZBnTDcQUwibj1c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=koy4qdXjC/4jkggCbnOA6Na7pEHPl9JSsu6mjnQWwTkCmuNoMI6LspSoApQQLSGO4OpJlfWzwpdXVGNBSKCDjsCYVlu8KbxTKkD7i1C+lgW44SHlJ8G+p3KvEkX1vJrh4Iu9tBryrL3MTdEmUBZ6aLVsUX/Wj/AeDoGiTh9yRSw= Received: by 10.114.56.1 with SMTP id e1mr1622195waa.1176245825878; Tue, 10 Apr 2007 15:57:05 -0700 (PDT) Received: by 10.114.192.12 with HTTP; Tue, 10 Apr 2007 15:57:05 -0700 (PDT) Message-ID: Date: Wed, 11 Apr 2007 00:57:05 +0200 From: usleepless@gmail.com To: "Rick Nekus" 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: Cc: freebsd-multimedia@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: pvr-350 not working - how to debug? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Apr 2007 23:22:17 -0000 Rick, List, On 4/11/07, Rick Nekus wrote: > Hi all, > > uname -a: > FreeBSD 6.2-STABLE-200703 FreeBSD 6.2-STABLE-200703 #0: Tue Mar 6 22:32:15 > UTC 2007 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP i386 > > ok, well I've upgraded to 6.2-STABLE, that is, from ie. the .iso (i386) from > ..../pub/FreeBSD/snapshots/200703 > Is this correct, or stable enuf ? if not, please let me know. > > -the other thing is my newer STABLE "firmware.h" file is or should be > correct now, although now it actually doesn't even get that far when using > the pvrxxx-20070904 from usleep. > I tried a couple older versions of the pvrxxx port with same non-completed > results. -with no cxm drivers being loaded. > -again, this however somehow worked fine when I used the older > multimedia/pvr250 port ? last week, but of course now I can't reproduce that > since I've re-installed. -i know, backups are great. > > anyway here's the make output again : > ------------------------------------------------------------------------------------------------------ > [rick@tiger /usr/ports/multimedia/pvrxxx]$ sudo make makesum > ===> Vulnerability check disabled, database not found > => cxm-20051030.shar.gz doesn't seem to exist in /usr/ports/distfiles/. > => Attempting to fetch from http://usleepless.110mb.com/. > cxm-20051030.shar.gz 100% of 35 kB 60 kBps > => pvr250-1.2.tar.gz doesn't seem to exist in /usr/ports/distfiles/. > => Attempting to fetch from http://usleepless.110mb.com/. > pvr250-1.2.tar.gz 100% of 3946 B 1397 kBps > => pvrxxx_gpl-09042007.tgz doesn't seem to exist in /usr/ports/distfiles/. > => Attempting to fetch from http://usleepless.110mb.com/. > pvrxxx_gpl-09042007.tgz 100% of 45 kB 68 kBps > => firmware.tar.gz doesn't seem to exist in /usr/ports/distfiles/. > => Attempting to fetch from http://usleepless.110mb.com/. > fetch: http://usleepless.110mb.com/firmware.tar.gz: Moved Temporarily > => Attempting to fetch from http://dl.ivtvdriver.org/ivtv/firmware/. > firmware.tar.gz 100% of 121 kB 80 kBps > > [rick@tiger /usr/ports/multimedia/pvrxxx]$ sudo make > ===> Vulnerability check disabled, database not found > ===> Extracting for pvrxxx-20070904 > => MD5 Checksum OK for cxm-20051030.shar.gz. > => SHA256 Checksum OK for cxm-20051030.shar.gz. > => MD5 Checksum OK for pvr250-1.2.tar.gz. > => SHA256 Checksum OK for pvr250-1.2.tar.gz. > /bin/mkdir -p /usr/ports/multimedia/pvrxxx/work > cd /usr/ports/multimedia/pvrxxx/work; cat > /usr/ports/distfiles/cxm-20051030.shar.gz | gunzip | /bin/sh; /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-09042007.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-20070904 > ===> Applying FreeBSD patches for pvrxxx-20070904 > /usr/bin/sed -i.bak -e 's/tuner0/cxm0/' > /usr/ports/multimedia/pvrxxx/work/pvr250-1.2/setchannel.c > ===> Configuring for pvrxxx-20070904 > cd /usr/ports/multimedia/pvrxxx/work/modules/cxm; cd cxm_cx25840fw; tar xzf > /usr/ports/distfiles//firmware.tar.gz v4l-cx25840.fw; cd ../cxm_decfw; tar > xzf /usr/ports/distfiles//firmware.tar.gz v4l-cx2341x-dec.fw; cd > ../cxm_encfw; tar xzf /usr/ports/distfiles//firmware.tar.gz > v4l-cx2341x-enc.fw > ===> Building for pvrxxx-20070904 > 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 > @ -> /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/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c > 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/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm_audio.c > /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm_audio.c: > In function `cxm_msp_dpl_write': > /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm_audio.c:280: > warning: passing arg 2 of `iicbus_write' discards qualifiers from pointer > target type > *** Error code 1 this error indicates you need to "make patch-iicbb" from /usr/ports/multimedia/pvrxxx, and rebuild your kernel. i strongly regret this is still the case. i have sent in a PR to request these patches to be applied to the kernel. the PR has been noticed but is not acted upon due to "plans". this is slowing down development and adoption, just like the lack of tuner support ( which i hope to have solved with the inclusion of the linux-tuner module ). so: cd /usr/ports/multimedia/pvrxxx make patch-iicbb cd /usr/src make buildkernel make installkernel reboot cd /usr/ports/multimedia/pvrxxx make make install etc.... regards, usleep