From owner-freebsd-multimedia@FreeBSD.ORG Sun Mar 21 06:17:04 2004 Return-Path: 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 0D36616A4CE for ; Sun, 21 Mar 2004 06:17:04 -0800 (PST) Received: from mail1.navab.net (mail1.navab.net [80.84.32.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFD0343D2F for ; Sun, 21 Mar 2004 06:17:02 -0800 (PST) (envelope-from u431839553@navab.net) Received: from navab.net (xDSL-42-42.citynetnassjo.se [80.84.42.42]) by mail1.navab.net (8.11.6/8.11.6) with ESMTP id i2LEH1B30302 for ; Sun, 21 Mar 2004 15:17:01 +0100 Message-ID: <405DA3E1.2070805@navab.net> Date: Sun, 21 Mar 2004 15:17:05 +0100 From: u431839553@navab.net User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040320 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-multimedia@freebsd.org References: <200403210528.i2L5SOv13936@jwlab.FEITH.COM> In-Reply-To: <200403210528.i2L5SOv13936@jwlab.FEITH.COM> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2004 14:17:04 -0000 FreeBSD 5.2-RELEASE #0: Sun Jan 11 04:21:45 GMT 2004 root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC Followed the steps, the patch rejected: iicbb.c.rej: *************** *** 340,344 **** } DRIVER_MODULE(iicbb, bti2c, iicbb_driver, iicbb_devclass, 0, 0); DRIVER_MODULE(iicbb, lpbb, iicbb_driver, iicbb_devclass, 0, 0); DRIVER_MODULE(iicbb, viapm, iicbb_driver, iicbb_devclass, 0, 0); --- 361,366 ---- } DRIVER_MODULE(iicbb, bti2c, iicbb_driver, iicbb_devclass, 0, 0); + DRIVER_MODULE(iicbb, cxm_iic, iicbb_driver, iicbb_devclass, 0, 0); DRIVER_MODULE(iicbb, lpbb, iicbb_driver, iicbb_devclass, 0, 0); DRIVER_MODULE(iicbb, viapm, iicbb_driver, iicbb_devclass, 0, 0); I replaced the three DRIVER_MODULE lines in iicbb.c with the four DRIVER_MODULE lines from iicbb.c.rej, did the cxm_extract_fm stuff, rebuilt the kernel etc. When I load the modules, I get: cxm0: mem 0xc8000000-0xcbffffff irq 21 at device 11.0 on pci3 cxm_iic0: on cxm0 iicbb0: on cxm_iic0 iicbus0: on iicbb0 master-only cxm0: LG Innotek TPI8PSB11D tuner cxm0: SAA7115 rev 1 video decoder cxm0: MSP3415G-B8 audio decoder cxm0: IR Remote cxm0: encoder firmware version 0x2040011 No decoder firmware version. When I try cat /dev/cxm0 > file.mpg I get "cat: /dev/cxm0: Device not configured" and dmesg says "cxm0: video decoder isn't locked". From my Linux box: tvee: Hauppauge: model=32034, rev=B148, serial#=6914446 tvee: tuner=LG TP18PSB11D (idx=48, type=29) tvee: tuner fmt=PAL(B/G) (eeprom=0x04, v4l2=0x00000007) tvee: audio_processor=MSP3415 (type=6) >[ This is the Mar 20, 2004 snapshot of my source tree. Included are > changes to support some more ioctls and various PAL tuners. ] > >To use the Hauppauge PVR-250 / 350 on FreeBSD 4.9 / 5.2: > > 1) Use patch to apply Patch.iicbb so cxm can use the i2c bus and > avoid a crash when unloading. > > 2) Unshar the enclosed archive into /sys. > > 3) Place a current version of hcwpvrp2.sys from the > Hauppauge drivers into /sys/dev/cxm. Extract the > the firmware by: > > # cd /sys/dev/cxm > # cc -o cxm_extract_fw cxm_extract_fw.c > # ./cxm_extract_fw hcwpvrp2.sys > > 4) Rebuilt your kernel with: > > device iicbus > device iicbb > > as part of the configuration. > > 5) Install the new kernel and reboot. > > 6) Make and install the cxm driver by: > > # cd /sys/modules/cxm > # make > # cp cxm/cxm.ko cxm_iic/cxm_iic.ko /modules > # kldload cxm_iic > # kldload cxm > > At which point your console should say something like: > > cxm0: mem 0xd8000000-0xdbffffff irq 12 > at device 10 .0 on pci0 > cxm_iic0: on cxm0 > iicbb0: on cxm_iic0 > cxm0: Philips FI1236 MK2 tuner > cxm0: SAA7115 rev 1 video decoder > cxm0: MSP3435G-B6 audio decoder > cxm0: IR Remote > cxm0: encoder firmware version 0x2040011 > cxm0: decoder firmware version 0x2020023 >