From owner-freebsd-usb@FreeBSD.ORG  Mon Apr 16 04:14:41 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
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 216D21065673
	for <freebsd-usb@freebsd.org>; Mon, 16 Apr 2012 04:14:41 +0000 (UTC)
	(envelope-from guru@unixarea.de)
Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34])
	by mx1.freebsd.org (Postfix) with ESMTP id A9A378FC0A
	for <freebsd-usb@freebsd.org>; Mon, 16 Apr 2012 04:14:40 +0000 (UTC)
Received: from [88.217.84.206] (helo=localhost.my.domain)
	by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.69) (envelope-from <guru@unixarea.de>) id 1SJdKk-0006LK-5P
	for freebsd-usb@freebsd.org; Mon, 16 Apr 2012 06:14:34 +0200
Received: from localhost.my.domain (localhost [127.0.0.1])
	by localhost.my.domain (8.14.4/8.14.3) with ESMTP id q3G4EWo9002783
	for <freebsd-usb@freebsd.org>; Mon, 16 Apr 2012 06:14:32 +0200 (CEST)
	(envelope-from guru@unixarea.de)
Received: (from guru@localhost)
	by localhost.my.domain (8.14.4/8.14.3/Submit) id q3G4EWnu002782
	for freebsd-usb@freebsd.org; Mon, 16 Apr 2012 06:14:32 +0200 (CEST)
	(envelope-from guru@unixarea.de)
X-Authentication-Warning: localhost.my.domain: guru set sender to
	guru@unixarea.de using -f
Date: Mon, 16 Apr 2012 06:14:31 +0200
From: Matthias Apitz <guru@unixarea.de>
To: freebsd-usb@freebsd.org
Message-ID: <20120416041431.GA2604@tinyCurrent>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Operating-System: FreeBSD 9.0-CURRENT r214444 (i386)
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Con-Id: 51246
X-Con-U: 0-guru
X-Originating-IP: 88.217.84.206
Subject: USB ethernet ue0 stops working
X-BeenThere: freebsd-usb@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Matthias Apitz <guru@unixarea.de>
List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Apr 2012 04:14:41 -0000


Hello,

I have updated my Linux based cellphone from Linux 2.6.29-rc3 to 2.6.39.4;

with the old software version on same hardware TCP/IP over interface ue0
worked fine; on attach it said:

Apr 16 05:48:09 tinyCurrent kernel: ugen0.2: <Linux 2.6.29-rc3 with s3c2410udc> at usbus0
Apr 16 05:48:09 tinyCurrent kernel: cdce0: <CDC Ethernet Control Model ECM> on usbus0
Apr 16 05:48:09 tinyCurrent kernel: ue0: <USB Ethernet> on cdce0
Apr 16 05:48:09 tinyCurrent kernel: ue0: Ethernet address: 00:1f:11:01:32:3c

and a devd(8) hook script assigned th IP addr; all fine;

now, after the update to 2.6.39.4, it says:

Apr 16 05:50:17 tinyCurrent kernel: ugen0.2: <Linux 2.6.39.4 with s3c2410udc> at usbus0
Apr 16 05:50:17 tinyCurrent kernel: cdce0: <RNDIS Communications Control> on usbus0
Apr 16 05:50:17 tinyCurrent kernel: cdce0: No valid alternate setting found
Apr 16 05:50:17 tinyCurrent kernel: device_attach: cdce0 attach returned 6
Apr 16 05:50:17 tinyCurrent kernel: cdce0: <RNDIS Communications Control> on usbus0
Apr 16 05:50:17 tinyCurrent kernel: cdce0: No valid alternate setting found
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 16 05:50:17 tinyCurrent kernel: device_attach: cdce0 attach returned 6
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 16 05:50:17 tinyCurrent kernel: cdce0: <RNDIS Ethernet Data> on usbus0
Apr 16 05:50:17 tinyCurrent kernel: cdce0: faking MAC address
Apr 16 05:50:17 tinyCurrent kernel: ue0: <USB Ethernet> on cdce0
Apr 16 05:50:17 tinyCurrent kernel: ue0: Ethernet address: 2a:ac:fc:03:00:00

the devd(8) hook script is not executed,
and even doing the work it should do by hand does not bring the interface
to work:

# usbconfig -u 0 -a 2 set_config 1
# ifconfig ue0 192.168.7.1   netmask 255.255.255.0
# ifconfig ue0 ue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 2a:17:91:08:00:00
        inet 192.168.7.1 netmask 0xffffff00 broadcast 192.168.7.255
# ping 192.168.7.2
PING 192.168.7.2 (192.168.7.2): 56 data bytes
ping: sendto: Host is down
ping: sendto: Host is down

The FreeBSD kernel is r214444: Thu Oct 28 10:56:32 CEST 2010;

What is the problem and what does the marked messages mean?
Thanks

	matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <guru@unixarea.de> - w http://www.unixarea.de/
UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.5

From owner-freebsd-usb@FreeBSD.ORG  Mon Apr 16 08:54:51 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
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 2DC70106564A
	for <freebsd-usb@freebsd.org>; Mon, 16 Apr 2012 08:54:51 +0000 (UTC)
	(envelope-from guru@unixarea.de)
Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34])
	by mx1.freebsd.org (Postfix) with ESMTP id B1CE48FC12
	for <freebsd-usb@freebsd.org>; Mon, 16 Apr 2012 08:54:50 +0000 (UTC)
Received: from [89.204.130.147] (helo=tiny.Sisis.de)
	by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.69) (envelope-from <guru@unixarea.de>) id 1SJhhu-00077a-Qi
	for freebsd-usb@freebsd.org; Mon, 16 Apr 2012 10:54:47 +0200
Received: from tiny.Sisis.de (localhost [127.0.0.1])
	by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id q3G8shvJ001733
	for <freebsd-usb@freebsd.org>; Mon, 16 Apr 2012 10:54:44 +0200 (CEST)
	(envelope-from guru@unixarea.de)
Received: (from guru@localhost)
	by tiny.Sisis.de (8.14.5/8.14.3/Submit) id q3G8shCP001732
	for freebsd-usb@freebsd.org; Mon, 16 Apr 2012 10:54:43 +0200 (CEST)
	(envelope-from guru@unixarea.de)
X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de
	using -f
Date: Mon, 16 Apr 2012 10:54:43 +0200
From: Matthias Apitz <guru@unixarea.de>
To: freebsd-usb@freebsd.org
Message-ID: <20120416085441.GA1723@tiny>
References: <20120416041431.GA2604@tinyCurrent>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <20120416041431.GA2604@tinyCurrent>
X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386)
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Con-Id: 51246
X-Con-U: 0-guru
X-Originating-IP: 89.204.130.147
Subject: Re: USB ethernet ue0 stops working
X-BeenThere: freebsd-usb@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Matthias Apitz <guru@unixarea.de>
List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Apr 2012 08:54:51 -0000

El día Monday, April 16, 2012 a las 06:14:31AM +0200, Matthias Apitz escribió:

> 
> Hello,
> 
> I have updated my Linux based cellphone from Linux 2.6.29-rc3 to 2.6.39.4;
> 
> with the old software version on same hardware TCP/IP over interface ue0
> worked fine; on attach it said:
> 
> ...
> now, after the update to 2.6.39.4, it says:
> 
> Apr 16 05:50:17 tinyCurrent kernel: ugen0.2: <Linux 2.6.39.4 with s3c2410udc> at usbus0
> Apr 16 05:50:17 tinyCurrent kernel: cdce0: <RNDIS Communications Control> on usbus0
> Apr 16 05:50:17 tinyCurrent kernel: cdce0: No valid alternate setting found
> Apr 16 05:50:17 tinyCurrent kernel: device_attach: cdce0 attach returned 6
> Apr 16 05:50:17 tinyCurrent kernel: cdce0: <RNDIS Communications Control> on usbus0
> Apr 16 05:50:17 tinyCurrent kernel: cdce0: No valid alternate setting found
>                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Apr 16 05:50:17 tinyCurrent kernel: device_attach: cdce0 attach returned 6
>                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Apr 16 05:50:17 tinyCurrent kernel: cdce0: <RNDIS Ethernet Data> on usbus0
> Apr 16 05:50:17 tinyCurrent kernel: cdce0: faking MAC address
> Apr 16 05:50:17 tinyCurrent kernel: ue0: <USB Ethernet> on cdce0
> Apr 16 05:50:17 tinyCurrent kernel: ue0: Ethernet address: 2a:ac:fc:03:00:00
> 
> the devd(8) hook script is not executed,
> and even doing the work it should do by hand does not bring the interface
> to work:
> 
> # usbconfig -u 0 -a 2 set_config 1
> # ifconfig ue0 192.168.7.1   netmask 255.255.255.0
> # ifconfig ue0 ue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>         ether 2a:17:91:08:00:00
>         inet 192.168.7.1 netmask 0xffffff00 broadcast 192.168.7.255
> # ping 192.168.7.2
> PING 192.168.7.2 (192.168.7.2): 56 data bytes
> ping: sendto: Host is down
> ping: sendto: Host is down

I could resolve the problem in part; for some reason (which I have to
bring up in the SHR mailing list) the interface 'usb0' in the Linux has
no IP addr: when I do in addition in Linux

# ifconfig usb0 inet 192.168.7.2/24

I can ping and ssh into the phone fine;

the question remains: what does the above error 

Apr 16 05:50:17 tinyCurrent kernel: cdce0: No valid alternate setting found
Apr 16 05:50:17 tinyCurrent kernel: device_attach: cdce0 attach returned 6

means and why device_attach returnes 6?

Thanks

	matthias
-- 
Matthias Apitz
e <guru@unixarea.de> - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5

From owner-freebsd-usb@FreeBSD.ORG  Mon Apr 16 11:07:30 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
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 71242106564A
	for <freebsd-usb@FreeBSD.org>; Mon, 16 Apr 2012 11:07:30 +0000 (UTC)
	(envelope-from owner-bugmaster@FreeBSD.org)
Received: from freefall.freebsd.org (freefall.freebsd.org
	[IPv6:2001:4f8:fff6::28])
	by mx1.freebsd.org (Postfix) with ESMTP id 593C68FC1D
	for <freebsd-usb@FreeBSD.org>; Mon, 16 Apr 2012 11:07:30 +0000 (UTC)
Received: from freefall.freebsd.org (localhost [127.0.0.1])
	by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q3GB7UtY022557
	for <freebsd-usb@FreeBSD.org>; Mon, 16 Apr 2012 11:07:30 GMT
	(envelope-from owner-bugmaster@FreeBSD.org)
Received: (from gnats@localhost)
	by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q3GB7TCI022555
	for freebsd-usb@FreeBSD.org; Mon, 16 Apr 2012 11:07:29 GMT
	(envelope-from owner-bugmaster@FreeBSD.org)
Date: Mon, 16 Apr 2012 11:07:29 GMT
Message-Id: <201204161107.q3GB7TCI022555@freefall.freebsd.org>
X-Authentication-Warning: freefall.freebsd.org: gnats set sender to
	owner-bugmaster@FreeBSD.org using -f
From: FreeBSD bugmaster <bugmaster@FreeBSD.org>
To: freebsd-usb@FreeBSD.org
Cc: 
Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org
X-BeenThere: freebsd-usb@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Apr 2012 11:07:30 -0000

Note: to view an individual PR, use:
  http://www.freebsd.org/cgi/query-pr.cgi?pr=(number).

The following is a listing of current problems submitted by FreeBSD users.
These represent problem reports covering all versions including
experimental development code and obsolete releases.


S Tracker      Resp.      Description
--------------------------------------------------------------------------------
o usb/166848   usb        Buffalo RUF2 requires quirk
o usb/165815   usb        add k3772z 3g modem support
o usb/165163   usb        [keyboard] The USB RF keyboard and mouse become non-re
o usb/164058   usb        Lexar 8GB USB flash drive doesn't work by default
o usb/163328   usb        [usb] Support for Atheros USB abgn devices
o kern/163091  usb        [panic] Fatal trap 12: page fault while in kernel mode
o usb/162306   usb        usb devices cant get address asignation, no memories, 
o usb/162054   usb        usbdump just hangs on 9.0-RC1
f usb/161793   usb        poor EHCI usb2 i/o performance
o usb/160436   usb        ucom wedges machine on parity error ?
o usb/160299   usb        MicroSDHC-to-USB adapters do not work in FreeBSD 8.x
o usb/160192   usb        [install] Installation from USB-Stick doesn't find the
o usb/159274   usb        USB 3.0 Etron EJ168A does not work.
f usb/159191   usb        [fusefs-ntfs] write on fusefs-ntfs mounted partition r
o usb/157376   usb        LaCie USB disk not recognized
o usb/157074   usb        [boot] [usb8] vfs_mountroot_ask is called when no usb 
o usb/156898   usb        [keyboard] usb keyboard does not work while boot (ps2 
f usb/156735   usb        Need Quirk for Goflex USB Disk Drives
o usb/156725   usb        USB stack stall cause complete system input loss
o usb/156596   usb        [ehci] Extremely high interrupt rate on ehci/uhci IRQ1
o usb/156000   usb        rum(4) Fatal trap 18: integer divide fault while in ke
f usb/155996   usb        NanoBSD not booted as Disk
o usb/155784   usb        Problem with Transcend StoreJet 25M3 (2AJ1) on Asus M2
o usb/154506   usb        [umass] Copying dir with large files makes FreeBSD loa
o usb/154192   usb        [umass] In Garmin Oregon GPS, only the first umass dev
o i386/153851  usb        [keyboard] keyboard issues on new Intel Mother boards.
o usb/153703   usb        [keyboard] My USB keyboard can not be used in 8-STABLE
o usb/153609   usb        [zyd] [panic] kernel: Fatal trap 12: page fault while 
o usb/153149   usb        [umass] USB stick quirk regression [regression]
o usb/152075   usb        [usb8] [ehci] [request] Add quirk for CS5536 USB
o usb/150892   usb        [zyd] Whenever network contacted in any shape, way or 
o usb/150189   usb        [run] [usb8] [patch] if_run appears to corrupt IP traf
p usb/149764   usb        [u3g] [patch] usbdevs update: Huawei K3765 3G modem
o usb/149283   usb        [uftdi] avrdude unable to talk to Arduino board (via u
o usb/149162   usb        [ural] ASUS WL-167g doesn't work in 8.1 (continue of 1
s usb/148702   usb        [usb8] [request] IO DATA USB-RSAQ5 support on FreeBSD-
o usb/148080   usb        usbconfig(8) sometimes does not turn off the device
o usb/147516   usb        [umass] [usb67] kernel unable to deal with Olympus USB
o i386/147475  usb        [install] FreeBSD 8.x does not install on ASUS K8N4-E 
o usb/146840   usb        [hang] FreeBSD 7.2 / 7.3 / 8.0 hang at startup after e
o usb/146153   usb        [axe] [usb8] Hosts in network doesn't receive any pack
f usb/146054   usb        [urtw] [usb8] urtw driver potentially out of date
f usb/145513   usb        [usb8] New USB stack: no new devices after forced usb 
p usb/145455   usb        [usb8] [patch] USB debug support cannot be disabled
o usb/145415   usb        [umass] [usb8] USB card reader does not create slices 
a usb/145184   usb        GENERIC can't mount root from USB on Asus EEE
o usb/145165   usb        [keyboard] [usb8] ukbd_set_leds_callback: error=USB_ER
f kern/144938  usb        [keyboard] [boot] Boot Failure with Apple (MB869LL/A) 
o usb/144387   usb        [run] [panic] if_run panic
o usb/144043   usb        [umass] [usb8] USB DLT tape drive throws random errors
a usb/143790   usb        [boot] [cam] can not boot from usb hdd
f usb/143620   usb        [cdce] [usb8] the module if_cdce doesn't support my Op
f usb/143294   usb        [usb8] copying process stops at some time (10 - 50 sec
o usb/143286   usb        [ukbd] [usb8] [boot] boot failures on RELENG_8 system 
p usb/143186   usb        [usbdevs] [usb8] [patch] add USB device IDs for Google
a usb/143139   usb        [umass] [usb8] [patch] Quirk for Century EX35SW4_SB4 J
p usb/143045   usb        [umass] [usb8] [patch] mounting Fujitsu 2600Z camera d
o usb/142991   usb        [uftdi] [usb67] [patch] Patch to add Crystalfontz 533 
f usb/142989   usb        [usb8] canon eos 50D attaches but detaches after few s
f usb/142957   usb        [umass] [usb8] [patch] patch for USB disk SYNCHRONIZE 
o usb/142719   usb        [urtw] [usb8] AirLive WL-1600USB (RTL8187L chipset) fa
o usb/142713   usb        [usb67] [panic] Kernel Panik when connecting an IPhone
f usb/142276   usb        [umass] [usb8] Cache Synchronization Error with Olympu
o usb/142229   usb        [ums] [usb8] [hang] connecting a USB mouse to a Dell P
f usb/141680   usb        [uath] [usb8] Netgear WG111T not working with uath dri
o usb/141664   usb        [pcm] [usb8] Logitech USB microphone failure [regressi
o usb/141474   usb        [boot] [usb8] FreeBSD 8.0 can not install from USB CDR
o usb/141327   usb        [ukbd] [usb67] USB kbd not working with 7.1+PAE on IBM
o usb/141212   usb        [ukbd] [usb8] ukbd_set_leds_callback:700: error=USB_ER
o kern/141011  usb        [usb8] Encrypted root, geli password at boot; enter ke
o usb/140920   usb        [install] [usb8] USB based install fails on 8.0-RELEAS
o usb/140893   usb        [urtw] [usb8] WPA2 not working on rtl8187b
o kern/140849  usb        [ums] [usb8] USB mouse doesn't work under FreeBSD 8.0-
a usb/140810   usb        [uftdi] [usb8] 8.X copy and paste problem / tty overfl
o usb/140477   usb        [umass] [usb8] [patch] allow boot-time attachment of d
o usb/140236   usb        [msdosfs] [usb8] Labels wiped on external Journaled US
o usb/140160   usb        [usb8] [acpi] USB ports are no longer "active" after A
s usb/139990   usb        [panic] [patch] [usb67] Kernel frequently panics after
o usb/139243   usb        [uhci] [usb67] unplug prolific USB serial -> uhci_abor
f usb/138882   usb        [ohci] [panic] [usb67] Can't install FreeBSD 7.2 due t
o usb/138798   usb        [boot] [usb8] 8.0-BETA4 can't boot from USB flash driv
o usb/138659   usb        [usb8][uftdi] driver broken in RELENG_8/CURRENT
o usb/138175   usb        [usb67] [boot] System cannot boot, when USB reader wit
o usb/138124   usb        [snd_uaudio] [usb8] Axed uaudio functionality in the u
o usb/138119   usb        [usb67] [usb8] MultiBay CDROM (probably on USB bus) is
f usb/137872   usb        [usb67] [boot] slow booting on usb flash drive
o usb/137806   usb        [ukbd] [usb67] USB keyboard doesn't work until it's un
o usb/137763   usb        [usb67][ukbd] Logitech wireless keyboard media keys no
o usb/137377   usb        [usb8] request support for Huawei E180
o usb/137341   usb        [usb8][rum] driver if_rum doesn't work at all and thro
f usb/137190   usb        [usb8][patch] inhibit spurious button releases for som
o usb/137189   usb        [usb8][patch] create and use sysctl nodes for HID repo
p usb/137188   usb        [usb8][patch] correctly handle USB report descriptors 
o usb/137129   usb        [ums] [usb8] SteelSeries Ikari USB laser mouse not att
o usb/135938   usb        [aue] [usb67] aue driver only passes traffic in promis
o usb/135542   usb        [keyboard] boot loader does not work with a usb keyboa
o usb/135206   usb        machine reboots when inserted USB device
f usb/135200   usb        SAMSUNG i740 usb mass: Synchronize cache failed, statu
o usb/134950   usb        Lowering DTR for USB-modem via ubsa is not possible
o usb/134299   usb        Kernel Panic plugging in MF626 USB UMTS Stick u3g
o usb/134193   usb        System freeze on usb MP3 player insertion
o usb/134085   usb        [umass] Adding usb quirk for Sony USB flash drive
o usb/133989   usb        [usb8] [ukbd] USB keyboard dead at mountroot> prompt
o usb/133712   usb        [ural] [patch] RE: Fixed an issue with ural(4) that wa
o usb/133390   usb        umass crashes system in 7.1 when Olympus D-540 attache
o usb/133296   usb        [rum] driver not working properly in hostap mode
o usb/132594   usb        USB subsystem causes page fault and crashes
o usb/132080   usb        [patch] [usb] [rum] [panic] Kernel panic after NOMEM c
o usb/132066   usb        [ukbd] Keyboard failure USB keyboard DELL 760
o usb/132036   usb        [panic] page fault when connecting Olympus C740 camera
o usb/131583   usb        [umass] Failure when detaching umass Device
o usb/131576   usb        [aue] ADMtek USB To LAN Converter can't send data
o usb/131521   usb        Registering Belkin UPS to usb_quirks.c
o usb/131074   usb        no run-time detection of usb devices plugged into exte
o usb/130736   usb        Page fault unplugging USB stick
o usb/130230   usb        [patch] [quirk] [usb67] [usb] [cam] [umass] Samsung El
o usb/130208   usb        Boot process severely hampered by umass0 error
o usb/130122   usb        [usb8] DVD drive detects as 'da' device
f usb/129766   usb        [usb] [panic] plugging in usb modem HUAWEI E226 panics
o usb/129500   usb        [umass] [panic] FreeBSD Crashes when connecting SanDis
o usb/129311   usb        [usb] [panic] Instant crash with an USB card reader
s usb/128990   usb        [usb] u3g does not handle RTS/CTS available on for exa
o usb/128977   usb        [usb67] [patch] uaudio is not full duplex
p usb/128803   usb        [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2
o usb/128485   usb        [umodem] [patch] Nokia N80 modem support
o usb/128425   usb        [umass] Cannot Connect Maxtor Onetouch 4 USB drive
o usb/128418   usb        [panic] [rum] loading if_rum causes panic, looks like 
o usb/127926   usb        [boot] USB Timeout during bootup
s usb/127453   usb        [request] ubsa, uark, ubser, uftdi, and friends should
o usb/127342   usb        [boot] [panic] enabling usb keyboard and mouse support
o usb/127248   usb        [ucom] panic while uplcom devices attach and detach
o usb/126884   usb        [ugen] [patch] Bug in buffer handling in ugen.c
o usb/126848   usb        [usb]: USB Keyboard hangs during Installation
o usb/126740   usb        [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be
o usb/126519   usb        [usb] [panic] panic when plugging in an iphone
o kern/126396  usb        [panic] kernel panic after unplug USB Bluetooth device
o usb/125631   usb        [ums] [panic] kernel panic during bootup while 'Logite
o usb/125510   usb        [panic] repeated plug and unplug of USB mass storage d
f usb/125450   usb        [panic] Removing USB flash card while being accessed c
o usb/125088   usb        [keyboard] Touchpad not detected on Adesso AKB-430UG U
o usb/124980   usb        [panic] kernel panic on detaching unmounted umass devi
o kern/124777  usb        [ucom] USB cua devices don't revert to tty devices whe
o usb/124758   usb        [rum] [panic] rum panics SMP kernel
o usb/124708   usb        [panic] Kernel panic on USB KVM reattach
o kern/124130  usb        [usb] gmirror fails to start usb devices that were pre
o usb/123969   usb        [usb] Supermicro H8SMi-2 usb problem: port reset faile
o usb/123714   usb        [usb] [panic] Panic when hald-storage-probe runs with 
o usb/123691   usb        usbd(8): usbd hangs
o usb/123690   usb        [usb] [panic] Panic on USB device insertion when usb l
o usb/123611   usb        [usb] BBB reset failed, STALLED from Imation/Mitsumi U
o usb/122992   usb        [umass] [patch] MotoROKR Z6 Phone not recognised by um
o usb/122936   usb        [ucom] [ubsa] Device does not receive interrupt
o usb/122905   usb        [ubsa] [patch] add Huawei E220 to ubsa
s usb/122819   usb        [usb67] [patch] Patch to provide dynamic additions to 
o usb/122813   usb        [udbp] [request] udbp driver should be removed in favo
o usb/122547   usb        [ehci] USB Printer not being recognized after reboot
o usb/122539   usb        [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci
o usb/122483   usb        [panic] [ulpt] Repeatable panic in 7.0-STABLE
o usb/122119   usb        [umass] umass device causes creation of daX but not da
o usb/121734   usb        [ugen] ugen HP1022 printer device not working since up
o usb/121708   usb        [keyboard] nforce 650i mobo w/ usb keyboard infinite k
o usb/121474   usb        [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard
o usb/121275   usb        [boot] [panic] FreeBSD fails to boot with usb legacy s
o usb/121169   usb        [umass] Issues with usb mp3 player
o usb/121045   usb        [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS
f usb/120786   usb        [usb] [panic] Kernel panic when forced umount of a det
o usb/120729   usb        [panic] fault while in kernel mode with connecting USB
o usb/120321   usb        [hang] System hangs when transferring data to WD MyBoo
o usb/120283   usb        [panic] Automation reboot with wireless keyboard & mou
o usb/120034   usb        [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 
o usb/119977   usb        [ums] Mouse does not work in a Cherry-USB keyboard/mou
o usb/119653   usb        [cam] [patch] iriver s7 player sync cache error patch
o usb/119633   usb        [umass] umass0: BBB reset failed, IOERROR [regression]
o usb/119509   usb        [usb] USB flaky on Dell Optiplex 755
o usb/119389   usb        [umass] Sony DSC-W1 CBI reset failed, STALLED [regress
o usb/119227   usb        [ubsa] [patch] ubsa buffer is too small; should be tun
o usb/118480   usb        [umass] Timeout in USB mass storage freezes vfs layer 
o usb/118353   usb        [panic] [ppp] repeatable kernel panic during ppp(4) se
o usb/118141   usb        [ucom] usb serial and nokia phones ucomreadcb ucomread
o usb/118140   usb        [ucom] [patch] quick hack for ucom to get it behave wi
o usb/118098   usb        [umass] 6th gen iPod causes problems when disconnectin
o usb/117955   usb        [umass] [panic] inserting minolta dimage a2 crashes OS
o usb/117946   usb        [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE
o usb/117938   usb        [ums] [patch] Adding support for MS WL Natural and MS 
o usb/117911   usb        [ums] [request] Mouse Gembird MUSWC not work
o usb/117893   usb        [umass] Lacie USB DVD writing failing
o usb/117613   usb        [uhci] [irq] uhci interrupt storm & USB leaked memory 
o usb/117598   usb        [snd_uaudio] [patch] Not possible to record with Plant
o usb/117313   usb        [umass] [panic] panic on usb camera insertion
o usb/117200   usb        [ugen] ugen0 prints strange string on attach if detach
o usb/117183   usb        [panic] USB/fusefs -- panic while transferring large a
p usb/116947   usb        [ukbd] [patch] [regression] enable boot protocol on th
o usb/116561   usb        [umodem] [panic] RELENG_6 umodem panic "trying to slee
o usb/116282   usb        [ulpt] Cannot print on USB HP LJ1018 or LJ1300
o usb/115935   usb        [usbdevs] [patch] kernel counterproductively attaches 
o usb/115933   usb        [uftdi] [patch] RATOC REX-USB60F (usb serial converter
o usb/115400   usb        [ehci] Problem with EHCI on ASUS M2N4-SLI
o usb/115298   usb        [ulpt] [panic] Turning off USB printer panics kernel
o usb/114916   usb        [umass] [patch] USB Maxtor drive (L300RO) requires qui
o kern/114780  usb        [uplcom] [panic] Panics while stress testing the uplco
o usb/114682   usb        [umass] generic USB media-card reader unusable
o usb/114310   usb        [libusb] [patch] [panic] USB hub attachment panics ker
o usb/114068   usb        [usb67] [usb8] [umass] [patch] Problem with connection
o conf/114013  usb        [patch] WITHOUT_USB allow to compil a lot of USB stuff
s usb/113060   usb        [usb67] [ulpt] [patch] Samsung printer not working in 
o usb/110856   usb        [usb67] [ugen] [patch] interrupt in msgs are truncated
o usb/107827   usb        [usb67] [ohci] [panic] ohci_add_done addr not found
o usb/107388   usb        [usb67] [usb8] [new driver] [patch] add utoppy device 
o usb/106041   usb        [usb67] [usb8] [request] FreeBSD does not recognise Mu
s usb/103917   usb        [usb67] [uhub] USB driver reports "Addr 0 should never
o usb/103418   usb        [usb67] [usb8] [patch] [request] usbhidctl(8) add abil
o usb/103046   usb        [usb67] [ulpt] [patch] ulpt event driven I/O with sele
o usb/100746   usb        [usb67] [ukbd] system does not boot due to USB keyboar
o usb/99431    usb        [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar
o kern/99200   usb        [usb67] SMP-Kernel crashes reliably when Bluetooth con
o usb/98343    usb        [boot] BBB reset failed errors with Creative Muvo MP3 
o usb/97472    usb        [cam] [patch] add support for Olympus C150,D390
s usb/97286    usb        [mouse] [request] MS Wireless Intellimouse Explorer 2.
o usb/97175    usb        [umass] [hang] USB cardreader hangs system
o usb/96457    usb        [umass] [panic] fatback on umass = reboot
o usb/96381    usb        [cam] [patch] add a quirk table entry for a flash ram 
o usb/96224    usb        [usb] [msdosfs] mount_msdosfs cause page fault in sync
s usb/96120    usb        [ums] [request] USB mouse not always detected
s usb/95636    usb        [umass] [boot] 5 minute delay at boot when using VT620
o usb/95562    usb        [umass] Write Stress in USB Mass drive causes "vinvalb
o usb/95037    usb        [umass] USB disk not recognized on hot-plug.
o usb/94897    usb        [panic] Kernel Panic when cleanly unmounting USB disk
o usb/94717    usb        [ulpt] Reading from /dev/ulpt can break work of a UHCI
o usb/94384    usb        [panic] kernel panic with usb2 hardware
o usb/93872    usb        [cam] [patch] SCSI quirk required for ELTA 8061 OL USB
o usb/93828    usb        [ohci] [panic] ohci causes panic on boot (HP Pavillion
o usb/93389    usb        [umass] [patch] Digital Camera Pentax S60 don't work
o usb/92852    usb        [ums] [patch] Vertical scroll not working properly on 
o usb/92171    usb        [panic] panic unplugging Vodafone Mobile Connect (UMTS
o usb/92142    usb        [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb 
o usb/92083    usb        [ural] [panic] panic using WPA on ural NIC in 6.0-RELE
o usb/92052    usb        [ulpt] usbd causes defunct process with busy file-hand
o usb/91906    usb        [ehci] [hang] FreeBSD hangs while booting with USB leg
f usb/91896    usb        camcontrol(8): Serial Number of USB Memory Sticks is n
o usb/91811    usb        [umass] Compact Flash in HP Photosmart 2610 return  " 
o usb/91546    usb        [umodem] [patch] Nokia 6630 mobile phone does not work
o usb/91538    usb        [ulpt] [patch] Unable to print to EPSON CX3500
o usb/91283    usb        [boot] [regression] booting very slow with usb devices
o usb/91238    usb        [umass] USB tape unit fails to write a second tape fil
o usb/90700    usb        [umass] [panic] Kernel panic on connect/mount/use umas
o usb/89954    usb        [umass] [panic] USB Disk driver race condition?
s usb/89003    usb        [request] LaCie Firewire drive not properly supported 
o usb/88743    usb        [hang] [regression] USB makes kernel hang at boot (reg
o usb/88408    usb        [axe] axe0 read PHY failed
o usb/87648    usb        [mouse] Logitech USB-optical mouse problem.
f usb/87224    usb        [usb] Cannot mount USB Zip750
o usb/86767    usb        [umass] [patch] bogus "slice starts beyond end of the 
o usb/86298    usb        [mouse] Known good USB mouse won't work with correct s
s usb/85067    usb        [uscanner] Cannot attach ScanJet 4300C to usb device
o usb/83977    usb        [ucom] [panic] ucom1: open bulk out error (addr 2): IN
o usb/83863    usb        [ugen] Communication problem between opensc/openct via
o usb/83756    usb        [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe
o usb/83504    usb        [kernel] [patch] SpeedTouch USB stop working on recent
o usb/82520    usb        [udbp] [reboot] Reboot when USL101 connected
o usb/82350    usb        [ucom] [panic] null pointer dereference in USB stack
o usb/81621    usb        [ehci] [hang] external hd hangs under load on ehci
o usb/80935    usb        [uvisor] [patch] uvisor.c is not work with CLIE TH55.
s usb/80777    usb        [request] usb_rem_task() should wait for callback to c
s usb/80776    usb        [udav] [request] UDAV device driver shouldn't use usb_
o usb/80774    usb        [patch] have "usbd_find_desc" in line with the other "
o usb/80361    usb        [umass] [patch] mounting of Dell usb-stick fails
f usb/80040    usb        [sound] [hang] Use of sound mixer causes system freeze
o usb/79723    usb        [usb] [request] prepare for high speed isochronous tra
o usb/78984    usb        [umass] [patch] Creative MUVO umass failure
f usb/77294    usb        [ucom] [panic] ucom + ulpcom panic
o usb/76653    usb        [umass] [patch] Problem with Asahi Optical usb device 
f usb/76395    usb        [uhci] USB printer does not work, usbdevs says "addr 0
s usb/75928    usb        [umass] [request] Cytronix SmartMedia card (SMC) reade
o usb/75800    usb        [ucom] ucom1: init failed STALLED error in time of syn
o usb/75764    usb        [umass] [patch] "umass0: Phase Error" - no device for 
f usb/75705    usb        [umass] [panic] da0 attach / Optio S4 (with backtrace)
f usb/74771    usb        [umass] [hang] mounting write-protected umass device a
s usb/74453    usb        [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL
o usb/74211    usb        [umass] USB flash drive causes CAM status 0x4 on 4.10R
o usb/71417    usb        [ugen] Cryptoflex e-gate USB token (ugen0) communicati
o usb/71416    usb        [ugen] Cryptoflex e-gate USB token (ugen0) detach is n
o usb/71280    usb        [aue] aue0 device (linksys usb100tx) doesn't work in 1
o usb/71155    usb        [ulpt] misbehaving usb-printer hangs processes, causes
o usb/69006    usb        [usbdevs] [patch] Apple Cinema Display hangs USB ports
o usb/67301    usb        [uftdi] [panic] RTS and system panic
o usb/66547    usb        [ucom] Palm Tungsten T USB does not initialize correct
o usb/63621    usb        [umass] [panic] USB MemoryStick Reader stalls/crashes 
s usb/62257    usb        [umass] [request] card reader UCR-61S2B is only half-s
s bin/57255    usb        [patch] usbd(8) and multi-function devices
s usb/52026    usb        [usb] [request] umass driver support for InSystem ISD2
s usb/51958    usb        [urio] [patch] update for urio driver
o usb/40948    usb        [umass] [request] USB HP CDW8200 does not work
o usb/30929    usb        [usb] [patch] use usbd to initialize USB ADSL modem

293 problems total.


From owner-freebsd-usb@FreeBSD.ORG  Mon Apr 16 13:28:58 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
Delivered-To: freebsd-usb@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 9C623106566B
	for <freebsd-usb@freebsd.org>; Mon, 16 Apr 2012 13:28:58 +0000 (UTC)
	(envelope-from hselasky@c2i.net)
Received: from swip.net (mailfe03.c2i.net [212.247.154.66])
	by mx1.freebsd.org (Postfix) with ESMTP id 29C888FC1B
	for <freebsd-usb@freebsd.org>; Mon, 16 Apr 2012 13:28:57 +0000 (UTC)
X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED
Received: from [176.74.212.201] (account mc467741@c2i.net HELO
	laptop002.hselasky.homeunix.org)
	by mailfe03.swip.net (CommuniGate Pro SMTP 5.4.4)
	with ESMTPA id 97112124; Mon, 16 Apr 2012 15:28:47 +0200
From: Hans Petter Selasky <hselasky@c2i.net>
To: freebsd-usb@freebsd.org,
 Matthias Apitz <guru@unixarea.de>
Date: Mon, 16 Apr 2012 15:27:45 +0200
User-Agent: KMail/1.13.5 (FreeBSD/8.3-PRERELEASE; KDE/4.4.5; amd64; ; )
References: <20120416041431.GA2604@tinyCurrent> <20120416085441.GA1723@tiny>
In-Reply-To: <20120416085441.GA1723@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-1"
Content-Transfer-Encoding: quoted-printable
Message-Id: <201204161527.45473.hselasky@c2i.net>
Cc: 
Subject: Re: USB ethernet ue0 stops working
X-BeenThere: freebsd-usb@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Apr 2012 13:28:58 -0000

On Monday 16 April 2012 10:54:43 Matthias Apitz wrote:
> El d=EDa Monday, April 16, 2012 a las 06:14:31AM +0200, Matthias Apitz=20

> > Apr 16 05:50:17 tinyCurrent kernel: cdce0: <RNDIS Ethernet Data> on
> > usbus0 Apr 16 05:50:17 tinyCurrent kernel: cdce0: faking MAC address
> > Apr 16 05:50:17 tinyCurrent kernel: ue0: <USB Ethernet> on cdce0
> > Apr 16 05:50:17 tinyCurrent kernel: ue0: Ethernet address:
> > 2a:ac:fc:03:00:00

We don't support RNDIS ethernet. You need to search for the WMC compatible=
=20
one.

=2D-HPS

From owner-freebsd-usb@FreeBSD.ORG  Mon Apr 16 13:45:13 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
Delivered-To: freebsd-usb@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id B93A71065678
	for <freebsd-usb@freebsd.org>; Mon, 16 Apr 2012 13:45:13 +0000 (UTC)
	(envelope-from guru@unixarea.de)
Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34])
	by mx1.freebsd.org (Postfix) with ESMTP id 3B3AA8FC1C
	for <freebsd-usb@freebsd.org>; Mon, 16 Apr 2012 13:45:12 +0000 (UTC)
Received: from [89.204.130.147] (helo=tiny.Sisis.de)
	by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.69) (envelope-from <guru@unixarea.de>)
	id 1SJmEv-0000Xg-Dx; Mon, 16 Apr 2012 15:45:09 +0200
Received: from tiny.Sisis.de (localhost [127.0.0.1])
	by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id q3GDj0i2003153;
	Mon, 16 Apr 2012 15:45:01 +0200 (CEST)
	(envelope-from guru@unixarea.de)
Received: (from guru@localhost)
	by tiny.Sisis.de (8.14.5/8.14.3/Submit) id q3GDixr2003150;
	Mon, 16 Apr 2012 15:44:59 +0200 (CEST)
	(envelope-from guru@unixarea.de)
X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de
	using -f
Date: Mon, 16 Apr 2012 15:44:58 +0200
From: Matthias Apitz <guru@unixarea.de>
To: Hans Petter Selasky <hselasky@c2i.net>
Message-ID: <20120416134458.GA3131@tiny>
References: <20120416041431.GA2604@tinyCurrent> <20120416085441.GA1723@tiny>
	<201204161527.45473.hselasky@c2i.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <201204161527.45473.hselasky@c2i.net>
X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386)
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Con-Id: 51246
X-Con-U: 0-guru
X-Originating-IP: 89.204.130.147
Cc: freebsd-usb@freebsd.org
Subject: Re: USB ethernet ue0 stops working
X-BeenThere: freebsd-usb@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Matthias Apitz <guru@unixarea.de>
List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Apr 2012 13:45:13 -0000

El día Monday, April 16, 2012 a las 03:27:45PM +0200, Hans Petter Selasky escribió:

> On Monday 16 April 2012 10:54:43 Matthias Apitz wrote:
> > El día Monday, April 16, 2012 a las 06:14:31AM +0200, Matthias Apitz 
> 
> > > Apr 16 05:50:17 tinyCurrent kernel: cdce0: <RNDIS Ethernet Data> on
> > > usbus0 Apr 16 05:50:17 tinyCurrent kernel: cdce0: faking MAC address
> > > Apr 16 05:50:17 tinyCurrent kernel: ue0: <USB Ethernet> on cdce0
> > > Apr 16 05:50:17 tinyCurrent kernel: ue0: Ethernet address:
> > > 2a:ac:fc:03:00:00
> 
> We don't support RNDIS ethernet. You need to search for the WMC compatible 
> one.
> 
> --HPS

Hello Hans,

Could you please spent a few words more about this. The other end of the
USB cable is a cellphone, an Openmoko Freerunner. Even if this is
OpenSource I think it is out of my skope to change this or to force the
SHR group to change this. The other end  runs a Linux kernel 2.6.39.4 and
with 2.26.29 this worked fine.

It does even work now when I bring all up by hand on both sides.

What do you want me to do exactly?

Thanks

	matthias

-- 
Matthias Apitz
e <guru@unixarea.de> - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5

From owner-freebsd-usb@FreeBSD.ORG  Mon Apr 16 14:53:00 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
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 6A3A51065670
	for <freebsd-usb@freebsd.org>; Mon, 16 Apr 2012 14:53:00 +0000 (UTC)
	(envelope-from hselasky@c2i.net)
Received: from swip.net (mailfe03.c2i.net [212.247.154.66])
	by mx1.freebsd.org (Postfix) with ESMTP id AA7418FC12
	for <freebsd-usb@freebsd.org>; Mon, 16 Apr 2012 14:52:59 +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 mailfe03.swip.net (CommuniGate Pro SMTP 5.4.4)
	with ESMTPA id 97143771; Mon, 16 Apr 2012 16:52:57 +0200
From: Hans Petter Selasky <hselasky@c2i.net>
To: Matthias Apitz <guru@unixarea.de>
Date: Mon, 16 Apr 2012 16:51:55 +0200
User-Agent: KMail/1.13.5 (FreeBSD/8.3-PRERELEASE; KDE/4.4.5; amd64; ; )
References: <20120416041431.GA2604@tinyCurrent>
	<201204161527.45473.hselasky@c2i.net> <20120416134458.GA3131@tiny>
In-Reply-To: <20120416134458.GA3131@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-1"
Content-Transfer-Encoding: quoted-printable
Message-Id: <201204161651.55404.hselasky@c2i.net>
Cc: freebsd-usb@freebsd.org
Subject: Re: USB ethernet ue0 stops working
X-BeenThere: freebsd-usb@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Apr 2012 14:53:00 -0000

On Monday 16 April 2012 15:44:58 Matthias Apitz wrote:
> El d=EDa Monday, April 16, 2012 a las 03:27:45PM +0200, Hans Petter Selas=
ky=20
escribi=F3:
> > On Monday 16 April 2012 10:54:43 Matthias Apitz wrote:
> > > El d=EDa Monday, April 16, 2012 a las 06:14:31AM +0200, Matthias Apitz
> > >=20
> > > > Apr 16 05:50:17 tinyCurrent kernel: cdce0: <RNDIS Ethernet Data> on
> > > > usbus0 Apr 16 05:50:17 tinyCurrent kernel: cdce0: faking MAC address
> > > > Apr 16 05:50:17 tinyCurrent kernel: ue0: <USB Ethernet> on cdce0
> > > > Apr 16 05:50:17 tinyCurrent kernel: ue0: Ethernet address:
> > > > 2a:ac:fc:03:00:00
> >=20
> > We don't support RNDIS ethernet. You need to search for the WMC
> > compatible one.
> >=20
> > --HPS
>=20
> Hello Hans,
>=20
> Could you please spent a few words more about this. The other end of the
> USB cable is a cellphone, an Openmoko Freerunner. Even if this is
> OpenSource I think it is out of my skope to change this or to force the
> SHR group to change this. The other end  runs a Linux kernel 2.6.39.4 and
> with 2.26.29 this worked fine.
>=20
> It does even work now when I bring all up by hand on both sides.
>=20

Hi,

> What do you want me to do exactly?

If this is an openmoko, you need to run:

usbconfig -d X.Y set_config 1

Then it should work I think.

=2D-HPS

From owner-freebsd-usb@FreeBSD.ORG  Mon Apr 16 15:24:33 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
Delivered-To: freebsd-usb@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 3BE11106564A
	for <freebsd-usb@freebsd.org>; Mon, 16 Apr 2012 15:24:33 +0000 (UTC)
	(envelope-from seanbru@yahoo-inc.com)
Received: from mrout3.yahoo.com (mrout3.yahoo.com [216.145.54.173])
	by mx1.freebsd.org (Postfix) with ESMTP id 1B56E8FC08
	for <freebsd-usb@freebsd.org>; Mon, 16 Apr 2012 15:24:33 +0000 (UTC)
Received: from [IPv6:::1] (proxy7.corp.yahoo.com [216.145.48.98])
	by mrout3.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id q3GFNeQD015331
	for <freebsd-usb@freebsd.org>; Mon, 16 Apr 2012 08:23:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com;
	s=cobra; t=1334589820;
	bh=0xM4QPFWt1bP5ztOD7bmWw6HVDfCwuWJ3DNSpNBi5gs=;
	h=Subject:From:Reply-To:To:Content-Type:Date:Message-ID:
	Mime-Version:Content-Transfer-Encoding;
	b=fUU9Jv2gD1VgIBkiE+RqEZKMiOi0+jEucai7CtWm4hXjHqwjxL+n0+rZYrIIU/C/r
	xHaBjXQ7jeBs/ozamog0iOTN+3Yseb32643jiEo6wNwawJPgjTGzds43RBO5QWDX9B
	MoZVf2kMHKSgHFW/rUV8l9UovpJLhfD8deofEgqo=
From: Sean Bruno <seanbru@yahoo-inc.com>
To: "freebsd-usb@freebsd.org" <freebsd-usb@freebsd.org>
Content-Type: text/plain; charset="UTF-8"
Date: Mon, 16 Apr 2012 08:23:39 -0700
Message-ID: <1334589819.13287.2.camel@powernoodle-l7.hsd1.ca.comcast.net>
Mime-Version: 1.0
X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port 
Content-Transfer-Encoding: 7bit
Subject: USB tethering, Motorola Droid
X-BeenThere: freebsd-usb@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: sbruno@freebsd.org
List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Apr 2012 15:24:33 -0000

Was wondering if there is an expectation that the tethering capability
of a Motorola Droid *should* work on FreeBSD at this point.  The Linux
folks seem to have it working just fine, and I was wondering what would
need to be done to get it working for us?

I assume from earlier posts about RNDIS that it doesn't work at all:

[sbruno@powernoodle-l7 /usr/home/sbruno]$ usbconfig -u 1 -a 3
dump_curr_config_desc
ugen1.3: <Motorola A855 Motorola> at usbus1, cfg=0 md=HOST spd=HIGH
(480Mbps) pwr=ON


 Configuration index 0

    bLength = 0x0009 
    bDescriptorType = 0x0002 
    wTotalLength = 0x0043 
    bNumInterfaces = 0x0002 
    bConfigurationValue = 0x0001 
    iConfiguration = 0x0000  <no string>
    bmAttributes = 0x00e0 
    bMaxPower = 0x00fa 

    Interface 0
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0000 
      bAlternateSetting = 0x0000 
      bNumEndpoints = 0x0001 
      bInterfaceClass = 0x00e0 
      bInterfaceSubClass = 0x0001 
      bInterfaceProtocol = 0x0003 
      iInterface = 0x0004  <RNDIS Communications Control>

      Additional Descriptor

      bLength = 0x05
      bDescriptorType = 0x24
      bDescriptorSubType = 0x00
       RAW dump: 
       0x00 | 0x05, 0x24, 0x00, 0x10, 0x01


      Additional Descriptor

      bLength = 0x05
      bDescriptorType = 0x24
      bDescriptorSubType = 0x01
       RAW dump: 
       0x00 | 0x05, 0x24, 0x01, 0x00, 0x01


      Additional Descriptor

      bLength = 0x04
      bDescriptorType = 0x24
      bDescriptorSubType = 0x02
       RAW dump: 
       0x00 | 0x04, 0x24, 0x02, 0x00


      Additional Descriptor

      bLength = 0x05
      bDescriptorType = 0x24
      bDescriptorSubType = 0x06
       RAW dump: 
       0x00 | 0x05, 0x24, 0x06, 0x00, 0x01


     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0082  <IN>
        bmAttributes = 0x0003  <INTERRUPT>
        wMaxPacketSize = 0x0008 
        bInterval = 0x0009 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 


    Interface 1
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0001 
      bAlternateSetting = 0x0000 
      bNumEndpoints = 0x0002 
      bInterfaceClass = 0x000a 
      bInterfaceSubClass = 0x0000 
      bInterfaceProtocol = 0x0000 
      iInterface = 0x0005  <RNDIS Ethernet Data>

     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0081  <IN>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0200 
        bInterval = 0x0000 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 

     Endpoint 1
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0001  <OUT>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0200 
        bInterval = 0x0000 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000


From owner-freebsd-usb@FreeBSD.ORG  Mon Apr 16 16:24:39 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
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 0C72C1065674;
	Mon, 16 Apr 2012 16:24:39 +0000 (UTC)
	(envelope-from hselasky@c2i.net)
Received: from swip.net (mailfe05.c2i.net [212.247.154.130])
	by mx1.freebsd.org (Postfix) with ESMTP id 653298FC16;
	Mon, 16 Apr 2012 16:24:38 +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 mailfe05.swip.net (CommuniGate Pro SMTP 5.4.4)
	with ESMTPA id 260724878; Mon, 16 Apr 2012 18:19:31 +0200
From: Hans Petter Selasky <hselasky@c2i.net>
To: freebsd-usb@freebsd.org,
 sbruno@freebsd.org
Date: Mon, 16 Apr 2012 18:18:28 +0200
User-Agent: KMail/1.13.5 (FreeBSD/8.3-PRERELEASE; KDE/4.4.5; amd64; ; )
References: <1334589819.13287.2.camel@powernoodle-l7.hsd1.ca.comcast.net>
In-Reply-To: <1334589819.13287.2.camel@powernoodle-l7.hsd1.ca.comcast.net>
X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp
	|U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI
	-%GU9V5]iUZF&nRn9mJ'?&>O
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="utf-8"
Content-Transfer-Encoding: 7bit
Message-Id: <201204161818.28930.hselasky@c2i.net>
Cc: 
Subject: Re: USB tethering, Motorola Droid
X-BeenThere: freebsd-usb@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Apr 2012 16:24:39 -0000

On Monday 16 April 2012 17:23:39 Sean Bruno wrote:
> Was wondering if there is an expectation that the tethering capability
> of a Motorola Droid *should* work on FreeBSD at this point.  The Linux
> folks seem to have it working just fine, and I was wondering what would
> need to be done to get it working for us?
> 
> I assume from earlier posts about RNDIS that it doesn't work at all:
> 
> [sbruno@powernoodle-l7 /usr/home/sbruno]$ usbconfig -u 1 -a 3
> dump_curr_config_desc
> ugen1.3: <Motorola A855 Motorola> at usbus1, cfg=0 md=HOST spd=HIGH
> (480Mbps) pwr=ON

Hi,

Unless there is a second configuration, with CDC ethernet, it won't.

--HPS

From owner-freebsd-usb@FreeBSD.ORG  Mon Apr 16 16:37:03 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
Delivered-To: freebsd-usb@hub.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 0F913106566C;
	Mon, 16 Apr 2012 16:37:03 +0000 (UTC)
	(envelope-from linimon@FreeBSD.org)
Received: from freefall.freebsd.org (freefall.freebsd.org
	[IPv6:2001:4f8:fff6::28])
	by mx1.freebsd.org (Postfix) with ESMTP id D6D1E8FC18;
	Mon, 16 Apr 2012 16:37:02 +0000 (UTC)
Received: from freefall.freebsd.org (localhost [127.0.0.1])
	by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q3GGb2H2041203;
	Mon, 16 Apr 2012 16:37:02 GMT
	(envelope-from linimon@freefall.freebsd.org)
Received: (from linimon@localhost)
	by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q3GGb2Kp041199;
	Mon, 16 Apr 2012 16:37:02 GMT (envelope-from linimon)
Date: Mon, 16 Apr 2012 16:37:02 GMT
Message-Id: <201204161637.q3GGb2Kp041199@freefall.freebsd.org>
To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org
From: linimon@FreeBSD.org
Cc: 
Subject: Re: usb/167001: [USB] [PATCH] add support for Smart G2 64MB memory
	key
X-BeenThere: freebsd-usb@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Apr 2012 16:37:03 -0000

Synopsis: [USB] [PATCH] add support for Smart G2 64MB memory key

Responsible-Changed-From-To: freebsd-bugs->freebsd-usb
Responsible-Changed-By: linimon
Responsible-Changed-When: Mon Apr 16 16:36:51 UTC 2012
Responsible-Changed-Why: 
reassign.

http://www.freebsd.org/cgi/query-pr.cgi?pr=167001

From owner-freebsd-usb@FreeBSD.ORG  Mon Apr 16 18:48:07 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
Delivered-To: freebsd-usb@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 539631065747
	for <freebsd-usb@freebsd.org>; Mon, 16 Apr 2012 18:48:06 +0000 (UTC)
	(envelope-from guru@unixarea.de)
Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34])
	by mx1.freebsd.org (Postfix) with ESMTP id 49D2E8FC0A
	for <freebsd-usb@freebsd.org>; Mon, 16 Apr 2012 18:48:06 +0000 (UTC)
Received: from [89.204.155.161] (helo=tiny.Sisis.de)
	by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.69) (envelope-from <guru@unixarea.de>)
	id 1SJqy4-0001Dv-Kp; Mon, 16 Apr 2012 20:48:05 +0200
Received: from tiny.Sisis.de (localhost [127.0.0.1])
	by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id q3GIlvTA001211;
	Mon, 16 Apr 2012 20:47:57 +0200 (CEST)
	(envelope-from guru@unixarea.de)
Received: (from guru@localhost)
	by tiny.Sisis.de (8.14.5/8.14.3/Submit) id q3GIlnbh001210;
	Mon, 16 Apr 2012 20:47:49 +0200 (CEST)
	(envelope-from guru@unixarea.de)
X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de
	using -f
Date: Mon, 16 Apr 2012 20:47:49 +0200
From: Matthias Apitz <guru@unixarea.de>
To: Hans Petter Selasky <hselasky@c2i.net>
Message-ID: <20120416184748.GA1183@tiny>
References: <20120416041431.GA2604@tinyCurrent>
	<201204161527.45473.hselasky@c2i.net> <20120416134458.GA3131@tiny>
	<201204161651.55404.hselasky@c2i.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <201204161651.55404.hselasky@c2i.net>
X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386)
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Con-Id: 51246
X-Con-U: 0-guru
X-Originating-IP: 89.204.155.161
Cc: freebsd-usb@freebsd.org
Subject: Re: USB ethernet ue0 stops working
X-BeenThere: freebsd-usb@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Matthias Apitz <guru@unixarea.de>
List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Apr 2012 18:48:07 -0000


Hi,

El día Monday, April 16, 2012 a las 04:51:55PM +0200, Hans Petter Selasky escribió:

> If this is an openmoko, you need to run:
> 

Yes, it is an Openmoko Freerunner which I have updated from a SHR
version from year 2010 to now latest release (stage 046);

> usbconfig -d X.Y set_config 1

I did this already in the past with a devd(8) hook script:

notify 1 {
	match "vendor"		"0x1457";
	match "product"		"0x5122";
	action "/usr/local/etc/devd/moko.sh $ugen";
};

while watching devd(8) in debug mode I learned that they now have changed
the vendor and product ID to "0x0525" and "0xa4a2" which the Linux kernel 
of the Freerunner presents to the FreeBSD host; and after updating the
values to the new ones all is fine again;

do you know why and how Linux this was changing?

anyway, thanks

	matthias

-- 
Matthias Apitz
e <guru@unixarea.de> - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5

From owner-freebsd-usb@FreeBSD.ORG  Mon Apr 16 18:57:45 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
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 1609C106564A
	for <freebsd-usb@freebsd.org>; Mon, 16 Apr 2012 18:57:45 +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 970478FC19
	for <freebsd-usb@freebsd.org>; Mon, 16 Apr 2012 18:57:44 +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 89075814; Mon, 16 Apr 2012 20:52:36 +0200
From: Hans Petter Selasky <hselasky@c2i.net>
To: Matthias Apitz <guru@unixarea.de>
Date: Mon, 16 Apr 2012 20:51:34 +0200
User-Agent: KMail/1.13.5 (FreeBSD/8.3-PRERELEASE; KDE/4.4.5; amd64; ; )
References: <20120416041431.GA2604@tinyCurrent>
	<201204161651.55404.hselasky@c2i.net> <20120416184748.GA1183@tiny>
In-Reply-To: <20120416184748.GA1183@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-1"
Content-Transfer-Encoding: quoted-printable
Message-Id: <201204162051.34695.hselasky@c2i.net>
Cc: freebsd-usb@freebsd.org
Subject: Re: USB ethernet ue0 stops working
X-BeenThere: freebsd-usb@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Apr 2012 18:57:45 -0000

On Monday 16 April 2012 20:47:49 Matthias Apitz wrote:
> Hi,
>=20
> El d=EDa Monday, April 16, 2012 a las 04:51:55PM +0200, Hans Petter Selas=
ky=20
escribi=F3:
> > If this is an openmoko, you need to run:
> Yes, it is an Openmoko Freerunner which I have updated from a SHR
> version from year 2010 to now latest release (stage 046);
>=20
> > usbconfig -d X.Y set_config 1
>=20
> I did this already in the past with a devd(8) hook script:
>=20
> notify 1 {
> 	match "vendor"		"0x1457";
> 	match "product"		"0x5122";
> 	action "/usr/local/etc/devd/moko.sh $ugen";
> };
>=20
> while watching devd(8) in debug mode I learned that they now have changed
> the vendor and product ID to "0x0525" and "0xa4a2" which the Linux kernel
> of the Freerunner presents to the FreeBSD host; and after updating the
> values to the new ones all is fine again;
>=20
> do you know why and how Linux this was changing?

No.

=2D-HPS

From owner-freebsd-usb@FreeBSD.ORG  Tue Apr 17 10:02:00 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
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 436FA106564A
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 10:02:00 +0000 (UTC)
	(envelope-from guru@unixarea.de)
Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34])
	by mx1.freebsd.org (Postfix) with ESMTP id C71B98FC14
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 10:01:59 +0000 (UTC)
Received: from [82.113.98.105] (helo=tiny.Sisis.de)
	by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.69) (envelope-from <guru@unixarea.de>)
	id 1SK5EO-0005Dm-3Q; Tue, 17 Apr 2012 12:01:52 +0200
Received: from tiny.Sisis.de (localhost [127.0.0.1])
	by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id q3HA1n4v002608;
	Tue, 17 Apr 2012 12:01:50 +0200 (CEST)
	(envelope-from guru@unixarea.de)
Received: (from guru@localhost)
	by tiny.Sisis.de (8.14.5/8.14.3/Submit) id q3HA1nSY002607;
	Tue, 17 Apr 2012 12:01:49 +0200 (CEST)
	(envelope-from guru@unixarea.de)
X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de
	using -f
Date: Tue, 17 Apr 2012 12:01:48 +0200
From: Matthias Apitz <guru@unixarea.de>
To: freebsd-usb@freebsd.org, Bruce Cran <bruce@cran.org.uk>
Message-ID: <20120417100147.GA2557@tiny>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386)
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Con-Id: 51246
X-Con-U: 0-guru
X-Originating-IP: 82.113.98.105
Cc: 
Subject: dfu-util 0.5
X-BeenThere: freebsd-usb@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Matthias Apitz <guru@unixarea.de>
List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Apr 2012 10:02:00 -0000


Hello,

> > > > 'dfu-util' from FreeBSD:
> > > > 
> > > > $ dfu-util -V
> > > > dfu-util - (C) 2007-2008 by OpenMoko Inc.
> > > > This program is Free Software and has ABSOLUTELY NO WARRANTY
> > > > dfu-util version 0.1+svnUnversioned directory
> > > 
> > > Latest version is 0.5 see
> > > http://dfu-util.gnumonks.org/
> > 
> > this is not ported to FreeBSD; I will try to get it updated or port it
> > by my onw;
> 

I have compiled dfu-util 0.5 directly from the sources because the port
is version 0.1 from 2009; this went streight forward with:

$ USB_CFLAGS=" " USB_LIBS="-lusb" ./configure
$ make

but the resulting dfu-util somehow does not work (while the 0.1 version
works fine on the same FreeBSD host and the same Freerunner):

# ~/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

(C) 2005-2008 by Weston Schmidt, Harald Welte and OpenMoko Inc.
(C) 2010-2011 Tormod Volden (DfuSe support)
This program is Free Software and has ABSOLUTELY NO WARRANTY

dfu-util does currently only support DFU version 1.0

Filter on vendor = 0x1d50 product = 0x5119
Opening DFU USB device... ID 1d50:5119
Run-time device DFU version 0100
Claiming USB DFU Runtime Interface...
Determining device status: state = appIDLE, status = 0
Device really in Runtime Mode, send DFU detach request...
Resetting USB...
Opening USB Device...
No such Alternate Setting: "rootfs"
#

as well using "6" for "rootfs" does not work...

Any comments or hints what the problem of 0.5 with FreeBSD libusb could
be? Thanks

	matthias
-- 
Matthias Apitz
e <guru@unixarea.de> - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5

From owner-freebsd-usb@FreeBSD.ORG  Tue Apr 17 13:46:34 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
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 229F91065677
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 13:46:34 +0000 (UTC)
	(envelope-from hselasky@c2i.net)
Received: from swip.net (mailfe07.c2i.net [212.247.154.194])
	by mx1.freebsd.org (Postfix) with ESMTP id A22908FC0C
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 13:46:33 +0000 (UTC)
X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED
Received: from [176.74.212.201] (account mc467741@c2i.net HELO
	laptop002.hselasky.homeunix.org)
	by mailfe07.swip.net (CommuniGate Pro SMTP 5.4.4)
	with ESMTPA id 263672315; Tue, 17 Apr 2012 15:41:25 +0200
From: Hans Petter Selasky <hselasky@c2i.net>
To: freebsd-usb@freebsd.org,
 Matthias Apitz <guru@unixarea.de>
Date: Tue, 17 Apr 2012 15:40:24 +0200
User-Agent: KMail/1.13.5 (FreeBSD/8.3-PRERELEASE; KDE/4.4.5; amd64; ; )
References: <20120417100147.GA2557@tiny>
In-Reply-To: <20120417100147.GA2557@tiny>
X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp
	|U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI
	-%GU9V5]iUZF&nRn9mJ'?&>O
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Message-Id: <201204171540.24558.hselasky@c2i.net>
Cc: Bruce Cran <bruce@cran.org.uk>
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 <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Apr 2012 13:46:34 -0000

On Tuesday 17 April 2012 12:01:48 Matthias Apitz wrote:
> Hello,
> 
> > > > > 'dfu-util' from FreeBSD:
> > > > > 
> > > > > $ dfu-util -V
> > > > > dfu-util - (C) 2007-2008 by OpenMoko Inc.
> > > > > This program is Free Software and has ABSOLUTELY NO WARRANTY
> > > > > dfu-util version 0.1+svnUnversioned directory
> > > > 
> > > > Latest version is 0.5 see
> > > > http://dfu-util.gnumonks.org/
> > > 
> > > this is not ported to FreeBSD; I will try to get it updated or port it
> > > by my onw;
> 
> I have compiled dfu-util 0.5 directly from the sources because the port
> is version 0.1 from 2009; this went streight forward with:
> 
> $ USB_CFLAGS=" " USB_LIBS="-lusb" ./configure
> $ make
> 
> but the resulting dfu-util somehow does not work (while the 0.1 version
> works fine on the same FreeBSD host and the same Freerunner):
> 
> # ~/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

Could you provide a source-code diff?

--HPS

From owner-freebsd-usb@FreeBSD.ORG  Tue Apr 17 14:07:49 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
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 06F72106566B
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 14:07:49 +0000 (UTC)
	(envelope-from guru@unixarea.de)
Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34])
	by mx1.freebsd.org (Postfix) with ESMTP id 0AC768FC17
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 14:07:48 +0000 (UTC)
Received: from [82.113.119.16] (helo=tiny.Sisis.de)
	by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.69) (envelope-from <guru@unixarea.de>)
	id 1SK94K-0004fp-Uv; Tue, 17 Apr 2012 16:07:46 +0200
Received: from tiny.Sisis.de (localhost [127.0.0.1])
	by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id q3HE7fbT001229;
	Tue, 17 Apr 2012 16:07:41 +0200 (CEST)
	(envelope-from guru@unixarea.de)
Received: (from guru@localhost)
	by tiny.Sisis.de (8.14.5/8.14.3/Submit) id q3HE7dmC001228;
	Tue, 17 Apr 2012 16:07:39 +0200 (CEST)
	(envelope-from guru@unixarea.de)
X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de
	using -f
Date: Tue, 17 Apr 2012 16:07:39 +0200
From: Matthias Apitz <guru@unixarea.de>
To: Hans Petter Selasky <hselasky@c2i.net>
Message-ID: <20120417140737.GA1223@tiny>
References: <20120417100147.GA2557@tiny> <201204171540.24558.hselasky@c2i.net>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="sdtB3X0nJg68CQEu"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <201204171540.24558.hselasky@c2i.net>
X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386)
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Con-Id: 51246
X-Con-U: 0-guru
X-Originating-IP: 82.113.119.16
X-Content-Filtered-By: Mailman/MimeDel 2.1.5
Cc: Bruce Cran <bruce@cran.org.uk>, freebsd-usb@freebsd.org
Subject: Re: dfu-util 0.5
X-BeenThere: freebsd-usb@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Matthias Apitz <guru@unixarea.de>
List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Apr 2012 14:07:49 -0000


--sdtB3X0nJg68CQEu
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

El día Tuesday, April 17, 2012 a las 03:40:24PM +0200, Hans Petter Selasky escribió:

> > > > > Latest version is 0.5 see
> > > > > http://dfu-util.gnumonks.org/
> > > > 
> > > > this is not ported to FreeBSD; I will try to get it updated or port it
> > > > by my onw;
> > 
> > I have compiled dfu-util 0.5 directly from the sources because the port
> > is version 0.1 from 2009; this went streight forward with:
> > 
> > $ USB_CFLAGS=" " USB_LIBS="-lusb" ./configure
> > $ make
> > 
> > but the resulting dfu-util somehow does not work (while the 0.1 version
> > works fine on the same FreeBSD host and the same Freerunner):
> > 
> > # ~/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
> 
> Could you provide a source-code diff?

attached; thanks

	matthias
-- 
Matthias Apitz
e <guru@unixarea.de> - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5

--sdtB3X0nJg68CQEu--

From owner-freebsd-usb@FreeBSD.ORG  Tue Apr 17 14:54:28 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
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 <freebsd-usb@freebsd.org>; 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 <freebsd-usb@freebsd.org>; 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 <hselasky@c2i.net>
To: Matthias Apitz <guru@unixarea.de>
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 <bruce@cran.org.uk>, 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 <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=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

From owner-freebsd-usb@FreeBSD.ORG  Tue Apr 17 15:18:14 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
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 5AEC5106571C
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 15:18:14 +0000 (UTC)
	(envelope-from guru@unixarea.de)
Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34])
	by mx1.freebsd.org (Postfix) with ESMTP id 110FC8FC14
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 15:18:14 +0000 (UTC)
Received: from [82.113.119.16] (helo=tiny.Sisis.de)
	by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.69) (envelope-from <guru@unixarea.de>)
	id 1SKAAW-0000fc-AI; Tue, 17 Apr 2012 17:18:12 +0200
Received: from tiny.Sisis.de (localhost [127.0.0.1])
	by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id q3HFI3sd001627;
	Tue, 17 Apr 2012 17:18:04 +0200 (CEST)
	(envelope-from guru@unixarea.de)
Received: (from guru@localhost)
	by tiny.Sisis.de (8.14.5/8.14.3/Submit) id q3HFI1gu001626;
	Tue, 17 Apr 2012 17:18:01 +0200 (CEST)
	(envelope-from guru@unixarea.de)
X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de
	using -f
Date: Tue, 17 Apr 2012 17:18:01 +0200
From: Matthias Apitz <guru@unixarea.de>
To: Hans Petter Selasky <hselasky@c2i.net>
Message-ID: <20120417151801.GA1476@tiny>
References: <20120417100147.GA2557@tiny> <201204171540.24558.hselasky@c2i.net>
	<20120417140737.GA1223@tiny> <201204171653.24802.hselasky@c2i.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <201204171653.24802.hselasky@c2i.net>
X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386)
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Con-Id: 51246
X-Con-U: 0-guru
X-Originating-IP: 82.113.119.16
Cc: Bruce Cran <bruce@cran.org.uk>, freebsd-usb@freebsd.org
Subject: Re: dfu-util 0.5
X-BeenThere: freebsd-usb@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Matthias Apitz <guru@unixarea.de>
List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Apr 2012 15:18:14 -0000

El día Tuesday, April 17, 2012 a las 04:53:24PM +0200, Hans Petter Selasky escribió:

> After:
> 
> <               ret = libusb_reset_device(dif->dev_handle);
> 
> Try to add:
> 
> libusb_set_configuration(dif->dev_handle, 1);

Hi,

Your code gets executed, I even added a sleep(2) after it, but the
problem remains:

...
Resetting USB...
doing libusb_set_configuration(dif->dev_handle, 1)
Opening USB Device...
No such Alternate Setting: "rootfs"

Thanks

	matthias
-- 
Matthias Apitz
e <guru@unixarea.de> - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5

From owner-freebsd-usb@FreeBSD.ORG  Tue Apr 17 15:43:05 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
Delivered-To: freebsd-usb@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id D5E41106566C
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 15:43:05 +0000 (UTC)
	(envelope-from hselasky@c2i.net)
Received: from swip.net (mailfe08.c2i.net [212.247.154.226])
	by mx1.freebsd.org (Postfix) with ESMTP id 60CFE8FC14
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 15:43:05 +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 mailfe08.swip.net (CommuniGate Pro SMTP 5.4.4)
	with ESMTPA id 264641063; Tue, 17 Apr 2012 17:37:57 +0200
From: Hans Petter Selasky <hselasky@c2i.net>
To: Matthias Apitz <guru@unixarea.de>
Date: Tue, 17 Apr 2012 17:36:56 +0200
User-Agent: KMail/1.13.5 (FreeBSD/8.3-PRERELEASE; KDE/4.4.5; amd64; ; )
References: <20120417100147.GA2557@tiny> <201204171653.24802.hselasky@c2i.net>
	<20120417151801.GA1476@tiny>
In-Reply-To: <20120417151801.GA1476@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-1"
Content-Transfer-Encoding: quoted-printable
Message-Id: <201204171736.56773.hselasky@c2i.net>
Cc: Bruce Cran <bruce@cran.org.uk>, 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 <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Apr 2012 15:43:05 -0000

On Tuesday 17 April 2012 17:18:01 Matthias Apitz wrote:
> El d=EDa Tuesday, April 17, 2012 a las 04:53:24PM +0200, Hans Petter Sela=
sky=20
escribi=F3:
> > After:
> >=20
> > <               ret =3D libusb_reset_device(dif->dev_handle);
> >=20
> > Try to add:
> >=20
> > libusb_set_configuration(dif->dev_handle, 1);
>=20
> Hi,
>=20
> Your code gets executed, I even added a sleep(2) after it, but the
> problem remains:
>=20
> ...
> Resetting USB...
> doing libusb_set_configuration(dif->dev_handle, 1)
> Opening USB Device...
> No such Alternate Setting: "rootfs"
>=20

Could you check if the libusb handle gets closed after reset?

=2D-HPS

From owner-freebsd-usb@FreeBSD.ORG  Tue Apr 17 15:48:48 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
Delivered-To: freebsd-usb@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 1E2E9106566B
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 15:48:48 +0000 (UTC)
	(envelope-from guru@unixarea.de)
Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34])
	by mx1.freebsd.org (Postfix) with ESMTP id C9EAE8FC19
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 15:48:47 +0000 (UTC)
Received: from [82.113.119.16] (helo=tiny.Sisis.de)
	by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.69) (envelope-from <guru@unixarea.de>)
	id 1SKAe4-00049v-Ty; Tue, 17 Apr 2012 17:48:45 +0200
Received: from tiny.Sisis.de (localhost [127.0.0.1])
	by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id q3HFmfQv001769;
	Tue, 17 Apr 2012 17:48:42 +0200 (CEST)
	(envelope-from guru@unixarea.de)
Received: (from guru@localhost)
	by tiny.Sisis.de (8.14.5/8.14.3/Submit) id q3HFmdKV001768;
	Tue, 17 Apr 2012 17:48:39 +0200 (CEST)
	(envelope-from guru@unixarea.de)
X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de
	using -f
Date: Tue, 17 Apr 2012 17:48:39 +0200
From: Matthias Apitz <guru@unixarea.de>
To: Hans Petter Selasky <hselasky@c2i.net>
Message-ID: <20120417154838.GA1710@tiny>
References: <20120417100147.GA2557@tiny> <201204171653.24802.hselasky@c2i.net>
	<20120417151801.GA1476@tiny> <201204171736.56773.hselasky@c2i.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <201204171736.56773.hselasky@c2i.net>
X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386)
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Con-Id: 51246
X-Con-U: 0-guru
X-Originating-IP: 82.113.119.16
Cc: Bruce Cran <bruce@cran.org.uk>, freebsd-usb@freebsd.org
Subject: Re: dfu-util 0.5
X-BeenThere: freebsd-usb@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Matthias Apitz <guru@unixarea.de>
List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Apr 2012 15:48:48 -0000

El día Tuesday, April 17, 2012 a las 05:36:56PM +0200, Hans Petter Selasky escribió:

> 
> Could you check if the libusb handle gets closed after reset?

The code part lookslike this:

                                printf("Resetting USB...\n");
                                ret = libusb_reset_device(_rt_dif.dev_handle);
                                if (ret < 0 && ret != LIBUSB_ERROR_NOT_FOUND)
                                        fprintf(stderr, "error resetting
"
                                                "after detach\n");
                                fprintf(stderr, "doing
libusb_set_configuration(dif->dev_handle, 1)\n");
                                libusb_set_configuration(dif->dev_handle,
1);
                                sleep(2);
                                fprintf(stderr, "dif->dev_handle %08x\n", dif->dev_handle);

for reset it uses _rt_dif.dev_handle, and you made me add an operation
with dif->dev_handle, is this correct?

anyway:

Resetting USB...
doing libusb_set_configuration(dif->dev_handle, 1)
dif->dev_handle 28449f00
Opening USB Device...
No such Alternate Setting: "rootfs"

Thanks

	matthias

-- 
Matthias Apitz
e <guru@unixarea.de> - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5

From owner-freebsd-usb@FreeBSD.ORG  Tue Apr 17 18:05:12 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
Delivered-To: freebsd-usb@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 3A2631065701
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 18:05:12 +0000 (UTC)
	(envelope-from hselasky@c2i.net)
Received: from swip.net (mailfe01.c2i.net [212.247.154.2])
	by mx1.freebsd.org (Postfix) with ESMTP id B92628FC1A
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 18:05:11 +0000 (UTC)
X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED
Received: from [176.74.212.201] (account mc467741@c2i.net HELO
	laptop002.hselasky.homeunix.org)
	by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.4)
	with ESMTPA id 266098415; Tue, 17 Apr 2012 20:00:03 +0200
From: Hans Petter Selasky <hselasky@c2i.net>
To: Matthias Apitz <guru@unixarea.de>
Date: Tue, 17 Apr 2012 19:59:02 +0200
User-Agent: KMail/1.13.5 (FreeBSD/8.3-PRERELEASE; KDE/4.4.5; amd64; ; )
References: <20120417100147.GA2557@tiny> <201204171736.56773.hselasky@c2i.net>
	<20120417154838.GA1710@tiny>
In-Reply-To: <20120417154838.GA1710@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-1"
Content-Transfer-Encoding: quoted-printable
Message-Id: <201204171959.02363.hselasky@c2i.net>
Cc: Bruce Cran <bruce@cran.org.uk>, 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 <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Apr 2012 18:05:12 -0000

On Tuesday 17 April 2012 17:48:39 Matthias Apitz wrote:
> El d=EDa Tuesday, April 17, 2012 a las 05:36:56PM +0200, Hans Petter Sela=
sky=20
escribi=F3:
> > Could you check if the libusb handle gets closed after reset?
>=20
> The code part lookslike this:
>=20
>                                 printf("Resetting USB...\n");
>                                 ret =3D
> libusb_reset_device(_rt_dif.dev_handle); if (ret < 0 && ret !=3D
> LIBUSB_ERROR_NOT_FOUND) fprintf(stderr, "error resetting "
>                                                 "after detach\n");
>                                 fprintf(stderr, "doing
> libusb_set_configuration(dif->dev_handle, 1)\n");
>                                 libusb_set_configuration(dif->dev_handle,
> 1);
>                                 sleep(2);
>                                 fprintf(stderr, "dif->dev_handle %08x\n",
> dif->dev_handle);
>=20
> for reset it uses _rt_dif.dev_handle, and you made me add an operation
> with dif->dev_handle, is this correct?
>=20
> anyway:
>=20
> Resetting USB...
> doing libusb_set_configuration(dif->dev_handle, 1)
> dif->dev_handle 28449f00
> Opening USB Device...
> No such Alternate Setting: "rootfs"
>=20

You should use the same handle like for libusb_reset_device();

=2D-HPS

From owner-freebsd-usb@FreeBSD.ORG  Tue Apr 17 18:29:47 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
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 C2B4D106566C
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 18:29:47 +0000 (UTC)
	(envelope-from guru@unixarea.de)
Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34])
	by mx1.freebsd.org (Postfix) with ESMTP id 7BD9C8FC16
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 18:29:47 +0000 (UTC)
Received: from [89.204.139.201] (helo=tiny.Sisis.de)
	by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.69) (envelope-from <guru@unixarea.de>)
	id 1SKD9s-00073u-BD; Tue, 17 Apr 2012 20:29:44 +0200
Received: from tiny.Sisis.de (localhost [127.0.0.1])
	by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id q3HITeqC001256;
	Tue, 17 Apr 2012 20:29:41 +0200 (CEST)
	(envelope-from guru@unixarea.de)
Received: (from guru@localhost)
	by tiny.Sisis.de (8.14.5/8.14.3/Submit) id q3HITcCH001255;
	Tue, 17 Apr 2012 20:29:38 +0200 (CEST)
	(envelope-from guru@unixarea.de)
X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de
	using -f
Date: Tue, 17 Apr 2012 20:29:38 +0200
From: Matthias Apitz <guru@unixarea.de>
To: Hans Petter Selasky <hselasky@c2i.net>
Message-ID: <20120417182937.GA1250@tiny>
References: <20120417100147.GA2557@tiny> <201204171736.56773.hselasky@c2i.net>
	<20120417154838.GA1710@tiny> <201204171959.02363.hselasky@c2i.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <201204171959.02363.hselasky@c2i.net>
X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386)
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Con-Id: 51246
X-Con-U: 0-guru
X-Originating-IP: 89.204.139.201
Cc: Bruce Cran <bruce@cran.org.uk>, freebsd-usb@freebsd.org
Subject: Re: dfu-util 0.5
X-BeenThere: freebsd-usb@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Matthias Apitz <guru@unixarea.de>
List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Apr 2012 18:29:47 -0000

El día Tuesday, April 17, 2012 a las 07:59:02PM +0200, Hans Petter Selasky escribió:

> > Resetting USB...
> > doing libusb_set_configuration(dif->dev_handle, 1)
> > dif->dev_handle 28449f00
> > Opening USB Device...
> > No such Alternate Setting: "rootfs"
> > 
> 
> You should use the same handle like for libusb_reset_device();

same result:

Opening DFU USB device... ID 1d50:5119
Run-time device DFU version 0100
Claiming USB DFU Runtime Interface...
Determining device status: state = appIDLE, status = 0
Device really in Runtime Mode, send DFU detach request...
Resetting USB...
libusb_set_configuration(_rt_dif.dev_handle, 1)
_rt_dif.dev_handle 28449d80
Opening USB Device...
No such Alternate Setting: "rootfs"

Thanks

	matthias
-- 
Matthias Apitz
e <guru@unixarea.de> - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5

From owner-freebsd-usb@FreeBSD.ORG  Tue Apr 17 18:43:05 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
Delivered-To: freebsd-usb@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 85DEE1065674
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 18:43:05 +0000 (UTC)
	(envelope-from hselasky@c2i.net)
Received: from swip.net (mailfe05.c2i.net [212.247.154.130])
	by mx1.freebsd.org (Postfix) with ESMTP id 1036B8FC18
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 18:43:04 +0000 (UTC)
X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED
Received: from [176.74.212.201] (account mc467741@c2i.net HELO
	laptop002.hselasky.homeunix.org)
	by mailfe05.swip.net (CommuniGate Pro SMTP 5.4.4)
	with ESMTPA id 261213538; Tue, 17 Apr 2012 20:42:57 +0200
From: Hans Petter Selasky <hselasky@c2i.net>
To: Matthias Apitz <guru@unixarea.de>
Date: Tue, 17 Apr 2012 20:41:56 +0200
User-Agent: KMail/1.13.5 (FreeBSD/8.3-PRERELEASE; KDE/4.4.5; amd64; ; )
References: <20120417100147.GA2557@tiny> <201204171959.02363.hselasky@c2i.net>
	<20120417182937.GA1250@tiny>
In-Reply-To: <20120417182937.GA1250@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-1"
Content-Transfer-Encoding: quoted-printable
Message-Id: <201204172041.56552.hselasky@c2i.net>
Cc: Bruce Cran <bruce@cran.org.uk>, 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 <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Apr 2012 18:43:05 -0000

On Tuesday 17 April 2012 20:29:38 Matthias Apitz wrote:
> El d=EDa Tuesday, April 17, 2012 a las 07:59:02PM +0200, Hans Petter Sela=
sky=20
escribi=F3:
> > > Resetting USB...
> > > doing libusb_set_configuration(dif->dev_handle, 1)
> > > dif->dev_handle 28449f00
> > > Opening USB Device...
> > > No such Alternate Setting: "rootfs"
> >=20
> > You should use the same handle like for libusb_reset_device();
>=20
> same result:
>=20
> Opening DFU USB device... ID 1d50:5119
> Run-time device DFU version 0100
> Claiming USB DFU Runtime Interface...
> Determining device status: state =3D appIDLE, status =3D 0
> Device really in Runtime Mode, send DFU detach request...
> Resetting USB...
> libusb_set_configuration(_rt_dif.dev_handle, 1)
> _rt_dif.dev_handle 28449d80
> Opening USB Device...
> No such Alternate Setting: "rootfs"

What does usbconfig say about your device after this procedure?

=2D-HPS

From owner-freebsd-usb@FreeBSD.ORG  Tue Apr 17 18:52:31 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
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 0FC06106566B
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 18:52:30 +0000 (UTC)
	(envelope-from guru@unixarea.de)
Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34])
	by mx1.freebsd.org (Postfix) with ESMTP id 0717E8FC14
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 18:52:30 +0000 (UTC)
Received: from [89.204.139.201] (helo=tiny.Sisis.de)
	by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.69) (envelope-from <guru@unixarea.de>)
	id 1SKDVn-0005BL-0s; Tue, 17 Apr 2012 20:52:27 +0200
Received: from tiny.Sisis.de (localhost [127.0.0.1])
	by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id q3HIqJ7r001320;
	Tue, 17 Apr 2012 20:52:20 +0200 (CEST)
	(envelope-from guru@unixarea.de)
Received: (from guru@localhost)
	by tiny.Sisis.de (8.14.5/8.14.3/Submit) id q3HIqHsW001319;
	Tue, 17 Apr 2012 20:52:17 +0200 (CEST)
	(envelope-from guru@unixarea.de)
X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de
	using -f
Date: Tue, 17 Apr 2012 20:52:17 +0200
From: Matthias Apitz <guru@unixarea.de>
To: Hans Petter Selasky <hselasky@c2i.net>
Message-ID: <20120417185216.GA1306@tiny>
References: <20120417100147.GA2557@tiny> <201204171959.02363.hselasky@c2i.net>
	<20120417182937.GA1250@tiny> <201204172041.56552.hselasky@c2i.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <201204172041.56552.hselasky@c2i.net>
X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386)
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Con-Id: 51246
X-Con-U: 0-guru
X-Originating-IP: 89.204.139.201
Cc: Bruce Cran <bruce@cran.org.uk>, freebsd-usb@freebsd.org
Subject: Re: dfu-util 0.5
X-BeenThere: freebsd-usb@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Matthias Apitz <guru@unixarea.de>
List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Apr 2012 18:52:31 -0000

El día Tuesday, April 17, 2012 a las 08:41:56PM +0200, Hans Petter Selasky escribió:

> > Claiming USB DFU Runtime Interface...
> > Determining device status: state = appIDLE, status = 0
> > Device really in Runtime Mode, send DFU detach request...
> > Resetting USB...
> > libusb_set_configuration(_rt_dif.dev_handle, 1)
> > _rt_dif.dev_handle 28449d80
> > Opening USB Device...
> > No such Alternate Setting: "rootfs"
> 
> What does usbconfig say about your device after this procedure?

after such flash attempt it says


ugen0.1: <UHCI root HUB Intel> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE


 Configuration index 0

    bLength = 0x0009 
    bDescriptorType = 0x0002 
    wTotalLength = 0x0019 
    bNumInterfaces = 0x0001 
    bConfigurationValue = 0x0001 
    iConfiguration = 0x0000  <no string>
    bmAttributes = 0x0040 
    bMaxPower = 0x0000 

    Interface 0
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0000 
      bAlternateSetting = 0x0000 
      bNumEndpoints = 0x0001 
      bInterfaceClass = 0x0009 
      bInterfaceSubClass = 0x0000 
      bInterfaceProtocol = 0x0000 
      iInterface = 0x0000  <no string>

     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0081  <IN>
        bmAttributes = 0x0003  <INTERRUPT>
        wMaxPacketSize = 0x0008 
        bInterval = 0x00ff 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 



ugen1.1: <UHCI root HUB Intel> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE


 Configuration index 0

    bLength = 0x0009 
    bDescriptorType = 0x0002 
    wTotalLength = 0x0019 
    bNumInterfaces = 0x0001 
    bConfigurationValue = 0x0001 
    iConfiguration = 0x0000  <no string>
    bmAttributes = 0x0040 
    bMaxPower = 0x0000 

    Interface 0
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0000 
      bAlternateSetting = 0x0000 
      bNumEndpoints = 0x0001 
      bInterfaceClass = 0x0009 
      bInterfaceSubClass = 0x0000 
      bInterfaceProtocol = 0x0000 
      iInterface = 0x0000  <no string>

     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0081  <IN>
        bmAttributes = 0x0003  <INTERRUPT>
        wMaxPacketSize = 0x0008 
        bInterval = 0x00ff 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 



ugen2.1: <UHCI root HUB Intel> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE


 Configuration index 0

    bLength = 0x0009 
    bDescriptorType = 0x0002 
    wTotalLength = 0x0019 
    bNumInterfaces = 0x0001 
    bConfigurationValue = 0x0001 
    iConfiguration = 0x0000  <no string>
    bmAttributes = 0x0040 
    bMaxPower = 0x0000 

    Interface 0
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0000 
      bAlternateSetting = 0x0000 
      bNumEndpoints = 0x0001 
      bInterfaceClass = 0x0009 
      bInterfaceSubClass = 0x0000 
      bInterfaceProtocol = 0x0000 
      iInterface = 0x0000  <no string>

     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0081  <IN>
        bmAttributes = 0x0003  <INTERRUPT>
        wMaxPacketSize = 0x0008 
        bInterval = 0x00ff 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 



ugen3.1: <UHCI root HUB Intel> at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE


 Configuration index 0

    bLength = 0x0009 
    bDescriptorType = 0x0002 
    wTotalLength = 0x0019 
    bNumInterfaces = 0x0001 
    bConfigurationValue = 0x0001 
    iConfiguration = 0x0000  <no string>
    bmAttributes = 0x0040 
    bMaxPower = 0x0000 

    Interface 0
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0000 
      bAlternateSetting = 0x0000 
      bNumEndpoints = 0x0001 
      bInterfaceClass = 0x0009 
      bInterfaceSubClass = 0x0000 
      bInterfaceProtocol = 0x0000 
      iInterface = 0x0000  <no string>

     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0081  <IN>
        bmAttributes = 0x0003  <INTERRUPT>
        wMaxPacketSize = 0x0008 
        bInterval = 0x00ff 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 



ugen4.1: <EHCI root HUB Intel> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE


 Configuration index 0

    bLength = 0x0009 
    bDescriptorType = 0x0002 
    wTotalLength = 0x0019 
    bNumInterfaces = 0x0001 
    bConfigurationValue = 0x0001 
    iConfiguration = 0x0000  <no string>
    bmAttributes = 0x0040 
    bMaxPower = 0x0000 

    Interface 0
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0000 
      bAlternateSetting = 0x0000 
      bNumEndpoints = 0x0001 
      bInterfaceClass = 0x0009 
      bInterfaceSubClass = 0x0000 
      bInterfaceProtocol = 0x0000 
      iInterface = 0x0000  <no string>

     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0081  <IN>
        bmAttributes = 0x0003  <INTERRUPT>
        wMaxPacketSize = 0x0008 
        bInterval = 0x00ff 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 



ugen4.2: <UB6225 ENE> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON


 Configuration index 0

    bLength = 0x0009 
    bDescriptorType = 0x0002 
    wTotalLength = 0x0020 
    bNumInterfaces = 0x0001 
    bConfigurationValue = 0x0001 
    iConfiguration = 0x0000  <no string>
    bmAttributes = 0x0080 
    bMaxPower = 0x00f9 

    Interface 0
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0000 
      bAlternateSetting = 0x0000 
      bNumEndpoints = 0x0002 
      bInterfaceClass = 0x0008 
      bInterfaceSubClass = 0x0006 
      bInterfaceProtocol = 0x0050 
      iInterface = 0x0000  <no string>

     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0001  <OUT>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0200 
        bInterval = 0x0000 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 

     Endpoint 1
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0082  <IN>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0200 
        bInterval = 0x0000 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 



ugen4.3: <CNF7129 Chicony Electronics Co., Ltd.> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON


 Configuration index 0

    bLength = 0x0009 
    bDescriptorType = 0x0002 
    wTotalLength = 0x0250 
    bNumInterfaces = 0x0002 
    bConfigurationValue = 0x0001 
    iConfiguration = 0x0000  <no string>
    bmAttributes = 0x0080 
    bMaxPower = 0x00fa 

    Additional Descriptor

    bLength = 0x08
    bDescriptorType = 0x0b
    bDescriptorSubType = 0x00
     RAW dump: 
     0x00 | 0x08, 0x0b, 0x00, 0x02, 0x0e, 0x03, 0x00, 0x05


    Interface 0
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0000 
      bAlternateSetting = 0x0000 
      bNumEndpoints = 0x0001 
      bInterfaceClass = 0x000e 
      bInterfaceSubClass = 0x0001 
      bInterfaceProtocol = 0x0000 
      iInterface = 0x0005  <USB2.0 1.3M UVC WebCam>

      Additional Descriptor

      bLength = 0x0d
      bDescriptorType = 0x24
      bDescriptorSubType = 0x01
       RAW dump: 
       0x00 | 0x0d, 0x24, 0x01, 0x00, 0x01, 0x68, 0x00, 0xc0, 
       0x08 | 0xe1, 0xe4, 0x00, 0x01, 0x01


      Additional Descriptor

      bLength = 0x09
      bDescriptorType = 0x24
      bDescriptorSubType = 0x03
       RAW dump: 
       0x00 | 0x09, 0x24, 0x03, 0x02, 0x01, 0x01, 0x00, 0x05, 
       0x08 | 0x00

      Additional Descriptor

      bLength = 0x1a
      bDescriptorType = 0x24
      bDescriptorSubType = 0x06
       RAW dump: 
       0x00 | 0x1a, 0x24, 0x06, 0x04, 0x70, 0x33, 0xf0, 0x28, 
       0x08 | 0x11, 0x63, 0x2e, 0x4a, 0xba, 0x2c, 0x68, 0x90, 
       0x10 | 0xeb, 0x33, 0x40, 0x16, 0x08, 0x01, 0x03, 0x01, 
       0x18 | 0x0f, 0x00


      Additional Descriptor

      bLength = 0x1a
      bDescriptorType = 0x24
      bDescriptorSubType = 0x06
       RAW dump: 
       0x00 | 0x1a, 0x24, 0x06, 0x05, 0x3f, 0xae, 0x12, 0x28, 
       0x08 | 0xd7, 0xbc, 0x11, 0x4e, 0xa3, 0x57, 0x6f, 0x1e, 
       0x10 | 0xde, 0xf7, 0xd6, 0x1d, 0x08, 0x01, 0x04, 0x01, 
       0x18 | 0xff, 0x00


      Additional Descriptor

      bLength = 0x12
      bDescriptorType = 0x24
      bDescriptorSubType = 0x02
       RAW dump: 
       0x00 | 0x12, 0x24, 0x02, 0x01, 0x01, 0x02, 0x00, 0x00, 
       0x08 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 
       0x10 | 0x00, 0x00


      Additional Descriptor

      bLength = 0x0c
      bDescriptorType = 0x24
      bDescriptorSubType = 0x05
       RAW dump: 
       0x00 | 0x0c, 0x24, 0x05, 0x03, 0x01, 0x00, 0x00, 0x03, 
       0x08 | 0xbf, 0x25, 0x00, 0x00


     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0083  <IN>
        bmAttributes = 0x0003  <INTERRUPT>
        wMaxPacketSize = 0x0010 
        bInterval = 0x0006 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 

      Additional Descriptor

      bLength = 0x05
      bDescriptorType = 0x25
      bDescriptorSubType = 0x03
       RAW dump: 
       0x00 | 0x05, 0x25, 0x03, 0x10, 0x00



    Interface 1
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0001 
      bAlternateSetting = 0x0000 
      bNumEndpoints = 0x0000 
      bInterfaceClass = 0x000e 
      bInterfaceSubClass = 0x0002 
      bInterfaceProtocol = 0x0000 
      iInterface = 0x0000  <no string>

      Additional Descriptor

      bLength = 0x0e
      bDescriptorType = 0x24
      bDescriptorSubType = 0x01
       RAW dump: 
       0x00 | 0x0e, 0x24, 0x01, 0x01, 0x59, 0x01, 0x81, 0x00, 
       0x08 | 0x02, 0x00, 0x01, 0x00, 0x01, 0x00


      Additional Descriptor

      bLength = 0x1b
      bDescriptorType = 0x24
      bDescriptorSubType = 0x04
       RAW dump: 
       0x00 | 0x1b, 0x24, 0x04, 0x01, 0x07, 0x59, 0x55, 0x59, 
       0x08 | 0x32, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00, 
       0x10 | 0xaa, 0x00, 0x38, 0x9b, 0x71, 0x10, 0x01, 0x00, 
       0x18 | 0x00, 0x00, 0x00


      Additional Descriptor

      bLength = 0x2e
      bDescriptorType = 0x24
      bDescriptorSubType = 0x05
       RAW dump: 
       0x00 | 0x2e, 0x24, 0x05, 0x01, 0x00, 0x80, 0x02, 0xe0, 
       0x08 | 0x01, 0x00, 0xe0, 0x2e, 0x00, 0x00, 0x40, 0x19, 
       0x10 | 0x01, 0x00, 0x60, 0x09, 0x00, 0x15, 0x16, 0x05, 
       0x18 | 0x00, 0x05, 0x15, 0x16, 0x05, 0x00, 0x20, 0xa1, 
       0x20 | 0x07, 0x00, 0x2a, 0x2c, 0x0a, 0x00, 0x40, 0x42, 
       0x28 | 0x0f, 0x00, 0x80, 0x84, 0x1e, 0x00


      Additional Descriptor

      bLength = 0x2e
      bDescriptorType = 0x24
      bDescriptorSubType = 0x05
       RAW dump: 
       0x00 | 0x2e, 0x24, 0x05, 0x02, 0x00, 0x60, 0x01, 0x20, 
       0x08 | 0x01, 0x00, 0x78, 0x0f, 0x00, 0x00, 0xd0, 0x5c, 
       0x10 | 0x00, 0x00, 0x18, 0x03, 0x00, 0x15, 0x16, 0x05, 
       0x18 | 0x00, 0x05, 0x15, 0x16, 0x05, 0x00, 0x20, 0xa1, 
       0x20 | 0x07, 0x00, 0x2a, 0x2c, 0x0a, 0x00, 0x40, 0x42, 
       0x28 | 0x0f, 0x00, 0x80, 0x84, 0x1e, 0x00


      Additional Descriptor

      bLength = 0x2e
      bDescriptorType = 0x24
      bDescriptorSubType = 0x05
       RAW dump: 
       0x00 | 0x2e, 0x24, 0x05, 0x03, 0x00, 0x40, 0x01, 0xf0, 
       0x08 | 0x00, 0x00, 0xb8, 0x0b, 0x00, 0x00, 0x50, 0x46, 
       0x10 | 0x00, 0x00, 0x58, 0x02, 0x00, 0x15, 0x16, 0x05, 
       0x18 | 0x00, 0x05, 0x15, 0x16, 0x05, 0x00, 0x20, 0xa1, 
       0x20 | 0x07, 0x00, 0x2a, 0x2c, 0x0a, 0x00, 0x40, 0x42, 
       0x28 | 0x0f, 0x00, 0x80, 0x84, 0x1e, 0x00


      Additional Descriptor

      bLength = 0x2e
      bDescriptorType = 0x24
      bDescriptorSubType = 0x05
       RAW dump: 
       0x00 | 0x2e, 0x24, 0x05, 0x04, 0x00, 0xb0, 0x00, 0x90, 
       0x08 | 0x00, 0x00, 0xde, 0x03, 0x00, 0x00, 0x34, 0x17, 
       0x10 | 0x00, 0x00, 0xc6, 0x00, 0x00, 0x15, 0x16, 0x05, 
       0x18 | 0x00, 0x05, 0x15, 0x16, 0x05, 0x00, 0x20, 0xa1, 
       0x20 | 0x07, 0x00, 0x2a, 0x2c, 0x0a, 0x00, 0x40, 0x42, 
       0x28 | 0x0f, 0x00, 0x80, 0x84, 0x1e, 0x00


      Additional Descriptor

      bLength = 0x2e
      bDescriptorType = 0x24
      bDescriptorSubType = 0x05
       RAW dump: 
       0x00 | 0x2e, 0x24, 0x05, 0x05, 0x00, 0xa0, 0x00, 0x78, 
       0x08 | 0x00, 0x00, 0xee, 0x02, 0x00, 0x00, 0x94, 0x11, 
       0x10 | 0x00, 0x00, 0x96, 0x00, 0x00, 0x15, 0x16, 0x05, 
       0x18 | 0x00, 0x05, 0x15, 0x16, 0x05, 0x00, 0x20, 0xa1, 
       0x20 | 0x07, 0x00, 0x2a, 0x2c, 0x0a, 0x00, 0x40, 0x42, 
       0x28 | 0x0f, 0x00, 0x80, 0x84, 0x1e, 0x00


      Additional Descriptor

      bLength = 0x22
      bDescriptorType = 0x24
      bDescriptorSubType = 0x05
       RAW dump: 
       0x00 | 0x22, 0x24, 0x05, 0x06, 0x00, 0x00, 0x05, 0x20, 
       0x08 | 0x03, 0x00, 0x40, 0x9c, 0x00, 0x00, 0xc0, 0xda, 
       0x10 | 0x00, 0x00, 0x40, 0x1f, 0x00, 0x5b, 0xcc, 0x15, 
       0x18 | 0x00, 0x02, 0x5b, 0xcc, 0x15, 0x00, 0x80, 0x84, 
       0x20 | 0x1e, 0x00


      Additional Descriptor

      bLength = 0x22
      bDescriptorType = 0x24
      bDescriptorSubType = 0x05
       RAW dump: 
       0x00 | 0x22, 0x24, 0x05, 0x07, 0x00, 0x00, 0x05, 0x00, 
       0x08 | 0x04, 0x00, 0x00, 0xc8, 0x00, 0x00, 0x00, 0x18, 
       0x10 | 0x01, 0x00, 0x00, 0x28, 0x00, 0x5b, 0xcc, 0x15, 
       0x18 | 0x00, 0x02, 0x5b, 0xcc, 0x15, 0x00, 0x80, 0x84, 
       0x20 | 0x1e, 0x00


      Additional Descriptor

      bLength = 0x06
      bDescriptorType = 0x24
      bDescriptorSubType = 0x0d
       RAW dump: 
       0x00 | 0x06, 0x24, 0x0d, 0x01, 0x01, 0x04



    Interface 1 Alt 1
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0001 
      bAlternateSetting = 0x0001 
      bNumEndpoints = 0x0001 
      bInterfaceClass = 0x000e 
      bInterfaceSubClass = 0x0002 
      bInterfaceProtocol = 0x0000 
      iInterface = 0x0000  <no string>

     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0081  <IN>
        bmAttributes = 0x0005  <ASYNC-ISOCHRONOUS>
        wMaxPacketSize = 0x0080 
        bInterval = 0x0001 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 


    Interface 1 Alt 2
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0001 
      bAlternateSetting = 0x0002 
      bNumEndpoints = 0x0001 
      bInterfaceClass = 0x000e 
      bInterfaceSubClass = 0x0002 
      bInterfaceProtocol = 0x0000 
      iInterface = 0x0000  <no string>

     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0081  <IN>
        bmAttributes = 0x0005  <ASYNC-ISOCHRONOUS>
        wMaxPacketSize = 0x0100 
        bInterval = 0x0001 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 


    Interface 1 Alt 3
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0001 
      bAlternateSetting = 0x0003 
      bNumEndpoints = 0x0001 
      bInterfaceClass = 0x000e 
      bInterfaceSubClass = 0x0002 
      bInterfaceProtocol = 0x0000 
      iInterface = 0x0000  <no string>

     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0081  <IN>
        bmAttributes = 0x0005  <ASYNC-ISOCHRONOUS>
        wMaxPacketSize = 0x0320 
        bInterval = 0x0001 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 


    Interface 1 Alt 4
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0001 
      bAlternateSetting = 0x0004 
      bNumEndpoints = 0x0001 
      bInterfaceClass = 0x000e 
      bInterfaceSubClass = 0x0002 
      bInterfaceProtocol = 0x0000 
      iInterface = 0x0000  <no string>

     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0081  <IN>
        bmAttributes = 0x0005  <ASYNC-ISOCHRONOUS>
        wMaxPacketSize = 0x0b20 
        bInterval = 0x0001 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 


    Interface 1 Alt 5
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0001 
      bAlternateSetting = 0x0005 
      bNumEndpoints = 0x0001 
      bInterfaceClass = 0x000e 
      bInterfaceSubClass = 0x0002 
      bInterfaceProtocol = 0x0000 
      iInterface = 0x0000  <no string>

     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0081  <IN>
        bmAttributes = 0x0005  <ASYNC-ISOCHRONOUS>
        wMaxPacketSize = 0x1320 
        bInterval = 0x0001 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 


    Interface 1 Alt 6
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0001 
      bAlternateSetting = 0x0006 
      bNumEndpoints = 0x0001 
      bInterfaceClass = 0x000e 
      bInterfaceSubClass = 0x0002 
      bInterfaceProtocol = 0x0000 
      iInterface = 0x0000  <no string>

     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0081  <IN>
        bmAttributes = 0x0005  <ASYNC-ISOCHRONOUS>
        wMaxPacketSize = 0x1400 
        bInterval = 0x0001 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 



ugen4.4: <HUAWEI Mobile HUAWEI Technology> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON


 Configuration index 0

    bLength = 0x0009 
    bDescriptorType = 0x0002 
    wTotalLength = 0x00a1 
    bNumInterfaces = 0x0006 
    bConfigurationValue = 0x0001 
    iConfiguration = 0x0001  <Huawei   Configuration>
    bmAttributes = 0x00e0 
    bMaxPower = 0x00fa 

    Interface 0
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0000 
      bAlternateSetting = 0x0000 
      bNumEndpoints = 0x0003 
      bInterfaceClass = 0x00ff 
      bInterfaceSubClass = 0x00ff 
      bInterfaceProtocol = 0x00ff 
      iInterface = 0x0000  <no string>

     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0081  <IN>
        bmAttributes = 0x0003  <INTERRUPT>
        wMaxPacketSize = 0x0040 
        bInterval = 0x0005 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 

     Endpoint 1
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0082  <IN>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0200 
        bInterval = 0x0020 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 

     Endpoint 2
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0001  <OUT>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0200 
        bInterval = 0x0020 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 


    Interface 1
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0001 
      bAlternateSetting = 0x0000 
      bNumEndpoints = 0x0003 
      bInterfaceClass = 0x00ff 
      bInterfaceSubClass = 0x00ff 
      bInterfaceProtocol = 0x00ff 
      iInterface = 0x0000  <no string>

     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0083  <IN>
        bmAttributes = 0x0003  <INTERRUPT>
        wMaxPacketSize = 0x0040 
        bInterval = 0x0005 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 

     Endpoint 1
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0084  <IN>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0200 
        bInterval = 0x0020 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 

     Endpoint 2
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0002  <OUT>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0200 
        bInterval = 0x0020 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 


    Interface 2
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0002 
      bAlternateSetting = 0x0000 
      bNumEndpoints = 0x0002 
      bInterfaceClass = 0x00ff 
      bInterfaceSubClass = 0x00ff 
      bInterfaceProtocol = 0x00ff 
      iInterface = 0x0000  <no string>

     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0085  <IN>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0200 
        bInterval = 0x0020 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 

     Endpoint 1
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0003  <OUT>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0200 
        bInterval = 0x0020 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 


    Interface 3
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0003 
      bAlternateSetting = 0x0000 
      bNumEndpoints = 0x0002 
      bInterfaceClass = 0x00ff 
      bInterfaceSubClass = 0x00ff 
      bInterfaceProtocol = 0x00ff 
      iInterface = 0x0000  <no string>

     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0086  <IN>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0200 
        bInterval = 0x0020 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 

     Endpoint 1
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0004  <OUT>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0200 
        bInterval = 0x0020 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 


    Interface 4
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0004 
      bAlternateSetting = 0x0000 
      bNumEndpoints = 0x0002 
      bInterfaceClass = 0x0008 
      bInterfaceSubClass = 0x0006 
      bInterfaceProtocol = 0x0050 
      iInterface = 0x0000  <no string>

     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0087  <IN>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0200 
        bInterval = 0x0000 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 

     Endpoint 1
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0005  <OUT>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0200 
        bInterval = 0x0000 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 


    Interface 5
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0005 
      bAlternateSetting = 0x0000 
      bNumEndpoints = 0x0002 
      bInterfaceClass = 0x0008 
      bInterfaceSubClass = 0x0006 
      bInterfaceProtocol = 0x0050 
      iInterface = 0x0000  <no string>

     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0006  <OUT>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0200 
        bInterval = 0x0000 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 

     Endpoint 1
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0088  <IN>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0200 
        bInterval = 0x0000 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 



ugen1.2: <Neo1973 Bootloader U-Boot 1.3.2-moko12 OpenMoko, Inc> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON


 Configuration index 0

    bLength = 0x0009 
    bDescriptorType = 0x0002 
    wTotalLength = 0x0051 
    bNumInterfaces = 0x0001 
    bConfigurationValue = 0x0001 
    iConfiguration = 0x0007  <USB Device Firmware Upgrade>
    bmAttributes = 0x0080 
    bMaxPower = 0x0032 

    Interface 0
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0000 
      bAlternateSetting = 0x0000 
      bNumEndpoints = 0x0000 
      bInterfaceClass = 0x00fe 
      bInterfaceSubClass = 0x0001 
      bInterfaceProtocol = 0x0002 
      iInterface = 0x0008  <RAM 0x32000000>


    Interface 0 Alt 1
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0000 
      bAlternateSetting = 0x0001 
      bNumEndpoints = 0x0000 
      bInterfaceClass = 0x00fe 
      bInterfaceSubClass = 0x0001 
      bInterfaceProtocol = 0x0002 
      iInterface = 0x0009  <u-boot>


    Interface 0 Alt 2
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0000 
      bAlternateSetting = 0x0002 
      bNumEndpoints = 0x0000 
      bInterfaceClass = 0x00fe 
      bInterfaceSubClass = 0x0001 
      bInterfaceProtocol = 0x0002 
      iInterface = 0x000a  <u-boot_env>


    Interface 0 Alt 3
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0000 
      bAlternateSetting = 0x0003 
      bNumEndpoints = 0x0000 
      bInterfaceClass = 0x00fe 
      bInterfaceSubClass = 0x0001 
      bInterfaceProtocol = 0x0002 
      iInterface = 0x000b  <kernel>


    Interface 0 Alt 4
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0000 
      bAlternateSetting = 0x0004 
      bNumEndpoints = 0x0000 
      bInterfaceClass = 0x00fe 
      bInterfaceSubClass = 0x0001 
      bInterfaceProtocol = 0x0002 
      iInterface = 0x000c  <splash>


    Interface 0 Alt 5
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0000 
      bAlternateSetting = 0x0005 
      bNumEndpoints = 0x0000 
      bInterfaceClass = 0x00fe 
      bInterfaceSubClass = 0x0001 
      bInterfaceProtocol = 0x0002 
      iInterface = 0x000d  <factory>


    Interface 0 Alt 6
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0000 
      bAlternateSetting = 0x0006 
      bNumEndpoints = 0x0000 
      bInterfaceClass = 0x00fe 
      bInterfaceSubClass = 0x0001 
      bInterfaceProtocol = 0x0002 
      iInterface = 0x000e  <rootfs>

      Additional Descriptor

      bLength = 0x09
      bDescriptorType = 0x21
      bDescriptorSubType = 0x07
       RAW dump: 
       0x00 | 0x09, 0x21, 0x07, 0x00, 0xff, 0x00, 0x10, 0x00, 
       0x08 | 0x01



-- 
Matthias Apitz
e <guru@unixarea.de> - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5

From owner-freebsd-usb@FreeBSD.ORG  Tue Apr 17 19:59:40 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
Delivered-To: freebsd-usb@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 2BF7D1065676
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 19:59:40 +0000 (UTC)
	(envelope-from hselasky@c2i.net)
Received: from swip.net (mailfe05.c2i.net [212.247.154.130])
	by mx1.freebsd.org (Postfix) with ESMTP id 9814B8FC1A
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 19:59:39 +0000 (UTC)
X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED
Received: from [176.74.212.201] (account mc467741@c2i.net HELO
	laptop002.hselasky.homeunix.org)
	by mailfe05.swip.net (CommuniGate Pro SMTP 5.4.4)
	with ESMTPA id 261231046; Tue, 17 Apr 2012 21:59:37 +0200
From: Hans Petter Selasky <hselasky@c2i.net>
To: Matthias Apitz <guru@unixarea.de>
Date: Tue, 17 Apr 2012 21:58:36 +0200
User-Agent: KMail/1.13.5 (FreeBSD/8.3-PRERELEASE; KDE/4.4.5; amd64; ; )
References: <20120417100147.GA2557@tiny> <201204172041.56552.hselasky@c2i.net>
	<20120417185216.GA1306@tiny>
In-Reply-To: <20120417185216.GA1306@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: Multipart/Mixed;
  boundary="Boundary-00=_stcjPEB6qXT1vpE"
Message-Id: <201204172158.36499.hselasky@c2i.net>
Cc: Bruce Cran <bruce@cran.org.uk>, 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 <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Apr 2012 19:59:40 -0000

--Boundary-00=_stcjPEB6qXT1vpE
Content-Type: Text/Plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hi Matthias,

I reviewed the dfu-util code and there is a bug there with regard to libusb 
usage.

Can you try the attached patch. It fixes a duplicate libusb open bug.

--HPS

--Boundary-00=_stcjPEB6qXT1vpE
Content-Type: text/x-patch;
  charset="iso-8859-1";
  name="dfu-util.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
	filename="dfu-util.patch"

diff --git a/src/main.c b/src/main.c
index 8986859..11ddf4f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -63,7 +63,7 @@ int verbose = 0;
  * Iterate through all DFU interfaces and their alternate settings
  * and call the passed handler function on each setting until handler
  * returns non-zero. */
-static int find_dfu_if(libusb_device *dev,
+static int find_dfu_if(libusb_device *dev, libusb_device_handle *devh,
 		       int (*handler)(struct dfu_if *, void *),
 		       void *v)
 {
@@ -83,24 +83,25 @@ static int find_dfu_if(libusb_device *dev,
 	     cfg_idx++) {
 		rc = libusb_get_config_descriptor(dev, cfg_idx, &cfg);
 		if (rc)
-			return rc;
+			goto done;	
 		/* in some cases, noticably FreeBSD if uid != 0,
 		 * the configuration descriptors are empty */
 		if (!cfg)
-			return 0;
+			goto done;
 		for (intf_idx = 0; intf_idx < cfg->bNumInterfaces;
 		     intf_idx++) {
 			uif = &cfg->interface[intf_idx];
 			if (!uif)
-				return 0;
+				goto done;
 			for (alt_idx = 0;
 			     alt_idx < uif->num_altsetting; alt_idx++) {
 				intf = &uif->altsetting[alt_idx];
 				if (!intf)
-					return 0;
+					goto done;
 				if (intf->bInterfaceClass == 0xfe &&
 				    intf->bInterfaceSubClass == 1) {
 					dfu_if->dev = dev;
+					dfu_if->dev_handle = devh;
 					dfu_if->vendor =
 						desc.idVendor;
 					dfu_if->product =
@@ -115,17 +116,21 @@ static int find_dfu_if(libusb_device *dev,
 						dfu_if->flags |= DFU_IFF_DFU;
 					else
 						dfu_if->flags &= ~DFU_IFF_DFU;
-					if (!handler)
-						return 1;
+					if (!handler) {
+						rc = 1;
+						goto done;
+					}
 					rc = handler(dfu_if, v);
 					if (rc != 0)
-						return rc;
+						goto done;
 				}
 			}
 		}
-
 		libusb_free_config_descriptor(cfg);
 	}
+done:
+	if (devh == NULL && dfu_if->dev_handle != NULL)
+		libusb_close(dfu_if->dev_handle);
 
 	return 0;
 }
@@ -145,7 +150,8 @@ static int _get_first_cb(struct dfu_if *dif, void *v)
 /* Fills in dif with the first found DFU interface */
 static int get_first_dfu_if(struct dfu_if *dif)
 {
-	return find_dfu_if(dif->dev, &_get_first_cb, (void *) dif);
+	return find_dfu_if(dif->dev, dif->dev_handle,
+	    &_get_first_cb, (void *) dif);
 }
 
 static int _check_match_cb(struct dfu_if *dif, void *v)
@@ -164,7 +170,8 @@ static int _check_match_cb(struct dfu_if *dif, void *v)
 /* Fills in dif from the matching DFU interface/altsetting */
 static int get_matching_dfu_if(struct dfu_if *dif)
 {
-	return find_dfu_if(dif->dev, &_check_match_cb, (void *) dif);
+	return find_dfu_if(dif->dev, dif->dev_handle,
+	    &_check_match_cb, (void *) dif);
 }
 
 static int _count_match_cb(struct dfu_if *dif, void *v)
@@ -185,7 +192,8 @@ static int _count_match_cb(struct dfu_if *dif, void *v)
 static int count_matching_dfu_if(struct dfu_if *dif)
 {
 	dif->count = 0;
-	find_dfu_if(dif->dev, &_count_match_cb, (void *) dif);
+	find_dfu_if(dif->dev, dif->dev_handle,
+	    &_count_match_cb, (void *) dif);
 	return dif->count;
 }
 
@@ -245,7 +253,7 @@ static int list_dfu_interfaces(libusb_context *ctx)
 
 	for (i = 0; i < num_devs; ++i) {
 		dev = list[i];
-		find_dfu_if(dev, &print_dfu_if, NULL);
+		find_dfu_if(dev, NULL, &print_dfu_if, NULL);
 	}
 
 	libusb_free_device_list(list, 1);
@@ -281,7 +289,7 @@ static int count_dfu_interfaces(libusb_device *dev)
 {
 	int num_found = 0;
 
-	find_dfu_if(dev, &_count_cb, (void *) &num_found);
+	find_dfu_if(dev, NULL, &_count_cb, (void *) &num_found);
 
 	return num_found;
 }
@@ -939,7 +947,8 @@ dfustate:
 	if (alt_name) {
 		int n;
 
-		n = find_dfu_if(dif->dev, &alt_by_name, alt_name);
+		n = find_dfu_if(dif->dev, dif->dev_handle,
+		    &alt_by_name, alt_name);
 		if (!n) {
 			fprintf(stderr, "No such Alternate Setting: \"%s\"\n",
 			    alt_name);

--Boundary-00=_stcjPEB6qXT1vpE--

From owner-freebsd-usb@FreeBSD.ORG  Tue Apr 17 20:06:52 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
Delivered-To: freebsd-usb@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id C898B1065672
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 20:06:52 +0000 (UTC)
	(envelope-from hselasky@c2i.net)
Received: from swip.net (mailfe03.c2i.net [212.247.154.66])
	by mx1.freebsd.org (Postfix) with ESMTP id 37D1B8FC18
	for <freebsd-usb@freebsd.org>; Tue, 17 Apr 2012 20:06:52 +0000 (UTC)
X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED
Received: from [176.74.212.201] (account mc467741@c2i.net HELO
	laptop002.hselasky.homeunix.org)
	by mailfe03.swip.net (CommuniGate Pro SMTP 5.4.4)
	with ESMTPA id 97679819; Tue, 17 Apr 2012 22:06:44 +0200
From: Hans Petter Selasky <hselasky@c2i.net>
To: freebsd-usb@freebsd.org
Date: Tue, 17 Apr 2012 22:05:43 +0200
User-Agent: KMail/1.13.5 (FreeBSD/8.3-PRERELEASE; KDE/4.4.5; amd64; ; )
References: <20120417100147.GA2557@tiny> <20120417185216.GA1306@tiny>
	<201204172158.36499.hselasky@c2i.net>
In-Reply-To: <201204172158.36499.hselasky@c2i.net>
X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp
	|U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI
	-%GU9V5]iUZF&nRn9mJ'?&>O
MIME-Version: 1.0
Content-Type: Multipart/Mixed;
  boundary="Boundary-00=_X0cjPFIooSR/hBr"
Message-Id: <201204172205.43267.hselasky@c2i.net>
Cc: Bruce Cran <bruce@cran.org.uk>
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 <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Apr 2012 20:06:52 -0000

--Boundary-00=_X0cjPFIooSR/hBr
Content-Type: Text/Plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: 7bit

On Tuesday 17 April 2012 21:58:36 Hans Petter Selasky wrote:
> Hi Matthias,
> 
> I reviewed the dfu-util code and there is a bug there with regard to libusb
> usage.
> 
> Can you try the attached patch. It fixes a duplicate libusb open bug.
> 
> --HPS

Found a small bug. Try updated patch.

--HPS

--Boundary-00=_X0cjPFIooSR/hBr
Content-Type: text/x-patch;
  charset="iso-8859-15";
  name="dfu-util.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
	filename="dfu-util.patch"

diff --git a/src/main.c b/src/main.c
index 8986859..46f0e01 100644
--- a/src/main.c
+++ b/src/main.c
@@ -63,7 +63,7 @@ int verbose = 0;
  * Iterate through all DFU interfaces and their alternate settings
  * and call the passed handler function on each setting until handler
  * returns non-zero. */
-static int find_dfu_if(libusb_device *dev,
+static int find_dfu_if(libusb_device *dev, libusb_device_handle *devh,
 		       int (*handler)(struct dfu_if *, void *),
 		       void *v)
 {
@@ -76,6 +76,9 @@ static int find_dfu_if(libusb_device *dev,
 	int rc;
 
 	memset(dfu_if, 0, sizeof(*dfu_if));
+
+	dfu_if->dev_handle = devh;
+
 	rc = libusb_get_device_descriptor(dev, &desc);
 	if (rc)
 		return rc;
@@ -83,21 +86,21 @@ static int find_dfu_if(libusb_device *dev,
 	     cfg_idx++) {
 		rc = libusb_get_config_descriptor(dev, cfg_idx, &cfg);
 		if (rc)
-			return rc;
+			goto done;	
 		/* in some cases, noticably FreeBSD if uid != 0,
 		 * the configuration descriptors are empty */
 		if (!cfg)
-			return 0;
+			goto done;
 		for (intf_idx = 0; intf_idx < cfg->bNumInterfaces;
 		     intf_idx++) {
 			uif = &cfg->interface[intf_idx];
 			if (!uif)
-				return 0;
+				goto done;
 			for (alt_idx = 0;
 			     alt_idx < uif->num_altsetting; alt_idx++) {
 				intf = &uif->altsetting[alt_idx];
 				if (!intf)
-					return 0;
+					goto done;
 				if (intf->bInterfaceClass == 0xfe &&
 				    intf->bInterfaceSubClass == 1) {
 					dfu_if->dev = dev;
@@ -115,17 +118,21 @@ static int find_dfu_if(libusb_device *dev,
 						dfu_if->flags |= DFU_IFF_DFU;
 					else
 						dfu_if->flags &= ~DFU_IFF_DFU;
-					if (!handler)
-						return 1;
+					if (!handler) {
+						rc = 1;
+						goto done;
+					}
 					rc = handler(dfu_if, v);
 					if (rc != 0)
-						return rc;
+						goto done;
 				}
 			}
 		}
-
 		libusb_free_config_descriptor(cfg);
 	}
+done:
+	if (devh == NULL && dfu_if->dev_handle != NULL)
+		libusb_close(dfu_if->dev_handle);
 
 	return 0;
 }
@@ -145,7 +152,8 @@ static int _get_first_cb(struct dfu_if *dif, void *v)
 /* Fills in dif with the first found DFU interface */
 static int get_first_dfu_if(struct dfu_if *dif)
 {
-	return find_dfu_if(dif->dev, &_get_first_cb, (void *) dif);
+	return find_dfu_if(dif->dev, dif->dev_handle,
+	    &_get_first_cb, (void *) dif);
 }
 
 static int _check_match_cb(struct dfu_if *dif, void *v)
@@ -164,7 +172,8 @@ static int _check_match_cb(struct dfu_if *dif, void *v)
 /* Fills in dif from the matching DFU interface/altsetting */
 static int get_matching_dfu_if(struct dfu_if *dif)
 {
-	return find_dfu_if(dif->dev, &_check_match_cb, (void *) dif);
+	return find_dfu_if(dif->dev, dif->dev_handle,
+	    &_check_match_cb, (void *) dif);
 }
 
 static int _count_match_cb(struct dfu_if *dif, void *v)
@@ -185,7 +194,8 @@ static int _count_match_cb(struct dfu_if *dif, void *v)
 static int count_matching_dfu_if(struct dfu_if *dif)
 {
 	dif->count = 0;
-	find_dfu_if(dif->dev, &_count_match_cb, (void *) dif);
+	find_dfu_if(dif->dev, dif->dev_handle,
+	    &_count_match_cb, (void *) dif);
 	return dif->count;
 }
 
@@ -245,7 +255,7 @@ static int list_dfu_interfaces(libusb_context *ctx)
 
 	for (i = 0; i < num_devs; ++i) {
 		dev = list[i];
-		find_dfu_if(dev, &print_dfu_if, NULL);
+		find_dfu_if(dev, NULL, &print_dfu_if, NULL);
 	}
 
 	libusb_free_device_list(list, 1);
@@ -281,7 +291,7 @@ static int count_dfu_interfaces(libusb_device *dev)
 {
 	int num_found = 0;
 
-	find_dfu_if(dev, &_count_cb, (void *) &num_found);
+	find_dfu_if(dev, NULL, &_count_cb, (void *) &num_found);
 
 	return num_found;
 }
@@ -939,7 +949,8 @@ dfustate:
 	if (alt_name) {
 		int n;
 
-		n = find_dfu_if(dif->dev, &alt_by_name, alt_name);
+		n = find_dfu_if(dif->dev, dif->dev_handle,
+		    &alt_by_name, alt_name);
 		if (!n) {
 			fprintf(stderr, "No such Alternate Setting: \"%s\"\n",
 			    alt_name);

--Boundary-00=_X0cjPFIooSR/hBr--

From owner-freebsd-usb@FreeBSD.ORG  Wed Apr 18 07:15:17 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
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 A4B7C106566C
	for <freebsd-usb@freebsd.org>; Wed, 18 Apr 2012 07:15:17 +0000 (UTC)
	(envelope-from guru@unixarea.de)
Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34])
	by mx1.freebsd.org (Postfix) with ESMTP id 35E108FC18
	for <freebsd-usb@freebsd.org>; Wed, 18 Apr 2012 07:15:17 +0000 (UTC)
Received: from [82.113.99.19] (helo=tiny.Sisis.de)
	by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.69) (envelope-from <guru@unixarea.de>)
	id 1SKP6g-0004nk-LG; Wed, 18 Apr 2012 09:15:15 +0200
Received: from tiny.Sisis.de (localhost [127.0.0.1])
	by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id q3I7FBmD001310;
	Wed, 18 Apr 2012 09:15:11 +0200 (CEST)
	(envelope-from guru@unixarea.de)
Received: (from guru@localhost)
	by tiny.Sisis.de (8.14.5/8.14.3/Submit) id q3I7F98U001309;
	Wed, 18 Apr 2012 09:15:09 +0200 (CEST)
	(envelope-from guru@unixarea.de)
X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de
	using -f
Date: Wed, 18 Apr 2012 09:15:09 +0200
From: Matthias Apitz <guru@unixarea.de>
To: Hans Petter Selasky <hselasky@c2i.net>
Message-ID: <20120418071509.GA1296@tiny>
References: <20120417100147.GA2557@tiny> <20120417185216.GA1306@tiny>
	<201204172158.36499.hselasky@c2i.net>
	<201204172205.43267.hselasky@c2i.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <201204172205.43267.hselasky@c2i.net>
X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386)
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Con-Id: 51246
X-Con-U: 0-guru
X-Originating-IP: 82.113.99.19
Cc: Bruce Cran <bruce@cran.org.uk>, freebsd-usb@freebsd.org
Subject: Re: dfu-util 0.5
X-BeenThere: freebsd-usb@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Matthias Apitz <guru@unixarea.de>
List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Apr 2012 07:15:17 -0000

El día Tuesday, April 17, 2012 a las 10:05:43PM +0200, Hans Petter Selasky escribió:

> On Tuesday 17 April 2012 21:58:36 Hans Petter Selasky wrote:
> > Hi Matthias,
> > 
> > I reviewed the dfu-util code and there is a bug there with regard to libusb
> > usage.
> > 
> > Can you try the attached patch. It fixes a duplicate libusb open bug.
> > 
> > --HPS
> 
> Found a small bug. Try updated patch.
> 
> --HPS


Hi,

Thanks, but the patch failed in two places:

$ rm -rf dfu-util-0.5
$ tar xzf dfu-util-0.5.tar.gz 
$ cd dfu-util-0.5/src
$ patch < ~/dfu-util.patch 
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git a/src/main.c b/src/main.c
|index 8986859..46f0e01 100644
|--- a/src/main.c
|+++ b/src/main.c
--------------------------
Patching file main.c using Plan A...
Hunk #1 succeeded at 63.
Hunk #2 failed at 76.
Hunk #3 failed at 86.
Hunk #4 succeeded at 114 (offset -4 lines).
Hunk #5 succeeded at 148 (offset -4 lines).
Hunk #6 succeeded at 168 (offset -4 lines).
Hunk #7 succeeded at 190 (offset -4 lines).
Hunk #8 succeeded at 254 (offset -1 lines).
Hunk #9 succeeded at 287 (offset -4 lines).
Hunk #10 succeeded at 931 (offset -18 lines).
2 out of 10 hunks failed--saving rejects to main.c.rej
done

was your diff against the original dfu-util-0.5.tar.gz?

Thanks

	matthias

-- 
Matthias Apitz
e <guru@unixarea.de> - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5

From owner-freebsd-usb@FreeBSD.ORG  Thu Apr 19 19:35:02 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
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 1A29E106564A
	for <freebsd-usb@freebsd.org>; Thu, 19 Apr 2012 19:35:02 +0000 (UTC)
	(envelope-from yuri@rawbw.com)
Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45])
	by mx1.freebsd.org (Postfix) with ESMTP id DC4DE8FC08
	for <freebsd-usb@freebsd.org>; Thu, 19 Apr 2012 19:35:01 +0000 (UTC)
Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1])
	(authenticated bits=0)
	by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id q3JJYsP7036844
	for <freebsd-usb@freebsd.org>; Thu, 19 Apr 2012 12:34:55 -0700 (PDT)
	(envelope-from yuri@rawbw.com)
Message-ID: <4F9068DE.9090807@rawbw.com>
Date: Thu, 19 Apr 2012 12:34:54 -0700
From: Yuri <yuri@rawbw.com>
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64;
	rv:10.0.3) Gecko/20120316 Thunderbird/10.0.3
MIME-Version: 1.0
To: freebsd-usb@freebsd.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: usbdump(8) question
X-BeenThere: freebsd-usb@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Apr 2012 19:35:02 -0000

I am trying to use usbdump(8) on one webcam, but the produced, log 
causes some questions.

1. Why -s 1024 option doesn't show actual data even though SLEN for 
packets is non-zero?
2. When I run webcamd, first 4 lines of log (with the error) quickly 
appear. Webcamd exits quickly, in 0.035s, but usbdump after 1-2 secs 
shows the rest of the log. Why is this significant delay? Why the first 
4 lines aren't delayed?

Yuri


--- usbdump log ---
# usbdump -i usbus3 -s 1024
12:32:19.151777 usbus3.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0
12:32:19.155753 usbus3.2 
DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=28,IVAL=0,ERR=0
12:32:19.155772 usbus3.2 SUBM-CTRL-EP=00000000,SPD=HIGH,NFR=2,SLEN=36,IVAL=0
12:32:19.159264 usbus3.2 
DONE-CTRL-EP=00000000,SPD=HIGH,NFR=2,SLEN=0,IVAL=0,ERR=STALLED
<... at this point webcamd process is ended, but the following lines 
appear after 1-2 secs. Why? ...>
12:32:20.998845 usbus3.2 SUBM-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=8,IVAL=0
12:32:20.999006 usbus3.2 
DONE-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=0,IVAL=0,ERR=0
12:32:20.999019 usbus3.2 SUBM-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=0,IVAL=0
12:32:20.999129 usbus3.2 
DONE-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=0,IVAL=0,ERR=0
12:32:21.011833 usbus3.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0
12:32:21.013626 usbus3.2 
DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=20,IVAL=0,ERR=0
12:32:21.014846 usbus3.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0
12:32:21.016000 usbus3.2 
DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=4,IVAL=0,ERR=0
12:32:21.016014 usbus3.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0
12:32:21.017375 usbus3.2 
DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=4,IVAL=0,ERR=0
12:32:21.017391 usbus3.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0
12:32:21.019250 usbus3.2 
DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=4,IVAL=0,ERR=0
12:32:21.019264 usbus3.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0
12:32:21.021625 usbus3.2 
DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=20,IVAL=0,ERR=0
12:32:21.021644 usbus3.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0
12:32:21.028876 usbus3.2 
DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=12,IVAL=0,ERR=0
12:32:21.028891 usbus3.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0
12:32:21.108758 usbus3.2 
DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=1024,IVAL=0,ERR=0
12:32:21.108773 usbus3.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=0,IVAL=0
12:32:21.191506 usbus3.2 
DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=1024,IVAL=0,ERR=0
12:32:21.191522 usbus3.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=0,IVAL=0
12:32:21.273003 usbus3.2 
DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=1024,IVAL=0,ERR=0
12:32:21.273018 usbus3.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=0,IVAL=0
12:32:21.286251 usbus3.2 
DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=196,IVAL=0,ERR=0
12:32:21.286269 usbus3.2 SUBM-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=8,IVAL=0
12:32:21.286374 usbus3.2 
DONE-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=0,IVAL=0,ERR=0

From owner-freebsd-usb@FreeBSD.ORG  Fri Apr 20 14:03:10 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
Delivered-To: freebsd-usb@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 24910106564A
	for <freebsd-usb@freebsd.org>; Fri, 20 Apr 2012 14:03:10 +0000 (UTC)
	(envelope-from hselasky@c2i.net)
Received: from swip.net (mailfe04.c2i.net [212.247.154.98])
	by mx1.freebsd.org (Postfix) with ESMTP id A91498FC1B
	for <freebsd-usb@freebsd.org>; Fri, 20 Apr 2012 14:03:09 +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 mailfe04.swip.net (CommuniGate Pro SMTP 5.4.4)
	with ESMTPA id 264486735; Fri, 20 Apr 2012 15:58:01 +0200
From: Hans Petter Selasky <hselasky@c2i.net>
To: freebsd-usb@freebsd.org
Date: Fri, 20 Apr 2012 15:57:01 +0200
User-Agent: KMail/1.13.5 (FreeBSD/8.3-PRERELEASE; KDE/4.4.5; amd64; ; )
References: <20120417100147.GA2557@tiny> <201204172158.36499.hselasky@c2i.net>
	<201204172205.43267.hselasky@c2i.net>
In-Reply-To: <201204172205.43267.hselasky@c2i.net>
X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp
	|U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI
	-%GU9V5]iUZF&nRn9mJ'?&>O
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
Message-Id: <201204201557.01466.hselasky@c2i.net>
Cc: Bruce Cran <bruce@cran.org.uk>
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 <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Apr 2012 14:03:10 -0000

On Tuesday 17 April 2012 22:05:43 Hans Petter Selasky wrote:
> On Tuesday 17 April 2012 21:58:36 Hans Petter Selasky wrote:
> > Hi Matthias,
> > 
> > I reviewed the dfu-util code and there is a bug there with regard to
> > libusb usage.
> > 
> > Can you try the attached patch. It fixes a duplicate libusb open bug.
> > 
> > --HPS
> 
> Found a small bug. Try updated patch.
> 
> --HPS


Hi,

You need to patch the latest git:

git clone git://git.openezx.org/dfu-util.git

And build that.

--HPS

From owner-freebsd-usb@FreeBSD.ORG  Fri Apr 20 14:06:07 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
Delivered-To: freebsd-usb@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 4425E1065672
	for <freebsd-usb@freebsd.org>; Fri, 20 Apr 2012 14:06:07 +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 C05048FC17
	for <freebsd-usb@freebsd.org>; Fri, 20 Apr 2012 14:06:06 +0000 (UTC)
X-T2-Spam-Status: No, hits=0.5 required=5.0 tests=ALL_TRUSTED,
	BAYES_60
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 90781327; Fri, 20 Apr 2012 16:05:58 +0200
From: Hans Petter Selasky <hselasky@c2i.net>
To: freebsd-usb@freebsd.org
Date: Fri, 20 Apr 2012 16:04:58 +0200
User-Agent: KMail/1.13.5 (FreeBSD/8.3-PRERELEASE; KDE/4.4.5; amd64; ; )
References: <4F9068DE.9090807@rawbw.com>
In-Reply-To: <4F9068DE.9090807@rawbw.com>
X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp
	|U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI
	-%GU9V5]iUZF&nRn9mJ'?&>O
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Message-Id: <201204201604.58751.hselasky@c2i.net>
Cc: 
Subject: Re: usbdump(8) question
X-BeenThere: freebsd-usb@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Apr 2012 14:06:07 -0000

On Thursday 19 April 2012 21:34:54 Yuri wrote:
> I am trying to use usbdump(8) on one webcam, but the produced, log
> causes some questions.
>

Hi,
 
> 1. Why -s 1024 option doesn't show actual data even though SLEN for
> packets is non-zero?

The -s option must be set bigger than the maximum total data in a USB 
transfer, else you will only get parts of the data. Typical value: 65536

> 2. When I run webcamd, first 4 lines of log (with the error) quickly
> appear. Webcamd exits quickly, in 0.035s, but usbdump after 1-2 secs
> shows the rest of the log. Why is this significant delay? Why the first
> 4 lines aren't delayed?

Because usbdump uses a big buffer, which is only returned when it is filled up 
or when a 1 second timeout triggers.

--HPS

From owner-freebsd-usb@FreeBSD.ORG  Fri Apr 20 14:18:59 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
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 64E07106566B
	for <freebsd-usb@freebsd.org>; Fri, 20 Apr 2012 14:18:59 +0000 (UTC)
	(envelope-from guru@unixarea.de)
Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34])
	by mx1.freebsd.org (Postfix) with ESMTP id E91F18FC18
	for <freebsd-usb@freebsd.org>; Fri, 20 Apr 2012 14:18:58 +0000 (UTC)
Received: from [82.113.119.29] (helo=tiny.Sisis.de)
	by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.69) (envelope-from <guru@unixarea.de>)
	id 1SLEfj-0006YE-F9; Fri, 20 Apr 2012 16:18:51 +0200
Received: from tiny.Sisis.de (localhost [127.0.0.1])
	by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id q3KEImDQ002740;
	Fri, 20 Apr 2012 16:18:48 +0200 (CEST)
	(envelope-from guru@unixarea.de)
Received: (from guru@localhost)
	by tiny.Sisis.de (8.14.5/8.14.3/Submit) id q3KEIkjP002739;
	Fri, 20 Apr 2012 16:18:46 +0200 (CEST)
	(envelope-from guru@unixarea.de)
X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de
	using -f
Date: Fri, 20 Apr 2012 16:18:46 +0200
From: Matthias Apitz <guru@unixarea.de>
To: Hans Petter Selasky <hselasky@c2i.net>
Message-ID: <20120420141845.GA2713@tiny>
References: <20120417100147.GA2557@tiny> <201204172158.36499.hselasky@c2i.net>
	<201204172205.43267.hselasky@c2i.net>
	<201204201557.01466.hselasky@c2i.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <201204201557.01466.hselasky@c2i.net>
X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386)
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Con-Id: 51246
X-Con-U: 0-guru
X-Originating-IP: 82.113.119.29
Cc: Bruce Cran <bruce@cran.org.uk>, freebsd-usb@freebsd.org
Subject: Re: dfu-util 0.5
X-BeenThere: freebsd-usb@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Matthias Apitz <guru@unixarea.de>
List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Apr 2012 14:18:59 -0000

El día Friday, April 20, 2012 a las 03:57:01PM +0200, Hans Petter Selasky escribió:

> On Tuesday 17 April 2012 22:05:43 Hans Petter Selasky wrote:
> > On Tuesday 17 April 2012 21:58:36 Hans Petter Selasky wrote:
> > > Hi Matthias,
> > > 
> > > I reviewed the dfu-util code and there is a bug there with regard to
> > > libusb usage.
> > > 
> > > Can you try the attached patch. It fixes a duplicate libusb open bug.
> > > 
> > > --HPS
> > 
> > Found a small bug. Try updated patch.
> > 
> > --HPS
> 
> 
> Hi,
> 
> You need to patch the latest git:
> 
> git clone git://git.openezx.org/dfu-util.git
> 
> And build that.

Hello Hans,

Thanks for your helping hand; the patch does its work fine based on the
sources out of git; I could not build it until now for some problems
with the tool 'autoreconf' used to create the configure script; I will
dig into this...

on the other hand it turned out the SHR devel folks do not recommend
the usage of 'dfu-util' anymore to flash the NAND memory of the
Freerunner cellphone; there is rumor that the resulting root file system
is logically corrupt; they recommend now the creation of an ext2fs on
the microSD card and just untar the distribution into it (which worked
fine and my Freerunner is now on the last stage version);

in any case, I will return to this and test your patch.

Thanks again

	matthias
> 
> --HPS
> _______________________________________________
> freebsd-usb@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-usb
> To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org"

-- 
Matthias Apitz
e <guru@unixarea.de> - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5

From owner-freebsd-usb@FreeBSD.ORG  Sat Apr 21 05:48:49 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
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 6B0D01065673
	for <freebsd-usb@freebsd.org>; Sat, 21 Apr 2012 05:48:49 +0000 (UTC)
	(envelope-from guru@unixarea.de)
Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34])
	by mx1.freebsd.org (Postfix) with ESMTP id ECFC08FC14
	for <freebsd-usb@freebsd.org>; Sat, 21 Apr 2012 05:48:48 +0000 (UTC)
Received: from [188.174.57.140] (helo=localhost.my.domain)
	by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.69) (envelope-from <guru@unixarea.de>)
	id 1SLTBc-00006B-Pq; Sat, 21 Apr 2012 07:48:45 +0200
Received: from localhost.my.domain (localhost [127.0.0.1])
	by localhost.my.domain (8.14.4/8.14.3) with ESMTP id q3L5mgcG006740;
	Sat, 21 Apr 2012 07:48:43 +0200 (CEST)
	(envelope-from guru@unixarea.de)
Received: (from guru@localhost)
	by localhost.my.domain (8.14.4/8.14.3/Submit) id q3L5mfU9006739;
	Sat, 21 Apr 2012 07:48:41 +0200 (CEST)
	(envelope-from guru@unixarea.de)
X-Authentication-Warning: localhost.my.domain: guru set sender to
	guru@unixarea.de using -f
Date: Sat, 21 Apr 2012 07:48:41 +0200
From: Matthias Apitz <guru@unixarea.de>
To: Hans Petter Selasky <hselasky@c2i.net>, Bruce Cran <bruce@cran.org.uk>,
	freebsd-usb@freebsd.org
Message-ID: <20120421054841.GA6344@tinyCurrent>
References: <20120417100147.GA2557@tiny> <201204172158.36499.hselasky@c2i.net>
	<201204172205.43267.hselasky@c2i.net>
	<201204201557.01466.hselasky@c2i.net> <20120420141845.GA2713@tiny>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <20120420141845.GA2713@tiny>
X-Operating-System: FreeBSD 9.0-CURRENT r214444 (i386)
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Con-Id: 51246
X-Con-U: 0-guru
X-Originating-IP: 188.174.57.140
Cc: 
Subject: Re: dfu-util 0.5
X-BeenThere: freebsd-usb@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Matthias Apitz <guru@unixarea.de>
List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sat, 21 Apr 2012 05:48:49 -0000

El día Friday, April 20, 2012 a las 04:18:46PM +0200, Matthias Apitz escribió:

> > Hi,
> > 
> > You need to patch the latest git:
> > 
> > git clone git://git.openezx.org/dfu-util.git
> > 
> > And build that.

Hello,

I have spent some hours reading stuff about autoconf but do not know how
to solve this:

$ git clone git://git.openezx.org/dfu-util.git
$ cd dfu-util
$ ./autogen.sh 
/usr/local/share/aclocal/smpeg.m4:13: warning: underquoted definition of AM_PATH_SMPEG
/usr/local/share/aclocal/smpeg.m4:13:   run info '(automake)Extending aclocal'
/usr/local/share/aclocal/smpeg.m4:13:   or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
configure.ac:7: required file `m4/install-sh' not found
configure.ac:7:   `automake --add-missing' can install `install-sh'
configure.ac:7: required file `m4/missing' not found
configure.ac:7:   `automake --add-missing' can install `missing'
src/Makefile.am: required file `m4/depcomp' not found
src/Makefile.am:   `automake --add-missing' can install `depcomp'
autoreconf-2.68: automake failed with exit status: 1 
$

This is here a system where ~1200 ports have been compiled, i.e. one
with a full dev env and not a naked one...

Any ideas? Thanks

	matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <guru@unixarea.de> - w http://www.unixarea.de/
UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.5

From owner-freebsd-usb@FreeBSD.ORG  Sat Apr 21 08:13:44 2012
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
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 DBE8F1065673
	for <freebsd-usb@freebsd.org>; Sat, 21 Apr 2012 08:13:44 +0000 (UTC)
	(envelope-from hselasky@c2i.net)
Received: from swip.net (mailfe01.c2i.net [212.247.154.2])
	by mx1.freebsd.org (Postfix) with ESMTP id 5F6908FC18
	for <freebsd-usb@freebsd.org>; Sat, 21 Apr 2012 08:13:44 +0000 (UTC)
X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED
Received: from [176.74.212.201] (account mc467741@c2i.net HELO
	laptop002.hselasky.homeunix.org)
	by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.4)
	with ESMTPA id 267592157; Sat, 21 Apr 2012 10:13:37 +0200
From: Hans Petter Selasky <hselasky@c2i.net>
To: Matthias Apitz <guru@unixarea.de>
Date: Sat, 21 Apr 2012 10:12:36 +0200
User-Agent: KMail/1.13.5 (FreeBSD/8.3-PRERELEASE; KDE/4.4.5; amd64; ; )
References: <20120417100147.GA2557@tiny> <20120420141845.GA2713@tiny>
	<20120421054841.GA6344@tinyCurrent>
In-Reply-To: <20120421054841.GA6344@tinyCurrent>
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-1"
Content-Transfer-Encoding: quoted-printable
Message-Id: <201204211012.36997.hselasky@c2i.net>
Cc: Bruce Cran <bruce@cran.org.uk>, 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 <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
	<mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sat, 21 Apr 2012 08:13:44 -0000

On Saturday 21 April 2012 07:48:41 Matthias Apitz wrote:
> El d=EDa Friday, April 20, 2012 a las 04:18:46PM +0200, Matthias Apitz=20
escribi=F3:
> > > Hi,
> > >=20
> > > You need to patch the latest git:
> > >=20
> > > git clone git://git.openezx.org/dfu-util.git
> > >=20
> > > And build that.
>=20
> Hello,
>=20
> I have spent some hours reading stuff about autoconf but do not know how
> to solve this:
>=20
> $ git clone git://git.openezx.org/dfu-util.git
> $ cd dfu-util
> $ ./autogen.sh
> /usr/local/share/aclocal/smpeg.m4:13: warning: underquoted definition of
> AM_PATH_SMPEG /usr/local/share/aclocal/smpeg.m4:13:   run info
> '(automake)Extending aclocal' /usr/local/share/aclocal/smpeg.m4:13:   or
> see http://sources.redhat.com/automake/automake.html#Extending-aclocal
> configure.ac:7: required file `m4/install-sh' not found
> configure.ac:7:   `automake --add-missing' can install `install-sh'
> configure.ac:7: required file `m4/missing' not found
> configure.ac:7:   `automake --add-missing' can install `missing'
> src/Makefile.am: required file `m4/depcomp' not found
> src/Makefile.am:   `automake --add-missing' can install `depcomp'
> autoreconf-2.68: automake failed with exit status: 1
> $
>=20
> This is here a system where ~1200 ports have been compiled, i.e. one
> with a full dev env and not a naked one...
>=20
> Any ideas? Thanks

Maybe you can copy the patched files to the existing tarball?

=2D-HPS