From owner-freebsd-arm@FreeBSD.ORG Tue Dec 25 23:55:28 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EC7F05E0 for ; Tue, 25 Dec 2012 23:55:28 +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 93BF38FC0A for ; Tue, 25 Dec 2012 23:55:28 +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 qBPNtRUa001062 for ; Tue, 25 Dec 2012 16:55:27 -0700 (MST) (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 qBPNt5Tc072532; Tue, 25 Dec 2012 16:55:05 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) Subject: Re: Raspberry Pi questions From: Ian Lepore To: Oleksandr Tymoshenko In-Reply-To: <0F630E03-7A0C-4D56-A580-C7A9ABD2CB0C@bluezbox.com> References: <1356466883.1144.8.camel@revolution.hippie.lan> <08125E73-C46A-4DDF-BFD8-59D5B86136B8@bluezbox.com> <1356476778.1144.20.camel@revolution.hippie.lan> <0F630E03-7A0C-4D56-A580-C7A9ABD2CB0C@bluezbox.com> Content-Type: text/plain; charset="us-ascii" Date: Tue, 25 Dec 2012 16:55:05 -0700 Message-ID: <1356479705.1144.23.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, 25 Dec 2012 23:55:29 -0000 On Tue, 2012-12-25 at 15:21 -0800, Oleksandr Tymoshenko wrote: > On 2012-12-25, at 3:06 PM, Ian Lepore wrote: > > > On Tue, 2012-12-25 at 12:37 -0800, Oleksandr Tymoshenko wrote: > >> On 2012-12-25, at 12:21 PM, Ian Lepore wrote: > >> > >>> I got my RPi running this morning, more or less. I used the boot > >>> partition from the latest image at http://www.peach.ne.jp/archives/rpi/ > >>> but I'm loading my own custom built kernel and world. I have a few > >>> questions... > >>> > >>> Can I get ubldr to load a kernel using tftp, bootp, etc? > >> > >> Yes. ubldr checks U-Boot devices (SD and net), then tries to locate > >> FFS partition on SD card and if fails - falls back to NFS/bootp. You can fetch > >> my image, boot partition there contains ubldr, FDT blob, config.txt and boot scripts: > >> > >> http://people.freebsd.org/~gonzo/arm/rpi/freebsd-pi-r243778.img.gz > > > > This is so close to working. In u-boot I have an env var "usbethaddr" > > which contains what seems to be the right address (it's an RPi > > foundation oui). But still when booting via ubldr it generates a random > > address every time, apparently because smsc_fdt_find_mac() always > > returns zeroes (I added a printf to the smsc driver). If I hard-code > > the right mac address in the smsc driver I get all the way to multiuser > > mode. > > > > Also, when ubldr launches it immediately begins to load the kernel from > > sdcard before I can stop it. I have to wait for that to finish and then > > do "unload" then load the kernel from net0:. Can I create a file that > > contains different defaults or something? > > > > The amount of ram reported by kernel startup is only 128mb. u-boot says > > 384mb, that's not right either. > > > > All this means that kernel uses built-int dtb (I think at some point we should just > remove built-in DTB), not the one provided by u-boot. That was it exactly. My kernel config is doing including the standard RPI-B and then adding a few options of my own, and I didn't notice it had static dtb stuff in it. It's all working now, thanks! -- Ian