From owner-freebsd-usb@FreeBSD.ORG Sat Mar 17 15:04:55 2007 Return-Path: X-Original-To: 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 DD93F16A400 for ; Sat, 17 Mar 2007 15:04:55 +0000 (UTC) (envelope-from shoesoft@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 3A34D13C483 for ; Sat, 17 Mar 2007 15:04:54 +0000 (UTC) (envelope-from shoesoft@gmx.net) Received: (qmail invoked by alias); 17 Mar 2007 14:38:14 -0000 X-Provags-ID: V01U2FsdGVkX183I/wfrW0344W66yGz7nyjyDg3Q8/tfrOOBdX/hb vYOz7W6/uzdjIK From: Stefan Ehmann To: Martin Dieringer Date: Sat, 17 Mar 2007 15:38:13 +0100 User-Agent: KMail/1.9.6 References: <200703120143.28799.shoesoft@gmx.net> <200703171319.38994.shoesoft@gmx.net> <20070317134038.Q900@thinkpad.dieringer.dyndns.org> In-Reply-To: <20070317134038.Q900@thinkpad.dieringer.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703171538.14510.shoesoft@gmx.net> X-Y-GMX-Trusted: 0 Cc: freebsd-usb@freebsd.org Subject: usb firmware download (Was: Re: M-Audio Transit experiments) 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: Sat, 17 Mar 2007 15:04:55 -0000 Redirecting this from freebsd-multimedia to freebsd-usb: Short synopsis: Using a modified version of madfuload (http://usb-midi-fw.sourceforge.net/) I'm able to upload the firmware to my M-Audio Transit usb sound card using /dev/ugen0. The problem is that the device doesn't get recognized as snd_uaudio device unless I kldunload/kldload usb. On linux, madfuload does some kind of usbdevfs reset but I haven't found an equivalent on FreeBSD. What's the proper way of doing this? On Saturday 17 March 2007 13:42:34 Martin Dieringer wrote: > I added this entry in usbd.conf: > > device "M-Audio Transit, firmware download" > vendor 0x0763 > product 0x2806 > release 0x0100 > attach "if ! kldstat -n snd_uaudio > /dev/null 2>&1 ; then kldload > snd_uaudio; fi" > attach "/usr/local/sbin/madfuload -l -3 -f > /usr/local/lib/madfuload/ma006100.bin -D /dev/${DEVNAME}" > > > but the device won't show up. How does it work with usio for example? I think usbd only handles automatically execution of commands if a specific device is detected. So in this case the firmware is loaded but that doesn't eliminate the need for re-attaching the device as snd_uaudio device.