From owner-freebsd-arm@FreeBSD.ORG Sat May 3 18:52:59 2014 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 ESMTPS id AF706468 for ; Sat, 3 May 2014 18:52:59 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8355F18D8 for ; Sat, 3 May 2014 18:52:58 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Wgf3S-0004xu-0a; Sat, 03 May 2014 18:52:58 +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 s43Iqs60021781; Sat, 3 May 2014 12:52:54 -0600 (MDT) (envelope-from ian@FreeBSD.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: U2FsdGVkX1+5mC7EtA+FHRUYu6rF1aXc Subject: Re: FreeBSD on Dockstar: U-Boot / ubldr? From: Ian Lepore To: Torfinn Ingolfsen In-Reply-To: <20140503204548.a5ebaaddbfb3036e7d74b58a@getmail.no> References: <20140503202047.294ad097b30f4240099659e6@getmail.no> <1399142139.22079.222.camel@revolution.hippie.lan> <20140503204548.a5ebaaddbfb3036e7d74b58a@getmail.no> Content-Type: text/plain; charset="us-ascii" Date: Sat, 03 May 2014 12:52:54 -0600 Message-ID: <1399143174.22079.228.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.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 May 2014 18:52:59 -0000 On Sat, 2014-05-03 at 20:45 +0200, Torfinn Ingolfsen wrote: > On Sat, 03 May 2014 12:35:39 -0600 > Ian Lepore wrote: > > > > > Using ubldr requires a u-boot that has the 'API' feature enabled. > > Virtually no u-boot comes that way from a vendor. I don't think the > > feature even existed when the kirkwood systems were current. > > Ok, changing my question: is there a "generic" U-boot that I can build for my Dockstar? > And would it be ok to have U-boot om the Dockstar load the new U-Boot? > Nope, no generic u-boot, it's got to be customized for the hardware. But the dockstar should have a canned config that you can choose in the port Makefile. Look at the port for sysutils/u-boot-beaglebone-eabi. Using the existing u-boot to chain-load another u-boot with API and other features can at least potentially work. Thomas Skibo has it working for a Parallela board. Because u-boot does strange and mysterious low-level init stuff to the hardware on some platforms, there's a chance that chain-loading it won't work, because tyring to re-init already running hardware could fail. I think it's a good idea in general, it could give us a way for people to "try freebsd" quickly and easily without having to reflash their boards/boxes with a new u-boot if there's flash memory involved. -- Ian