Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 May 2016 01:38:01 +0000
From:      =?UTF-8?Q?Otac=C3=ADlio_de_Ara=C3=BAjo_Ramos_Neto?= <otacilio.neto@bsd.com.br>
To:        Randy Westlund <rwestlun@gmail.com>, Emb Aud <embaudarm@gmail.com>
Cc:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: How do you guys cross compile for Zynq (Cortex A9)?
Message-ID:  <CAFt_gkwBFw%2BCzMH-Jp2bzYfOsbpx9gJ=eb40YTkPP2eaRyAnXA@mail.gmail.com>
In-Reply-To: <20160523004655.GW19887@gmail.com>
References:  <CANC_bnM0Y5QFvU3Cdq6rGo6iNRgYiH9eTyLM_YAwiVO4CAVuxg@mail.gmail.com> <20160523004655.GW19887@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Dear

I think that it is a good idea add the option -x to poudriere when creating
a jail.  So, poudriere can use native tools to cross compile. What do you
think about?

[]'s
-Otac=C3=ADlio

Em dom, 22 de mai de 2016 21:47, Randy Westlund <rwestlun@gmail.com>
escreveu:

> On Sun, May 22, 2016 at 02:48:40PM -0400, Emb Aud wrote:
> > Hi Everyone,
> >
> >   I've got FreeBSD compiled and running on my Zybo (Xilinx Zynq CPU).
> >
> >   But I can't figure out how to compile programs to run on it.
> >
> >   I've gone round and round with teh gcc-arm-embedded-5.2.20151219_1
> > package, and also with the arm-none-eabi-gcc* packages.  Nothing seem t=
o
> > work and there is almost no documentation on this.
> >
> >   It also looks like the Cortex A9 is armv7-a, but the FreeBSD compile
> > instructions I've found (and that work) are for armv6.
> >
> >   My first problem was not finding the stdio.h header when I tried to
> > compile.  I solved that by switching to the gcc-arm-embedded package.
> Now
> > when I compile it finds the header but it barfs on libc.a... With error=
s
> > like "undefined reference to `_exit'" and other very basic libc
> functions.
> >
> >   Can anyone tell me how you are compiling your Zynq programs?
> >
> >   Thank you.
>
> I haven't used that specific board, but for the Beaglebone Black and
> Raspberry Pi, I use poudriere.  My writeup is here:
>
>
> http://www.textplain.net/tutorials/2015/cross-compiling-freebsd-ports-for=
-the-beaglebone-black/
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFt_gkwBFw%2BCzMH-Jp2bzYfOsbpx9gJ=eb40YTkPP2eaRyAnXA>