From owner-freebsd-usb@FreeBSD.ORG Wed Mar 30 11:05:06 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BAD8E16A4CE for ; Wed, 30 Mar 2005 11:05:06 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA7A043D55 for ; Wed, 30 Mar 2005 11:05:05 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0)j2UB52sf085385 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Wed, 30 Mar 2005 13:05:04 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j2UB4bVK004122 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 30 Mar 2005 13:04:38 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id j2UB4baK095154; Wed, 30 Mar 2005 13:04:37 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j2UB4bNc095153; Wed, 30 Mar 2005 13:04:37 +0200 (CEST) (envelope-from ticso) Date: Wed, 30 Mar 2005 13:04:36 +0200 From: Bernd Walter To: Alexandre Jouravlev Message-ID: <20050330110436.GM33677@cicely12.cicely.de> References: <20050330104411.GL33677@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=no version=2.64 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cicely12.cicely.de cc: ticso@cicely.de cc: freebsd-usb@freebsd.org Subject: Re: Ezload problems. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2005 11:05:06 -0000 On Wed, Mar 30, 2005 at 02:52:56PM +0400, Alexandre Jouravlev wrote: > > On Mar 30, 2005, at 2:44 PM, Bernd Walter wrote: > >>But when I plug the device into the FreeBSD machine and download > >>firmware with ezdownload utility something strange occurred: the > >>firmware written correctly, but new device doesn't appears on usb bus. > > > >Do you see a disconnect from the device? > Yes, I do. The device disconnects from usb and usb stack is know about > this. (ugen0: detached.) > > >>What magic has take place during boot, > >>which helps USB stack to find my device? > > > >I don't know, but I could imagine that the host controller isn't > >completely deconfigured on module unload. > > > > Ok, but why does the new device didn't appear in a regular way? A valid question. I do firmware updates with self build USB hardware. Switching between firmware loader and operating firmware works fine. However - there are some critical points. E.g. you switch firmware by issuing an USB request and if the device disconnects bevor the request is completed things may hang until timeout or even forever. You say that you see the disconnect. In which lock state (ps -axl) are the usb* and ezload processes after the disconnect message? Is there any change if you wait a minute? -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de