From owner-freebsd-arm@FreeBSD.ORG Mon Jun 1 11:06:47 2009 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9530F106564A for ; Mon, 1 Jun 2009 11:06:47 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 813838FC16 for ; Mon, 1 Jun 2009 11:06:47 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n51B6ln3020997 for ; Mon, 1 Jun 2009 11:06:47 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n51B6kAR020990 for freebsd-arm@FreeBSD.org; Mon, 1 Jun 2009 11:06:46 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 1 Jun 2009 11:06:46 GMT Message-Id: <200906011106.n51B6kAR020990@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-arm@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-arm@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2009 11:06:47 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o arm/134368 arm [patch] nslu2_led driver for the LEDs on the NSLU2 o arm/134338 arm [patch] Lock GPIO accesses on ixp425 o arm/134092 arm [patch] NSLU.hints contains wrong hints for on board n 3 problems total. From owner-freebsd-arm@FreeBSD.ORG Mon Jun 1 23:55:46 2009 Return-Path: Delivered-To: arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5BF74106564A; Mon, 1 Jun 2009 23:55:46 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 1D83A8FC15; Mon, 1 Jun 2009 23:55:46 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id n51NpZc6000460; Mon, 1 Jun 2009 17:51:35 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 01 Jun 2009 17:51:46 -0600 (MDT) Message-Id: <20090601.175146.255408209.imp@bsdimp.com> To: kmacy@FreeBSD.org From: "M. Warner Losh" In-Reply-To: <200906012209.n51M9gTU094161@svn.freebsd.org> References: <200906012209.n51M9gTU094161@svn.freebsd.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: arm@FreeBSD.org Subject: Re: svn commit: r193282 - stable/7/sys/libkern X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2009 23:55:46 -0000 In message: <200906012209.n51M9gTU094161@svn.freebsd.org> Kip Macy writes: : Author: kmacy : Date: Mon Jun 1 22:09:42 2009 : New Revision: 193282 : URL: http://svn.freebsd.org/changeset/base/193282 : : Log: : memmove is defined in support.S on arm - don't compile in : : Modified: : stable/7/sys/libkern/memmove.c : : Modified: stable/7/sys/libkern/memmove.c : ============================================================================== : --- stable/7/sys/libkern/memmove.c Mon Jun 1 22:05:08 2009 (r193281) : +++ stable/7/sys/libkern/memmove.c Mon Jun 1 22:09:42 2009 (r193282) : @@ -29,6 +29,7 @@ __FBSDID("$FreeBSD$"); : : #include : : +#if !defined(__arm__) : void * : memmove(void *dest, const void *src, size_t n) : { : @@ -36,3 +37,4 @@ memmove(void *dest, const void *src, siz : bcopy(src, dest, n); : return (dest); : } : +#endif Ummm, usually we don't bother to even include the .c file in cases like this... Is it this way in -head? Warner From owner-freebsd-arm@FreeBSD.ORG Tue Jun 2 00:41:32 2009 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84D401065674 for ; Tue, 2 Jun 2009 00:41:32 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by mx1.freebsd.org (Postfix) with ESMTP id 3D7448FC20 for ; Tue, 2 Jun 2009 00:41:31 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so4097810yxb.13 for ; Mon, 01 Jun 2009 17:41:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=R9kou/JCxKMYRXJBAo1yKNcTONJDJKkSJmHmemwnYIs=; b=m6XVontYiBNJrTsdenS8YFQUjMvVYzT7xbNT1mQzgsQd82eU5TiemRF6omtRkqUT+t gYwhDUENletR7cL/ldQvWzH4+M+kIXI1Ie+LTpnd4uVDBc3jf0bs2I+7H3gZxuPma6wi 9RD4ZED6YS1lgBsp5BUWAAxxi6aTJagGiw17g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=Qddk1vCQ0scB6tBk8/+uKUauRo4+ERu4X7kFhqV5sv9ZdoAcT+ps4fllHbGlZ3FzAw Dk1aqTudkd8amp6T3qQsyT3+pU7D2bp6TYsORraGGMnkVoRrePtJ2C1ZmJujhWZR1die vErBhAa2Ku2AuvrAqQ7AmatwqHRX9QG3wsk/4= MIME-Version: 1.0 Sender: mat.macy@gmail.com Received: by 10.100.209.14 with SMTP id h14mr8068604ang.139.1243901360334; Mon, 01 Jun 2009 17:09:20 -0700 (PDT) In-Reply-To: <20090601.175146.255408209.imp@bsdimp.com> References: <200906012209.n51M9gTU094161@svn.freebsd.org> <20090601.175146.255408209.imp@bsdimp.com> Date: Mon, 1 Jun 2009 17:09:20 -0700 X-Google-Sender-Auth: 4d059cce07f81d81 Message-ID: <3c1674c90906011709g757a3abds75a0cde8927bc46b@mail.gmail.com> From: Kip Macy To: "M. Warner Losh" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: arm@freebsd.org Subject: Re: svn commit: r193282 - stable/7/sys/libkern X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2009 00:41:32 -0000 No, this is a band-aid for a mistake I made in the ZFS MFC. I had hoped to avoid updating all the files., but I will do that if need be. Cheers, Kip On Mon, Jun 1, 2009 at 4:51 PM, M. Warner Losh wrote: > In message: <200906012209.n51M9gTU094161@svn.freebsd.org> > =A0 =A0 =A0 =A0 =A0 =A0Kip Macy writes: > : Author: kmacy > : Date: Mon Jun =A01 22:09:42 2009 > : New Revision: 193282 > : URL: http://svn.freebsd.org/changeset/base/193282 > : > : Log: > : =A0 memmove is defined in support.S on arm - don't compile in > : > : Modified: > : =A0 stable/7/sys/libkern/memmove.c > : > : Modified: stable/7/sys/libkern/memmove.c > : =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > : --- stable/7/sys/libkern/memmove.c =A0 =A0Mon Jun =A01 22:05:08 2009 = =A0 =A0 =A0 =A0(r193281) > : +++ stable/7/sys/libkern/memmove.c =A0 =A0Mon Jun =A01 22:09:42 2009 = =A0 =A0 =A0 =A0(r193282) > : @@ -29,6 +29,7 @@ __FBSDID("$FreeBSD$"); > : > : =A0#include > : > : +#if !defined(__arm__) > : =A0void * > : =A0memmove(void *dest, const void *src, size_t n) > : =A0{ > : @@ -36,3 +37,4 @@ memmove(void *dest, const void *src, siz > : =A0 =A0 =A0 bcopy(src, dest, n); > : =A0 =A0 =A0 return (dest); > : =A0} > : +#endif > > Ummm, usually we don't bother to even include the .c file in cases > like this... =A0Is it this way in -head? > > > Warner > --=20 When bad men combine, the good must associate; else they will fall one by one, an unpitied sacrifice in a contemptible struggle. Edmund Burke From owner-freebsd-arm@FreeBSD.ORG Tue Jun 2 11:59:17 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF7121065680 for ; Tue, 2 Jun 2009 11:59:17 +0000 (UTC) (envelope-from vassilis.laganakos@yahoo.com) Received: from n1a.bullet.mail.ac4.yahoo.com (n1a.bullet.mail.ac4.yahoo.com [76.13.13.64]) by mx1.freebsd.org (Postfix) with SMTP id 969E38FC13 for ; Tue, 2 Jun 2009 11:59:17 +0000 (UTC) (envelope-from vassilis.laganakos@yahoo.com) Received: from [76.13.13.25] by n1.bullet.mail.ac4.yahoo.com with NNFMP; 02 Jun 2009 11:46:01 -0000 Received: from [76.13.10.176] by t4.bullet.mail.ac4.yahoo.com with NNFMP; 02 Jun 2009 11:46:01 -0000 Received: from [127.0.0.1] by omp117.mail.ac4.yahoo.com with NNFMP; 02 Jun 2009 11:46:01 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 189966.59127.bm@omp117.mail.ac4.yahoo.com Received: (qmail 37116 invoked by uid 60001); 2 Jun 2009 11:46:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1243943161; bh=KPnxXqiRaINqy8UNj0bnweviwzcy2MNWAAXmvsuNdEU=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=bWPgrRrkku7dy5+ta3FCU5g7h5u4aXXZbhd8fEfLfo3GqoeVZK1gO2PPPqKGUoC01zfiDPuonqPU2LtRzx+1EmNSVLHNn4ELcg/a3i4IeFnvYyM4ozcPXa5nf0Wzia9kAouPrY5hqnPsScJv6QW1IPDNdCFH0PxCNnsHRfma9Rc= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=YnrHMX2hBtAo4N/7nqTbe/fQrEIp95LD1XFN+F7GuJgjifjZPDzmbiJ12uyBEEUk6wyXrOHTxpsQPGQ0/09Lqi4fWCwy76rouLG6CVPN7AZYm3zSbDz2LfTyX22pf/m8ZtM7jZzrb/ZGErQRBhtGKe9QuHL1wDhXdVz5w+zt/NA=; Message-ID: <77926.36276.qm@web59405.mail.ac4.yahoo.com> X-YMail-OSG: Tyn4lKQVM1kxTueePZ2htNDMN01jDMRriBsB34tACU4GfIh3qQW9GlsBfU4EkWACq5jMsRxgah8oONg2Q3eVDGmo_6Gb474OFqPvTtcLGjBXGLhL8HhM49oSDVsmz5hdGMi5kWv2TfuRh4BJpc5smgWPTf9zow53J.0qDRtKNFMfrBuuiGVJNHpiz4axCyBTRH39N2j.1fdlfemJTGRsC12.oudLcmvci2oqmHN5sXMfP7DZzmxu5w-- Received: from [217.140.96.21] by web59405.mail.ac4.yahoo.com via HTTP; Tue, 02 Jun 2009 04:46:01 PDT X-Mailer: YahooMailRC/1356.40 YahooMailWebService/0.7.289.10 Date: Tue, 2 Jun 2009 04:46:01 -0700 (PDT) From: Vassilis Laganakos To: freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: ARMv7 - EABI - Cross Compiler X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2009 11:59:18 -0000 Hello, I recently started working on getting a later version of GCC as a cross-compiler for FreeBSD. The main reason is that I'm interested in having support for the "new" ARM EABI that will give the benefits of ARMv5TE onwards, to all the boards that use it (Mistral EVM, BeagleBoard, etc) I've built gcc 4.4.1 (rev 147925) and binutils (2.19.51.20090527), using the 7-STABLE headers where appropriate. I'm now trying to built libc from the same branch. I'm trying to pull out libc from the building tree, and build it with the above toolchain so that it will be available to use it with that (once done, I'll commit a port for this); at the same time I'm try to drop the GCC 4.4.1 in the build tree to be able to use it for building the world. Please let me know whether I'm going down the wrong path or not :o) Tips and advice pointers towards the right direction would be more than helpful! I don't know if someone else is working on something similar, but if the answer is "yes" I would be quite happy to be of help. If not, any kind of help would be most appreciated :o) Kind regards, Vassilis L. From owner-freebsd-arm@FreeBSD.ORG Tue Jun 2 17:17:10 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 836161065724 for ; Tue, 2 Jun 2009 17:17:10 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 5955A8FC12 for ; Tue, 2 Jun 2009 17:17:10 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n52GgLsQ059264 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Jun 2009 09:42:21 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <4A25566C.7020806@freebsd.org> Date: Tue, 02 Jun 2009 09:42:20 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.21 (X11/20090411) MIME-Version: 1.0 To: Mark Tinguely References: <200905282320.n4SNK87M043401@casselton.net> In-Reply-To: <200905282320.n4SNK87M043401@casselton.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-Misty-Metrics: ebb.errno.com; whitelist Cc: freebsd-arm@freebsd.org Subject: Re: cache corruption patch X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2009 17:17:10 -0000 Mark Tinguely wrote: > There has been several occurrences of memory corruption in ARM due to caching > issues. A couple recent examples are problems with the SATA drive and new USB > code. > > This patch tracks kernel mapped pages and detects when they are shared > with existing user mapped pages and other kernel mapped pages. This patch > has gone through some refinement in the last couple days with feed back > from testers and is getting ready for being committed before the FreeBSD 8.0 > freeze. > > This patch should allow the removal of added cache invalidation commands to > the dma. > > The patch is located at: > > http://www.casselton.net/~tinguely/arm_pmap_unmanaged.diff > > For those interested, I can give a long explanation of the patch. > Have you measured the overhead of this additional state tracking (time+space)? It appears to affect only dma buffers. Not sure what "added cache invalidation commands" you're referring to, can you explain? Perhaps you could just provide a separate patch that shows which bus_dma ops you think can go away. Sam From owner-freebsd-arm@FreeBSD.ORG Tue Jun 2 17:17:10 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF82E1065725 for ; Tue, 2 Jun 2009 17:17:10 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 9090A8FC14 for ; Tue, 2 Jun 2009 17:17:10 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n52GdaVt059241 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Jun 2009 09:39:36 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <4A2555C8.8040405@freebsd.org> Date: Tue, 02 Jun 2009 09:39:36 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.21 (X11/20090411) MIME-Version: 1.0 To: Vassilis Laganakos References: <77926.36276.qm@web59405.mail.ac4.yahoo.com> In-Reply-To: <77926.36276.qm@web59405.mail.ac4.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-Misty-Metrics: ebb.errno.com; whitelist Cc: freebsd-arm@freebsd.org Subject: Re: ARMv7 - EABI - Cross Compiler X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2009 17:17:11 -0000 Vassilis Laganakos wrote: > Hello, > > I recently started working on getting a later version of GCC as a cross-compiler for FreeBSD. > The main reason is that I'm interested in having support for the "new" ARM EABI that will give > the benefits of ARMv5TE onwards, to all the boards that use it (Mistral EVM, BeagleBoard, etc) > > I've built gcc 4.4.1 (rev 147925) and binutils (2.19.51.20090527), using the 7-STABLE headers where appropriate. > I'm now trying to built libc from the same branch. I'm trying to pull out libc from the building tree, and > build it with the above toolchain so that it will be available to use it with that (once done, I'll commit a port for this); > at the same time I'm try to drop the GCC 4.4.1 in the build tree to be able to use it for building the world. > > Please let me know whether I'm going down the wrong path or not :o) Tips and advice pointers towards > the right direction would be more than helpful! > > I don't know if someone else is working on something similar, but if the answer is "yes" I would be quite > happy to be of help. If not, any kind of help would be most appreciated :o) > > Your basic approach sounds fine. I believe you will find many small changes to base code required by the later version of gcc (depending on compile options). If you work with HEAD instead of RELENG_7 then these changes can likely be merged and will simplify your effort in the future. Ideally you should be able to install the gcc port, pull freebsd code, and then use the xdev build mechanism to cross-build w/ the toolchain. Sam From owner-freebsd-arm@FreeBSD.ORG Tue Jun 2 17:57:35 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5EEF310656B6 for ; Tue, 2 Jun 2009 17:57:35 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from mx0.deglitch.com (backbone.deglitch.com [IPv6:2001:16d8:fffb:4::abba]) by mx1.freebsd.org (Postfix) with ESMTP id 14CAE8FC18 for ; Tue, 2 Jun 2009 17:57:35 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from DSPAM-Daemon (localhost [127.0.0.1]) by mx0.deglitch.com (Postfix) with SMTP id 202538FC2D for ; Tue, 2 Jun 2009 21:57:33 +0400 (MSD) Received: from stasss.yandex.ru (dhcp170-227-red.yandex.net [95.108.170.227]) by mx0.deglitch.com (Postfix) with ESMTPSA id 58CE38FC26; Tue, 2 Jun 2009 21:57:31 +0400 (MSD) Date: Tue, 2 Jun 2009 21:57:31 +0400 From: Stanislav Sedov To: Sam Leffler Message-Id: <20090602215731.94a19635.stas@FreeBSD.org> In-Reply-To: <4A25566C.7020806@freebsd.org> References: <200905282320.n4SNK87M043401@casselton.net> <4A25566C.7020806@freebsd.org> Organization: The FreeBSD Project X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-DSPAM-Result: Innocent X-DSPAM-Processed: Tue Jun 2 21:57:32 2009 X-DSPAM-Confidence: 0.9899 X-DSPAM-Improbability: 1 in 9809 chance of being spam X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 4a25680c994291921440317 Cc: Mark Tinguely , freebsd-arm@freebsd.org Subject: Re: cache corruption patch X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2009 17:57:35 -0000 On Tue, 02 Jun 2009 09:42:20 -0700 Sam Leffler mentioned: > > Not sure what "added cache invalidation commands" you're referring to, > can you explain? Perhaps you could just provide a separate patch that > shows which bus_dma ops you think can go away. > I suppose he refers to Marcel's r192323 commit that added implicit data cache invalidation for non-DMA requests. -- Stanislav Sedov ST4096-RIPE !DSPAM:4a25680c994291921440317! From owner-freebsd-arm@FreeBSD.ORG Tue Jun 2 18:39:30 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D958D1065680; Tue, 2 Jun 2009 18:39:30 +0000 (UTC) (envelope-from tinguely@casselton.net) Received: from casselton.net (casselton.net [63.165.140.2]) by mx1.freebsd.org (Postfix) with ESMTP id 8AD5A8FC1B; Tue, 2 Jun 2009 18:39:30 +0000 (UTC) (envelope-from tinguely@casselton.net) Received: from casselton.net (localhost [127.0.0.1]) by casselton.net (8.14.3/8.14.3) with ESMTP id n52IdTHZ002808; Tue, 2 Jun 2009 13:39:29 -0500 (CDT) (envelope-from tinguely@casselton.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=casselton.net; s=ccnMail; t=1243967969; bh=7mxrFCEzPAk5y4MsFPecUFA/2GqSDo5aorOXlNh9AHs=; h=Date:From:Message-Id:To:Subject:Cc:In-Reply-To; b=eEYN8F68eWQ+LMLNOsUt59omjMpN/d+a/jd+U04c4csIFHqVq2+NsEmyiFbfzBGnD g8v4wbgHKLQEEMJq2WQN9VKmlUA1KCHNaXCUp1+hzaHNPM/S2XtG0tFF8ub+KtHENn 5jGWLdF/zpXyIsptgDI7dYW+2YV1NbTM70xWDsfo= Received: (from tinguely@localhost) by casselton.net (8.14.3/8.14.2/Submit) id n52IdSrY002806; Tue, 2 Jun 2009 13:39:28 -0500 (CDT) (envelope-from tinguely) Date: Tue, 2 Jun 2009 13:39:28 -0500 (CDT) From: Mark Tinguely Message-Id: <200906021839.n52IdSrY002806@casselton.net> To: sam@freebsd.org, tinguely@casselton.net In-Reply-To: <4A25566C.7020806@freebsd.org> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.2 (casselton.net [127.0.0.1]); Tue, 02 Jun 2009 13:39:29 -0500 (CDT) Cc: freebsd-arm@freebsd.org Subject: Re: cache corruption patch X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2009 18:39:31 -0000 > Have you measured the overhead of this additional state tracking > (time+space)? It appears to affect only dma buffers. no, I haven't tracked the overhead of tracking and turning off the cache for the multiply mapped page versus flushing the entire cache. For space, the patch costs us 4 bytes/page. I removed 16 bytes/page when I re-implemented the cache fixing routines (from pmap_vac_me_harder() from NetBSD and in -7.x to pmap_fix_cache() which is new for -8.x). The main reason to re-implement the cache fixing routines was to fix the "big O" factor on the routines. Right now we have the potential of stale caches any time a kernel mapped page is shared with a user or another kernel mapping. Things like mmap comes to mind. > Not sure what "added cache invalidation commands" you're referring to, > can you explain? Perhaps you could just provide a separate patch that > shows which bus_dma ops you think can go away. Yes, without the patch, some people placed cache flushes in the DMA sync routines. That did solve the obvious problem. Those flushes are not in the ARM code and the patch does not remove them. A few months back, when new USB stack brought the cache problems to the foreground, others mention strange intermittent memory corruption that pointed to stale caches. We could start sticking in cache flushes for each new one that pops up, but it seemed like a game of russian roulette. --Mark. From owner-freebsd-arm@FreeBSD.ORG Tue Jun 2 22:30:38 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 819331065687 for ; Tue, 2 Jun 2009 22:30:38 +0000 (UTC) (envelope-from vassilis.laganakos@yahoo.com) Received: from n6a.bullet.mail.ac4.yahoo.com (n6a.bullet.mail.ac4.yahoo.com [76.13.13.69]) by mx1.freebsd.org (Postfix) with SMTP id 35E4B8FC08 for ; Tue, 2 Jun 2009 22:30:37 +0000 (UTC) (envelope-from vassilis.laganakos@yahoo.com) Received: from [76.13.13.26] by n6.bullet.mail.ac4.yahoo.com with NNFMP; 02 Jun 2009 22:30:37 -0000 Received: from [76.13.10.183] by t3.bullet.mail.ac4.yahoo.com with NNFMP; 02 Jun 2009 22:30:37 -0000 Received: from [127.0.0.1] by omp124.mail.ac4.yahoo.com with NNFMP; 02 Jun 2009 22:30:37 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 323469.26927.bm@omp124.mail.ac4.yahoo.com Received: (qmail 88532 invoked by uid 60001); 2 Jun 2009 22:30:37 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1243981837; bh=SsZvJxT0OEk+MSRGE6Vmc/PagzcANcgCxhgNKYjxW/Y=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=IFHMNskChRBosxzZ8YEol3z8NN/6vezkuuTQcTn8EtjYxBav8KVbklL8rgpDeavS2J2PChy0XJUE7RRxmZ8c0jEqS/cjgGIG+OLQVseRSQDSypuU9iJTxGgGkiN3N+3qnNPmTx/lV940S1VhghILwq3Ygm5/Pl99FmnA6xhWqOw= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=KIfaqdsPaiCG4MThpVYAkg7g5sdrrMsdTthVE2j+KHIia9uf+yodqqM2gKJd+7IZOmyn60H7scoj3C45yF2JRe689+6+bZk6gHMFr+lkVr+9pef01OpEW1GJYqvZHtfu+rAUKtCKd05VYMv5e8VA/HY/yctfDI0Wj0rXlWZNnzM=; Message-ID: <180520.87347.qm@web59402.mail.ac4.yahoo.com> X-YMail-OSG: L.WII5EVM1n.C_r3HookSQr0kvlF.tKxi38.kIvOD3Nlj__EVDS9lRt8qU8vHaQAnSzwommWSO094JO5RKJpuu1VBTUnkzSA52y_.nh582PVsQRAaa2w.lwNvcrZWlhQE5mNKWaCNA.J_0PNsrKCWM5hFi6mCx3flA1oHAtPa2klj_gE0FfByuVYItyrVYsNTCoYwgfs65FFk5m1KrHuyu2pkJ_eZ9MMofEEok35OaY2GfUKS4bSIxB5pQppnimB9QNTG6nPM92NT4xQaeqt3Fw.cRkFZ26Q8J2t3t.tJtl.CikBFic- Received: from [217.140.96.21] by web59402.mail.ac4.yahoo.com via HTTP; Tue, 02 Jun 2009 15:30:36 PDT X-Mailer: YahooMailRC/1356.40 YahooMailWebService/0.7.289.10 Date: Tue, 2 Jun 2009 15:30:36 -0700 (PDT) From: Vassilis Laganakos To: Sam Leffler MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-arm@freebsd.org Subject: Re: ARMv7 - EABI - Cross Compiler X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2009 22:30:38 -0000 Hello Sam, ----- Original Message ---- > From: Sam Leffler > To: Vassilis Laganakos > Cc: freebsd-arm@freebsd.org > Sent: Tuesday, June 2, 2009 5:39:36 PM > Subject: Re: ARMv7 - EABI - Cross Compiler > > Vassilis Laganakos wrote: > > Hello, > > > > I recently started working on getting a later version of GCC as a > cross-compiler for FreeBSD. > > The main reason is that I'm interested in having support for the "new" ARM > EABI that will give the benefits of ARMv5TE onwards, to all the boards that use > it (Mistral EVM, BeagleBoard, etc) > > > > I've built gcc 4.4.1 (rev 147925) and binutils (2.19.51.20090527), using the > 7-STABLE headers where appropriate. I'm now trying to built libc from the same > branch. I'm trying to pull out libc from the building tree, and > > build it with the above toolchain so that it will be available to use it with > that (once done, I'll commit a port for this); at the same time I'm try to drop > the GCC 4.4.1 in the build tree to be able to use it for building the world. > > > > Please let me know whether I'm going down the wrong path or not :o) Tips and > advice pointers towards > > the right direction would be more than helpful! > > > > I don't know if someone else is working on something similar, but if the > answer is "yes" I would be quite happy to be of help. If not, any kind of help > would be most appreciated :o) > > > > > > Your basic approach sounds fine. > Thanks for confirming the sanity of the approach. It's good to know that I'm walking the right path. :o) > I believe you will find many small changes to > base code required by the later version of gcc (depending on compile options). > Ok, I'll log everything down. > If you work with HEAD instead of RELENG_7 then these changes can likely be > merged and will simplify your effort in the future. > Great. Although I want to track RELENG-7 for my box, until RELENG-8 moves to stable :o) Would I have to use the latest binutils too, or these are already there in HEAD? > Ideally you should be able > to install the gcc port, pull freebsd code, and then use the xdev build > mechanism to cross-build w/ the toolchain. > Thanks for the outline. Do you mean an existing gcc port, or the port I'm trying to pull together? Haven't used xdev before, I just build stuff by defining TARGET and TARGET_ARCH. I'll look more into this and I'll get back with more results and almost certainly more questions! :o) Many thanks, Vassilis L. From owner-freebsd-arm@FreeBSD.ORG Wed Jun 3 15:13:34 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 75D4C106564A for ; Wed, 3 Jun 2009 15:13:34 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: from zibbi.meraka.csir.co.za (zibbi.meraka.csir.co.za [IPv6:2001:4200:7000:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id BF8878FC15 for ; Wed, 3 Jun 2009 15:13:33 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: by zibbi.meraka.csir.co.za (Postfix, from userid 3973) id 4B55533C65; Wed, 3 Jun 2009 17:13:29 +0200 (SAST) Date: Wed, 3 Jun 2009 17:13:29 +0200 From: John Hay To: freebsd-arm@freebsd.org Message-ID: <20090603151329.GA90167@zibbi.meraka.csir.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: avila on 7-stable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2009 15:13:34 -0000 Hi, Is there anyone running an Avila arm board on a recent 7-stable? I have a system built on April 1, which works fine, but I cannot get today's source to work. The first hurdle I had was that devices connected to the pci bus would not attach. The messages looked like this: pci0: on pcib0 ath0: irq 28 at device 1.0 on pci0 pcib0: ath0 called activate_resource ath0: cannot map register space device_attach: ath0 attach returned 6 So I found svn rev 189630 that fixed that in ixp425.c and ixp425_pci.c. Now it does find the atheroes cards on the pci bus, but it gets stuck just after the "Trying to mount root from ufs:ad0s1a" message. Anybody got any ideas? John -- John Hay -- jhay@meraka.csir.co.za / jhay@FreeBSD.org From owner-freebsd-arm@FreeBSD.ORG Wed Jun 3 17:01:26 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27E53106566C for ; Wed, 3 Jun 2009 17:01:26 +0000 (UTC) (envelope-from dave@dogwood.com) Received: from mail-gx0-f210.google.com (mail-gx0-f210.google.com [209.85.217.210]) by mx1.freebsd.org (Postfix) with ESMTP id E40C28FC25 for ; Wed, 3 Jun 2009 17:01:25 +0000 (UTC) (envelope-from dave@dogwood.com) Received: by gxk6 with SMTP id 6so169855gxk.19 for ; Wed, 03 Jun 2009 10:01:25 -0700 (PDT) Received: by 10.90.116.15 with SMTP id o15mr958839agc.76.1244046635517; Wed, 03 Jun 2009 09:30:35 -0700 (PDT) Received: from bda352.bisx.prod.on.blackberry (bda352c.bis.na.blackberry.com [67.223.68.63]) by mx.google.com with ESMTPS id 39sm11937101agb.31.2009.06.03.09.30.31 (version=SSLv3 cipher=RC4-MD5); Wed, 03 Jun 2009 09:30:32 -0700 (PDT) X-rim-org-msg-ref-id: 1955177375 Message-ID: <1955177375-1244046627-cardhu_decombobulator_blackberry.rim.net-1017842848-@bxe1204.bisx.prod.on.blackberry> Content-Transfer-Encoding: base64 X-Priority: Normal Sensitivity: Normal Importance: Normal To: "John Hay" , owner-freebsd-arm@freebsd.org, freebsd-arm@freebsd.org From: "David Cornejo" Date: Wed, 3 Jun 2009 16:30:59 +0000 Content-Type: text/plain MIME-Version: 1.0 Cc: Subject: Re: avila on 7-stable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dave@dogwood.com List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2009 17:01:26 -0000 SSB0cmllZCB0aGlzIHJlY2VudGx5IHRvbyAtIEkgYW0gdGZ0cCBib290aW5nIGFuZCBvbmUgdGhp bmcgSSBub3RpY2VkLCBhbmQgSSdtIG5vdCBzdXJlIGlzIHJlbGV2YW50LCBpcyB0aGF0IHRoZSBi b2FyZCB0cmllZCB0byBnZXQgc29tZXRoaW5nIGZyb20gdGhlIHRmdHAgc2VydmVyIGJ1dCB3YXMg ZGVuaWVkLiBUaGlzIGhhcHBlbnMgcmlnaHQgd2hlbiBpdCBoYW5ncy4gIChUaGUgaW5pdGlhbCBr ZXJuZWwgZmV0Y2ggd29ya2VkKSANCg0KSSBoYXZlbid0IGhhZCB0aW1lIHRvIHRyb3VibGVzaG9v dCB3aGF0J3MgZ29pbmcgb24uIA0KDQpEYXZlIGMNCg0KLS0tLS0tT3JpZ2luYWwgTWVzc2FnZS0t LS0tLQ0KRnJvbTogSm9obiBIYXkNClNlbmRlcjogb3duZXItZnJlZWJzZC1hcm1AZnJlZWJzZC5v cmcNClRvOiBmcmVlYnNkLWFybUBmcmVlYnNkLm9yZw0KU3ViamVjdDogYXZpbGEgb24gNy1zdGFi bGUNClNlbnQ6IEp1biAzLCAyMDA5IDA1OjEzDQoNCkhpLA0KDQpJcyB0aGVyZSBhbnlvbmUgcnVu bmluZyBhbiBBdmlsYSBhcm0gYm9hcmQgb24gYSByZWNlbnQgNy1zdGFibGU/IEkgaGF2ZQ0KYSBz eXN0ZW0gYnVpbHQgb24gQXByaWwgMSwgd2hpY2ggd29ya3MgZmluZSwgYnV0IEkgY2Fubm90IGdl dCB0b2RheSdzDQpzb3VyY2UgdG8gd29yay4gVGhlIGZpcnN0IGh1cmRsZSBJIGhhZCB3YXMgdGhh dCBkZXZpY2VzIGNvbm5lY3RlZCB0bw0KdGhlIHBjaSBidXMgd291bGQgbm90IGF0dGFjaC4gVGhl IG1lc3NhZ2VzIGxvb2tlZCBsaWtlIHRoaXM6DQoNCnBjaTA6IDxQQ0kgYnVzPiBvbiBwY2liMA0K YXRoMDogPEF0aGVyb3MgNTIxMj4gaXJxIDI4IGF0IGRldmljZSAxLjAgb24gcGNpMA0KcGNpYjA6 IGF0aDAgY2FsbGVkIGFjdGl2YXRlX3Jlc291cmNlDQphdGgwOiBjYW5ub3QgbWFwIHJlZ2lzdGVy IHNwYWNlDQpkZXZpY2VfYXR0YWNoOiBhdGgwIGF0dGFjaCByZXR1cm5lZCA2DQoNClNvIEkgZm91 bmQgc3ZuIHJldiAxODk2MzAgdGhhdCBmaXhlZCB0aGF0IGluIGl4cDQyNS5jIGFuZCBpeHA0MjVf cGNpLmMuDQpOb3cgaXQgZG9lcyBmaW5kIHRoZSBhdGhlcm9lcyBjYXJkcyBvbiB0aGUgcGNpIGJ1 cywgYnV0IGl0IGdldHMgc3R1Y2sNCmp1c3QgYWZ0ZXIgdGhlICJUcnlpbmcgdG8gbW91bnQgcm9v dCBmcm9tIHVmczphZDBzMWEiIG1lc3NhZ2UuIEFueWJvZHkNCmdvdCBhbnkgaWRlYXM/DQoNCkpv aG4NCi0tIA0KSm9obiBIYXkgLS0gamhheUBtZXJha2EuY3Npci5jby56YSAvIGpoYXlARnJlZUJT RC5vcmcNCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQpm cmVlYnNkLWFybUBmcmVlYnNkLm9yZyBtYWlsaW5nIGxpc3QNCmh0dHA6Ly9saXN0cy5mcmVlYnNk Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL2ZyZWVic2QtYXJtDQpUbyB1bnN1YnNjcmliZSwgc2VuZCBh bnkgbWFpbCB0byAiZnJlZWJzZC1hcm0tdW5zdWJzY3JpYmVAZnJlZWJzZC5vcmciDQoNCg0KU2Vu dCB2aWEgQmxhY2tCZXJyeSBmcm9tIFQtTW9iaWxl From owner-freebsd-arm@FreeBSD.ORG Wed Jun 3 21:48:03 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EDD8D106566C for ; Wed, 3 Jun 2009 21:48:03 +0000 (UTC) (envelope-from beattie@beattie-home.net) Received: from mail.beattie-home.net (74-95-38-249-Oregon.hfc.comcastbusiness.net [74.95.38.249]) by mx1.freebsd.org (Postfix) with ESMTP id CBD248FC0A for ; Wed, 3 Jun 2009 21:48:03 +0000 (UTC) (envelope-from beattie@beattie-home.net) Received: from [172.16.0.123] (unknown [172.16.0.123]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.beattie-home.net (Postfix) with ESMTP id B7B26E34426 for ; Wed, 3 Jun 2009 14:33:30 -0700 (PDT) From: Brian Beattie To: freebsd-arm@freebsd.org Content-Type: text/plain; charset="UTF-8" Date: Wed, 03 Jun 2009 14:25:20 -0700 Message-Id: <1244064320.9543.44.camel@kokopelli> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 8bit Subject: KB9202B X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2009 21:48:04 -0000 I'm trying to figure out FreeBSD on arm and I'm trying to get it running on a KwikByte 9202. I've got a kernel that loads ovet tftp and runs, but I can't mount a root filesystem. I built a 2GB SD with on slice using the method found here I also tried mounting root via NFS (enabling NFSROOT in the kernel) trying both entering the path name on to the mountroot prompt and setting the root dev in the kernel config. Any advice is welcome. maybe a pointer to using an md root? Console log below the sig. -- "In years past, I knew of someone who used emacs as his login shell, the only thing he found wanting in emacs was a good text editor. So he ended up using vi." - Anonymous Brian Beattie http://www.beattie-home.net ---------------- console log ------------------------------------ ## Starting application at 0x200000E0 ... KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.1-RELEASE #2: Tue Jun 2 20:48:22 PDT 2009 root@anansi.beattie-home.net:/usr/obj/arm/usr/src/sys/KB920X-NFS CPU: ARM920T rev 0 (ARM9TDMI core) DC enabled IC enabled WB enabled LABT 16KB/32B 64-way Instruction cache 16KB/32B 64-way write-back-locking-A Data cache real memory = 67108864 (64 MB) avail memory = 61853696 (58 MB) atmelarm0: on motherboard at91_st0: mem 0xdffffd00-0xdffffdff irq 1 on atmelarm0 at91_st0: watchdog registered, timeout intervall max. 64 sec at91_pio0: mem 0xdffff400-0xdffff5ff irq 1 on atmelarm0 at91_pio0: ABSR: 0x60 OSR: 0 PSR:0x3f380000 ODSR: 0 at91_pio0: [FILTER] at91_pio1: mem 0xdffff600-0xdffff7ff irq 1 on atmelarm0 at91_pio1: ABSR: 0xff301 OSR: 0x2 PSR:0x3fc00cfe ODSR: 0 at91_pio1: [FILTER] at91_pio2: mem 0xdffff800-0xdffff9ff irq 1 on atmelarm0 at91_pio2: ABSR: 0 OSR: 0x1000000a PSR:0xffffc075 ODSR: 0x10000000 at91_pio2: [FILTER] at91_pio3: mem 0xdffffa00-0xdffffbff irq 1 on atmelarm0 at91_pio3: ABSR: 0 OSR: 0 PSR:0xfffffff ODSR: 0 at91_pio3: [FILTER] at91_pmc0: mem 0xdffffc00-0xdffffcff irq 1 on atmelarm0 at91_pmc0: Primary: 10000000 Hz PLLA: 180 MHz CPU: 180 MHz MCK: 60 MHz at91_mci0: mem 0xdffb4000-0xdffb7fff irq 10 on atmelarm0 at91_mci0: [ITHREAD] mmc0: on at91_mci0 at91_twi0: mem 0xdffb8000-0xdffbbfff irq 12 on atmelarm0 at91_twi0: [ITHREAD] iicbus0: on at91_twi0 setting cwgr to 0x1a4a4 iicbus0: at addr 0 iic0: on iicbus0 icee0: at addr 0xa0 on iicbus0 ate0: mem 0xdffbc000-0xdffbffff irq 24 on atmelarm0 ate0: No MAC address set device_attach: ate0 attach returned 6 uart0: mem 0xdffff200-0xdffff3ff irq 1 on atmelarm0 uart0: [FILTER]�]X.���ͽ���(115200,n,8,1) uart1: mem 0xdffc0000-0xdffc3fff irq 6 on atmelarm0 uart1: [FILTER] uart2: mem 0xdffc4000-0xdffc7fff irq 7 on atmelarm0 uart2: [FILTER] uart3: mem 0xdffc8000-0xdffcbfff irq 8 on atmelarm0 uart3: [FILTER] uart4: mem 0xdffcc000-0xdffcffff irq 9 on atmelarm0 uart4: [FILTER] at91_spi0: mem 0xdffe0000-0xdffe3fff irq 13 on atmelarm0 at91_spi0: [ITHREAD] spibus0: on at91_spi0 ohci0: mem 0xdfe00000-0xdfefffff irq 23 on atmelarm0 ohci0: [GIANT-LOCKED] ohci0: [ITHREAD] usb0: OHCI version 1.0 usb0 on ohci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uhub0: device problem (IOERROR), disabling port 2 Cannot get 100 Hz clock; using 100Hz at91_st0: [FILTER] Timecounter "AT91RM9200 timer" frequency 32768 Hz quality 1000 Timecounters tick every 10.000 msec mmc0: setting transfer rate to 30.000MHz Trying to mount root from 172.16.0.7:/usr/kb9202 Manual root filesystem specification: : Mount using filesystem eg. ufs:/dev/da0a ? List valid disk boot devices Abort manual input mountroot> From owner-freebsd-arm@FreeBSD.ORG Wed Jun 3 22:38:17 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 203FF106566C for ; Wed, 3 Jun 2009 22:38:17 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail3.sea5.speakeasy.net (mail3.sea5.speakeasy.net [69.17.117.5]) by mx1.freebsd.org (Postfix) with ESMTP id F15828FC13 for ; Wed, 3 Jun 2009 22:38:16 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 24862 invoked from network); 3 Jun 2009 22:38:16 -0000 Received: from april.chuckr.org (HELO april.telenix.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail3.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 3 Jun 2009 22:38:12 -0000 Message-ID: <4A26FB34.7000209@telenix.org> Date: Wed, 03 Jun 2009 18:37:40 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.19 (X11/20090121) MIME-Version: 1.0 To: Sam Leffler References: <77926.36276.qm@web59405.mail.ac4.yahoo.com> <4A2555C8.8040405@freebsd.org> In-Reply-To: <4A2555C8.8040405@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: ARMv7 - EABI - Cross Compiler X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2009 22:38:17 -0000 Sam Leffler wrote: > Vassilis Laganakos wrote: >> Hello, >> >> I recently started working on getting a later version of GCC as a >> cross-compiler for FreeBSD. >> The main reason is that I'm interested in having support for the "new" >> ARM EABI that will give the benefits of ARMv5TE onwards, to all the >> boards that use it (Mistral EVM, BeagleBoard, etc) >> >> I've built gcc 4.4.1 (rev 147925) and binutils (2.19.51.20090527), >> using the 7-STABLE headers where appropriate. I'm now trying to built >> libc from the same branch. I'm trying to pull out libc from the >> building tree, and >> build it with the above toolchain so that it will be available to use >> it with that (once done, I'll commit a port for this); at the same >> time I'm try to drop the GCC 4.4.1 in the build tree to be able to use >> it for building the world. >> >> Please let me know whether I'm going down the wrong path or not :o) >> Tips and advice pointers towards >> the right direction would be more than helpful! >> >> I don't know if someone else is working on something similar, but if >> the answer is "yes" I would be quite happy to be of help. If not, any >> kind of help would be most appreciated :o) >> >> > > Your basic approach sounds fine. I believe you will find many small > changes to base code required by the later version of gcc (depending on > compile options). If you work with HEAD instead of RELENG_7 then these > changes can likely be merged and will simplify your effort in the > future. Ideally you should be able to install the gcc port, pull > freebsd code, and then use the xdev build mechanism to cross-build w/ > the toolchain. Doesn't xdev build the 4.2.1 version of gcc, like what's in the tree now? That's unacceptable to me, gcc didn't bring in support for the Cortex-A8 processor until 4.3.0. I was able to build a cross-gcc easily using a target of "arm-linux-gnueabi", but I'm not sure if that sort of gcc will do for building FreeBSD. I'll worry about getting that gcc into the build, but will it work for me on a binary basis? From owner-freebsd-arm@FreeBSD.ORG Wed Jun 3 23:11:02 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9EA78106564A for ; Wed, 3 Jun 2009 23:11:02 +0000 (UTC) (envelope-from antab@valka.is) Received: from smtp-vbr19.xs4all.nl (smtp-vbr19.xs4all.nl [194.109.24.39]) by mx1.freebsd.org (Postfix) with ESMTP id 3C87E8FC14 for ; Wed, 3 Jun 2009 23:11:02 +0000 (UTC) (envelope-from antab@valka.is) Received: from dumb.farm.antab.is (farm.antab.is [80.101.60.195]) by smtp-vbr19.xs4all.nl (8.13.8/8.13.8) with ESMTP id n53N0aON023218; Thu, 4 Jun 2009 01:00:41 +0200 (CEST) (envelope-from antab@valka.is) Message-Id: <2624C7F8-3639-405F-8E8C-A784FA4C1E0C@valka.is> From: Arnar Mar Sig To: Brian Beattie In-Reply-To: <1244064320.9543.44.camel@kokopelli> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Date: Thu, 4 Jun 2009 01:00:37 +0200 References: <1244064320.9543.44.camel@kokopelli> X-Mailer: Apple Mail (2.935.3) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-arm@freebsd.org Subject: Re: KB9202B X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2009 23:11:02 -0000 On Jun 3, 2009, at 11:25 PM, Brian Beattie wrote: > I'm trying to figure out FreeBSD on arm and I'm trying to get it > running > on a KwikByte 9202. I've got a kernel that loads ovet tftp and runs, > but I can't mount a root filesystem. I built a 2GB SD with on slice > using the method found here I > also tried mounting root via NFS (enabling NFSROOT in the kernel) > trying > both entering the path name on to the mountroot prompt and setting the > root dev in the kernel config. Dont know about mmc/sd, but > > Any advice is welcome. maybe a pointer to using an md root? > > Console log below the sig. > > ate0: mem 0xdffbc000-0xdffbffff irq 24 on atmelarm0 > ate0: No MAC address set > device_attach: ate0 attach returned 6 looks like you have no working network device. Arnar Mar Sig From owner-freebsd-arm@FreeBSD.ORG Wed Jun 3 23:59:39 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89731106564A for ; Wed, 3 Jun 2009 23:59:39 +0000 (UTC) (envelope-from beattie@beattie-home.net) Received: from mail.beattie-home.net (74-95-38-249-Oregon.hfc.comcastbusiness.net [74.95.38.249]) by mx1.freebsd.org (Postfix) with ESMTP id 6CC688FC13 for ; Wed, 3 Jun 2009 23:59:39 +0000 (UTC) (envelope-from beattie@beattie-home.net) Received: from [172.16.0.123] (unknown [172.16.0.123]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.beattie-home.net (Postfix) with ESMTP id 4EBFAE340FE; Wed, 3 Jun 2009 17:07:40 -0700 (PDT) From: Brian Beattie To: Arnar Mar Sig In-Reply-To: <2624C7F8-3639-405F-8E8C-A784FA4C1E0C@valka.is> References: <1244064320.9543.44.camel@kokopelli> <2624C7F8-3639-405F-8E8C-A784FA4C1E0C@valka.is> Content-Type: text/plain Date: Wed, 03 Jun 2009 16:59:29 -0700 Message-Id: <1244073569.9543.46.camel@kokopelli> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: KB9202B X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2009 23:59:39 -0000 On Thu, 2009-06-04 at 01:00 +0200, Arnar Mar Sig wrote: > On Jun 3, 2009, at 11:25 PM, Brian Beattie wrote: > > I'm trying to figure out FreeBSD on arm and I'm trying to get it > > running > > on a KwikByte 9202. I've got a kernel that loads ovet tftp and runs, > > > > Any advice is welcome. maybe a pointer to using an md root? > > > > Console log below the sig. > > > > > ate0: mem 0xdffbc000-0xdffbffff irq 24 on atmelarm0 > > ate0: No MAC address set > > device_attach: ate0 attach returned 6 > looks like you have no working network device. Hmmm silly me I assumed that because I just downloaded the kernel, that I had a working ethernet... Thanks, I'll look into that. -- "In years past, I knew of someone who used emacs as his login shell, the only thing he found wanting in emacs was a good text editor. So he ended up using vi." - Anonymous Brian Beattie http://www.beattie-home.net From owner-freebsd-arm@FreeBSD.ORG Thu Jun 4 01:36:22 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5C9E1065674 for ; Thu, 4 Jun 2009 01:36:22 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 6B46F8FC13 for ; Thu, 4 Jun 2009 01:36:22 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n541aBYp072225 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 3 Jun 2009 18:36:12 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <4A27250B.2000100@freebsd.org> Date: Wed, 03 Jun 2009 18:36:11 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.21 (X11/20090411) MIME-Version: 1.0 To: Chuck Robey References: <77926.36276.qm@web59405.mail.ac4.yahoo.com> <4A2555C8.8040405@freebsd.org> <4A26FB34.7000209@telenix.org> In-Reply-To: <4A26FB34.7000209@telenix.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC--Metrics: ebb.errno.com; whitelist Cc: freebsd-arm@freebsd.org Subject: Re: ARMv7 - EABI - Cross Compiler X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jun 2009 01:36:23 -0000 Chuck Robey wrote: > Sam Leffler wrote: > >> Vassilis Laganakos wrote: >> >>> Hello, >>> >>> I recently started working on getting a later version of GCC as a >>> cross-compiler for FreeBSD. >>> The main reason is that I'm interested in having support for the "new" >>> ARM EABI that will give the benefits of ARMv5TE onwards, to all the >>> boards that use it (Mistral EVM, BeagleBoard, etc) >>> >>> I've built gcc 4.4.1 (rev 147925) and binutils (2.19.51.20090527), >>> using the 7-STABLE headers where appropriate. I'm now trying to built >>> libc from the same branch. I'm trying to pull out libc from the >>> building tree, and >>> build it with the above toolchain so that it will be available to use >>> it with that (once done, I'll commit a port for this); at the same >>> time I'm try to drop the GCC 4.4.1 in the build tree to be able to use >>> it for building the world. >>> >>> Please let me know whether I'm going down the wrong path or not :o) >>> Tips and advice pointers towards >>> the right direction would be more than helpful! >>> >>> I don't know if someone else is working on something similar, but if >>> the answer is "yes" I would be quite happy to be of help. If not, any >>> kind of help would be most appreciated :o) >>> >>> >>> >> Your basic approach sounds fine. I believe you will find many small >> changes to base code required by the later version of gcc (depending on >> compile options). If you work with HEAD instead of RELENG_7 then these >> changes can likely be merged and will simplify your effort in the >> future. Ideally you should be able to install the gcc port, pull >> freebsd code, and then use the xdev build mechanism to cross-build w/ >> the toolchain. >> > > Doesn't xdev build the 4.2.1 version of gcc, like what's in the tree now? > That's unacceptable to me, gcc didn't bring in support for the Cortex-A8 > processor until 4.3.0. I was able to build a cross-gcc easily using a target of > "arm-linux-gnueabi", but I'm not sure if that sort of gcc will do for building > FreeBSD. I'll worry about getting that gcc into the build, but will it work for > me on a binary basis? > Yes, I was thinking Warner had committed some other stuff he and I had talked about. I haven't touched the buildtools in a while so not sure what's required specifically for freebsd (like printf extensions). Sam From owner-freebsd-arm@FreeBSD.ORG Thu Jun 4 01:52:26 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED705106564A for ; Thu, 4 Jun 2009 01:52:26 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id AE4ED8FC13 for ; Thu, 4 Jun 2009 01:52:26 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id n541ok3A040721; Wed, 3 Jun 2009 19:50:46 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 03 Jun 2009 19:50:59 -0600 (MDT) Message-Id: <20090603.195059.1239873755.imp@bsdimp.com> To: antab@valka.is From: "M. Warner Losh" In-Reply-To: <2624C7F8-3639-405F-8E8C-A784FA4C1E0C@valka.is> References: <1244064320.9543.44.camel@kokopelli> <2624C7F8-3639-405F-8E8C-A784FA4C1E0C@valka.is> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: KB9202B X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jun 2009 01:52:27 -0000 In message: <2624C7F8-3639-405F-8E8C-A784FA4C1E0C@valka.is> Arnar Mar Sig writes: : On Jun 3, 2009, at 11:25 PM, Brian Beattie wrote: : > I'm trying to figure out FreeBSD on arm and I'm trying to get it : > running : > on a KwikByte 9202. I've got a kernel that loads ovet tftp and runs, : > but I can't mount a root filesystem. I built a 2GB SD with on slice : > using the method found here I : > also tried mounting root via NFS (enabling NFSROOT in the kernel) : > trying : > both entering the path name on to the mountroot prompt and setting the : > root dev in the kernel config. : Dont know about mmc/sd, but : : > : > Any advice is welcome. maybe a pointer to using an md root? : > : > Console log below the sig. : > : : > ate0: mem 0xdffbc000-0xdffbffff irq 24 on atmelarm0 : > ate0: No MAC address set : > device_attach: ate0 attach returned 6 : looks like you have no working network device. Looks like no MAC address is programmed into the MAC by the boot loader... Warner From owner-freebsd-arm@FreeBSD.ORG Thu Jun 4 07:21:51 2009 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24E37106564A for ; Thu, 4 Jun 2009 07:21:51 +0000 (UTC) (envelope-from jroberson@jroberson.net) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.225]) by mx1.freebsd.org (Postfix) with ESMTP id 05C748FC1C for ; Thu, 4 Jun 2009 07:21:50 +0000 (UTC) (envelope-from jroberson@jroberson.net) Received: by rv-out-0506.google.com with SMTP id k40so217234rvb.51 for ; Thu, 04 Jun 2009 00:21:50 -0700 (PDT) Received: by 10.141.2.18 with SMTP id e18mr1552272rvi.140.1244098249900; Wed, 03 Jun 2009 23:50:49 -0700 (PDT) Received: from ?10.0.1.198? (udp016664uds.hawaiiantel.net [72.235.41.117]) by mx.google.com with ESMTPS id f42sm26703490rvb.31.2009.06.03.23.50.47 (version=SSLv3 cipher=RC4-MD5); Wed, 03 Jun 2009 23:50:49 -0700 (PDT) Date: Wed, 3 Jun 2009 20:56:11 -1000 (HST) From: Jeff Roberson X-X-Sender: jroberson@desktop To: arm@freebsd.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Subject: Dynamic pcpu, arm, mips, powerpc, sun, etc. help needed (fwd) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jun 2009 07:21:51 -0000 Hi Folks, I'm forwarding this in case you don't see it. Please help test. Thanks, Jeff ---------- Forwarded message ---------- Date: Wed, 3 Jun 2009 20:55:39 -1000 (HST) From: Jeff Roberson To: arch@freebsd.org Subject: Dynamic pcpu, arm, mips, powerpc, sun, etc. help needed http://people.freebsd.org/~jeff/dpcpu.diff This patch implements dynamic per-cpu areas such that kernel code can do the following in a header: DPCPU_DECLARE(uint64_t, foo); and this in source: DPCPU_DEFINE(uint64_t, foo) = 10; local = DPCPU_GET(foo); DPCPU_SET(foo, 11); The dynamic per-cpu area of non-local cpus is accessable via DPCPU_ID_{GET,SET,PTR}. If you provide an initializer as I used above that will be the default value when all cpus come up. Otherwise it defaults to zero. This is presently slightly more expensive than PCPU but much more flexible. Things like id and curthread should stay in PCPU forever. I had to change the pcpu_init() call on every architecture to pass in storage for the dynamic area. I didn't change the following three calls because it wasn't immediately obvious how to allocate the memory: ./powerpc/booke/machdep.c: pcpu_init(pc, 0, sizeof(struct pcpu)); ./mips/mips/machdep.c: pcpu_init(&__pcpu[0], 0, sizeof(struct pcpu)); ./mips/mips/machdep.c: pcpu_init(pcpup, 0, sizeof(struct pcpu)); I have not tested anything other than amd64. If you have a !amd64 architecture, in particular any of the embedded architectures, I would really appreciate it. Some of the arm boards postincrement the end address to allocate early memory and some pre-decriment. Hopefully I got it right. Thanks, Jeff From owner-freebsd-arm@FreeBSD.ORG Thu Jun 4 13:12:29 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E28B106564A for ; Thu, 4 Jun 2009 13:12:29 +0000 (UTC) (envelope-from gballet@gmail.com) Received: from mail-bw0-f226.google.com (mail-bw0-f226.google.com [209.85.218.226]) by mx1.freebsd.org (Postfix) with ESMTP id D0B948FC1B for ; Thu, 4 Jun 2009 13:12:28 +0000 (UTC) (envelope-from gballet@gmail.com) Received: by bwz26 with SMTP id 26so68776bwz.43 for ; Thu, 04 Jun 2009 06:12:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=DndAKhuthDwkOu78IEPZlIWZTxup6yr8e68gMaM0RaA=; b=TyS0BV31BBM4nBBQPbhVMgge90hGmV9Zf8RX7WgGiVIl/tqPYARfoQh2zx5MU08PTT DtifeygwJTUHaZa4CuhgFmImJgmRYyMRTfMMUaf6koTQLIT4E9hIquAH5jToIDikOSkq Wmo7QB/AyPRtUMoqcdybrjBKn6ACkRLSHUtDI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=q+CnWmbTHz8iGF8ACNWmZo89qnpcglKzyHWuWXmpLptg7qmyzkEgc5ChwXkcam7Bet ALLpkZGBDbPQaCLr7iCiWkBdTkQyyllNKBzyj+9kR4k21aFtjcV6bphzTf321KNLqOy9 SOWmIVUJ8nStXa/OKcHAhPyiOAKY/ZW+PTgXg= MIME-Version: 1.0 Received: by 10.204.119.70 with SMTP id y6mr2037042bkq.72.1244121147745; Thu, 04 Jun 2009 06:12:27 -0700 (PDT) Date: Thu, 4 Jun 2009 15:12:27 +0200 Message-ID: From: Guillaume Ballet To: freebsd-arm@freebsd.org, chuckr@telenix.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: ARMv7 - EABI - Cross Compiler X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jun 2009 13:12:29 -0000 > Doesn't xdev build the 4.2.1 version of gcc, like what's in the tree now? > That's unacceptable to me, gcc didn't bring in support for the Cortex-A8 > processor until 4.3.0. =A0I was able to build a cross-gcc easily using a = target of > "arm-linux-gnueabi", but I'm not sure if that sort of gcc will do for bui= lding > FreeBSD. =A0I'll worry about getting that gcc into the build, but will it= work for > me on a binary basis? > I used arm-none-eabi to compile my loader for the BeagleBoard so as to get rid of the linux-specific stuff by default. But maybe you should define something like arm-freebsd-eabi in gcc's build configuration? From owner-freebsd-arm@FreeBSD.ORG Thu Jun 4 14:00:59 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A6DDD10656C1 for ; Thu, 4 Jun 2009 14:00:59 +0000 (UTC) (envelope-from vassilis.laganakos@yahoo.com) Received: from n20.bullet.mail.mud.yahoo.com (n20.bullet.mail.mud.yahoo.com [68.142.206.147]) by mx1.freebsd.org (Postfix) with SMTP id 5D73C8FC2F for ; Thu, 4 Jun 2009 14:00:59 +0000 (UTC) (envelope-from vassilis.laganakos@yahoo.com) Received: from [68.142.200.226] by n20.bullet.mail.mud.yahoo.com with NNFMP; 04 Jun 2009 13:47:51 -0000 Received: from [76.13.13.25] by t7.bullet.mud.yahoo.com with NNFMP; 04 Jun 2009 13:47:51 -0000 Received: from [76.13.10.168] by t4.bullet.mail.ac4.yahoo.com with NNFMP; 04 Jun 2009 13:47:51 -0000 Received: from [127.0.0.1] by omp109.mail.ac4.yahoo.com with NNFMP; 04 Jun 2009 13:47:51 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 468393.97927.bm@omp109.mail.ac4.yahoo.com Received: (qmail 90798 invoked by uid 60001); 4 Jun 2009 13:47:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1244123271; bh=0W1N2VVQDmfV3m1jGfPoKTkV49cSN4oOR7IClmBYc98=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=l68DqWeZ1YPYox2wMtFW29N3UtEsDcxWbTeB9kl6uWqPQevUTJzaVLwbcH3Zj3z4SJH1d3EyUAFMatT/aO2GUzRno7O0kkmXkPTTmzrUzHa6Ghzwj8hAeiELGoJ0wylAujxkHxynVUXICteRTwGb/1bIrNJLQpEnDuhdFcz1jVM= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=P7M5WfrrUZKP2sPw5TQ+0kFtgr6WOCnGXbVxvW0kJra1gyzBtxHFeAMJAGBIjUCYdGfXA/kWDu2+xWPJfrz/FmqDNm0w16qEvj8PiqxzLEsVpnI7Lw38bE54iq3sU6qyqLDhSpG8Hg1/uJDzBx0nlOhkJlW+wm86JqYKRoQ+06o=; Message-ID: <360403.90502.qm@web59402.mail.ac4.yahoo.com> X-YMail-OSG: oM1rUNgVM1kG0joVPCUYbJo.Hnn2RV3ANFAY8bREOt.ACxGPS4DwcSWslLdcX2TYv.9vUabo2GPP3boMyh5uty8sHRMay9yYOrFdkG.EUmPoDCcJ4Ys9MpoSO.kf2NrCb_QKVuFlqCBbU1Z581e54Gc0Ee_.lMGUJSVd7rz8Jc3.UgmV6u914Hhrs5unh2TgkCcu8y2vGXlWs5JH_S1.JLiAc1jGCVtYKqkPioTzNfm7uD8nNucko50rfvsmIMQDFn1ap5R5OHJL0ZLQoA-- Received: from [217.140.96.21] by web59402.mail.ac4.yahoo.com via HTTP; Thu, 04 Jun 2009 06:47:51 PDT X-Mailer: YahooMailRC/1357.15 YahooMailWebService/0.7.289.10 References: Date: Thu, 4 Jun 2009 06:47:51 -0700 (PDT) From: Vassilis Laganakos To: Guillaume Ballet In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-arm@freebsd.org, chuckr@telenix.org Subject: Re: ARMv7 - EABI - Cross Compiler X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jun 2009 14:01:00 -0000 > > Doesn't xdev build the 4.2.1 version of gcc, like what's in the tree now? > > That's unacceptable to me, gcc didn't bring in support for the Cortex-A8 > > processor until 4.3.0. I was able to build a cross-gcc easily using a target > of > > "arm-linux-gnueabi", but I'm not sure if that sort of gcc will do for building > > FreeBSD. I'll worry about getting that gcc into the build, but will it work > for > > me on a binary basis? > > > > I used arm-none-eabi to compile my loader for the BeagleBoard so as to > get rid of the linux-specific stuff by default. But maybe you should > define something like arm-freebsd-eabi in gcc's build configuration? > The arm-none-eabi will give you stuff for bare-metal applications, and the arm-linux-eabi (or arm-linux-gnueabi) will give you stuff for linux. For FreeBSD now, from what I've read there is no arm-freebsd-eabi; I tried that when I built GCC 4.4.1 and it wouldn't accept it. What I've build is arm-unknown-freebsd, although the "unknown" part could be ommited. Please bear with me while I look for the URL I found the naming conventions... Thanks, Vasi From owner-freebsd-arm@FreeBSD.ORG Thu Jun 4 15:24:02 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C8FD106566C for ; Thu, 4 Jun 2009 15:24:02 +0000 (UTC) (envelope-from gballet@gmail.com) Received: from mail-bw0-f226.google.com (mail-bw0-f226.google.com [209.85.218.226]) by mx1.freebsd.org (Postfix) with ESMTP id 039898FC57 for ; Thu, 4 Jun 2009 15:24:01 +0000 (UTC) (envelope-from gballet@gmail.com) Received: by bwz26 with SMTP id 26so172943bwz.43 for ; Thu, 04 Jun 2009 08:24:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ioBshs7JeJZW7CXkXDq41736goFvIXcTS4/INQ8mbNM=; b=mjAYbr23R7sSoImkfLHmnuxFPU32iXEUiP/+mp5anq67yJlq9c9wY+pfUQyGSMZidB 4HSDmBYPPc4+tNmz37nCgTaK0iCWxed0X2ffeGJ6A3OlYisQfgZcIrzvhQiVy8pOkksc GMNUMlh4Y7vOJxidIr6gofsEGnG2Dh0HPRz+M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=i1tfBmAwdUx62Oqc0iCVM3MVTgrpiXart+Z9Yari9aMxulgXDicGIBRFdV3isbwMNc Bs7V4HytV6yPMdJUUZhTJR+js1iDZbo7OfOrL0ZcA0GyxsykKf2MisS76zsBcZatcNJ7 KVH3b4p+ol5vM52Tw1rXrmmw8fB5X0HR0vWDM= MIME-Version: 1.0 Received: by 10.204.113.75 with SMTP id z11mr473376bkp.12.1244129041021; Thu, 04 Jun 2009 08:24:01 -0700 (PDT) In-Reply-To: <360403.90502.qm@web59402.mail.ac4.yahoo.com> References: <360403.90502.qm@web59402.mail.ac4.yahoo.com> Date: Thu, 4 Jun 2009 17:24:00 +0200 Message-ID: From: Guillaume Ballet To: Vassilis Laganakos Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-arm@freebsd.org, chuckr@telenix.org Subject: Re: ARMv7 - EABI - Cross Compiler X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jun 2009 15:24:02 -0000 > The arm-none-eabi will give you stuff for bare-metal applications, and th= e > arm-linux-eabi (or arm-linux-gnueabi) =A0will give you stuff for linux. F= or FreeBSD now, > from what I've read there is no arm-freebsd-eabi; I tried that when I bui= lt GCC 4.4.1 > and it wouldn't accept it. Yeah, you would have to explicitely create it by tweaking the platform definition files. > What I've build is arm-unknown-freebsd, although the "unknown" part could > be ommited. Please bear with me while I look for the URL I found the nami= ng > conventions... That could actually be what we are looking for. Do you know if this definition uses eabi? From owner-freebsd-arm@FreeBSD.ORG Thu Jun 4 16:22:55 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D24651065673 for ; Thu, 4 Jun 2009 16:22:55 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail4.sea5.speakeasy.net (mail4.sea5.speakeasy.net [69.17.117.6]) by mx1.freebsd.org (Postfix) with ESMTP id AD7248FC0A for ; Thu, 4 Jun 2009 16:22:55 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 4339 invoked from network); 4 Jun 2009 16:22:55 -0000 Received: from april.chuckr.org (HELO april.telenix.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail4.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 4 Jun 2009 16:22:52 -0000 Message-ID: <4A27F4C9.5070100@telenix.org> Date: Thu, 04 Jun 2009 12:22:33 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.19 (X11/20090121) MIME-Version: 1.0 To: Vassilis Laganakos References: <360403.90502.qm@web59402.mail.ac4.yahoo.com> In-Reply-To: <360403.90502.qm@web59402.mail.ac4.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Guillaume Ballet , freebsd-arm@freebsd.org Subject: Re: ARMv7 - EABI - Cross Compiler X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jun 2009 16:22:56 -0000 Vassilis Laganakos wrote: > > >>> Doesn't xdev build the 4.2.1 version of gcc, like what's in the tree now? > >>> That's unacceptable to me, gcc didn't bring in support for the Cortex-A8 >>> processor until 4.3.0. I was able to build a cross-gcc easily using a target >> of >>> "arm-linux-gnueabi", but I'm not sure if that sort of gcc will do for building >>> FreeBSD. I'll worry about getting that gcc into the build, but will it work >> for >>> me on a binary basis? >>> >> I used arm-none-eabi to compile my loader for the BeagleBoard so as to >> get rid of the linux-specific stuff by default. But maybe you should >> define something like arm-freebsd-eabi in gcc's build configuration? >> Thanks SO much, giving me the info on the targets was the item I most badly needed, but you're the only fella who addressed that directly. Basically, you got rid of my single remaining problem (at the pre-build level, at least), it's something that no amount of Googling would show me. I'm so damned pleased! From all the hints I got, there appears to be vanishingly little chance of our tree going to gcc-4.3.+, because everyone wants to use LLVM. I don't stand against that, but I don't want to wait, either, and (as of today) llvm doesn't support the Cortex-A8 (it will soon). Actually, I'm rereading my Dragon book, so I can understand the llvm better. It does look to be better organized than gcc, from first glance. I can't find the code (outside ports) to build llvm, do you have any idea where it is? If it's in a p4 archive, you have a URL for it? > The arm-none-eabi will give you stuff for bare-metal applications, and the > arm-linux-eabi (or arm-linux-gnueabi) will give you stuff for linux. For FreeBSD now, > from what I've read there is no arm-freebsd-eabi; I tried that when I built GCC 4.4.1 > and it wouldn't accept it. > > What I've build is arm-unknown-freebsd, although the "unknown" part could > be ommited. Please bear with me while I look for the URL I found the naming > conventions... > > Thanks, > Vasi > > > > > From owner-freebsd-arm@FreeBSD.ORG Thu Jun 4 16:25:20 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4220A106566C for ; Thu, 4 Jun 2009 16:25:20 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail5.sea5.speakeasy.net (mail5.sea5.speakeasy.net [69.17.117.7]) by mx1.freebsd.org (Postfix) with ESMTP id 1DB628FC1D for ; Thu, 4 Jun 2009 16:25:20 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 13488 invoked from network); 4 Jun 2009 16:25:19 -0000 Received: from april.chuckr.org (HELO april.telenix.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail5.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 4 Jun 2009 16:25:17 -0000 Message-ID: <4A27F55D.40101@telenix.org> Date: Thu, 04 Jun 2009 12:25:01 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.19 (X11/20090121) MIME-Version: 1.0 To: Vassilis Laganakos References: <360403.90502.qm@web59402.mail.ac4.yahoo.com> In-Reply-To: <360403.90502.qm@web59402.mail.ac4.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Guillaume Ballet , freebsd-arm@freebsd.org Subject: Re: ARMv7 - EABI - Cross Compiler X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jun 2009 16:25:20 -0000 Vassilis Laganakos wrote: > > >>> Doesn't xdev build the 4.2.1 version of gcc, like what's in the tree now? > >>> That's unacceptable to me, gcc didn't bring in support for the Cortex-A8 >>> processor until 4.3.0. I was able to build a cross-gcc easily using a target >> of >>> "arm-linux-gnueabi", but I'm not sure if that sort of gcc will do for building >>> FreeBSD. I'll worry about getting that gcc into the build, but will it work >> for >>> me on a binary basis? >>> >> I used arm-none-eabi to compile my loader for the BeagleBoard so as to >> get rid of the linux-specific stuff by default. But maybe you should >> define something like arm-freebsd-eabi in gcc's build configuration? >> Thanks SO much, giving me the info on the targets was the item I most badly needed, but you're the only fella who addressed that directly. Basically, you got rid of my single remaining problem (at the pre-build level, at least), it's something that no amount of Googling would show me. I'm so damned pleased! From all the hints I got, there appears to be vanishingly little chance of our tree going to gcc-4.3.+, because everyone wants to use LLVM. I don't stand against that, but I don't want to wait, either, and (as of today) llvm doesn't support the Cortex-A8 (it will soon). Actually, I'm rereading my Dragon book, so I can understand the llvm better. It does look to be better organized than gcc, from first glance. I can't find the code (outside ports) to build llvm, do you have any idea where it is? If it's in a p4 archive, you have a URL for it? ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ FORGET about the llvm question, I just saw the mail about it being imported to svn. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > The arm-none-eabi will give you stuff for bare-metal applications, and the > arm-linux-eabi (or arm-linux-gnueabi) will give you stuff for linux. For FreeBSD now, > from what I've read there is no arm-freebsd-eabi; I tried that when I built GCC 4.4.1 > and it wouldn't accept it. > > What I've build is arm-unknown-freebsd, although the "unknown" part could > be ommited. Please bear with me while I look for the URL I found the naming > conventions... > > Thanks, > Vasi > > > > > From owner-freebsd-arm@FreeBSD.ORG Thu Jun 4 23:59:30 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36EF31065675 for ; Thu, 4 Jun 2009 23:59:30 +0000 (UTC) (envelope-from vassilis.laganakos@yahoo.com) Received: from n76.bullet.mail.sp1.yahoo.com (n76.bullet.mail.sp1.yahoo.com [98.136.44.48]) by mx1.freebsd.org (Postfix) with SMTP id 0ECB28FC0A for ; Thu, 4 Jun 2009 23:59:30 +0000 (UTC) (envelope-from vassilis.laganakos@yahoo.com) Received: from [69.147.84.144] by n76.bullet.mail.sp1.yahoo.com with NNFMP; 04 Jun 2009 23:46:25 -0000 Received: from [209.191.108.96] by t6.bullet.mail.sp1.yahoo.com with NNFMP; 04 Jun 2009 23:46:25 -0000 Received: from [76.13.13.25] by t3.bullet.mud.yahoo.com with NNFMP; 04 Jun 2009 23:46:25 -0000 Received: from [76.13.10.163] by t4.bullet.mail.ac4.yahoo.com with NNFMP; 04 Jun 2009 23:46:25 -0000 Received: from [127.0.0.1] by omp104.mail.ac4.yahoo.com with NNFMP; 04 Jun 2009 23:46:25 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 138635.40482.bm@omp104.mail.ac4.yahoo.com Received: (qmail 33443 invoked by uid 60001); 4 Jun 2009 23:46:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1244159184; bh=GBK+OSiFzEcKSHGqlNiCOgER7ie4MObJLYGN1n1Wk/k=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=qWvWCncKUVKAlnLe9C++TiJ2JINaFcfQ1gyynZcKRKA6HF2gOCr1N/WbJCYAo7C70KCLzAGuL3hwgL30ZylKdEGw7Diih+9FR2oIgDwTbDzBxZBnZftCq87q3V/0CkntciM4vCZi+e22aVTbpjobY8Lu4ggUfUkWfL9L6mgJc0Y= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=hS9pZdUcjhu4EAoiWlGJ+d1pYY1b1JBvzZg0guzJ58kpwFTwfy8LXmSOUFKGJQE3ODro/oz3TN1D/diP0QthYNlsE6bf/ZLElPefd8Dzp1it12bQG1I7N0/bGZjBYtovCxWErwe51OGf+16HZAgmhK9GbQL/gaSL1dbBbCDYFeA=; Message-ID: <985061.32128.qm@web59411.mail.ac4.yahoo.com> X-YMail-OSG: vGBi6G8VM1njjC9eDF3N6jlNGc0KimhtznxCjFkYuP.GEbJ76wfKOoIdF3prZDf_LjQnhIcnG_pypHC8PuQwGF5U52WdhZGByy_u0h.61C_6sb9M.OlbPQ7ZaMhEDhyyB6GI49AytGyJQLqU2Dvm08SVTo00WOLyjdCvSxlf.0309zUYbtkOJ.n5mc1YcEWNDj97Cf6OrDiVBcak3T.8yuw4MtpM7RLUtqCtyCiQPs_57L1VoV9zgm5mBGLpmwf6XBQIKKPa2KJqcjOgGNNgLyDSlOtDFtFFRxQRTKrV2w9EQXM- Received: from [82.6.108.148] by web59411.mail.ac4.yahoo.com via HTTP; Thu, 04 Jun 2009 16:46:24 PDT X-Mailer: YahooMailRC/1357.15 YahooMailWebService/0.7.289.10 References: <200906041542.n54Fgdab019028@casselton.net> Date: Thu, 4 Jun 2009 16:46:24 -0700 (PDT) From: Vassilis Laganakos To: Mark Tinguely In-Reply-To: <200906041542.n54Fgdab019028@casselton.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-arm@freebsd.org Subject: Re: ARMv7 - EABI - Cross Compiler X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jun 2009 23:59:30 -0000 Hi Mark, > What configuration options are you using for an ARM cross compiler? > Please bear with me while I put everything in a wiki/log page to be accessible - and visible for inspection :o) - to everyone. (should I submit this to the freebsd/arm page as a howto as well?). Have to repeat though the procedure now that I switched to HEAD. > The cross compile fails for me when it gets to the arm "multilib" build. > I tried with gcc44 and gcc45. I am trying one last time with the configuration > option "--disable-multilib", but I am not holding my breath. > I had faced the same problem. The problem is possibly something that was reported as a bug against gcc, that involves acx.m4 getting the wrong path to ${host_subddir} 4.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40191 What I did was hand editing the Makefile and changing the offended variable $host_subdir to what it should be. For me it was "host-i386-unknown-freebsd" Then restarted gmake. So it doesn't seem to be --multilib, and although I had thought exactly the same (disabling it!) it looks like it is required. You will come across a few more sub-packages that face the same problem. The treatment is the same. :o) It will ultimately stop (fail) when it will try to find libc... That's where I am now :o) Kind regards, Vassilis L. From owner-freebsd-arm@FreeBSD.ORG Fri Jun 5 00:05:00 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 743B71065673 for ; Fri, 5 Jun 2009 00:05:00 +0000 (UTC) (envelope-from vassilis.laganakos@yahoo.com) Received: from n7a.bullet.mail.ac4.yahoo.com (n7a.bullet.mail.ac4.yahoo.com [76.13.13.70]) by mx1.freebsd.org (Postfix) with SMTP id 12F3E8FC15 for ; Fri, 5 Jun 2009 00:04:59 +0000 (UTC) (envelope-from vassilis.laganakos@yahoo.com) Received: from [76.13.13.26] by n7.bullet.mail.ac4.yahoo.com with NNFMP; 05 Jun 2009 00:04:59 -0000 Received: from [76.13.10.179] by t3.bullet.mail.ac4.yahoo.com with NNFMP; 05 Jun 2009 00:04:59 -0000 Received: from [127.0.0.1] by omp120.mail.ac4.yahoo.com with NNFMP; 05 Jun 2009 00:04:59 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 529898.95252.bm@omp120.mail.ac4.yahoo.com Received: (qmail 73216 invoked by uid 60001); 5 Jun 2009 00:04:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1244160299; bh=0K9IptVGSUdZR/z/NrbBcWIQmhsfJvnGC+LdQqhe8oQ=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=ml+WjWuGMOi3uwHKsecOJClaXLoYXNvtp3988K/brYKpnMOoLjQD3tKVizT0roLE5JWPQSbfUqa5IqkBRcT8XHFbCJp12Be/Jpoj20u3NviqcV3Q0Ao07KrG/0YzOx9QhOMFQ9Y3cpi5TtfP2AH6nR+iwnJjbjSZPijh/+aIV8E= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=ZbtaRnlbNlotg/p8VtsM8Xz75KiaAbxE+Bhwpsup7uyPzFzpa+JqrEE0mbU+2G4idrwdsCQtYvC+NcE4dkLWp3Ux+x2XR2wdqCiJBX/D4o2BV20V7PaUvbax3ZeO/8KF3p6ajyKIpifwd2roh5P5DNMF46GWkD3QwlvBvPdLuyg=; Message-ID: <344051.72501.qm@web59410.mail.ac4.yahoo.com> X-YMail-OSG: hALnapcVM1mpaWRThWqgElvQB1xqv1Jij1zvlALIjsAquXXpSNSzttUUAUPnnrfUkDqQ.USEPTSemE0XbszixvEeWbWpf10Zn3ZVIzQ7MV0.kDchXHZqaAkUr4nE7KsClXO4Hg8iRkvslEAa0mKHieenxYRPFIuBMMGUkYnHL4Df5KLqLdTLAWTDUh2m7fcry1lzyUa.kPvwU735IYAjhsy6SCY92E9SmhOS6TImh.BzVXf5ddTANt1Pe8AkGpY7WOJjp5iW_g0JGkmP8iX6VoyS5Q5diHc28M7y25O7cuQyYdM4rV3RQkTqu3mg_x9eAH42mrjbEzcCBDf5 Received: from [82.6.108.148] by web59410.mail.ac4.yahoo.com via HTTP; Thu, 04 Jun 2009 17:04:59 PDT X-Mailer: YahooMailRC/1357.15 YahooMailWebService/0.7.289.10 Date: Thu, 4 Jun 2009 17:04:59 -0700 (PDT) From: Vassilis Laganakos To: Guillaume Ballet MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-arm@freebsd.org, chuckr@telenix.org Subject: Re: ARMv7 - EABI - Cross Compiler X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2009 00:05:01 -0000 > > What I've build is arm-unknown-freebsd, although the "unknown" part could > > be ommited. Please bear with me while I look for the URL I found the naming > > conventions... > > That could actually be what we are looking for. Do you know if this > definition uses eabi? > I think in GCC 4.3 is where you get ARMv7 architecture support, (see http://gcc.gnu.org/gcc-4.3/changes.html), which is EABI and at GCC 4.4 you have "EABI-compatible profiling interface for EABI targets." (again see http://gcc.gnu.org/gcc-4.4/changes.html). So I've chosen to work on 4.4 just to be sure, and it also supports Cortex-A9, as well as VFPv3 (yeah!). If you meant whether "arm-unknown-freebsd" implies "arm-unknown-freebsd-eabi" (and I've been mumbling about sth else :o) ) that answer I think is "yes". Of course, if I'm mistaken please someone correct me! Kind regards, Vassilis L. From owner-freebsd-arm@FreeBSD.ORG Fri Jun 5 02:10:50 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D907106564A for ; Fri, 5 Jun 2009 02:10:50 +0000 (UTC) (envelope-from beattie@beattie-home.net) Received: from mail.beattie-home.net (74-95-38-249-Oregon.hfc.comcastbusiness.net [74.95.38.249]) by mx1.freebsd.org (Postfix) with ESMTP id 321218FC12 for ; Fri, 5 Jun 2009 02:10:50 +0000 (UTC) (envelope-from beattie@beattie-home.net) Received: from [172.16.0.123] (unknown [172.16.0.123]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.beattie-home.net (Postfix) with ESMTP id F0D09E340FE; Thu, 4 Jun 2009 19:18:55 -0700 (PDT) From: Brian Beattie To: "M. Warner Losh" In-Reply-To: <20090603.195059.1239873755.imp@bsdimp.com> References: <1244064320.9543.44.camel@kokopelli> <2624C7F8-3639-405F-8E8C-A784FA4C1E0C@valka.is> <20090603.195059.1239873755.imp@bsdimp.com> Content-Type: text/plain Date: Thu, 04 Jun 2009 19:10:38 -0700 Message-Id: <1244167838.9543.116.camel@kokopelli> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: KB9202B X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2009 02:10:50 -0000 On Wed, 2009-06-03 at 19:50 -0600, M. Warner Losh wrote: > In message: <2624C7F8-3639-405F-8E8C-A784FA4C1E0C@valka.is> > Arnar Mar Sig writes: > : On Jun 3, 2009, at 11:25 PM, Brian Beattie wrote: > : > I'm trying to figure out FreeBSD on arm and I'm trying to get it > : > running > : > on a KwikByte 9202. ... > : > Console log below the sig. > : > > : > : > ate0: mem 0xdffbc000-0xdffbffff irq 24 on atmelarm0 > : > ate0: No MAC address set > : > device_attach: ate0 attach returned 6 > : looks like you have no working network device. > > Looks like no MAC address is programmed into the MAC by the > boot loader... > > Warner Ok, I grabbed current sources via svn, and configured nanobsd to build for the kb9202b. a console log for loading the kernel via tftp. as the kernel boots up it run the DHCP protocol producing the following message: Received DHCP Ack packet on ate0 from 0.0.0.0 (accepted) (no root path) I'm interpreting this as meaning that it's looking for some information from the DHCP server. I can switch my DHCP server from my DD-WRT firewall to a linux box if this is the case and I know what information the freebsd kernel is looking for. Can somebody point me to a resource that defines this? Thanks -- "In years past, I knew of someone who used emacs as his login shell, the only thing he found wanting in emacs was a good text editor. So he ended up using vi." - Anonymous Brian Beattie http://www.beattie-home.net From owner-freebsd-arm@FreeBSD.ORG Fri Jun 5 05:53:53 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76C29106564A for ; Fri, 5 Jun 2009 05:53:53 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from mx0.deglitch.com (backbone.deglitch.com [IPv6:2001:16d8:fffb:4::abba]) by mx1.freebsd.org (Postfix) with ESMTP id 2A8AB8FC08 for ; Fri, 5 Jun 2009 05:53:53 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from orion.SpringDaemons.com (unknown [77.232.3.143]) by mx0.deglitch.com (Postfix) with ESMTPA id 23AF28FC27; Fri, 5 Jun 2009 09:53:52 +0400 (MSD) Received: from orion (localhost [127.0.0.1]) by orion.SpringDaemons.com (Postfix) with SMTP id CE94D39C25; Fri, 5 Jun 2009 09:54:52 +0400 (MSD) Date: Fri, 5 Jun 2009 09:54:52 +0400 From: Stanislav Sedov To: Chuck Robey Message-Id: <20090605095452.8669c3da.stas@FreeBSD.org> In-Reply-To: <4A27F4C9.5070100@telenix.org> References: <360403.90502.qm@web59402.mail.ac4.yahoo.com> <4A27F4C9.5070100@telenix.org> Organization: The FreeBSD Project X-XMPP: ssedov@jabber.ru X-Voice: +7 916 849 20 23 X-Mailer: carrier-pigeon X-PGP-Fingerprint: B83A B15D 929A 364A D8BC B3F9 BF25 A231 092F D9F0 Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Fri__5_Jun_2009_09_54_52_+0400_1wtufblY1sVHSXjj" Cc: Guillaume Ballet , freebsd-arm@freebsd.org Subject: Re: ARMv7 - EABI - Cross Compiler X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2009 05:53:53 -0000 --Signature=_Fri__5_Jun_2009_09_54_52_+0400_1wtufblY1sVHSXjj Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, 04 Jun 2009 12:22:33 -0400 Chuck Robey mentioned: >=20 > Actually, I'm rereading my Dragon book, so I can understand the llvm bett= er. It > does look to be better organized than gcc, from first glance. I can't fi= nd the > code (outside ports) to build llvm, do you have any idea where it is? If= it's > in a p4 archive, you have a URL for it? Check this page: http://wiki.freebsd.org/BuildingFreeBSDWithClang --=20 Stanislav Sedov ST4096-RIPE --Signature=_Fri__5_Jun_2009_09_54_52_+0400_1wtufblY1sVHSXjj Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- iQIcBAEBAgAGBQJKKLMsAAoJEKN82nOYvCd06qgP/0iKmRNONoK13bHRUdxQJ1hn M1Y/GUQYF++uFlTPxSFuMkVQMVhTE6PFdB5gSNLDEC4leDTPj/JmWjf9j9UhHCwH yhnLoQU3qJmcgAtaiEfND0Bl/sBfpnYES1RSH43sdFREmngUf0laBjqSgfcxQJYP P38uvtl28lm5VwOs8LuFo+sIn/35GacJMIK6HmDWagV6HVg7eDCpzjrDuKFsR9EU XN8Tvflhw2leRlCNs63TNtwfoHeWACqc5hFnNGjhF65fCWnMMxiscBPBG4EtvVBd 37EsraaccncAgGC6EaTb6/0rC0lAESKVi/Y7y+Buvf8C/+a8cCeJOrCzZyfSG3jt 0NlhaF7pFSBntbJrtbB5cTHA5vgxR6Qnl7XzNzyOw8N88fYLrXABFv0nRdD24zgK Sue4MiXDnkh4/4PyNCSDI2CaS9w0nuXx4vPDwnVlorpYyFw6zqmRa2REMlB+4xO9 cu76THG+FQz+xJWJaoVhDO1qK0YzpGJfdRAXvKIxUBRFK+tKJB0JngG4lElVmoBL A9L16W+x/uk51nqukUJD+qD71E9LcqGl+d3XQZtVHRs+NScOLgdK1u6ITxOIjfR0 Yy9QtEy2qIN8e3mj1EAfvpIEDSDY/VVtUU2fc49g40uXsHJFad2pYpopPQWsjzfL 9ptuP3yqx/CFjtTM/K2U =GuVH -----END PGP SIGNATURE----- --Signature=_Fri__5_Jun_2009_09_54_52_+0400_1wtufblY1sVHSXjj-- From owner-freebsd-arm@FreeBSD.ORG Fri Jun 5 08:40:03 2009 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E65221065670 for ; Fri, 5 Jun 2009 08:40:03 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id A41E08FC08 for ; Fri, 5 Jun 2009 08:40:03 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id n558bTIk069763; Fri, 5 Jun 2009 02:37:29 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 05 Jun 2009 02:37:44 -0600 (MDT) Message-Id: <20090605.023744.1137954643.imp@bsdimp.com> To: beattie@beattie-home.net From: "M. Warner Losh" In-Reply-To: <1244167838.9543.116.camel@kokopelli> References: <2624C7F8-3639-405F-8E8C-A784FA4C1E0C@valka.is> <20090603.195059.1239873755.imp@bsdimp.com> <1244167838.9543.116.camel@kokopelli> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-arm@FreeBSD.org Subject: Re: KB9202B X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2009 08:40:04 -0000 In message: <1244167838.9543.116.camel@kokopelli> Brian Beattie writes: : On Wed, 2009-06-03 at 19:50 -0600, M. Warner Losh wrote: : > In message: <2624C7F8-3639-405F-8E8C-A784FA4C1E0C@valka.is> : > Arnar Mar Sig writes: : > : On Jun 3, 2009, at 11:25 PM, Brian Beattie wrote: : > : > I'm trying to figure out FreeBSD on arm and I'm trying to get it : > : > running : > : > on a KwikByte 9202. : : ... : : > : > Console log below the sig. : > : > : > : : > : > ate0: mem 0xdffbc000-0xdffbffff irq 24 on atmelarm0 : > : > ate0: No MAC address set : > : > device_attach: ate0 attach returned 6 : > : looks like you have no working network device. : > : > Looks like no MAC address is programmed into the MAC by the : > boot loader... : > : > Warner : : Ok, I grabbed current sources via svn, and configured nanobsd to build : for the kb9202b. a console log for loading the kernel via tftp. as the : kernel boots up it run the DHCP protocol producing the following : message: : : Received DHCP Ack packet on ate0 from 0.0.0.0 (accepted) (no root path) : : I'm interpreting this as meaning that it's looking for some information : from the DHCP server. I can switch my DHCP server from my DD-WRT : firewall to a linux box if this is the case and I know what information : the freebsd kernel is looking for. : : Can somebody point me to a resource that defines this? I think that you need some special information in the DHCP server to get the root path. My isc dhcp server is configured for that like so: host avila.example.com { filename "kernel.avila"; hardware ethernet 00:d0:12:02:76:58; fixed-address 192.168.0.10 option root-path "192.168.0.2:/nfsroots/gateworks"; option root-opts "nolockd"; } Warner From owner-freebsd-arm@FreeBSD.ORG Fri Jun 5 23:26:31 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6AA3106566B for ; Fri, 5 Jun 2009 23:26:31 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail6.sea5.speakeasy.net (mail6.sea5.speakeasy.net [69.17.117.8]) by mx1.freebsd.org (Postfix) with ESMTP id C3F048FC0C for ; Fri, 5 Jun 2009 23:26:31 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 26611 invoked from network); 5 Jun 2009 23:26:31 -0000 Received: from april.chuckr.org (HELO april.telenix.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 5 Jun 2009 23:26:30 -0000 Message-ID: <4A29A9AA.2090609@telenix.org> Date: Fri, 05 Jun 2009 19:26:34 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.19 (X11/20090121) MIME-Version: 1.0 To: Guillaume Ballet References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: ARMv7 - EABI - Cross Compiler X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2009 23:26:32 -0000 Guillaume Ballet wrote: >> Doesn't xdev build the 4.2.1 version of gcc, like what's in the tree now? >> That's unacceptable to me, gcc didn't bring in support for the Cortex-A8 >> processor until 4.3.0. I was able to build a cross-gcc easily using a target of >> "arm-linux-gnueabi", but I'm not sure if that sort of gcc will do for building >> FreeBSD. I'll worry about getting that gcc into the build, but will it work for >> me on a binary basis? >> > > I used arm-none-eabi to compile my loader for the BeagleBoard so as to > get rid of the linux-specific stuff by default. But maybe you should > define something like arm-freebsd-eabi in gcc's build configuration? Always a thing of extremes for me. I know Makefiles pretty darned well, both the BSD and teh GNU sort, but as well as I know them, that's how BADLY I misunderstand anything dealing with those configure scripts. I can't even begin to pick apart the code for those things. Irritates me, because if I find a problem in a makefile, I pop out an answer with the greatest of ease, but if it's well coded so that configure reruns itself immediately if there's any change in the makefile, then it has to run configure, and I'm basically utterly screwed. I like our BSD build system, not a configure script in sight! However, now that I understand that I can use arm-none-eabi, I am pretty sure I can do things, and the configure scripts in gcc aren't so well engineered to force me to deal with them like that. If I can deal with a configure script as a shell script, I can do that, it's dealing with it as m4 macros that leaves me cold. From owner-freebsd-arm@FreeBSD.ORG Sat Jun 6 14:36:35 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B3F84106567F for ; Sat, 6 Jun 2009 14:36:35 +0000 (UTC) (envelope-from tinguely@casselton.net) Received: from casselton.net (casselton.net [63.165.140.2]) by mx1.freebsd.org (Postfix) with ESMTP id 9C99A8FC1C for ; Sat, 6 Jun 2009 14:36:33 +0000 (UTC) (envelope-from tinguely@casselton.net) Received: from casselton.net (localhost [127.0.0.1]) by casselton.net (8.14.3/8.14.3) with ESMTP id n56EaVam025810; Sat, 6 Jun 2009 09:36:31 -0500 (CDT) (envelope-from tinguely@casselton.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=casselton.net; s=ccnMail; t=1244298991; bh=o9aJV66ExzLtCAcM88E/QbQXT0fXAz9Y/11orQGzBWU=; h=Date:From:Message-Id:To:Subject:Cc:In-Reply-To; b=Xf5FY6wSfze6eJ0Og5DVRBXVITusr6wp+fMtIjQb0eEyicDf3tf9Kkr9vs8sE7ftq mT/X4A+O9OXaHfnV4rcaZYCTujeumTv3/Nwvl+s+OsZwoW4GPEsCaxSikF5+SR1Ytn 08sHEd76Dxi9deC62Wv5FEQiZjO1nFg+aOvfWKGI= Received: (from tinguely@localhost) by casselton.net (8.14.3/8.14.2/Submit) id n56EaU6A025809; Sat, 6 Jun 2009 09:36:30 -0500 (CDT) (envelope-from tinguely) Date: Sat, 6 Jun 2009 09:36:30 -0500 (CDT) From: Mark Tinguely Message-Id: <200906061436.n56EaU6A025809@casselton.net> To: gballet@gmail.com In-Reply-To: <4A29A9AA.2090609@telenix.org> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.2 (casselton.net [127.0.0.1]); Sat, 06 Jun 2009 09:36:31 -0500 (CDT) Cc: freebsd-arm@freebsd.org Subject: Re: ARMv7 - EABI - Cross Compiler X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jun 2009 14:36:36 -0000 You should talk to the tools team about the port. A person can get a basic gcc4.5 cross compiler (gmake all-gcc / install-gcc) without the libraries but the kernel sources expects a FreeBSD extended kernel (a missing __FreeBSD_cc_version will pop up right away). There are files in svn/gnu/usr.bin/cc/cc_tools that are new and svn/contrib/gcc/config that differ from the gcc4.5 sources. I tip my hat to the tools team to get the gnu software to natively and cross compile and install in a normal location. --Mark.