Date: Sun, 22 May 2016 20:46:55 -0400 From: Randy Westlund <rwestlun@gmail.com> To: 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: <20160523004655.GW19887@gmail.com> In-Reply-To: <CANC_bnM0Y5QFvU3Cdq6rGo6iNRgYiH9eTyLM_YAwiVO4CAVuxg@mail.gmail.com> References: <CANC_bnM0Y5QFvU3Cdq6rGo6iNRgYiH9eTyLM_YAwiVO4CAVuxg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Cf1qy2gtPj5yoBMh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, May 22, 2016 at 02:48:40PM -0400, Emb Aud wrote: > Hi Everyone, >=20 > I've got FreeBSD compiled and running on my Zybo (Xilinx Zynq CPU). >=20 > But I can't figure out how to compile programs to run on it. >=20 > 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. >=20 > It also looks like the Cortex A9 is armv7-a, but the FreeBSD compile > instructions I've found (and that work) are for armv6. >=20 > 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. >=20 > Can anyone tell me how you are compiling your Zynq programs? >=20 > 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-t= he-beaglebone-black/ --Cf1qy2gtPj5yoBMh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXQlL/AAoJEGaweXjzNsmpx2wIAM+HLrMzcfdQ1ltgllmVxJpy igf0cxe+YMx7Z0soqGQ1LHJ4Y3FzvjWd5n/0G4pmExHgzXD5Nvp/peRqjw/BqHsF 0Pu9zwUbLBcDMFE8mrqX2iO/BDa+0fVzfcTtmXRE/jHDPJPECRFg+eOl2/y4qjkR bKDAmnt+CWzupSIk8k/saw/ih1Ewrd8WrhaPRcAdkw/Eg1E5JHdruQpl7825Laq9 ekJvf5PvTh1laqfVmrWddXn7I2zq7pPCyan7jZGUfpHAHF91R7bC61Ryyziymbs7 n9v/h9Nvb2w5r9Ujgk/taKvmo90eBduBIml44fMQhiVLQ0XjmGqJamj/RPFuCyg= =jJYl -----END PGP SIGNATURE----- --Cf1qy2gtPj5yoBMh--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160523004655.GW19887>