From owner-freebsd-arm@freebsd.org Sun May 22 18:48:41 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 8E580B45739 for ; Sun, 22 May 2016 18:48:41 +0000 (UTC) (envelope-from embaudarm@gmail.com) Received: from mail-oi0-x235.google.com (mail-oi0-x235.google.com [IPv6:2607:f8b0:4003:c06::235]) (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 56CBA1455 for ; Sun, 22 May 2016 18:48:41 +0000 (UTC) (envelope-from embaudarm@gmail.com) Received: by mail-oi0-x235.google.com with SMTP id k23so42055777oih.0 for ; Sun, 22 May 2016 11:48:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=MHK6LKkMf4FfSQrh26N+SpxadCffFV9TivPoj8IM9os=; b=G6Df/Grxzz5fg6ESCUnQUHbCaVbYZSuaRo/l/KB1VzmUL+SzPOGKrou9Ay+YgOj2jX bA81WCSxsxtKN9F+hgsM8ATpZtKQedjkFMfooQwQY1Gf6c7Lkmqwzlh5pnzMtaRlOTaT k7p/9Z0paOGEtT1iNPvPdlakYVmHTomiu9mESA93byof6YhgGxK5XjPBCYlYELjx4KkU SpFJd9y+1YCN70P6VGAdouMR4FHQBrXYVa+cYyfLdi+s7kV6FFOXa3OlkEPwOzVDPhLh 5uvW2Pd2ttnXgmhzQr/9s/wxTR/qzYwpTKB/UIDtjTLtaeNRvkhzw+71/YrTc2B3hWFZ +dDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=MHK6LKkMf4FfSQrh26N+SpxadCffFV9TivPoj8IM9os=; b=bV8wvxB09fXiSCD8jBreg2W20DPgOg5Dwzg/UV+Dkq5X35A0OHHUiUkKLq+493P584 rFLi1seLmit5xXNHAeXsiH05W2SglSZ5LhQgKfOTxSJEQkaJKS34hqHYHD0KIywnOIrn YaafESvTjNUy3IjqzFDrxQnsGB0eB6zb7O/9O2qP2sA+FDbQrmYmY04WIaVEcyIcb1Hf sSNtn1IMwTU5oNNGmFYxCelvJ/Fzhp5ef+ofyD2p8HWG8yA8z/myYvP74CeB+1W7Mzh8 SfLvfpmYpssr1oYt3qRsSdo0MIFTRaeJtHIQqoiot4LacAcKe3JbOvgyD8rXGrMNbc+B LK+g== X-Gm-Message-State: ALyK8tJYgy5ZN8akWZGpTEwww62seSlCl77FOhvEuQN1/VFyEgxQaRnV7uEjR/D3xVwbJBuApSUjpRr1EX87qQ== MIME-Version: 1.0 X-Received: by 10.157.51.35 with SMTP id f32mr2367225otc.105.1463942920443; Sun, 22 May 2016 11:48:40 -0700 (PDT) Received: by 10.157.20.8 with HTTP; Sun, 22 May 2016 11:48:40 -0700 (PDT) Date: Sun, 22 May 2016 14:48:40 -0400 Message-ID: Subject: How do you guys cross compile for Zynq (Cortex A9)? From: Emb Aud To: freebsd-arm Content-Type: text/plain; charset=UTF-8 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: Sun, 22 May 2016 18:48:41 -0000 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.