Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Jun 2014 12:15:23 +0600
From:      Stepan Dyatkovskiy <stpworld@narod.ru>
To:        Tim Kientzle <tim@kientzle.com>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Compilation for ARM
Message-ID:  <5393FF7B.4020407@narod.ru>
In-Reply-To: <6D7645D2-9C08-4B5D-BAA5-5B6EC8F66F0B@kientzle.com>
References:  <53935D02.2030604@narod.ru> <6D7645D2-9C08-4B5D-BAA5-5B6EC8F66F0B@kientzle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <stpworld@narod.ru> 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
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5393FF7B.4020407>