From owner-freebsd-arm@FreeBSD.ORG Sun Jun 8 06:15:41 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 D0136A52 for ; Sun, 8 Jun 2014 06:15:41 +0000 (UTC) Received: from forward7l.mail.yandex.net (forward7l.mail.yandex.net [IPv6:2a02:6b8:0:1819::7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 87B572757 for ; Sun, 8 Jun 2014 06:15:40 +0000 (UTC) Received: from smtp6.mail.yandex.net (smtp6.mail.yandex.net [77.88.61.56]) by forward7l.mail.yandex.net (Yandex) with ESMTP id 248D2BC10E5; Sun, 8 Jun 2014 10:15:30 +0400 (MSK) Received: from smtp6.mail.yandex.net (localhost [127.0.0.1]) by smtp6.mail.yandex.net (Yandex) with ESMTP id BFC331640785; Sun, 8 Jun 2014 10:15:29 +0400 (MSK) Received: from adsl-71-135-103-89.dsl.pltn13.pacbell.net (adsl-71-135-103-89.dsl.pltn13.pacbell.net [71.135.103.89]) by smtp6.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id VL11TKhSsb-FRkueYjS; Sun, 8 Jun 2014 10:15:28 +0400 (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: 2d869b8b-442f-4a71-835a-f7491712734c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narod.ru; s=mail; t=1402208129; bh=FrXxAlbCY3RzGCNU043AvPD6vn0+x0ZvZojDdzL1C4Q=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=g/9UtqDLjnUawdjH/rAV0iBmdhaPBb6SkUbDL8J67s6ZBxQAziBeExUdYFVaBLsUK XyyLXSWZsCDNdp9eP5xwfoc/tPZJDl3D8WZhlSxKMMU3DEsBvcgQwsL4qKyoyemIfJ MP2ebuNimLgwVd3u6pD+j0L7+IfYGQFn/eIHzYRk= Authentication-Results: smtp6.mail.yandex.net; dkim=pass header.i=@narod.ru Message-ID: <5393FF7B.4020407@narod.ru> Date: Sun, 08 Jun 2014 12:15:23 +0600 From: Stepan Dyatkovskiy User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26 MIME-Version: 1.0 To: Tim Kientzle Subject: Re: Compilation for ARM References: <53935D02.2030604@narod.ru> <6D7645D2-9C08-4B5D-BAA5-5B6EC8F66F0B@kientzle.com> In-Reply-To: <6D7645D2-9C08-4B5D-BAA5-5B6EC8F66F0B@kientzle.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2014 06:15:41 -0000 Hi Tim, Thank you for quick response! I will try your advices straight after weekends. We are using pandaboard. Are here any other cortex-a9/a15 boards that has, perhaps, better support in FreeBSD OS? If so, we ready to test it too, because the only thing we need in pandaboard for now is its CPU. Thanks! -Stepan I Tim Kientzle wrote: > On Jun 7, 2014, at 11:42 AM, Stepan Dyatkovskiy wrote: > >> I'm trying to cross-compile FreeBSD kernel with clang for ARM,... > > For what board? There are a few high-level tools now for > building ready-to-run system images for particular boards. > >> As base I used this guide: >> http://people.freebsd.org/~cognet/arm.html > > That looks pretty old; there are much simpler approaches available now. > > The basic process for cross-building is: > > $ make TARGET_ARCH=armv6 buildworld > $ make TARGET_ARCH=armv6 KERNCONF=XYZ buildkernel > > In particular, buildworld builds all of the cross-compile tools for you. > Also, clang is the default for FreeBSD on ARM now, so the above > commands all use clang. > > If you want to do kernel development (which involves repeatedly > making changes and rebuilding), you'll want to experiment with > > $ make TARGET_ARCH=armv6 buildenv > > This starts a shell with all the necessary environment variables > already correctly set for cross-buildling. (It assumes you have > already done a cross-buildworld to build the tools.) > > Note: For some targets, you need to also specify TARGET_CPUTYPE. > > Cheers, > > Tim >