From owner-freebsd-arm@FreeBSD.ORG Wed Oct 10 13:43:02 2012 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CDCB9F04; Wed, 10 Oct 2012 13:43:02 +0000 (UTC) (envelope-from freebsd@damnhippie.dyndns.org) Received: from duck.symmetricom.us (duck.symmetricom.us [206.168.13.214]) by mx1.freebsd.org (Postfix) with ESMTP id 4B8168FC08; Wed, 10 Oct 2012 13:43:02 +0000 (UTC) Received: from damnhippie.dyndns.org (daffy.symmetricom.us [206.168.13.218]) by duck.symmetricom.us (8.14.5/8.14.5) with ESMTP id q9ADh1PE034454; Wed, 10 Oct 2012 07:43:01 -0600 (MDT) (envelope-from freebsd@damnhippie.dyndns.org) 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 q9ADgwp8081596; Wed, 10 Oct 2012 07:42:58 -0600 (MDT) (envelope-from freebsd@damnhippie.dyndns.org) Subject: Re: Towards an ARM system-building script From: Ian Lepore To: Giovanni Trematerra In-Reply-To: References: <0DCAC001-FF06-431A-A486-2B50BE913B0D@bsdimp.com> <7E18623F-3945-4EA0-B332-5A5C717B20F0@kientzle.com> <9896AA3E-D8A0-4CE8-8160-4672AA07388F@cheney.net> <6B74ADD7-3266-4919-BEB4-B10E0C1BAB58@kientzle.com> <5679C679-A434-4714-BE61-4DC093DA7F34@kientzle.com> <8C1192B3-EC56-4D9E-824E-774700FB2EE9@kientzle.com> Content-Type: text/plain; charset="us-ascii" Date: Wed, 10 Oct 2012 07:42:57 -0600 Message-ID: <1349876577.1123.30.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: arm@freebsd.org, Tim Kientzle , Oleksandr Tymoshenko 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: Wed, 10 Oct 2012 13:43:02 -0000 On Tue, 2012-10-09 at 23:42 +0200, Giovanni Trematerra wrote: > I booted a kernel with your suggestion but I get a panic during > initialization of ue0 I think It looks like bootpc_init() is getting called before USB has found the ethernet adapter. It might be fixable with a simple patch such as the following, but I really don't know whether this will work, and even if it does, whether it's a good idea (hopefully someone more knowledgable will offer an opinion). But if nothing else it's an interesting experiment to try. diff -r 5f2e07d3ae42 sys/nfs/bootp_subr.c --- a/sys/nfs/bootp_subr.c Thu Oct 04 20:42:12 2012 -0600 +++ b/sys/nfs/bootp_subr.c Wed Oct 10 07:38:31 2012 -0600 @@ -1526,6 +1526,8 @@ bootpc_init(void) int timeout; int delay; + root_mount_wait(); + timeout = BOOTP_IFACE_WAIT_TIMEOUT * hz; delay = hz / 10; -- Ian