From owner-freebsd-arm@FreeBSD.ORG Tue Jul 20 13:59:05 2010 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 812351065670 for ; Tue, 20 Jul 2010 13:59:05 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 108188FC15 for ; Tue, 20 Jul 2010 13:59:04 +0000 (UTC) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id o6KDx1Ih012181 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 20 Jul 2010 15:59:01 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.3/8.14.3) with ESMTP id o6KDwwCn029549 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Jul 2010 15:58:58 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id o6KDwwTX037687; Tue, 20 Jul 2010 15:58:58 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id o6KDwwdp037686; Tue, 20 Jul 2010 15:58:58 +0200 (CEST) (envelope-from ticso) Date: Tue, 20 Jul 2010 15:58:58 +0200 From: Bernd Walter To: Greg Ansley Message-ID: <20100720135858.GA28908@cicely7.cicely.de> References: <4C4590E5.1020407@ansley.com> <201007201405.43686.hselasky@c2i.net> <4C45A47A.8070403@ansley.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C45A47A.8070403@ansley.com> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de Cc: "freebsd-arm@FreeBSD.org" Subject: Re: AT91RM9200: USB broken? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jul 2010 13:59:05 -0000 On Tue, Jul 20, 2010 at 09:28:26AM -0400, Greg Ansley wrote: > No, I don't think this is normal. The messages are exactly the same with > a known good USB flash drive attached, and the drive is not found. Those _are_ normal for RM9200 in QFP-208. The RM9200 has two USB ports - both of them are bonded in the BGA version and works fine there. In QFP case however only one is bonded and the second port can't be terminated properly. There is an errata in the datasheet about this. Since it is impossible to find out via software which RM9200 you have we can't just ignore the secondary port - maybe as a compile time option, but not for a generic kernel. The latest current I tested on RM9200 was svn-rev 204418 and USB was working fine - including those error messages for the faulty secondary port. So it looks like your device isn't noticed as being connected at all, which is a bit strange because your error messages clearly show that it got the faulty device connected from the secondary port. Did it ever work for you? If yes - did you try it with the same USB device? Do you have an RM9200 in BGA or QFP soldered on your board? > Same result as far back as 8.0-RELEASE-p4. Since USB works fine on the > SAM9G20 card I think I will ignore this for now, so as not to delay what > I am doing. > > Greg > > On 7/20/10 8:05 AM, Hans Petter Selasky wrote: > >On Tuesday 20 July 2010 14:04:53 Greg Ansley wrote: > > > >>While regression testing my patches, I found that USB is not working on > >>the AT91RM9200 from head (pre-patch). Error shown are the same with or > >>without a USB device attached. > >> > >>Just wondering of anyone has any insights before I spend time going down > >>this rabbit hole... > >> > >>... > >>usbus0: 12Mbps Full Speed USB v1.0 > >>Root mount waiting for: usbus0 > >>ugen0.1: at usbus0 > >>uhub0: on usbus0 > >>uhub0: 2 ports with 2 removable, self powered > >>Root mount waiting for: usbus0 > >>usb_alloc_device: set address 2 failed (USB_ERR_IOERROR, ignored) > >>usb_alloc_device: getting device descriptor at addr 2 failed, > >>USB_ERR_IOERROR > >>usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, > >>ignored) > >>usbd_req_re_enumerate: getting device descriptor at addr 2 failed, > >>USB_ERR_IOERROR > >>Root mount waiting for: usbus0 > >>usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, > >>ignored) > >>Root mount waiting for: usbus0 > >>usbd_req_re_enumerate: getting device descriptor at addr 2 failed, > >>USB_ERR_IOERROR > >>ugen0.2:<(null)> at usbus0 (disconnected) > >>uhub_reattach_port: could not allocate new device > >>Trying to mount root from ufs:/dev/mmcsd0s1a > >> > >> > >Hi, > > > >I think those messages are normal, because one of the USB ports is not > >connected. > > > >What messages do you get when plugging in a real USB device? > > > >--HPS > > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.