From owner-freebsd-arm@FreeBSD.ORG Tue Feb 19 02:01:18 2013 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9193E4AF for ; Tue, 19 Feb 2013 02:01:18 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from duck.symmetricom.us (duck.symmetricom.us [206.168.13.214]) by mx1.freebsd.org (Postfix) with ESMTP id 0F8182F5 for ; Tue, 19 Feb 2013 02:01:17 +0000 (UTC) Received: from damnhippie.dyndns.org (daffy.symmetricom.us [206.168.13.218]) by duck.symmetricom.us (8.14.6/8.14.6) with ESMTP id r1J21HNF094839 for ; Mon, 18 Feb 2013 19:01:17 -0700 (MST) (envelope-from ian@FreeBSD.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 r1J20tJG049040; Mon, 18 Feb 2013 19:00:55 -0700 (MST) (envelope-from ian@FreeBSD.org) Subject: Re: RPi hangs in bootloader From: Ian Lepore To: Warner Losh In-Reply-To: <3C578B82-E8F9-4020-B52C-5F1091576E75@bsdimp.com> References: <51227033.3070304@thieprojects.ch> <1361235912.1164.55.camel@revolution.hippie.lan> <3C578B82-E8F9-4020-B52C-5F1091576E75@bsdimp.com> Content-Type: text/plain; charset="us-ascii" Date: Mon, 18 Feb 2013 19:00:55 -0700 Message-ID: <1361239255.1164.61.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: Tue, 19 Feb 2013 02:01:18 -0000 On Mon, 2013-02-18 at 18:25 -0700, Warner Losh wrote: > On Feb 18, 2013, at 6:05 PM, Ian Lepore wrote: [...] > > The general thing I'm up to today is learning enough about ubldr to use > > it effectively, and ultimately to see if it can be used to load a > > (semi-)generic kernel plus a set of modules you configure in loader.rc. > > I've just managed to do that by hand, now to see if loader.rc will > > cooperate. > > Let us know how that works out. > > Warner It actually worked out pretty well. This is my rc file now: rpi# cat /boot/loader.rc fdt addr 0x100 load kernel load uftdi set autoboot_delay=8000 The tricky bits are... if you're going to use any load commands, "load kernel" has to be first, and the delay of 8000 compensates for the fact that the get_timer() routine in the rpi u-boot we're all using right now returns micros rather than millis. I think soon we'll be able to stop building kitchen-sink kernels for things like the *Plug computers and instead just let all the standard modules get built along with a fairly minimal kernel. Folks should be able to download an image and enable features they want to try with a few edits to loader.rc and a reboot. -- Ian