From owner-freebsd-multimedia@FreeBSD.ORG Thu Apr 13 14:43:07 2006 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F34BB16A402 for ; Thu, 13 Apr 2006 14:43:06 +0000 (UTC) (envelope-from joe@netmusician.org) Received: from netmusician.org (netmusician.org [209.67.223.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9242943D46 for ; Thu, 13 Apr 2006 14:43:06 +0000 (GMT) (envelope-from joe@netmusician.org) Received: from localhost (localhost [127.0.0.1]) by netmusician.org (Postfix) with ESMTP id 34A7E73099; Thu, 13 Apr 2006 10:43:06 -0400 (EDT) Received: from netmusician.org ([127.0.0.1]) by localhost (netmusician.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04585-03; Thu, 13 Apr 2006 10:43:05 -0400 (EDT) Received: from [156.56.14.132] (156-56-14-132.dhcp-bl.indiana.edu [156.56.14.132]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by netmusician.org (Postfix) with ESMTP id 51335730A0; Thu, 13 Apr 2006 10:43:05 -0400 (EDT) In-Reply-To: <443E606D.3070206@nc.rr.com> References: <05A2D928-BC96-4BE5-8884-B931D8279A5D@netmusician.org> <443E5B87.6000209@nc.rr.com> <3651369F-75B1-43E0-A23F-9FC218C0BA20@netmusician.org> <443E606D.3070206@nc.rr.com> Mime-Version: 1.0 (Apple Message framework v749.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1F24E4CD-709B-4BF1-8475-9152060593CE@netmusician.org> Content-Transfer-Encoding: 7bit From: Joe Auty Date: Thu, 13 Apr 2006 10:43:07 -0400 To: Erin E Conn X-Mailer: Apple Mail (2.749.3) X-Virus-Scanned: by amavisd-new at netmusician.org Cc: freebsd-multimedia@freebsd.org Subject: Re: problem attaching PVR250, error message in log 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: Thu, 13 Apr 2006 14:43:07 -0000 Okay, here is what I did... cd /usr/ports/multimedia/pvr250 sudo make deinstall sudo make clean sudo make edited work/dev/cxm/cxm_eeprom.c and added the lines: case 0x63: tuner_type = CXM_TUNER_TCL_2002N_5H; break; right before: case 0x55: /* TCL 2002N-6A */ tuner_type = CXM_TUNER_TCL_2002N_6A; break; sudo make patch-iicbb (I'm assuming this is what you meant, make patch on its own does nothing) sudo make install kldload the kernel... Still the same error message.... Did I miss something? On Apr 13, 2006, at 10:30 AM, Erin E Conn wrote: > Joe Auty wrote: >> On Apr 13, 2006, at 10:09 AM, Erin E Conn wrote: >>> Joe Auty wrote: >>> >>>> Apr 12 21:18:58 xanthippe kernel: cxm0: >>> Coder> mem 0xe0000000-0xe3ffffff irq 11 at device 9.0 on p\ci0 >>>> Apr 12 21:18:58 xanthippe kernel: cxm_iic0: >>> iTVC16 I2C controller> on cxm0 >>>> Apr 12 21:18:58 xanthippe kernel: iicbb0: >>> driver> on cxm_iic0 >>>> Apr 12 21:18:58 xanthippe kernel: iicbus0: on >>>> iicbb0 master-only >>>> Apr 12 21:18:58 xanthippe kernel: cxm0: unknown tuner code 0x63 >>>> Apr 12 21:18:58 xanthippe kernel: cxm0: could not initialize tuner >>>> Apr 12 21:18:58 xanthippe kernel: iicbus0: detached >>>> Apr 12 21:18:58 xanthippe kernel: iicbb0: detached >>>> Apr 12 21:18:58 xanthippe kernel: cxm_iic0: detached >>>> Apr 12 21:18:58 xanthippe kernel: device_attach: cxm0 attach >>>> returned 6 >>> >>> I got the same error; the problem is that the tuner on your card >>> is currently unsupported by the pvr250 driver. I was able to use >>> a workaround to get the card to load, but I have not tried >>> switching channels with it as I'm using an external tuner (cable >>> box) and s-video so I don't know if the workaround will give you >>> full functionality. >>> >>> Workaround: >>> 1) Edit work/dev/cxm/cxm_eeprom.c. According to ivtv-sources, >>> tuner code 0x63 is a TUNER_TCL_2002N, "TCL 2002N 5H". The >>> closest supported code is 0x55, so you will need to add the line >>> "case 0x63:" in the "switch (tuner_code)" statement before the >>> line "case 0x55:" >>> >>> 2) run "make patch" again. I forgot this step the first time I >>> tried the workaround which kept the card from loading. >>> >>> 3) make install >>> >>> 4) kldload cxm_iic and cxm. You should now get: >>> cxm0: mem 0xdc00000 >>> 0-0xdfffffff irq 17 at device 12.0 on pci0 >>> cxm_iic0: >> er> on cxm0 >>> iicbb0: on cxm_iic0 >>> iicbus0: on iicbb0 master-only >>> cxm0: TCL 2002N-6A tuner >>> cxm0: SAA7115 rev 1 video decoder >>> cxm0: MSP3445G-B8 audio decoder >>> cxm0: IR Remote >>> cxm0: [GIANT-LOCKED] >>> cxm0: encoder firmware version 0x2050032 >> Cool! >> So, edit that file that is a part of the pvr250 as you've >> described above, run make patch, reinstall the kernel? (is that >> necessary)? > > It's not necessary to reinstall the kernel, the patch takes care of > it.