From owner-freebsd-usb@FreeBSD.ORG Mon Jun 29 23:07:46 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 C6C54106564A; Mon, 29 Jun 2009 23:07:46 +0000 (UTC) (envelope-from vinnix.bsd@gmail.com) Received: from mail-vw0-f193.google.com (mail-vw0-f193.google.com [209.85.212.193]) by mx1.freebsd.org (Postfix) with ESMTP id 5F9778FC0C; Mon, 29 Jun 2009 23:07:46 +0000 (UTC) (envelope-from vinnix.bsd@gmail.com) Received: by vwj31 with SMTP id 31so49006vwj.3 for ; Mon, 29 Jun 2009 16:07:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=PWE0w6zkzLAttHmU+39K9g+napGOnkMjBMo+VbE8eW4=; b=TxMHAzXsLoF122ztBIpGJlFeqaTlUesRxmUWAzXExqXwfS724QgVv3f01fcSLakGy9 GBK0kojuhyuuEdxmM30Ujnv50fgFkoGgjXwagDS5Vx69O8N4K2ea7yFozaqSRf8lqzGD 85TGuIVaghKinXrL4oQT6YvGTbsQCpfN+ntVw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=v3gAz6AwEkZDf+45UiIM0oP1ZHORuHELGdzZ5YDkq3Qlu9DYGz4lgIN9nd74cL+hca iie2EGmAk3MHR3rw5bTkp16y7szVidHGA1WDwI3YGr0wei3NMvRN7qLnXxqutK1znkpW jhRvVLb2yHFGwhlXr+Kgs9twbSkZ7uxXe7eno= MIME-Version: 1.0 Received: by 10.220.45.71 with SMTP id d7mr2648091vcf.5.1246315577399; Mon, 29 Jun 2009 15:46:17 -0700 (PDT) In-Reply-To: <200906271011.53436.hselasky@c2i.net> References: <49E895CB.2040407@lissyara.su> <20090418023632.GJ13564@dereel.lemis.com> <1e31c7980906262132k7571c4b8ucfde94ec94cb1d8@mail.gmail.com> <200906271011.53436.hselasky@c2i.net> Date: Mon, 29 Jun 2009 19:46:16 -0300 Message-ID: <1e31c7980906291546v643e38a2r7354b8ba3a2cd125@mail.gmail.com> From: Vinicius Abrahao To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Scott Long , freebsd-usb@freebsd.org, Alex Keda , marcus@blazingdot.com, freebsd-current@freebsd.org, Andrew Thompson , Greg 'groggy' Lehey Subject: Re: new usb stack - boot problem from usb hdd 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: Mon, 29 Jun 2009 23:07:47 -0000 On Sat, Jun 27, 2009 at 5:11 AM, Hans Petter Selasky wrote: > On Saturday 27 June 2009 06:32:54 Vinicius Abrahao wrote: >> 9) What I'm doing wrong? > > I don't think this is your fault. My initial patch for this problem had a loop > in the mount root code, trying to mount the root device several times. Now > several other people did not agree about that, and made the USB enumeration > synchronous instead. That does not always work, because USB devices do not > always show up immediately when the power is turned on. I would strongly > suggest to add a flag to the mount root code in sys/kern/, allowing the mount > root code to automatically retry the medium. It is also important that the > mountroot code calls pause() and do not spin in a while loop. > > --HPS > Hi Hans, Thanks for your reply. I had lucky here, changing the external disk to other usb port, but lsusb shows me that only change is the mouse (I change the mouse port with the external hd), by the way this usb-ide adapter has power supply by usb too. > Bus /dev/usb Device /dev/ugen3.2: ID 0461:4d15 Primax Electronics, Ltd (mouse on new usb port, boot is working) < Bus /dev/usb Device /dev/ugen2.2: ID 0461:4d15 Primax Electronics, Ltd (mouse on old usb port, boot not working) Strange that usb-ide adapter get the same ugen ports... but is working now! If you need someone to test any modifications I have some time here. Thanks a lot, Vinnix / Vinicius