From owner-freebsd-usb@FreeBSD.ORG Tue Apr 17 14:54:28 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 690141065674 for ; Tue, 17 Apr 2012 14:54:28 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.c2i.net [212.247.155.2]) by mx1.freebsd.org (Postfix) with ESMTP id EA4048FC08 for ; Tue, 17 Apr 2012 14:54:27 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe09.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 89451063; Tue, 17 Apr 2012 16:54:25 +0200 From: Hans Petter Selasky To: Matthias Apitz Date: Tue, 17 Apr 2012 16:53:24 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.3-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <20120417100147.GA2557@tiny> <201204171540.24558.hselasky@c2i.net> <20120417140737.GA1223@tiny> In-Reply-To: <20120417140737.GA1223@tiny> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@ =?iso-8859-1?q?d2+AyewRX=7DmAm=3BYp=0A=09=7CU=5B?=@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y> =?iso-8859-1?q?Y=7Dk1C4TfysrsUI=0A=09-=25GU9V5=5DiUZF=26nRn9mJ=27=3F=26?=>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Message-Id: <201204171653.24802.hselasky@c2i.net> Cc: Bruce Cran , freebsd-usb@freebsd.org Subject: Re: dfu-util 0.5 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2012 14:54:28 -0000 On Tuesday 17 April 2012 16:07:39 Matthias Apitz wrote: > El d=EDa Tuesday, April 17, 2012 a las 03:40:24PM +0200, Hans Petter Sela= sky=20 escribi=F3: > > > > > > Latest version is 0.5 see > > > > > > http://dfu-util.gnumonks.org/ > > > > >=20 > > > > > this is not ported to FreeBSD; I will try to get it updated or po= rt > > > > > it by my onw; > > >=20 > > > I have compiled dfu-util 0.5 directly from the sources because the po= rt > > > is version 0.1 from 2009; this went streight forward with: > > >=20 > > > $ USB_CFLAGS=3D" " USB_LIBS=3D"-lusb" ./configure > > > $ make > > >=20 > > > but the resulting dfu-util somehow does not work (while the 0.1 versi= on > > > works fine on the same FreeBSD host and the same Freerunner): > > >=20 > > > # ~/dfu-util-0.5/src/dfu-util -d 0x1d50:0x5119 -a rootfs -R -D > > > shr-image-om-gta02-20120413222611.rootfs.jffs2 dfu-util 0.5 > >=20 > > Could you provide a source-code diff? >=20 > attached; thanks >=20 Hi, After: < ret =3D libusb_reset_device(dif->dev_handle); Try to add: libusb_set_configuration(dif->dev_handle, 1); =2D-HPS