How do you guys cross compile for Zynq (Cortex A9)?

Otacílio de Araújo Ramos Neto otacilio.neto at bsd.com.br
Mon May 23 01:38:12 UTC 2016


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ílio

Em dom, 22 de mai de 2016 21:47, Randy Westlund <rwestlun at 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 to
> > 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 errors
> > 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/
>


More information about the freebsd-arm mailing list