Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 May 2016 14:48:40 -0400
From:      Emb Aud <embaudarm@gmail.com>
To:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   How do you guys cross compile for Zynq (Cortex A9)?
Message-ID:  <CANC_bnM0Y5QFvU3Cdq6rGo6iNRgYiH9eTyLM_YAwiVO4CAVuxg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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.



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