From owner-freebsd-multimedia@FreeBSD.ORG Sat Apr 7 08:31:44 2007 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 A84D916A401 for ; Sat, 7 Apr 2007 08:31:44 +0000 (UTC) (envelope-from sean.west@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by mx1.freebsd.org (Postfix) with ESMTP id 5FA8413C465 for ; Sat, 7 Apr 2007 08:31:44 +0000 (UTC) (envelope-from sean.west@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so570742pyh for ; Sat, 07 Apr 2007 01:31:43 -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=eKOPtLyvTrEHD/dehjQatk5VpY/k+fCQuDOuV8z0NcJuQXELXrPeMqC+An5nDu0aqft2ABKo3AkJPSe0zcMP5TlMdTy4RtJIY9Wl6M+Pcxtodx/p1+8tDW6u+ezv+zzMHDvH+T+9NuBjOzLq4lSxqOIsYU6mC2MfnfjJb92qST0= 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=nTCHa35T0UR+uAUt+o77rMWvZWzP9Q98PzfQV0TFQ8kAE4qJ12GkRlmjlylrBy8aOacTGNCjJRBpMndADDQYz91WVDYTvgPpqhtGibneNTiXZIUxVqe6clNuWKZaRHf/tbg3d3iV2ILfPF7Aa+NKwQApF9lw1XdVgxx04tQe39M= Received: by 10.114.137.2 with SMTP id k2mr1547446wad.1175934700862; Sat, 07 Apr 2007 01:31:40 -0700 (PDT) Received: by 10.114.121.4 with HTTP; Sat, 7 Apr 2007 01:31:40 -0700 (PDT) Message-ID: <50feecaf0704070131h605eada4r22a24c4646967c7a@mail.gmail.com> Date: Sat, 7 Apr 2007 01:31:40 -0700 From: "Sean West" 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: <50feecaf0703250944r2a373b13waad923d872701b93@mail.gmail.com> <50feecaf0703302017r7e3ae52dg12539d78d8b2bdf2@mail.gmail.com> <50feecaf0704041643wb071f8bj8727d62d3f436bc5@mail.gmail.com> <50feecaf0704050636g2d231c82sbe7d82c1351bee8d@mail.gmail.com> <50feecaf0704051757p6e474610m942f0ef198ded28a@mail.gmail.com> <50feecaf0704061158p5e11a041vf506955642f28adb@mail.gmail.com> Cc: freebsd-multimedia@freebsd.org Subject: Re: FreeBSD 5.5, PVR500, MythTV svn 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: Sat, 07 Apr 2007 08:31:44 -0000 Hmmm.. Well I've done some more testing and it seems my computer is still rebooting randomly. Maybe I'm not tuning the tuner correctly? I'm using: pvr250-setchannel -m 2 5 I noticed if i add the -a on option, then read from cxm0, I get "cxm0: missing encoder EOS" in /var/log/debug.log and no output. I have to unload the cxm driver and reload it to get cxm0 to work again. The -t option seems to work fine. If I read from both cxm0 and cxm1 at the same time, the reboot seems to come alot sooner, and debug.log has alot of the "encoder dma" error messages: Apr 6 23:37:15 unf kernel: cxm1: encoder dma not enough buffer space free Apr 6 23:37:15 unf kernel: cxm1: encoder dma not already in progress Apr 6 23:37:15 unf kernel: cxm0: encoder dma not enough buffer space free Apr 6 23:37:15 unf kernel: cxm0: encoder dma not already in progress If I read from just cxm{0,1}, I get a few "encoder dma" error messages. Most of the time, they just appear when the read is starting and ending. I had mythtv working so well for an hour or two!! *sighs* Sean On 4/6/07, usleepless@gmail.com wrote: > Sean, > > On 4/6/07, Sean West wrote: > > On 4/6/07, usleepless@gmail.com wrote: > > > Sean, > > > > > > On 4/6/07, Sean West wrote: > > > > On 4/5/07, Sean West wrote: > > > > > On 4/5/07, usleepless@gmail.com wrote: > > > > > > Sean, > > > > > > > > > > > > On 4/5/07, Sean West wrote: > > > > > > > On 4/4/07, usleepless@gmail.com wrote: > > > > > > > > Sean, > > > > > > > > > > > > > > > > On 3/31/07, Sean West wrote: > > > > > > > > > second(radio) tuner 101 > > > > > > > > > tuner code 92 > > > > > > > > > tuner_type = 20 > > > > > > > > > cxm0: TCL 2002N-6A tuner > > > > > > > > > cxm0: Eeprom NTSC > > > > > > > > > cxm0: [GIANT-LOCKED] > > > > > > > > > WARNING: Device driver " > > > > > > > > > > > > > > > > > > Fatal trap 12: page fault while in kernel mode > > > > > > > > > fault virtual address = 0x400000 > > > > > > > > > fault code = supervisor read, page not present > > > > > > > > > instruction pointer = 0x20:0xc070dda4 > > > > > > > > > stack pointer = 0x28:e7f659f0 > > > > > > > > > frame pointer = 0x28:e7f659f0 > > > > > > > > > code segment = base 0x0, limit 0xfffff, type 0x1b > > > > > > > > > = DPL 0, pres 1, def32 1, gran 1 > > > > > > > > > processor eflags = interrupt enabled, resume, IOPL=0 > > > > > > > > > current process = 948 (kldload) > > > > > > > > > trap number = 12 > > > > > > > > > panic: page fault > > > > > > > > > > > > > > > > i hope you are still interested in a possible solution to your > > > > problem. > > > > > > > > > > > > > > Yes!! > > > > > > > > > > > > > > > > > > > > > > > i have uploaded my latest pvrxxx-version to: > > > > > > > > http://usleepless.110mb.com/pvrxxx_port-01042007.tgz > > > > > > > > > > > > > > > > untar in /usr/ports/multimedia and give it a go. let me know > > about > > > > > > > > results ( and include logs if appropiate ) > > > > > > > > > > > > > > => cxm-20051030.shar doesn't seem to exist in > > /usr/ports/distfiles/. > > > > > > > => Attempting to fetch from http://usleepless.110mb.com/. > > > > > > > fetch: http://usleepless.110mb.com/cxm-20051030.shar: Moved > > > > Temporarily > > > > > > > => Attempting to fetch from > > http://dl.ivtvdriver.org/ivtv/firmware/. > > > > > > > fetch: http://dl.ivtvdriver.org/ivtv/firmware/cxm-20051030.shar: > > Not > > > > Found > > > > > > > => Attempting to fetch from > > > > ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/. > > > > > > > fetch: > > > > ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/cxm-20051030.shar: > > > > > > > File unavailable (e.g., file not found, no access) > > > > > > > => Couldn't fetch it - please try to retrieve this > > > > > > > => port manually into /usr/ports/distfiles/ and try again. > > > > > > > > > > > > > > Hmmm, did you forget to upload that file? =P > > > > > > > > > > > > please re-download the port-archive: > > > > > > http://usleepless.110mb.com/pvrxxx_port-01042007.tgz > > > > > > > > > > Okay... > > > > > > > > > > You forgot to update the distinfo, so I updated the cxm* files to: > > > > > > > > > > MD5 (cxm-20051030.shar.gz) = 0d3a61fb42bbd0fa301542ea57662d28 > > > > > SHA256 (cxm-20051030.shar.gz) = > > > > f933d72dc4d87d07afd2aa8dfb1158ca56272f0a5e9deb6$ > > > > > SIZE (cxm-20051030.shar.gz) = 35962 > > > > > > > > > > I did a make again, which successfully grabbed the file and started > > > > > the build, it stopped at: > > > > > > > > > > cc -O2 -fno-strict-aliasing -pipe -I../../.. -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 > > > > > > > /home/sean/downloads/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c > > > > > In file included from ./v4l2_ioctl_hook.h:8, > > > > > from > > > > > > > > > > > /home/sean/downloads/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:90: > > > > > ./cx25840.h:107: error: redefinition of `struct firmware' > > > > > > > > > > I would look into this further, but I should be at work already =P > > > > > > > > > > Thanks! > > > > > Sean > > > > > > > > > > > > > > > > > Haha.. Ignore that post. The problem was that I had the FreeBSD > > > > sources in an other directory than /usr/src (I have no idea why I did > > > > that, its fixed now though). > > > > > > > > The new port compiled, installed and loaded flawlessly. It even > > > > detected my tuner without any changes. All was good, until I tried > > > > reading from cxm0 (cat /dev/cxm0 > /home/sean/test), my computer > > > > rebooted after a few seconds again. Same thing that was happening on > > > > FreeBSD 5.4. I watched ttyv0 for any messages before the reboot, but > > > > there was nothing. Any ideas??? > > > > > > > > Sean > > > > > > i just pluggen in a pvr500 in my 6.2 machine, and can't reproduce the > > problem. > > > > > > what command do you use to tune to a channel? do you tune by channel > > > or by frequency? > > > > I actually hadn't tuned to a channel. Another stupid mistake. > > > > Anyways, I have mplayer -cache 4000 /dev/cxm0 running now... It seems > > to be fine! I'll leave it running for an hour or so to make sure its > > all working. > > > > Thanks for helping me out! You've done some great work. =] If you want > > me to do any more testing in the future, I'm up for it. > > great! > > ofcourse panic'ing when not tuned properly is still considered a bug.... > > regards, > > usleep >