From owner-freebsd-arm@FreeBSD.ORG Sun Sep 1 18:45:03 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 365704E3 for ; Sun, 1 Sep 2013 18:45:03 +0000 (UTC) (envelope-from hippie@damnhippie.dyndns.org) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0C88E2F05 for ; Sun, 1 Sep 2013 18:45:02 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1VGCds-000Kfx-Gx; Sun, 01 Sep 2013 18:44:56 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id r81Iirnc066930; Sun, 1 Sep 2013 12:44:53 -0600 (MDT) (envelope-from hippie@damnhippie.dyndns.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19tun8DIuGQJqpd2511Xl+w Subject: Re: dockstar (kirkwood) EHCI needs "usb start" in u-boot or it will hang From: Ian To: "army.of.root" In-Reply-To: <52235263.5080503@googlemail.com> References: <52235263.5080503@googlemail.com> Content-Type: text/plain; charset="us-ascii" Date: Sun, 01 Sep 2013 12:44:53 -0600 Message-ID: <1378061093.1111.358.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Sep 2013 18:45:03 -0000 On Sun, 2013-09-01 at 16:42 +0200, army.of.root wrote: > Hi, > > I just spent an hour trying to get my dockstar to boot a head kernel. > > I switched from putting the kernel on a usb drive to booting it via tftp from > u-boot for convienience purposes. > The usb drive boot script in u-boot obviously starts up the usb subsystem, but > I left it out for the tftp routine. > > This resulted in a hanging Kernel on this output: > > > ehci0: mem 0xf1050000-0xf1050fff irq 48,19 on simplebus0 > > usbus0: EHCI version 1.0 > > usbus0: stop timeout > > usbus0: set host controller mode > > usbus0 on ehci0 > > > > After having a joyful moment of clarity and adding the command "usb start" to > my tftp uboot script, the issue was resolved. > > > Is this expected behavior? > > Or am I missing a kernel option (various combinations did not help including > the default DOCKSTAR config)? Strange, it's not like that on my similar DreamPlug system... Marvell>> usb info USB is stopped. Please issue 'usb start' first. Marvell>> run netboot BOOTP broadcast 1 ... FreeBSD 10.0-CURRENT #7 r254449M: Thu Aug 29 12:19:59 MDT 2013 root@revolution.hippie.lan:/local/build/staging/freebsd/dp10/obj/arm.arm/local/build/staging/freebsd/dp10/src/sys/DP-NFSROOT arm FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 WARNING: WITNESS option enabled, expect reduced performance. WARNING: DIAGNOSTIC option enabled, expect reduced performance. CPU: Feroceon 88FR131 rev 1 (Marvell core) Little-endian DC enabled IC enabled WA disabled DC streaming enabled BTB disabled L2 enabled L2 prefetch enabled WB enabled EABT branch prediction enabled 16KB/32B 4-way instruction cache 16KB/32B 4-way write-back-locking-C data cache real memory = 536870912 (512 MB) avail memory = 515407872 (491 MB) SOC: Marvell 88F6281 rev A1, TClock 200MHz Instruction cache prefetch disabled, data cache prefetch disabled 256KB 4-way set-associative write-through unified L2 cache ... ehci0: mem 0xf1050000-0xf1050fff irq 48,19 on simplebus0 usbus0: EHCI version 1.0 usbus0: stop timeout usbus0: set host controller mode usbus0 on ehci0 mvs0: mem 0xf1080000-0xf1085fff irq 21 on simplebus0 It boots fine from there until it runs into the initrandom and tmpfs problems we've been having on armv5 platforms. If I ^C may through those things and get logged on, I can run usbconfig and see devices. I looked at the u-boot code for marvell ehci and it just initializes the decode window registers before calling the stock ehci code. That's also what happens in the kernel, in arm/mv/common.c. The thing I can't quite figure out about the kernel code is the strange power management stuff for marvell. But I don't see the u-boot code doing any power management stuff at all (maybe I just missed it). -- Ian