From owner-freebsd-arm@FreeBSD.ORG Sat May 3 18:48:36 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 710592B5 for ; Sat, 3 May 2014 18:48:36 +0000 (UTC) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (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 455951842 for ; Sat, 3 May 2014 18:48:35 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Wgez7-0005eI-1K; Sat, 03 May 2014 18:48:29 +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 s43ImRdf021772; Sat, 3 May 2014 12:48:27 -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: U2FsdGVkX19CZ2vuX9S5jDziTFhclBIa Subject: Re: FreeBSD on Dockstar: U-Boot / ubldr? From: Ian Lepore To: Tom Everett In-Reply-To: <536538A1.70808@0x544745.com> References: <20140503202047.294ad097b30f4240099659e6@getmail.no> <1399142139.22079.222.camel@revolution.hippie.lan> <536538A1.70808@0x544745.com> Content-Type: text/plain; charset="us-ascii" Date: Sat, 03 May 2014 12:48:26 -0600 Message-ID: <1399142906.22079.224.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:48:36 -0000 On Sat, 2014-05-03 at 12:42 -0600, Tom Everett wrote: > For wandboard, I used this patch: > > https://github.com/kientzle/crochet-freebsd/blob/master/board/Wandboard/files/uboot-2013.10_include_configs_wandboard.h.patch > > I also chose to use a u-boot scr file rather than apply a pile of > patches to u-boot to set the boot config. My hope was that when it came > time to move to the next u-boot version I would not have to update as > many patch files. > > The source of the scr file is here: > > https://github.com/kientzle/crochet-freebsd/blob/master/board/Wandboard/files/boot.txt > > The code in setup.sh to build the scr file is: > > # > # build the u-boot scr file > # > strategy_add $PHASE_BOOT_INSTALL uboot_mkimage "files/boot.txt" "boot.scr" It's crazy how much weird stuff they're cramming into u-boot default environments now. It's almost like they're having some sort of "I'm more clever than you with this primitive scripting language" contest. I tend to go minimal, this is my typical u-boot env: => printenv baudrate=115200 bootcmd=run ubmmc bootdelay=2 fdt_file=wandboard-quad.dtb loadaddr=0x11000000 loaderdev=net ubmmc=fatload mmc 0 ${loadaddr} ubldr; bootelf ubnet=dhcp ${loadaddr} /wand/boot/ubldr;bootelf Environment size: 279/8188 bytes -- Ian