From owner-freebsd-firewire@FreeBSD.ORG Mon Aug 22 19:09:08 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 57B76106566B for ; Mon, 22 Aug 2011 19:09:08 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout1-b.corp.re1.yahoo.com (mrout1-b.corp.re1.yahoo.com [69.147.107.20]) by mx1.freebsd.org (Postfix) with ESMTP id 167A88FC0C for ; Mon, 22 Aug 2011 19:09:07 +0000 (UTC) Received: from [127.0.0.1] (rideseveral.corp.yahoo.com [10.73.160.231]) by mrout1-b.corp.re1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id p7MJ8e0t057234; Mon, 22 Aug 2011 12:08:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1314040121; bh=/gNVsHxsqjpqTDURS6fvEF2Nx+wgLs2kaGEpQHeRfW4=; h=Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date: Message-ID:Mime-Version:Content-Transfer-Encoding; b=lG617Kd4uEJWmrqRzeKbLXnbxoUDpoEjUgqPQptCk3hU3Bh7O+fWeyDYRwF8KQ2/y /USqBS5kQ2tX7vHcK7ujv7FPPKDVxfAZLNfxl9+Kv4dvOf6gyp5js8/OCZDU8vKVf7 jCNJVIiWgtDCG3/+UqqEI7BEcPPo7iLsUFkQ2SQg= From: Sean Bruno To: Kazumaro Aoki , Dieter BSD In-Reply-To: <20110821.224402.45702056.ka@flu.if0.org> References: <20110819235902.227920@gmx.com> <20110821.224402.45702056.ka@flu.if0.org> Content-Type: text/plain; charset="UTF-8" Date: Mon, 22 Aug 2011 12:08:40 -0700 Message-ID: <1314040120.2560.1.camel@hitfishpass-lx.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 (2.32.2-1.fc14) Content-Transfer-Encoding: 7bit Cc: "freebsd-firewire@freebsd.org" Subject: Re: 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: Mon, 22 Aug 2011 19:09:08 -0000 On Sun, 2011-08-21 at 06:44 -0700, Kazumaro Aoki wrote: > From: "Dieter BSD" > Subject: fwcontrol -R is broken, need help, urgent > Date: Fri, 19 Aug 2011 23:59:01 +0000 > > > "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. > > I met the same problem, and I use fwcontrol in 6R on 8R box. > Fortunately, I noticed the problem when I used 6R on a different PC, > and I made the statically linked fwcontrol binary on 6R machine, and I > kept it. > > Kazumaro > _______________________________________________ Ugh, I see one obvious problem, the device wasn't open at all when detect_recv_fn() was called. Try this patch: http://people.freebsd.org/~sbruno/fwcontrol.diff Sean