From owner-freebsd-usb@FreeBSD.ORG Tue Dec 15 09:09:51 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76F8B1065676 for ; Tue, 15 Dec 2009 09:09:51 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.swipnet.se [212.247.155.65]) by mx1.freebsd.org (Postfix) with ESMTP id D12648FC2D for ; Tue, 15 Dec 2009 09:09:50 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=3moY-IvhsUI23I3xZrMA:9 a=EhqRa1oPPp3XDMKKIQIA:7 a=AU7r8N4M9sVms59WxBQeY9LeasQA:4 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe11.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 1178732636; Tue, 15 Dec 2009 10:09:48 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 15 Dec 2009 10:08:50 +0100 User-Agent: KMail/1.11.4 (FreeBSD/9.0-CURRENT; KDE/4.2.4; i386; ; ) References: <200912151647.53759.doconnor@gsoft.com.au> In-Reply-To: <200912151647.53759.doconnor@gsoft.com.au> X-Face: (%:6u[ldzJ`0qjD7sCkfdMmD*RxpOwEEQ+KWt[{J#x6ow~JO:,zwp.(t; @Aq :4:&nFCgDb8[3oIeTb^'",;u{5{}C9>"PuY\)!=#\u9SSM-nz8+SR~B\!qBv MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200912151008.50942.hselasky@c2i.net> Cc: Daniel O'Connor Subject: Re: Re-enumerating a device X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Dec 2009 09:09:51 -0000 On Tuesday 15 December 2009 07:17:46 Daniel O'Connor wrote: > [ Please CC me as I'm not on list ] > > Hi, > I have an M-Audio MobilePre, it's a USB audio module which works with > snd_uadio, however to get it working I need to load the firwmare (via > DFU). > > Unfortunately the only way I can get it to re-enumerate after sending > the firmware is to unplug it enough to disconnect the data lines (but > not power) and then reconnect. > > I have tried usbconfig reset, power_off/power_on, set_config and set_alt > but to no avail.. > > [inchoate 16:46] ~/projects/dfu-util-0.1.snap20090212 >dfu-util -D > ~/ma004103.bin -t 256 dfu-util - (C) 2007-2008 by OpenMoko Inc. > This program is Free Software and has ABSOLUTELY NO WARRANTY > > Opening USB Device 0x0000:0x0000... > Claiming USB DFU Runtime Interface... > Determining device status: state = dfuIDLE, status = 0 > WARNING: Runtime device already in DFU state ?!? > Found Runtime: [0x0763:0x2804] devnum=0, cfg=0, intf=0, alt=0, name="RAM" > Claiming USB DFU Interface... > Setting Alternate Setting ... > Determining device status: state = dfuIDLE, status = 0 > dfuIDLE, continuing > Transfer Size = 0x0100 > bytes_per_hash=120 > Starting download: [##################################################] > finished! state(7) = dfuMANIFEST, status(0) = No error condition is present > state(2) = dfuIDLE, status(0) = No error condition is present > Done! > > From dmesg.. > ugen0.2: at usbus0 > # Run dfu-util > ugen0.2: at usbus0 (disconnected) > # Cause re-enumeratae > ugen0.2: at usbus0 > uaudio0: on usbus0 > uaudio0: Play: 48000 Hz, 2 ch, 16-bit S-LE PCM format > uaudio0: Record: 48000 Hz, 2 ch, 16-bit S-LE PCM format > uaudio0: No midi sequencer > pcm1: on uaudio0 Can you show dmesg, when you do: usbconfig -u 0 -a 2 reset --HPS