From owner-freebsd-firewire@FreeBSD.ORG Fri Aug 19 23:59:04 2011 Return-Path: Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B72FD1065674 for ; Fri, 19 Aug 2011 23:59:04 +0000 (UTC) (envelope-from dieterbsd@engineer.com) Received: from mailout-us.gmx.com (mailout-us.gmx.com [74.208.5.67]) by mx1.freebsd.org (Postfix) with SMTP id 7DA408FC15 for ; Fri, 19 Aug 2011 23:59:04 +0000 (UTC) Received: (qmail 28966 invoked by uid 0); 19 Aug 2011 23:59:03 -0000 Received: from 67.206.187.173 by rms-us013.v300.gmx.net with HTTP Content-Type: text/plain; charset="utf-8" Date: Fri, 19 Aug 2011 23:59:01 +0000 From: "Dieter BSD" Message-ID: <20110819235902.227920@gmx.com> MIME-Version: 1.0 To: freebsd-firewire@freebsd.org X-Authenticated: #74169980 X-Flags: 0001 X-Mailer: GMX.com Web Mailer x-registered: 0 Content-Transfer-Encoding: 8bit X-GMX-UID: opErD2Yt23y0M0bkHGFoi0BudmllcoU8 Subject: fwcontrol -R is broken, need help, urgent X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Firewire support in FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2011 23:59:04 -0000 I use fwcontrol -S a lot, but almost never use -R. But suddenly I have a urgent need for -R and it is broken. FreeBSD 8.2 AMD64 port 0xa800-0xa87f mem 0xfdffe000-0xfdffe7ff irq 18 at device 6.0 on pci1 mem 0xfdeff000-0xfdefffff irq 19 at device 8.0 on pci2 Canon DV camcorder Looks like my fwcontrol is 8.0 sources compiled with 7.1 compiler since fwcontrol compiled with 8.x compiler panics kernel. (IIRC, there is a PR or 2 about this.) "fwcontrol -R foo.dv" gives: fwcontrol: detect_recv_fn: ioctl FW_SSTBUF: Bad file descriptor I tried both controllers (-u 0, -u 1), same result. I know that -R worked under 6.x with the VIA controller. (Still can't do -S with the VIA due to the cyclemaster PR.) I'm fairly sure that -R worked with the NEC under 6.x and 7.x. One change is that I moved the computer and there are now three repeaters between the controller and the camcorder. But data is obviously able to go both directions, so they shouldn't matter, right?  -S works fine with the repeaters. VIA: fwcontrol -u 0 -t crc_len: 7 generation:2 node_count:5 sid_count:5 id link gap_cnt speed delay cIRM power port0 port1 port2 ini more 00    1       5  S400     1   15W     -     P         0    0 01    0      63  S400     0    0W     C     -     P   0    0 02    0      63  S400     0    0W     C     P         1    0 03    0      63  S400     0    0W     C     P         0    0 04    1      63  S100     1    0W     -     C         0    0 NEC: fwcontrol -u 1 -t crc_len: 7 generation:117 node_count:5 sid_count:5 id link gap_cnt speed delay cIRM power port0 port1 port2 ini more 00    1      10  S400     1   -9W     P     -         1    0 01    0      10  S400     0    0W     C     -     P   0    0 02    0      10  S400     0    0W     C     P         0    0 03    0      10  S400     0    0W     C     P         0    0 04    1      63  S100     1    0W     -     C         0    0