From owner-freebsd-multimedia@FreeBSD.ORG Fri Jan 1 23:18:12 2010 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 784451065679 for ; Fri, 1 Jan 2010 23:18:12 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from bgo1smout1.broadpark.no (bgo1smout1.broadpark.no [217.13.4.94]) by mx1.freebsd.org (Postfix) with ESMTP id 2232A8FC08 for ; Fri, 1 Jan 2010 23:18:11 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII Received: from bgo1sminn1.broadpark.no ([217.13.4.93]) by bgo1smout1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with ESMTP id <0KVL00823CPUL3A0@bgo1smout1.broadpark.no> for freebsd-multimedia@freebsd.org; Sat, 02 Jan 2010 00:17:54 +0100 (CET) Received: from kg-v2.kg4.no ([80.203.92.186]) by bgo1sminn1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with SMTP id <0KVL008AOCPTWD00@bgo1sminn1.broadpark.no> for freebsd-multimedia@freebsd.org; Sat, 02 Jan 2010 00:17:54 +0100 (CET) Date: Sat, 02 Jan 2010 00:17:53 +0100 From: Torfinn Ingolfsen To: freebsd-multimedia@freebsd.org Message-id: <20100102001753.090c89ad.torfinn.ingolfsen@broadpark.no> X-Mailer: Sylpheed 2.7.1 (GTK+ 2.18.5; amd64-portbld-freebsd7.2) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Subject: usleep's pvrxxx port and /boot/loader.conf - panic 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: Fri, 01 Jan 2010 23:18:12 -0000 It looks like usleep's pvrxxx port (the 09042008 version) works quite nicely with my Hauppauge PVR-500 under FreeBSD 7.2-stable: tingo@kg-fil$ uname -a FreeBSD kg-fil.kg4.no 7.2-STABLE FreeBSD 7.2-STABLE #0: Fri Jan 1 20:50:58 CET 2010 root@kg-fil.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64 from /var/log/messages: Jan 1 23:57:38 kg-fil kernel: cxm0: mem 0xe0000000-0xe3ffffff irq 18 at device 8.0 on pci2 Jan 1 23:57:38 kg-fil kernel: cxm_iic0: on cxm0 Jan 1 23:57:38 kg-fil kernel: iicbb0: on cxm_iic0 Jan 1 23:57:38 kg-fil kernel: iicbus0: on iicbb0 master-only Jan 1 23:57:38 kg-fil kernel: iicbus0: at addr 0 Jan 1 23:57:38 kg-fil kernel: iicbus0: at addr 0 Jan 1 23:57:38 kg-fil kernel: <2>tveeprom: Second (radio) tuner idx 101 Jan 1 23:57:38 kg-fil kernel: <2>tveeprom: ivtv version Jan 1 23:57:38 kg-fil kernel: <2>tveeprom: Hauppauge: model = 23559, rev = D591, serial# = 2990584 Jan 1 23:57:38 kg-fil kernel: <2>tveeprom: tuner = Philips FQ1216AME MK4 (idx = 91, type = 56) Jan 1 23:57:38 kg-fil kernel: <2>tveeprom: tuner fmt = PAL(B/G) PAL(I) SECAM(L/L') PAL(D/K) (eeprom = 0x74, v4l2 = 0x00400e17) Jan 1 23:57:38 kg-fil kernel: <2>tveeprom: audio processor = CX25843 (type = 25) Jan 1 23:57:38 kg-fil kernel: <2>tveeprom: decoder processor = CX25843 (type = 1e) Jan 1 23:57:38 kg-fil kernel: tuner type: 56 Jan 1 23:57:38 kg-fil kernel: cxm0: Eeprom PAL Jan 1 23:57:38 kg-fil kernel: tuner: type set to 56 (Philips PAL/SECAM multi (FQ1216AME MK4)) by cxm Jan 1 23:57:38 kg-fil kernel: tuner: switching to v4l2 Jan 1 23:57:38 kg-fil kernel: before tuner_command! Jan 1 23:57:38 kg-fil kernel: tuner: tv freq set to 55.25 Jan 1 23:57:38 kg-fil kernel: tuner: tv 0x05 0xe3 0xce 0x01 Jan 1 23:57:48 kg-fil kernel: <2>cxm 0-0000: Video signal: not present Jan 1 23:57:48 kg-fil kernel: <2>cxm 0-0000: Detected format: NTSC-M Jan 1 23:57:48 kg-fil kernel: <2>cxm 0-0000: Detected audio mode: forced mode Jan 1 23:57:48 kg-fil kernel: <2>cxm 0-0000: Detected audio standard: forced audio standard Jan 1 23:57:48 kg-fil kernel: <2>cxm 0-0000: Audio muted: yes Jan 1 23:57:48 kg-fil kernel: <2>cxm 0-0000: Audio microcontroller: running Jan 1 23:57:48 kg-fil kernel: <2>cxm 0-0000: Configured audio standard: A2-BG Jan 1 23:57:48 kg-fil kernel: <2>cxm 0-0000: Configured audio mode: undefined Jan 1 23:57:48 kg-fil kernel: <2>cxm 0-0000: Specified standard: PAL-BDGHI Jan 1 23:57:48 kg-fil kernel: <2>cxm 0-0000: Specified input: Tuner Jan 1 23:57:48 kg-fil kernel: <2>cxm 0-0000: Specified audio input: Tuner Jan 1 23:57:48 kg-fil kernel: <2>cxm 0-0000: Specified audioclock freq: 48 kHz Jan 1 23:57:48 kg-fil kernel: <2>cxm 0-0000: Preferred audio mode: stereo Jan 1 23:57:48 kg-fil kernel: <2>cxm 0-0000: Selected 65 MHz format: autodetect Jan 1 23:57:48 kg-fil kernel: <2>cxm 0-0000: Selected 45 MHz format: chroma Jan 1 23:57:48 kg-fil kernel: cxm0: [ITHREAD] Jan 1 23:57:50 kg-fil kernel: cxm0: encoder firmware version 0x2060039 Jan 1 23:57:50 kg-fil kernel: cxm1: mem 0xe4000000-0xe7ffffff irq 19 at device 9.0 on pci2 Jan 1 23:57:50 kg-fil kernel: cxm_iic1: on cxm1 Jan 1 23:57:50 kg-fil kernel: iicbb1: on cxm_iic1 Jan 1 23:57:50 kg-fil kernel: iicbus1: on iicbb1 master-only Jan 1 23:57:50 kg-fil kernel: iicbus1: at addr 0 Jan 1 23:57:50 kg-fil kernel: iicbus1: at addr 0 Jan 1 23:57:50 kg-fil kernel: <2>tveeprom: Second (radio) tuner idx 101 Jan 1 23:57:50 kg-fil kernel: <2>tveeprom: ivtv version Jan 1 23:57:50 kg-fil kernel: <2>tveeprom: Hauppauge: model = 23559, rev = D591, serial# = 2990584 Jan 1 23:57:50 kg-fil kernel: <2>tveeprom: tuner = Philips FQ1216AME MK4 (idx = 91, type = 56) Jan 1 23:57:50 kg-fil kernel: <2>tveeprom: tuner fmt = PAL(B/G) PAL(I) SECAM(L/L') PAL(D/K) (eeprom = 0x74, v4l2 = 0x00400e17) Jan 1 23:57:50 kg-fil kernel: <2>tveeprom: audio processor = CX25843 (type = 25) Jan 1 23:57:50 kg-fil kernel: <2>tveeprom: decoder processor = CX25843 (type = 1e) Jan 1 23:57:50 kg-fil kernel: tuner type: 56 Jan 1 23:57:50 kg-fil kernel: cxm1: Eeprom PAL Jan 1 23:57:50 kg-fil kernel: tuner: type set to 56 (Philips PAL/SECAM multi (FQ1216AME MK4)) by cxm Jan 1 23:57:50 kg-fil kernel: tuner: switching to v4l2 Jan 1 23:57:50 kg-fil kernel: before tuner_command! Jan 1 23:57:50 kg-fil kernel: tuner: tv freq set to 55.25 Jan 1 23:57:50 kg-fil kernel: tuner: tv 0x05 0xe3 0xce 0x01 Jan 1 23:58:03 kg-fil kernel: <2>cxm 0-0000: Video signal: not present Jan 1 23:58:03 kg-fil kernel: <2>cxm 0-0000: Detected format: NTSC-M Jan 1 23:58:03 kg-fil kernel: <2>cxm 0-0000: Detected audio mode: forced mode Jan 1 23:58:03 kg-fil kernel: <2>cxm 0-0000: Detected audio standard: forced audio standard Jan 1 23:58:03 kg-fil kernel: <2>cxm 0-0000: Audio muted: yes Jan 1 23:58:03 kg-fil kernel: <2>cxm 0-0000: Audio microcontroller: running Jan 1 23:58:03 kg-fil kernel: <2>cxm 0-0000: Configured audio standard: A2-BG Jan 1 23:58:03 kg-fil kernel: <2>cxm 0-0000: Configured audio mode: undefined Jan 1 23:58:03 kg-fil kernel: <2>cxm 0-0000: Specified standard: PAL-BDGHI Jan 1 23:58:03 kg-fil kernel: <2>cxm 0-0000: Specified input: Tuner Jan 1 23:58:03 kg-fil kernel: <2>cxm 0-0000: Specified audio input: Tuner Jan 1 23:58:03 kg-fil kernel: <2>cxm 0-0000: Specified audioclock freq: 48 kHz Jan 1 23:58:03 kg-fil kernel: <2>cxm 0-0000: Preferred audio mode: stereo Jan 1 23:58:03 kg-fil kernel: <2>cxm 0-0000: Selected 65 MHz format: autodetect Jan 1 23:58:03 kg-fil kernel: <2>cxm 0-0000: Selected 45 MHz format: chroma Jan 1 23:58:03 kg-fil kernel: cxm1: [ITHREAD] Jan 1 23:58:03 kg-fil kernel: cxm1: encoder firmware version 0x2060039 (Note: I haven't actually tested it with mplayer etc yet, that is why I say that it "looks" like it works. But it will work). But ther is one slight problem: if I try to load the cxm_iic and cxm modules in /boot/loader.conf, the machine panics during boot. If I load the modules manually after boot, everything is fine. Is there some other place that I can load these modules autmatically, after the machine has booted? A startup script or something like it? -- Regards, Torfinn Ingolfsen From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 2 07:38:18 2010 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D778106566C for ; Sat, 2 Jan 2010 07:38:18 +0000 (UTC) (envelope-from henry.hu.sh@gmail.com) Received: from mail-qy0-f176.google.com (mail-qy0-f176.google.com [209.85.221.176]) by mx1.freebsd.org (Postfix) with ESMTP id E89168FC0A for ; Sat, 2 Jan 2010 07:38:17 +0000 (UTC) Received: by qyk6 with SMTP id 6so5881163qyk.3 for ; Fri, 01 Jan 2010 23:38:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=uGCHa9cLY2Iw9CJrjQ8GXMdcFbJCWHoUHNtHxU1x5pQ=; b=T3caD+vIylyDKUQG0yPP6jvRvDHb/JlykhVS+YgWDbMqqLb8GEUZT+7Wf0LiLezRCF lHzrwCp+SHc/6B0xmqKv/Gnhe8UJdI5eXfU6B2CnVKVIey5kAYIKxf7o4JbrNmkQnJr/ eSZXArqJkKhPdgdRIq92kqWcXm1cdk+arCErk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=RFjxMhqMQ+4wchmdyfhj2p7fCm6GQlvAiw3weS24S3eOkPezsob42sYx/rxneTVBWE xm2AhbnxmgA2x8xjgUT6LCl8b4vzIHAiky6v1Kr6JHouUwHHqcWVOEmDcXyOJm7INIPC wjH1d8T1fNI738F9yALT0d0zxJORVezHOf1WE= MIME-Version: 1.0 Received: by 10.229.118.6 with SMTP id t6mr665838qcq.39.1262417891173; Fri, 01 Jan 2010 23:38:11 -0800 (PST) In-Reply-To: <20100102001753.090c89ad.torfinn.ingolfsen@broadpark.no> References: <20100102001753.090c89ad.torfinn.ingolfsen@broadpark.no> Date: Sat, 2 Jan 2010 15:38:11 +0800 Message-ID: <53a1e0711001012338v4ba68961o4a1d26a40abce396@mail.gmail.com> From: Henry Hu To: Torfinn Ingolfsen Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-multimedia@freebsd.org Subject: Re: usleep's pvrxxx port and /boot/loader.conf - panic 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, 02 Jan 2010 07:38:18 -0000 On Sat, Jan 2, 2010 at 7:17 AM, Torfinn Ingolfsen wrote: > It looks like usleep's pvrxxx port (the 09042008 version) works quite > nicely with my Hauppauge PVR-500 under FreeBSD 7.2-stable: > tingo@kg-fil$ uname -a > FreeBSD kg-fil.kg4.no 7.2-STABLE FreeBSD 7.2-STABLE #0: Fri Jan =A01 20:5= 0:58 CET 2010 =A0 =A0 root@kg-fil.kg4.no:/usr/obj/usr/src/sys/GENERIC =A0am= d64 > > from /var/log/messages: > Jan =A01 23:57:38 kg-fil kernel: cxm0: mem 0= xe0000000-0xe3ffffff irq 18 at device 8.0 on pci2 > Jan =A01 23:57:38 kg-fil kernel: cxm_iic0: on cxm0 > Jan =A01 23:57:38 kg-fil kernel: iicbb0: on cxm_= iic0 > Jan =A01 23:57:38 kg-fil kernel: iicbus0: on iicbb0 mas= ter-only > Jan =A01 23:57:38 kg-fil kernel: iicbus0: at addr 0 > Jan =A01 23:57:38 kg-fil kernel: iicbus0: at addr 0 > Jan =A01 23:57:38 kg-fil kernel: <2>tveeprom: Second (radio) tuner idx 10= 1 > Jan =A01 23:57:38 kg-fil kernel: <2>tveeprom: ivtv version > Jan =A01 23:57:38 kg-fil kernel: <2>tveeprom: Hauppauge: model =3D 23559,= rev =3D D591, serial# =3D 2990584 > Jan =A01 23:57:38 kg-fil kernel: <2>tveeprom: tuner =3D Philips FQ1216AME= MK4 (idx =3D 91, type =3D 56) > Jan =A01 23:57:38 kg-fil kernel: <2>tveeprom: tuner fmt =3D PAL(B/G) PAL(= I) SECAM(L/L') PAL(D/K) (eeprom =3D 0x74, v4l2 =3D 0x00400e17) > Jan =A01 23:57:38 kg-fil kernel: <2>tveeprom: audio processor =3D CX25843= (type =3D 25) > Jan =A01 23:57:38 kg-fil kernel: <2>tveeprom: decoder processor =3D CX258= 43 (type =3D 1e) > Jan =A01 23:57:38 kg-fil kernel: tuner type: 56 > Jan =A01 23:57:38 kg-fil kernel: cxm0: Eeprom PAL > Jan =A01 23:57:38 kg-fil kernel: tuner: type set to 56 (Philips PAL/SECAM= multi (FQ1216AME MK4)) by cxm > Jan =A01 23:57:38 kg-fil kernel: tuner: switching to v4l2 > Jan =A01 23:57:38 kg-fil kernel: before tuner_command! > Jan =A01 23:57:38 kg-fil kernel: tuner: tv freq set to 55.25 > Jan =A01 23:57:38 kg-fil kernel: tuner: tv 0x05 0xe3 0xce 0x01 > Jan =A01 23:57:48 kg-fil kernel: <2>cxm 0-0000: Video signal: =A0 =A0 =A0= =A0 =A0 =A0 =A0not present > Jan =A01 23:57:48 kg-fil kernel: <2>cxm 0-0000: Detected format: =A0 =A0 = =A0 =A0 =A0 NTSC-M > Jan =A01 23:57:48 kg-fil kernel: <2>cxm 0-0000: Detected audio mode: =A0 = =A0 =A0 forced mode > Jan =A01 23:57:48 kg-fil kernel: <2>cxm 0-0000: Detected audio standard: = =A0 forced audio standard > Jan =A01 23:57:48 kg-fil kernel: <2>cxm 0-0000: Audio muted: =A0 =A0 =A0 = =A0 =A0 =A0 =A0 yes > Jan =A01 23:57:48 kg-fil kernel: <2>cxm 0-0000: Audio microcontroller: = =A0 =A0 running > Jan =A01 23:57:48 kg-fil kernel: <2>cxm 0-0000: Configured audio standard= : A2-BG > Jan =A01 23:57:48 kg-fil kernel: <2>cxm 0-0000: Configured audio mode: = =A0 =A0 undefined > Jan =A01 23:57:48 kg-fil kernel: <2>cxm 0-0000: Specified standard: =A0 = =A0 =A0 =A0PAL-BDGHI > Jan =A01 23:57:48 kg-fil kernel: <2>cxm 0-0000: Specified input: =A0 =A0 = =A0 =A0 =A0 Tuner > Jan =A01 23:57:48 kg-fil kernel: <2>cxm 0-0000: Specified audio input: = =A0 =A0 Tuner > Jan =A01 23:57:48 kg-fil kernel: <2>cxm 0-0000: Specified audioclock freq= : 48 kHz > Jan =A01 23:57:48 kg-fil kernel: <2>cxm 0-0000: Preferred audio mode: =A0= =A0 =A0stereo > Jan =A01 23:57:48 kg-fil kernel: <2>cxm 0-0000: Selected 65 MHz format: = =A0 =A0autodetect > Jan =A01 23:57:48 kg-fil kernel: <2>cxm 0-0000: Selected 45 MHz format: = =A0 =A0chroma > Jan =A01 23:57:48 kg-fil kernel: cxm0: [ITHREAD] > Jan =A01 23:57:50 kg-fil kernel: cxm0: encoder firmware version 0x2060039 > Jan =A01 23:57:50 kg-fil kernel: cxm1: mem 0= xe4000000-0xe7ffffff irq 19 at device 9.0 on pci2 > Jan =A01 23:57:50 kg-fil kernel: cxm_iic1: on cxm1 > Jan =A01 23:57:50 kg-fil kernel: iicbb1: on cxm_= iic1 > Jan =A01 23:57:50 kg-fil kernel: iicbus1: on iicbb1 mas= ter-only > Jan =A01 23:57:50 kg-fil kernel: iicbus1: at addr 0 > Jan =A01 23:57:50 kg-fil kernel: iicbus1: at addr 0 > Jan =A01 23:57:50 kg-fil kernel: <2>tveeprom: Second (radio) tuner idx 10= 1 > Jan =A01 23:57:50 kg-fil kernel: <2>tveeprom: ivtv version > Jan =A01 23:57:50 kg-fil kernel: <2>tveeprom: Hauppauge: model =3D 23559,= rev =3D D591, serial# =3D 2990584 > Jan =A01 23:57:50 kg-fil kernel: <2>tveeprom: tuner =3D Philips FQ1216AME= MK4 (idx =3D 91, type =3D 56) > Jan =A01 23:57:50 kg-fil kernel: <2>tveeprom: tuner fmt =3D PAL(B/G) PAL(= I) SECAM(L/L') PAL(D/K) (eeprom =3D 0x74, v4l2 =3D 0x00400e17) > Jan =A01 23:57:50 kg-fil kernel: <2>tveeprom: audio processor =3D CX25843= (type =3D 25) > Jan =A01 23:57:50 kg-fil kernel: <2>tveeprom: decoder processor =3D CX258= 43 (type =3D 1e) > Jan =A01 23:57:50 kg-fil kernel: tuner type: 56 > Jan =A01 23:57:50 kg-fil kernel: cxm1: Eeprom PAL > Jan =A01 23:57:50 kg-fil kernel: tuner: type set to 56 (Philips PAL/SECAM= multi (FQ1216AME MK4)) by cxm > Jan =A01 23:57:50 kg-fil kernel: tuner: switching to v4l2 > Jan =A01 23:57:50 kg-fil kernel: before tuner_command! > Jan =A01 23:57:50 kg-fil kernel: tuner: tv freq set to 55.25 > Jan =A01 23:57:50 kg-fil kernel: tuner: tv 0x05 0xe3 0xce 0x01 > Jan =A01 23:58:03 kg-fil kernel: <2>cxm 0-0000: Video signal: =A0 =A0 =A0= =A0 =A0 =A0 =A0not present > Jan =A01 23:58:03 kg-fil kernel: <2>cxm 0-0000: Detected format: =A0 =A0 = =A0 =A0 =A0 NTSC-M > Jan =A01 23:58:03 kg-fil kernel: <2>cxm 0-0000: Detected audio mode: =A0 = =A0 =A0 forced mode > Jan =A01 23:58:03 kg-fil kernel: <2>cxm 0-0000: Detected audio standard: = =A0 forced audio standard > Jan =A01 23:58:03 kg-fil kernel: <2>cxm 0-0000: Audio muted: =A0 =A0 =A0 = =A0 =A0 =A0 =A0 yes > Jan =A01 23:58:03 kg-fil kernel: <2>cxm 0-0000: Audio microcontroller: = =A0 =A0 running > Jan =A01 23:58:03 kg-fil kernel: <2>cxm 0-0000: Configured audio standard= : A2-BG > Jan =A01 23:58:03 kg-fil kernel: <2>cxm 0-0000: Configured audio mode: = =A0 =A0 undefined > Jan =A01 23:58:03 kg-fil kernel: <2>cxm 0-0000: Specified standard: =A0 = =A0 =A0 =A0PAL-BDGHI > Jan =A01 23:58:03 kg-fil kernel: <2>cxm 0-0000: Specified input: =A0 =A0 = =A0 =A0 =A0 Tuner > Jan =A01 23:58:03 kg-fil kernel: <2>cxm 0-0000: Specified audio input: = =A0 =A0 Tuner > Jan =A01 23:58:03 kg-fil kernel: <2>cxm 0-0000: Specified audioclock freq= : 48 kHz > Jan =A01 23:58:03 kg-fil kernel: <2>cxm 0-0000: Preferred audio mode: =A0= =A0 =A0stereo > Jan =A01 23:58:03 kg-fil kernel: <2>cxm 0-0000: Selected 65 MHz format: = =A0 =A0autodetect > Jan =A01 23:58:03 kg-fil kernel: <2>cxm 0-0000: Selected 45 MHz format: = =A0 =A0chroma > Jan =A01 23:58:03 kg-fil kernel: cxm1: [ITHREAD] > Jan =A01 23:58:03 kg-fil kernel: cxm1: encoder firmware version 0x2060039 > > (Note: I haven't actually tested it with mplayer etc yet, that is why I s= ay that it "looks" like it works. > But it will work). > But ther is one slight problem: if I try to load the cxm_iic and cxm modu= les in /boot/loader.conf, > the machine panics during boot. > If I load the modules manually after boot, everything is fine. > > Is there some other place that I can load these modules autmatically, aft= er the machine has booted? > A startup script or something like it? You may try /etc/rc.local > -- > Regards, > Torfinn Ingolfsen > > _______________________________________________ > freebsd-multimedia@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe@freebsd.= org" > Cheers, Henry From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 2 15:35:51 2010 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5811106568B for ; Sat, 2 Jan 2010 15:35:51 +0000 (UTC) (envelope-from george@m5p.com) Received: from mailhost.m5p.com (unknown [IPv6:2001:418:3fd::3]) by mx1.freebsd.org (Postfix) with ESMTP id 6A7D88FC1A for ; Sat, 2 Jan 2010 15:35:51 +0000 (UTC) Received: from m5p.com (backup.m5p.com [IPv6:2001:418:3fd::f3]) by mailhost.m5p.com (8.14.3/8.14.3) with ESMTP id o02FZjYX081437 for ; Sat, 2 Jan 2010 10:35:50 -0500 (EST) (envelope-from george@m5p.com) Received: (from george@localhost) by m5p.com (8.14.3/8.13.7/Submit) id o02FZdl8051879; Sat, 2 Jan 2010 10:35:39 -0500 (EST) Date: Sat, 2 Jan 2010 10:35:39 -0500 (EST) Message-Id: <201001021535.o02FZdl8051879@m5p.com> From: george+freebsd@m5p.com To: freebsd-multimedia@freebsd.org X-Spam-Score: -0.513 () AWL, BAYES_00, FH_DATE_PAST_20XX, J_CHICKENPOX_42, NO_RELAYS X-Scanned-By: MIMEDefang 2.64 on IPv6:2001:418:3fd::f7 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (mailhost.m5p.com [IPv6:2001:418:3fd::f7]); Sat, 02 Jan 2010 10:35:50 -0500 (EST) Subject: Fix fwcontrol -R 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, 02 Jan 2010 15:35:52 -0000 Between FreeBSD 7.0 and 7.1, fwcontrol -R for storing digital video from a firewire source stopped working. Last night, I got tired of running my old 7.0 binary and debugged the problem. The attached patch fixes it. The first change is a minor enhancement for convenience, so you don't have to type the command and start the video source at the same instant. The second and third changes fix the real problem. -- George Mitchell --- usr.sbin/fwcontrol/fwcontrol.c.orig 2009-04-14 23:14:26.000000000 -0400 +++ usr.sbin/fwcontrol/fwcontrol.c 2010-01-01 21:21:11.000000000 -0500 @@ -703,9 +703,18 @@ * return the total length read, not the value * of the last uiomove(). */ - len = read(fd, buf, RECV_NUM_PACKET * RECV_PACKET_SZ); - if (len < 0) - err(EX_IOERR, "%s: error reading from device", __func__); + while (1) { + len = read(fd, buf, RECV_NUM_PACKET * RECV_PACKET_SZ); + if (len < 0) { + if (errno == EAGAIN) { + fprintf(stderr, "(EAGAIN) - push 'Play'?\n"); + fflush(stderr); + continue; + } + err(EX_IOERR, "%s: error reading from device", __func__); + } + else break; + } ptr = (u_int32_t *) buf; ciph = (struct ciphdr *)(ptr + 1); @@ -912,7 +921,7 @@ if (recv_data == NULL) err(EX_SOFTWARE, "%s:recv_data malloc", __func__); strcpy(recv_data, optarg); - open_needed = false; + open_needed = true; command_set = true; display_board_only = false; break; @@ -1065,6 +1074,7 @@ if (recvfn == NULL) { /* guess... */ recvfn = detect_recv_fn(fd, TAG | CHANNEL); close(fd); + fd = -1; } snprintf(devbase, sizeof(devbase), "%s%d.0", device_string, current_board); if (open_dev(&fd, devbase) < 0)