Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Apr 2012 16:53:24 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        Matthias Apitz <guru@unixarea.de>
Cc:        Bruce Cran <bruce@cran.org.uk>, freebsd-usb@freebsd.org
Subject:   Re: dfu-util 0.5
Message-ID:  <201204171653.24802.hselasky@c2i.net>
In-Reply-To: <20120417140737.GA1223@tiny>
References:  <20120417100147.GA2557@tiny> <201204171540.24558.hselasky@c2i.net> <20120417140737.GA1223@tiny>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204171653.24802.hselasky>