Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Apr 2007 00:57:05 +0200
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?
Message-ID:  <c39ec84c0704101557l4dfb894aq8e22c9138a9ec5e3@mail.gmail.com>
In-Reply-To: <BAY134-F40EE35291132D3072B6D83A1580@phx.gbl>
References:  <c39ec84c0704090854n593ccef9ob576e716ced1959b@mail.gmail.com> <BAY134-F40EE35291132D3072B6D83A1580@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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