From owner-freebsd-arm@freebsd.org Mon May 23 01:38:12 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 9D468B45FB4 for ; Mon, 23 May 2016 01:38:12 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: from mail-io0-x236.google.com (mail-io0-x236.google.com [IPv6:2607:f8b0:4001:c06::236]) (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 72E4A1A7B for ; Mon, 23 May 2016 01:38:11 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: by mail-io0-x236.google.com with SMTP id p64so92913985ioi.2 for ; Sun, 22 May 2016 18:38:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ccqV9qQ8j8vyT1sowX0hhSShDRY6Q/oQk17OwH+x5FM=; b=YVAsbK0mwqNE+Yhy+yt/WZ6F9T7XE3t7kwZANByAUtO4YU0YYne+RcbpFdAkWwPISY m0s6RvQ0pOWF6PFmJyC3yrx3jRTCWWnkj4OPqPAB9KCKCEdd7F/ZWYwaTt2Kc/Gr0smS KB2Fnj71dTIUbBoEFnddBjvJsKjmDzrFtXCG8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ccqV9qQ8j8vyT1sowX0hhSShDRY6Q/oQk17OwH+x5FM=; b=NJTyJBZ6o9CoEvGa4TiaKH5tx9u9IQMVF3yja1mG5qpSb3wrHWEgIueRzUu+XWw0lF 42iLYq9p+WEVXwcp24RFTys47hqZn1BewbiHRJS+B1WFLckLdy1U8DEVoRi6bh+91vgy opdDbOykxYAGtiBtQRUNYB2gE526rE8xqOlFVOFnGdS3WyJe4jDHFo3ZuSZAiXIM9k7y V4EcqdIGqxR2eK5l4D9P/wn2PiWLajReCHFpQdGUlr7QkuIQqBTW62jIEgIu8Bqd/w12 95kcds0HQb8ogZxMVhZjrAdTw/5WKKe/tO6rl/f3BqMaJcGP/IZWeIze8tT8z2zRO5pp BvJA== X-Gm-Message-State: AOPr4FXBnWumf6I89j9oB15wpBjJl7cMf7Rcu9QyinKDNi4YPsh+G60mDLIqpSW4ZRgm+qmG4JDT42vEM8lpcA== X-Received: by 10.36.158.133 with SMTP id p127mr10313298itd.97.1463967490928; Sun, 22 May 2016 18:38:10 -0700 (PDT) MIME-Version: 1.0 References: <20160523004655.GW19887@gmail.com> In-Reply-To: <20160523004655.GW19887@gmail.com> From: =?UTF-8?Q?Otac=C3=ADlio_de_Ara=C3=BAjo_Ramos_Neto?= Date: Mon, 23 May 2016 01:38:01 +0000 Message-ID: Subject: Re: How do you guys cross compile for Zynq (Cortex A9)? To: Randy Westlund , Emb Aud Cc: freebsd-arm Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 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 01:38:12 -0000 Dear I think that it is a good idea add the option -x to poudriere when creating a jail. So, poudriere can use native tools to cross compile. What do you think about? []'s -Otac=C3=ADlio Em dom, 22 de mai de 2016 21:47, Randy Westlund escreveu: > 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 t= o > > 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 error= s > > 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/ >