How do you guys cross compile for Zynq (Cortex A9)?
Randy Westlund
rwestlun at gmail.com
Mon May 23 00:46:59 UTC 2016
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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20160522/8c920058/attachment.sig>
More information about the freebsd-arm
mailing list