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

Emb Aud embaudarm at gmail.com
Sun May 22 18:48:41 UTC 2016


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.


More information about the freebsd-arm mailing list