From owner-freebsd-arm@freebsd.org Mon May 23 00:46:59 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 76C87B451B8 for ; Mon, 23 May 2016 00:46:59 +0000 (UTC) (envelope-from rwestlun@gmail.com) Received: from mail-qk0-x234.google.com (mail-qk0-x234.google.com [IPv6:2607:f8b0:400d:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 305D61235 for ; Mon, 23 May 2016 00:46:59 +0000 (UTC) (envelope-from rwestlun@gmail.com) Received: by mail-qk0-x234.google.com with SMTP id x7so98504601qkd.3 for ; Sun, 22 May 2016 17:46:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=1L/mjDHEh/NfXXrd/JgRZRdbzziXoRGl8HyqoSPdGKY=; b=ryT0LePuvIA1M5+UXhjV7uGqKD0+m+VH1POdKDNsPpnok0u+lTJsXQ+EmZEuWntqmw NJkoCKucqLYnzLkNnxSyWjEQPDs39zHBvZkPKhQpRBOIIIS76LEhHJA8RUkOI5Pv24O0 oo/UQmzvs4+yByJW3v8SbcBi6CZ28lAgmvbUceT0kiRfO/Ame3wls2g8aKfwW3Z2Aw3U QvQ8pMllmT1sciBjy/sasXTt+n5SwbgOtyGT4LjsfSW8rGAfQKDQ2kcsEguiAFPR/8y7 mHhVNV4nzxxpDYGYwDnNDy5PxhekuyiauHey/W8pZZyHRH+LDvJzk61MIn0zSfrV9I3c JQew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=1L/mjDHEh/NfXXrd/JgRZRdbzziXoRGl8HyqoSPdGKY=; b=DiQtApYu5itJXMW0ORvMU9MzhUpaZOMEq568yaQFM7WTAdgNkyUtNL0gWUQvYt70Jh dzi3YA2SnVWyr2OMc/j9XTJ6MceuCA7UjE5pRnRJoq8fa8ddoGjohXGWTX/OnPHQyprg Tha0LRxC8mexjLNZhSHYd46PMeoF88FEvJtYEdb/g8QpOEEbr0VbNCdwbfLYMQ567P0i 24Agc2AXhT9g4b70/A9wfvffKA7kgfiC/TZ6+R2v7zYrIil1ESJHnmgsyM0iEP8sgnZC yc5UASqLQsU6PavwP0o4mLVW7q7kNPKrVQ0lhE2jMNE8lb0Qbzl7B7BWzlvbyz676HjN z+vw== X-Gm-Message-State: AOPr4FV1aN477y2y/4gLkzp3a1B2CAwc/za3Ovv4zgkgi2wlgSGEFozwQuaLVm6RCbwOcg== X-Received: by 10.237.56.130 with SMTP id k2mr9470479qte.74.1463964418361; Sun, 22 May 2016 17:46:58 -0700 (PDT) Received: from gmail.com (c-98-216-247-110.hsd1.ma.comcast.net. [98.216.247.110]) by smtp.gmail.com with ESMTPSA id a28sm3758361qtb.23.2016.05.22.17.46.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 May 2016 17:46:57 -0700 (PDT) Date: Sun, 22 May 2016 20:46:55 -0400 From: Randy Westlund To: Emb Aud Cc: freebsd-arm Subject: Re: How do you guys cross compile for Zynq (Cortex A9)? Message-ID: <20160523004655.GW19887@gmail.com> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Cf1qy2gtPj5yoBMh" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2016 00:46:59 -0000 --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--