From owner-freebsd-arm@FreeBSD.ORG Sun Mar 15 16:30:36 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 26086DC5 for ; Sun, 15 Mar 2015 16:30:36 +0000 (UTC) Received: from relay.mailchannels.net (si-002-i157.relay.mailchannels.net [108.178.49.169]) by mx1.freebsd.org (Postfix) with ESMTP id 6DA0877F for ; Sun, 15 Mar 2015 16:30:29 +0000 (UTC) X-Sender-Id: duocircle|x-authuser|hippie Received: from smtp2.ore.mailhop.org (ip-10-237-13-110.us-west-2.compute.internal [10.237.13.110]) by relay.mailchannels.net (Postfix) with ESMTPA id 226E760AFD; Sun, 15 Mar 2015 16:30:19 +0000 (UTC) X-Sender-Id: duocircle|x-authuser|hippie Received: from smtp2.ore.mailhop.org (smtp2.ore.mailhop.org [10.45.8.167]) (using TLSv1 with cipher DHE-RSA-AES256-SHA) by 0.0.0.0:2500 (trex/5.4.8); Sun, 15 Mar 2015 16:30:21 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: duocircle|x-authuser|hippie X-MailChannels-Auth-Id: duocircle X-MC-Loop-Signature: 1426437021269:4276077194 X-MC-Ingress-Time: 1426437021269 Received: from c-73-34-117-227.hsd1.co.comcast.net ([73.34.117.227] helo=ilsoft.org) by smtp2.ore.mailhop.org with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.82) (envelope-from ) id 1YXBQf-0008Nt-92; Sun, 15 Mar 2015 16:30:17 +0000 Received: from revolution.hippie.lan (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t2FGUCF6021217; Sun, 15 Mar 2015 10:30:12 -0600 (MDT) (envelope-from ian@freebsd.org) X-Mail-Handler: DuoCircle Outbound SMTP X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@duocircle.com (see https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information for abuse reporting information) X-MHO-User: U2FsdGVkX19pypgquBQpO2vhxzCoLREN Message-ID: <1426437012.67325.7.camel@freebsd.org> Subject: Re: Building Cross Compiler and u-boot From: Ian Lepore To: Russell Haley Date: Sun, 15 Mar 2015 10:30:12 -0600 In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.12.10 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-AuthUser: hippie Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Mar 2015 16:30:36 -0000 On Sat, 2015-03-14 at 21:14 -0700, Russell Haley wrote: > Hello I am trying to build the cross compile tools and make u-boot. > > Tim Kientzle spoke about two ways of getting cross compilers for > outside of building FreeBDS: > > 1) make TARGET=arm TARGET_ARCH=armv6 buildenv > > after a successful buildworld > > 2)make xdev XDEV=arm XDEV_ARCH=armv6 > > I have struggled (and failed) to make either work. I checked out Rui > Paulos uboot fork to /usr/uboot. > > > 1)Using buildenv -> The xdev way of building crosstools to build uboot is pretty much dead. Probably the best way forward is to use one of the existing u-boot ports such as sysutils/u-boot-wandboard, copy it and transform it into a port to build the flavor you need. To save the time of building the port cross-compiler from scratch you can do "pkg install arm-none-eabi-gcc". Are you working with the ConnectCore 6? If so, the u-boot ports for wandboard or cubox-hummingboard are probably 99% ready, you may need to tweak the config file patch in the port. -- Ian