From owner-freebsd-embedded@FreeBSD.ORG Tue Oct 14 09:29:40 2008 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A224106568B for ; Tue, 14 Oct 2008 09:29:40 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id 17BF68FC12 for ; Tue, 14 Oct 2008 09:29:40 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id m9E9Tc1b018905; Tue, 14 Oct 2008 03:29:39 -0600 Message-ID: <48F4667F.4080900@semihalf.com> Date: Tue, 14 Oct 2008 11:29:35 +0200 From: Rafal Jaworowski Organization: Semihalf MIME-Version: 1.0 To: "Bruce M. Simpson" References: <48F099D4.2050302@incunabulum.net> In-Reply-To: <48F099D4.2050302@incunabulum.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@FreeBSD.org Subject: Re: HOWTO: Build NSLU2 U-Boot on FreeBSD X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2008 09:29:40 -0000 Bruce M. Simpson wrote: > Building NSLU2 U-boot firmware on FreeBSD hosts *snip* > Toolchain setup > > cd /usr/ports/devel/cross-binutils > env TGTARCH=arm TGTABI=rtems make install > > cd /usr/ports/devel/cross-gcc > env TGTARCH=arm TGTABI=rtems make install > > Get stas@FreeBSD.org's updated u-boot tarball: > uboot-atamantb.tar.bz2 > Untar it *snip* > env CROSS_COMPILE=arm-rtems- gmake distclean > env CROSS_COMPILE=arm-rtems- gmake nslu2_config > env CROSS_COMPILE=arm-rtems- gmake In general it should be possible to build U-Boot with our in-tree cross tool chain. I recall Marcel got this working with some patches against U-Boot build scripts, tools or makefiles; they were even accepted to main line U-Boot IIRC. There's also another approach possible: using U-Boot native and ready to use build tools (ELDK) via Linux compat layer. I was working in such setup some time ago and it was fine with some minor tweaks because of differences in some of the GNU tools and ours. FWIW, my old notes on this from FreeBSD 5.x/6 timeframe can be found here: http://www.denx.de/wiki/view/DULG/ELDKInstallationUnderFreeBSD Rafal