From owner-freebsd-arm@FreeBSD.ORG Sun Mar 4 19:56:05 2012 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB4681065672; Sun, 4 Mar 2012 19:56:05 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 905558FC1A; Sun, 4 Mar 2012 19:56:05 +0000 (UTC) Received: from 63.imp.bsdimp.com (63.imp.bsdimp.com [10.0.0.63]) (authenticated bits=0) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id q24JtAo3010429 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Sun, 4 Mar 2012 12:55:10 -0700 (MST) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=utf-8 From: Warner Losh In-Reply-To: Date: Sun, 4 Mar 2012 12:55:09 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <166D2EAF-BC10-4064-A020-71DE3CB641AE@bsdimp.com> References: <23CB6C35-9450-40BA-9FA3-37C44B328CA8@freebsd.org> <8042D895-3B3D-431E-ADCC-A150BDC838ED@kientzle.com> <890D6B89-8031-496C-A5A2-A2836369F765@FreeBSD.org> To: Tim Kientzle X-Mailer: Apple Mail (2.1084) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (harmony.bsdimp.com [10.0.0.6]); Sun, 04 Mar 2012 12:55:10 -0700 (MST) Cc: "arm@freebsd.org" Subject: Re: ports cross-compilers vs. native toolchain X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Mar 2012 19:56:05 -0000 On Mar 3, 2012, at 12:03 PM, Tim Kientzle wrote: > On Mar 3, 2012, at 12:17 AM, Stanislav Sedov wrote: >=20 >> On Jan 18, 2012, at 9:49 PM, Tim Kientzle wrote: >>=20 >>> I'm trying to build a customized u-boot (so that I can >>> add the bootelf command, which is needed to chain >>> Rafa=C5=82's ubldr version of loader(8)).=20 >>=20 >> You can use arm-rtems-gcc or build one with arm/eabi settings to = build >> uboot. Personally, I've been using the rtems gcc port. The uboot is >> a freestanding application, so it does not need FreeBSD libs tool = chain to >> build and work. >=20 > Actually, I've since managed to build u-boot with the xdev > toolchain. There were two issues: >=20 > 1) "gcc --print-file-name=3Dinclude"=20 >=20 > About a week ago, I committed a fix to FreeBSD-CURRENT > so it now supports this. >=20 > 2) Missing div/mod functions in ARM libgcc. >=20 > You can work around this by adding -lc to a couple > of places in the u-boot makefiles. I'm also looking into > a fix for FreeBSD libgcc. (Looks like these functions > were disabled deliberately? I'm still digging.) Perhaps. The arm stuff has been fairly minimal for a number of reasons = that likely no longer make sense... Warner