From owner-freebsd-arm@FreeBSD.ORG Tue Feb 19 04:31:27 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 D4AFA2D8 for ; Tue, 19 Feb 2013 04:31:27 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ie0-x235.google.com (mail-ie0-x235.google.com [IPv6:2607:f8b0:4001:c03::235]) by mx1.freebsd.org (Postfix) with ESMTP id 8EEC1AD2 for ; Tue, 19 Feb 2013 04:31:27 +0000 (UTC) Received: by mail-ie0-f181.google.com with SMTP id 17so7848451iea.40 for ; Mon, 18 Feb 2013 20:31:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer:x-gm-message-state; bh=V85bGfx88ENepuN10w1tj69tpEeC0vP0FenDGtMy7Rw=; b=DikJjlk/QHdGNr+GvwmwrgBQE816brF+CKraWBJVliRDMPZUPyrNjPWTBqoOw09gBS 7ZJW3SFra2Ke/fEMjbYUuEOd7BFObCN4zqvo9WqJevXl5uIVq8SufSRbJHCF1D/T8J2H 6bl//WXQhRXZip4yef5HI2QI9oJ4vcIPAS67jKFTBF+6jlMZFZCuPoYbvszslLqEN8ra XSREMk6Imhi35cYjKhL1Z1OX+a3NIxk4fFkxixP7UJa44BtgqLYZa0+8lvvQrQoE6ABJ VJuuimgMd2hH9AK+fqWK+ICIgWvKGyIBjUEDKf5htX9lj7sWI7m8/Pn9V2+SadYfUzX6 64iQ== X-Received: by 10.42.122.66 with SMTP id m2mr6884617icr.15.1361248287261; Mon, 18 Feb 2013 20:31:27 -0800 (PST) Received: from 53.imp.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPS id ur12sm12076106igb.8.2013.02.18.20.31.25 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Feb 2013 20:31:26 -0800 (PST) Sender: Warner Losh Subject: Re: RPi hangs in bootloader Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <1361239255.1164.61.camel@revolution.hippie.lan> Date: Mon, 18 Feb 2013 21:31:24 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <8562026D-EB1F-4ED8-8C2A-DB9CCF2A5E36@bsdimp.com> References: <51227033.3070304@thieprojects.ch> <1361235912.1164.55.camel@revolution.hippie.lan> <3C578B82-E8F9-4020-B52C-5F1091576E75@bsdimp.com> <1361239255.1164.61.camel@revolution.hippie.lan> To: Ian Lepore X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQmz/tSHaBKi3pv9y7uZ/kg9RWRwLzgVog2oTVNFynwqTUxHwtetVW5v7TrrlMOVbcNGGrs/ 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 04:31:27 -0000 On Feb 18, 2013, at 7:00 PM, Ian Lepore wrote: > 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. >>=20 >> Let us know how that works out. >>=20 >> Warner >=20 > It actually worked out pretty well. This is my rc file now: >=20 > rpi# cat /boot/loader.rc > fdt addr 0x100 > load kernel > load uftdi > set autoboot_delay=3D8000 >=20 > 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. >=20 > 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. Yea, or we can finally get tagging on the .ko's working so that we can = load modules automatically based on unattached FDT devices... Warner=