Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Apr 2007 23:02:52 +0000
From:      "Rick Nekus" <solarux@hotmail.com>
To:        usleepless@gmail.com
Cc:        freebsd-multimedia@freebsd.org, freebsd-hackers@freebsd.org
Subject:   Re: pvr-350 not working - how to debug?
Message-ID:  <BAY134-F257170B24C6D3526EC9251A1580@phx.gbl>
In-Reply-To: <c39ec84c0704101557l4dfb894aq8e22c9138a9ec5e3@mail.gmail.com>

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

yup, I was just doin' that but i didn't see it patched in .../src/... ?

[rick@tiger /usr/ports/multimedia/pvrxxx]$ sudo make patch-iicbb
echo 602105
602105
Hmm...  Looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|*** dev/iicbus/iicbb.c.ORIGINAL        Sun Aug 24 13:49:13 2003
|--- dev/iicbus/iicbb.c Fri Jul  1 15:55:21 2005
--------------------------
Patching file dev/iicbus/iicbb.c using Plan A...
Hunk #1 succeeded at 66.
Hunk #2 succeeded at 83.
Hunk #3 succeeded at 132.
Hunk #4 succeeded at 404 with fuzz 1.
Hmm...  The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|*** dev/iicbus/iicbus_if.m.ORIGINAL    Wed Apr 13 14:25:01 2005
|--- dev/iicbus/iicbus_if.m     Mon Oct 24 00:51:05 2005
--------------------------
Patching file dev/iicbus/iicbus_if.m using Plan A...
Ignoring previously applied (or reversed) patch.
Hunk #1 ignored at 91.
1 out of 1 hunks ignored--saving rejects to dev/iicbus/iicbus_if.m.rej
Hmm...  The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|*** dev/iicbus/iiconf.h.ORIGINAL       Wed Jun 16 22:51:57 2004
|--- dev/iicbus/iiconf.h        Mon Oct 24 00:43:41 2005
--------------------------
Patching file dev/iicbus/iiconf.h using Plan A...
Hunk #1 succeeded at 116 (offset 2 lines).
Hmm...  The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|*** dev/iicbus/iiconf.c.ORIGINAL       Wed Jun 16 22:51:57 2004
|--- dev/iicbus/iiconf.c        Mon Oct 24 00:47:32 2005
--------------------------
Patching file dev/iicbus/iiconf.c using Plan A...
Hunk #1 succeeded at 234.
done
*** Error code 1

Stop in /usr/ports/multimedia/pvrxxx.


>From: usleepless@gmail.com
>To: "Rick Nekus" <solarux@hotmail.com>
>CC: freebsd-multimedia@freebsd.org, freebsd-hackers@freebsd.org
>Subject: Re: pvr-350 not working - how to debug?
>Date: Wed, 11 Apr 2007 00:57:05 +0200
>
>Rick, List,
>
>On 4/11/07, Rick Nekus <solarux@hotmail.com> 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

_________________________________________________________________
Don’t waste time standing in line—try shopping online. Visit Sympatico / MSN 
Shopping today! http://shopping.sympatico.msn.ca




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAY134-F257170B24C6D3526EC9251A1580>