From owner-freebsd-arm@FreeBSD.ORG Sun May 17 14:32:37 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 824091065670 for ; Sun, 17 May 2009 14:32:37 +0000 (UTC) (envelope-from mike.gordon@primus.ca) Received: from matrix.start.ca (matrix.start.ca [204.101.248.1]) by mx1.freebsd.org (Postfix) with ESMTP id 2B4CB8FC18 for ; Sun, 17 May 2009 14:32:37 +0000 (UTC) (envelope-from mike.gordon@primus.ca) Received: from rti (pool7-157.adsl.user.start.ca [207.236.142.157]) by matrix.start.ca (8.13.6/8.12.11) with SMTP id n4HDUoht025535 for ; Sun, 17 May 2009 09:30:54 -0400 Message-Id: <200905171330.n4HDUoht025535@matrix.start.ca> From: "mike gordon" To: "freebsd-arm" Date: Sun, 17 May 2009 09:30:50 -0400 Organization: repharm MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Technology - Oracle, IBM, ERP - SAP, QAD, CRM - Siebel, Communication - Cisco, Manufacturing, Healthcare customer lists 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: Sun, 17 May 2009 14:32:38 -0000 This email is to introduce our company Repharm and services we offer. Repharm is an international leader of sales and marketing database products for high technology businesses. We provide installed customer lists for companies such as Oracle, PeopleSoft, Siebel, etc. Our lists are continuously maintained to ensure the highest level of accuracy and completeness. We have hundreds of industry leaders as customers today - many whose names you would recognize. If you are interested, we could send you a sample of one of our lists complete with summary information, so that you could evaluate our content. To find out about the various lists we have available, in preparation for any sales or marketing campaigns that your organization may be considering in future, we'd love to hear from you. Or, perhaps you'd be interested in acquiring your competitors' customer lists? If you would like more information, please contact us at (905) 721-8456 or email us at repharm1@aol.com Below are just some of the lists available: ERP (ENTERPRISE RESOURCE PLANNING): Baan JD Edwards Lawson Made2Manage Mapics Marcam Oracle Peoplesoft SAP SSA E-BUSINESS APPLICATIONS: Ariba BMC BroadVision Commerce One Webtrends MIDDLEWARE/CONNECTIVITY/APP SERVERS/WEB SERVERS: Bea Systems Iona Unisys OPERATING SYSTEMS/HARDWARE/SOFTWARE: COMPAQ HP 3000 HP 9000 HP-UX IBM AS/400 IBM OS/390 Lotus Notes Microsoft Sun Microsystems DATABASE: DB2 FileMaker Informix Oracle SQL SybaseCRM (CUSTOMER RELATIONSHIP MANAGEMENT): Clarify E.piphany HNC Onyx Pivotal Siebel Vantive Xchange SUPPLY CHAIN: Agile i2 Technologies Manugistics QAD Webplan COMMUNICATIONS: Nortel Cisco 3com Siemens Alcatel Telecom Vars ASP’s CLECS ISP’s E-COMMERCE: Dot Com Directory Consultant Directory Software Directory EXECUTIVE DIRECTORIES: Chief Executive Officer Chief Financial Officer Chief Information Officer Engineering Human Resources Purchasing Sales/Marketing INDUSTRY SPECIFIC LISTS: Agriculture, Forestry and Fishing, Communications, Construction, Finance, Insurance and Real Estate, Manufacturing, Mining, Public Administration, Retail Trade, Services, Transportation, Utilities, Wholesale Trade From owner-freebsd-arm@FreeBSD.ORG Mon May 18 11:06:48 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 E6C571065675 for ; Mon, 18 May 2009 11:06:48 +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 D2E9D8FC14 for ; Mon, 18 May 2009 11:06:48 +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 n4IB6mco075586 for ; Mon, 18 May 2009 11:06:48 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4IB6mTr075582 for freebsd-arm@FreeBSD.org; Mon, 18 May 2009 11:06:48 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 18 May 2009 11:06:48 GMT Message-Id: <200905181106.n4IB6mTr075582@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, 18 May 2009 11:06:49 -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 Tue May 19 14:54: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 44BA21065670 for ; Tue, 19 May 2009 14:54:22 +0000 (UTC) (envelope-from jdl@jdl.com) Received: from jdl.com (jdl.com [208.123.74.7]) by mx1.freebsd.org (Postfix) with ESMTP id 2C5CA8FC24 for ; Tue, 19 May 2009 14:54:22 +0000 (UTC) (envelope-from jdl@jdl.com) Received: from jdl (helo=jdl.com) by jdl.com with local-esmtp (Exim 4.69) (envelope-from ) id 1M6Qhw-00066O-Uh for freebsd-arm@freebsd.org; Tue, 19 May 2009 09:54:21 -0500 To: freebsd-arm@freebsd.org Date: Tue, 19 May 2009 09:54:20 -0500 From: Jon Loeliger Message-Id: X-Spam-Score: -2.3 Subject: Out of swap in a nanobsd build 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, 19 May 2009 14:54:22 -0000 Folks, I have a nanobsd build for the Gateworks aviala board that ran out of swap last night. avila# May 13 03:01:13 avila-master kernel: pid 2642 (sort), uid 0, was killed: out of swap space That suggests /etc/periodic/daily/470.status-named was the source. As per the "avila" nano-config file, there is no swap. I only possibly have compact flash space available. So my real question is, should I try to configure some, or should we be able to re-formulate the 470.staus-named such that it doesn't need to swap? Thanks, jdl From owner-freebsd-arm@FreeBSD.ORG Tue May 19 15:27: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 BC641106564A for ; Tue, 19 May 2009 15:27:47 +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 740588FC12 for ; Tue, 19 May 2009 15:27:47 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from DSPAM-Daemon (localhost [127.0.0.1]) by mx0.deglitch.com (Postfix) with SMTP id 805018FC18 for ; Tue, 19 May 2009 19:27:45 +0400 (MSD) Received: from localhost (dhcp170-225-red.yandex.net [95.108.170.225]) by mx0.deglitch.com (Postfix) with ESMTPSA id B74B28FC1D; Tue, 19 May 2009 19:27:44 +0400 (MSD) Date: Tue, 19 May 2009 19:27:44 +0400 From: Stanislav Sedov To: Jon Loeliger Message-Id: <20090519192744.9f22f76d.stas@FreeBSD.org> In-Reply-To: References: 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 May 19 19:27:45 2009 X-DSPAM-Confidence: 0.9899 X-DSPAM-Improbability: 1 in 9809 chance of being spam X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 4a12cff1994299690386551 Cc: freebsd-arm@freebsd.org Subject: Re: Out of swap in a nanobsd build 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, 19 May 2009 15:27:48 -0000 On Tue, 19 May 2009 09:54:20 -0500 Jon Loeliger mentioned: > Folks, > > I have a nanobsd build for the Gateworks aviala board > that ran out of swap last night. > > avila# May 13 03:01:13 avila-master kernel: pid 2642 (sort), uid 0, was killed: out of swap space > > That suggests /etc/periodic/daily/470.status-named was the source. > > As per the "avila" nano-config file, there is no swap. > I only possibly have compact flash space available. > So my real question is, should I try to configure some, > or should we be able to re-formulate the 470.staus-named > such that it doesn't need to swap? > The "out of swap" message means that there were unsufficien memory while running some of these processes. So the only solutions to this problem are either install additional memory, optimize the memory usage or configure some swap space storage (e.g. USB attached hard drive). -- Stanislav Sedov ST4096-RIPE !DSPAM:4a12cff1994299690386551! From owner-freebsd-arm@FreeBSD.ORG Tue May 19 15:46: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 018451065672 for ; Tue, 19 May 2009 15:46:50 +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 D64B18FC20 for ; Tue, 19 May 2009 15:46:49 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 14290 invoked from network); 19 May 2009 15:46:49 -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 ; 19 May 2009 15:46:49 -0000 Message-ID: <4A12D46B.8040808@telenix.org> Date: Tue, 19 May 2009 11:46:51 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.19 (X11/20090121) MIME-Version: 1.0 To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: crosscompiler and porting notes 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, 19 May 2009 15:46:50 -0000 two completely separate questions here. First, for the processor OMAP3530 (the Cortex), is it possible to use the llvm/clang compiler? Or, is gcc the compiler being used, for cross compiling? What sources are being used? If it's the same gcc in sources, then I need to know what are the flags used to build with (or, if it's actually in the build already, where is it, how to do that? 2nd question, is there any document, set of notes, anything at all, to give any sort of info at all so that I might have some idea of what needs to be changed in the kernel sources. I figure it's probably not going to be anything like a complete document, but I'm quite willing to try to use any level of document that might exist. Understand, I *don't* want some general purpose porting guide (something that would be used to create a bsd.port.mk-type port, I need this to be specific for the kernel sources. As far as that goes, are all the sources for the current level of work on the arm ports in the svn repository, or if it's somewhere else, where might that be? Thanks for two answers, I need to start leasrning this stuff, and these two points seem to me to give me a firm enough place to begin. From owner-freebsd-arm@FreeBSD.ORG Tue May 19 19:53:11 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 A64751065674 for ; Tue, 19 May 2009 19:53:11 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail8.sea5.speakeasy.net (mail8.sea5.speakeasy.net [69.17.117.10]) by mx1.freebsd.org (Postfix) with ESMTP id 8BB848FC16 for ; Tue, 19 May 2009 19:53:11 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 31529 invoked from network); 19 May 2009 19:53:11 -0000 Received: from april.chuckr.org (HELO april.telenix.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail8.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 19 May 2009 19:53:11 -0000 Message-ID: <4A130E2A.3060900@telenix.org> Date: Tue, 19 May 2009 15:53:14 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.19 (X11/20090121) MIME-Version: 1.0 To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: making the cross tools 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, 19 May 2009 19:53:11 -0000 Referring to the "Mini-install guide" that's on the Arm web page, I've built/installed the compiler, but when I got to the 2nd set of instructions, about building the binutils, it gives me this error after doing quite a bit of building: make: don't know how to make /usr/cross/usr/lib/libc.a. Stop *** Error code 2 The DESTDIR is /usr/cross, and the command itself from the guide sets the TOOLS_PREFIX also to /usr/cross. Any idea what's going on, that it's refusing to use my system libc.a? It's a cross-compiler here, which means it's going to execute here on my i386 machine, so it really SHOULD use my local libc.a (not some libc.a for the Arm arch), right? From owner-freebsd-arm@FreeBSD.ORG Tue May 19 20:02:15 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 E8E161065672 for ; Tue, 19 May 2009 20:02:15 +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 A8A808FC20 for ; Tue, 19 May 2009 20:02:15 +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 n4JJxKfh040699; Tue, 19 May 2009 13:59:20 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 19 May 2009 13:59:28 -0600 (MDT) Message-Id: <20090519.135928.-79138351.imp@bsdimp.com> To: chuckr@telenix.org From: "M. Warner Losh" In-Reply-To: <4A130E2A.3060900@telenix.org> References: <4A130E2A.3060900@telenix.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: freebsd-arm@freebsd.org Subject: Re: making the cross tools 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, 19 May 2009 20:02:16 -0000 In message: <4A130E2A.3060900@telenix.org> Chuck Robey writes: : Referring to the "Mini-install guide" that's on the Arm web page, I've : built/installed the compiler, but when I got to the 2nd set of instructions, : about building the binutils, it gives me this error after doing quite a bit of : building: : : make: don't know how to make /usr/cross/usr/lib/libc.a. Stop : *** Error code 2 : : The DESTDIR is /usr/cross, and the command itself from the guide sets the : TOOLS_PREFIX also to /usr/cross. Any idea what's going on, that it's refusing : to use my system libc.a? It's a cross-compiler here, which means it's going to : execute here on my i386 machine, so it really SHOULD use my local libc.a (not : some libc.a for the Arm arch), right? Please provide a reference here to the URL you are using, since this makes no sense at all... TOOLS_RPEFIX isn't a FreeBSDism. Warner From owner-freebsd-arm@FreeBSD.ORG Tue May 19 20:04: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 9380F106567E for ; Tue, 19 May 2009 20:04:50 +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 5235C8FC16 for ; Tue, 19 May 2009 20:04:50 +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 n4JK2owF040776; Tue, 19 May 2009 14:02:50 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 19 May 2009 14:02:58 -0600 (MDT) Message-Id: <20090519.140258.1756924732.imp@bsdimp.com> To: chuckr@telenix.org From: "M. Warner Losh" In-Reply-To: <4A12D46B.8040808@telenix.org> References: <4A12D46B.8040808@telenix.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: freebsd-arm@freebsd.org Subject: Re: crosscompiler and porting notes 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, 19 May 2009 20:04:51 -0000 In message: <4A12D46B.8040808@telenix.org> Chuck Robey writes: : First, for the processor OMAP3530 (the Cortex), is it possible to : use the llvm/clang compiler? Or, is gcc the compiler being used, : for cross compiling? What sources are being used? If it's the same : gcc in sources, then I need to know what are the flags used to build : with (or, if it's actually in the build already, where is it, how to : do that? The in-tree compiler currently is gcc/binutils, which we use for all ARM builds. I don't know if it has the newer ARM instructions for the OMAP3530. : 2nd question, is there any document, set of notes, anything at all, : to give any sort of info at all so that I might have some idea of : what needs to be changed in the kernel sources. I figure it's : probably not going to be anything like a complete document, but I'm : quite willing to try to use any level of document that might exist. : Understand, I *don't* want some general purpose porting guide : (something that would be used to create a bsd.port.mk-type port, I : need this to be specific for the kernel sources. No. You have to read the source to get this information at the present time. : As far as that goes, are all the sources for the current level of : work on the arm ports in the svn repository, or if it's somewhere : else, where might that be? Most of the work is in head. However, there's some still straggling in from the p4 //depot/projects/arm tree and I think we may have created a base/projects/arm tree in svn as well, but I'm not sure about that. Warner From owner-freebsd-arm@FreeBSD.ORG Tue May 19 20:05:11 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 52EEA1065697 for ; Tue, 19 May 2009 20:05:11 +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 32B298FC1D for ; Tue, 19 May 2009 20:05:09 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 4743 invoked from network); 19 May 2009 20:05:09 -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 ; 19 May 2009 20:05:09 -0000 Message-ID: <4A1310F8.3070202@telenix.org> Date: Tue, 19 May 2009 16:05:12 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.19 (X11/20090121) MIME-Version: 1.0 To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: making the cross tools- more info 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, 19 May 2009 20:05:11 -0000 I have one bit more of info, so I'm going to paste it at the end. ------------------------------------- Referring to the "Mini-install guide" that's on the Arm web page, I've built/installed the compiler, but when I got to the 2nd set of instructions, about building the binutils, it gives me this error after doing quite a bit of building: make: don't know how to make /usr/cross/usr/lib/libc.a. Stop *** Error code 2 The DESTDIR is /usr/cross, and the command itself from the guide sets the TOOLS_PREFIX also to /usr/cross. Any idea what's going on, that it's refusing to use my system libc.a? It's a cross-compiler here, which means it's going to execute here on my i386 machine, so it really SHOULD use my local libc.a (not some libc.a for the Arm arch), right? [ADDED} the build error came in the "all" target part of building of ld, which is the 7th app in that subdir (all the others went beautifully). Svn diff doesn't tell me that I have any mods, and seeing as I only recently changed from cvs to svn (about 2 months ago) I'm really pretty sure I haven't hacked into there any. From owner-freebsd-arm@FreeBSD.ORG Tue May 19 20:09:36 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 4ED881065673 for ; Tue, 19 May 2009 20:09:36 +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 2B93A8FC0C for ; Tue, 19 May 2009 20:09:35 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 13928 invoked from network); 19 May 2009 20:09:35 -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 ; 19 May 2009 20:09:35 -0000 Message-ID: <4A131202.1080308@telenix.org> Date: Tue, 19 May 2009 16:09:38 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.19 (X11/20090121) MIME-Version: 1.0 To: "M. Warner Losh" References: <4A130E2A.3060900@telenix.org> <20090519.135928.-79138351.imp@bsdimp.com> In-Reply-To: <20090519.135928.-79138351.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: making the cross tools 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, 19 May 2009 20:09:36 -0000 M. Warner Losh wrote: > In message: <4A130E2A.3060900@telenix.org> > Chuck Robey writes: > : Referring to the "Mini-install guide" that's on the Arm web page, I've > : built/installed the compiler, but when I got to the 2nd set of instructions, > : about building the binutils, it gives me this error after doing quite a bit of > : building: > : > : make: don't know how to make /usr/cross/usr/lib/libc.a. Stop > : *** Error code 2 > : > : The DESTDIR is /usr/cross, and the command itself from the guide sets the > : TOOLS_PREFIX also to /usr/cross. Any idea what's going on, that it's refusing > : to use my system libc.a? It's a cross-compiler here, which means it's going to > : execute here on my i386 machine, so it really SHOULD use my local libc.a (not > : some libc.a for the Arm arch), right? > > Please provide a reference here to the URL you are using, since this > makes no sense at all... TOOLS_RPEFIX isn't a FreeBSDism. OK, it's http://www.freebsd.org/platforms/arm.html, the section title is "Mini-install Guide", by Olivier Houchard (which I'm probably making a hash of). Thanks for that ref to the p4 archive, I haven't used that yet, wasn't sure where it is. I know that the current gcc does provide support for the Cortex, but I don't know exactly (yet) how old it is, I need to see, I guess, if it's at least as old as the gcc (4.2.1). That's not too hard to find out. > > Warner > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" From owner-freebsd-arm@FreeBSD.ORG Tue May 19 20:17: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 76D94106567A for ; Tue, 19 May 2009 20:17:31 +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 337138FC13 for ; Tue, 19 May 2009 20:17:31 +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 n4JKCHpM040967; Tue, 19 May 2009 14:12:17 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 19 May 2009 14:12:24 -0600 (MDT) Message-Id: <20090519.141224.556005618.imp@bsdimp.com> To: chuckr@telenix.org From: "M. Warner Losh" In-Reply-To: <4A1310F8.3070202@telenix.org> References: <4A1310F8.3070202@telenix.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: freebsd-arm@FreeBSD.org Subject: Re: making the cross tools- more info 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, 19 May 2009 20:17:32 -0000 In message: <4A1310F8.3070202@telenix.org> Chuck Robey writes: : I have one bit more of info, so I'm going to paste it at the end. : ------------------------------------- : Referring to the "Mini-install guide" that's on the Arm web page, I've : built/installed the compiler, but when I got to the 2nd set of instructions, : about building the binutils, it gives me this error after doing quite a bit of : building: : : make: don't know how to make /usr/cross/usr/lib/libc.a. Stop : *** Error code 2 : : The DESTDIR is /usr/cross, and the command itself from the guide sets the : TOOLS_PREFIX also to /usr/cross. Any idea what's going on, that it's refusing : to use my system libc.a? It's a cross-compiler here, which means it's going to : execute here on my i386 machine, so it really SHOULD use my local libc.a (not : some libc.a for the Arm arch), right? : : : [ADDED} the build error came in the "all" target part of building of ld, which : is the 7th app in that subdir (all the others went beautifully). Svn diff : doesn't tell me that I have any mods, and seeing as I only recently changed : from cvs to svn (about 2 months ago) I'm really pretty sure I haven't hacked : into there any. I usually use: cd /usr/src sudo make xdev TARGET=arm TARGET_ARCH=arm to do all that... Warner From owner-freebsd-arm@FreeBSD.ORG Tue May 19 20:21: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 079EF10656A9 for ; Tue, 19 May 2009 20:21:38 +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 D5D6F8FC12 for ; Tue, 19 May 2009 20:21:36 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 7324 invoked from network); 19 May 2009 20:21:36 -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 ; 19 May 2009 20:21:36 -0000 Message-ID: <4A1314D3.1010603@telenix.org> Date: Tue, 19 May 2009 16:21:39 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.19 (X11/20090121) MIME-Version: 1.0 To: "M. Warner Losh" References: <4A1310F8.3070202@telenix.org> <20090519.141224.556005618.imp@bsdimp.com> In-Reply-To: <20090519.141224.556005618.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-arm@FreeBSD.org Subject: Re: making the cross tools- more info 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, 19 May 2009 20:21:40 -0000 M. Warner Losh wrote: > In message: <4A1310F8.3070202@telenix.org> > Chuck Robey writes: > : I have one bit more of info, so I'm going to paste it at the end. > : ------------------------------------- > : Referring to the "Mini-install guide" that's on the Arm web page, I've > : built/installed the compiler, but when I got to the 2nd set of instructions, > : about building the binutils, it gives me this error after doing quite a bit of > : building: > : > : make: don't know how to make /usr/cross/usr/lib/libc.a. Stop > : *** Error code 2 > : > : The DESTDIR is /usr/cross, and the command itself from the guide sets the > : TOOLS_PREFIX also to /usr/cross. Any idea what's going on, that it's refusing > : to use my system libc.a? It's a cross-compiler here, which means it's going to > : execute here on my i386 machine, so it really SHOULD use my local libc.a (not > : some libc.a for the Arm arch), right? > : > : > : [ADDED} the build error came in the "all" target part of building of ld, which > : is the 7th app in that subdir (all the others went beautifully). Svn diff > : doesn't tell me that I have any mods, and seeing as I only recently changed > : from cvs to svn (about 2 months ago) I'm really pretty sure I haven't hacked > : into there any. > > I usually use: > > cd /usr/src > sudo make xdev TARGET=arm TARGET_ARCH=arm OK, does xdev just do the cross tools? The port I'm after doesn't yet exist, after all. Oh, BTW, I checked and (wouldn't you know it) the first gcc that added Cortex support is (I think) 4.3.0. Well, maybe I can get 4.3.0 to build, who knows? I know very well I can do it directly from the gcc sources, I alreqady tried that, excepting I used a machine description I can't end up with (derivative of Linux). > > to do all that... > > Warner From owner-freebsd-arm@FreeBSD.ORG Tue May 19 20:31:33 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 DDB221065677 for ; Tue, 19 May 2009 20:31:33 +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 9AAE38FC15 for ; Tue, 19 May 2009 20:31:33 +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 n4JKSGtB041286; Tue, 19 May 2009 14:28:16 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 19 May 2009 14:28:24 -0600 (MDT) Message-Id: <20090519.142824.570083563.imp@bsdimp.com> To: chuckr@telenix.org From: "M. Warner Losh" In-Reply-To: <20090519.141224.556005618.imp@bsdimp.com> References: <4A1310F8.3070202@telenix.org> <20090519.141224.556005618.imp@bsdimp.com> 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: making the cross tools- more info 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, 19 May 2009 20:31:34 -0000 In message: <20090519.141224.556005618.imp@bsdimp.com> "M. Warner Losh" writes: : In message: <4A1310F8.3070202@telenix.org> : Chuck Robey writes: : : I have one bit more of info, so I'm going to paste it at the end. : : ------------------------------------- : : Referring to the "Mini-install guide" that's on the Arm web page, I've : : built/installed the compiler, but when I got to the 2nd set of instructions, : : about building the binutils, it gives me this error after doing quite a bit of : : building: : : : : make: don't know how to make /usr/cross/usr/lib/libc.a. Stop : : *** Error code 2 : : : : The DESTDIR is /usr/cross, and the command itself from the guide sets the : : TOOLS_PREFIX also to /usr/cross. Any idea what's going on, that it's refusing : : to use my system libc.a? It's a cross-compiler here, which means it's going to : : execute here on my i386 machine, so it really SHOULD use my local libc.a (not : : some libc.a for the Arm arch), right? : : : : : : [ADDED} the build error came in the "all" target part of building of ld, which : : is the 7th app in that subdir (all the others went beautifully). Svn diff : : doesn't tell me that I have any mods, and seeing as I only recently changed : : from cvs to svn (about 2 months ago) I'm really pretty sure I haven't hacked : : into there any. : : I usually use: : : cd /usr/src : sudo make xdev TARGET=arm TARGET_ARCH=arm : to do all that... Err, got confused between the buildworld method and the xdev method: sudo make xdev XDEV=arm XDEV_ARCH=arm is what I use. Well, really, what I usually use is: setenv TARGET arm make buildworld make buildkernel KERNCONF=blah and then s/KERNCONF/KERNFAST/ after the first time unless I'm hacking the config files. This just works and I don't have to think about it. The xdev stuff is more tailored to cross building whole projects as well (or hacking on ports support for cross build :). Warner From owner-freebsd-arm@FreeBSD.ORG Tue May 19 20:54:49 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 6DDD11065672 for ; Tue, 19 May 2009 20:54:49 +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 08A458FC26 for ; Tue, 19 May 2009 20:54:48 +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 n4JKslU5079246; Tue, 19 May 2009 15:54:47 -0500 (CDT) (envelope-from tinguely@casselton.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=casselton.net; s=ccnMail; t=1242766488; bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=; h=Date:From:Message-Id:To:Subject:In-Reply-To; b=QFr5Ob/2/V80eGIXi6Mxwx4DpTACTFjZpunh7xBxg6v0e81/YqXHmFK1eDeAnBtyk T4gUOsU+1TODi8KtRdnpBgNzhqK0HRNCFoAggs1dRQMmxVzcO2obu3HMm6ZSBow/Nw EBMG0ErAHmsTDM81B4l7YO2bAkFuNddnoEBajOUA= Received: (from tinguely@localhost) by casselton.net (8.14.3/8.14.2/Submit) id n4JKslT6079244; Tue, 19 May 2009 15:54:47 -0500 (CDT) (envelope-from tinguely) Date: Tue, 19 May 2009 15:54:47 -0500 (CDT) From: Mark Tinguely Message-Id: <200905192054.n4JKslT6079244@casselton.net> To: chuckr@telenix.org, freebsd-arm@freebsd.org In-Reply-To: <4A12D46B.8040808@telenix.org> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.2 (casselton.net [127.0.0.1]); Tue, 19 May 2009 15:54:48 -0500 (CDT) Cc: Subject: Re: crosscompiler and porting notes 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, 19 May 2009 20:54:49 -0000 From owner-freebsd-arm@FreeBSD.ORG Tue May 19 21:00:54 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 223B5106566B for ; Tue, 19 May 2009 21:00:54 +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 CA7648FC13 for ; Tue, 19 May 2009 21:00:53 +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 n4JL0rNc079699; Tue, 19 May 2009 16:00:53 -0500 (CDT) (envelope-from tinguely@casselton.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=casselton.net; s=ccnMail; t=1242766853; bh=i5VyQP8DyWfLWd0YDsN279xhZTgdOHVgQhbZqb4lmGA=; h=Date:From:Message-Id:To:Subject:In-Reply-To; b=GuTHc94mDIeUSgJDDaas8mC5/jzieXkl369V81E5ahTpc6NJ9hUsrIcANKb5sNcOo 3bwI/m7bMxThGqghNvlPbn0znN/KpfRytJRV5OVnz+MXABFCGxSLElUrq0N1dR7hVJ RYqq0yKakoAQvZBhNM+266gpFpJKz1p2KZF7oDNY= Received: (from tinguely@localhost) by casselton.net (8.14.3/8.14.2/Submit) id n4JL0qNx079696; Tue, 19 May 2009 16:00:52 -0500 (CDT) (envelope-from tinguely) Date: Tue, 19 May 2009 16:00:52 -0500 (CDT) From: Mark Tinguely Message-Id: <200905192100.n4JL0qNx079696@casselton.net> To: chuckr@telenix.org, freebsd-arm@freebsd.org In-Reply-To: <4A12D46B.8040808@telenix.org> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.2 (casselton.net [127.0.0.1]); Tue, 19 May 2009 16:00:53 -0500 (CDT) Cc: Subject: Re: crosscompiler and porting notes 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, 19 May 2009 21:00:54 -0000 sorry for the blank reply. It should have said Looking at the current sources for the GNU assembler, it appears to me that the "gas" sources do not have some new and important ARMv7 commands such as "dmb", "dsb", and "isb" (barriers). There ARMv6 equivalent command, but are not recommended. --- I looked at the Cortex document, the first thing that changed in ARMv7 is the information registers (for example information on the caches). You will need to replace the CPU information and intialization code. It would be nice to get an ARMv7 ARM. Someone with authority, like the FreeBSD Foundation may be needed. --- You will need to write a new cpufunc_asm_XXX.S file of routines. The existing routines assume the pmap will flush the caches on context change. --- I would suggest you start by using the existing memory model of flushing caches on context changes until we learn more on the Cortex cache - are they *really* not effected by the cache coloring problem. If you can get the console working, and are willing to put some test code into somewhere like pmap_bootstrap(), to test if the cache coloring is really fixed, I would write it up. --- I have some rough code for the new ARMv6/ARMv7 TLS registers, the tlb ASID and load and store exclusive. You have plenty to do to get the board up to single user, without having to worry about this other stuff. --Mark. From owner-freebsd-arm@FreeBSD.ORG Tue May 19 21:57:05 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 B3316106564A for ; Tue, 19 May 2009 21:57:05 +0000 (UTC) (envelope-from cwenqi@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by mx1.freebsd.org (Postfix) with ESMTP id 3F7728FC12 for ; Tue, 19 May 2009 21:57:04 +0000 (UTC) (envelope-from cwenqi@gmail.com) Received: by ey-out-2122.google.com with SMTP id 9so30948eyd.7 for ; Tue, 19 May 2009 14:57:04 -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=nj/9LvBuxBqLpsxcHV3WlmpQJPwKPC3bejarZ5iFOUw=; b=FQ4EOTR0+4Ak+WFECr2CxnlUgrJ+MIFWd3ARURPjpBjQBaXIk1l7b3kZcV45sETm1x AEBgfUrYZDqoZfVa8hO2/N6kEcHi0vkjkte+9XEbpYKe7XvD2QlZUt+exazbzU2e86Si 4acOoOCecFHcscrZTW7sqcCGOrGVEC9eF/4rY= 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=N4xJTH8gfakxPnfhSLX0wZT2NnhefaRIjLPGKSqr2H1X+q1StbBIl5CrpeoU0ywRpQ HV35XW5ZmOlFFMx5R3ddtz3G16jHQb+gwq7zuVXuCfEtZcsS3xQTNgBXGv38g2Scyyuq yMC/AxvS7UN6f/3TZN/Dp4AzTo2cxS46J4s14= MIME-Version: 1.0 Received: by 10.216.71.196 with SMTP id r46mr129176wed.54.1242768852931; Tue, 19 May 2009 14:34:12 -0700 (PDT) In-Reply-To: References: <4A12D46B.8040808@telenix.org> <200905192100.n4JL0qNx079696@casselton.net> Date: Tue, 19 May 2009 22:34:12 +0100 Message-ID: From: Wenqi Chen To: Mark Tinguely Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-arm@freebsd.org Subject: Re: crosscompiler and porting notes 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, 19 May 2009 21:57:05 -0000 forgot to mention the compiler revision: codesourcery arm2008q3 2009/5/19 Wenqi Chen : > codesourcery revison of GCC-4.3 does seem to support armv7-a compiler > flag/NEON instruction set. > > 2009/5/19 Mark Tinguely : >> >> sorry for the blank reply. It should have said >> >> Looking at the current sources for the GNU assembler, it appears to me t= hat >> the "gas" sources do not have some new and important ARMv7 commands such= as >> "dmb", "dsb", and "isb" (barriers). There ARMv6 equivalent command, but >> are not recommended. >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0--- >> I looked at the Cortex document, the first thing that changed in ARMv7 >> is the information registers (for example information on the caches). >> You will need to replace the CPU information and intialization code. >> >> It would be nice to get an ARMv7 ARM. Someone with authority, like the >> FreeBSD Foundation may be needed. >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0--- >> You will need to write a new cpufunc_asm_XXX.S file of routines. The >> existing routines assume the pmap will flush the caches on context chang= e. >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0--- >> I would suggest you start by using the existing memory model of flushing >> caches on context changes until we learn more on the Cortex cache - are = they >> *really* not effected by the cache coloring problem. >> >> If you can get the console working, and are willing to put some test >> code into somewhere like pmap_bootstrap(), to test if the cache coloring >> is really fixed, I would write it up. >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0--- >> I have some rough code for the new ARMv6/ARMv7 TLS registers, the tlb AS= ID >> and load and store exclusive. You have plenty to do to get the board up >> to single user, without having to worry about this other stuff. >> >> --Mark. >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >> > > > > -- > WC > --=20 WC From owner-freebsd-arm@FreeBSD.ORG Tue May 19 22:01: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 E6C801065678 for ; Tue, 19 May 2009 22:01:02 +0000 (UTC) (envelope-from cwenqi@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.26]) by mx1.freebsd.org (Postfix) with ESMTP id 78D778FC1F for ; Tue, 19 May 2009 22:01:02 +0000 (UTC) (envelope-from cwenqi@gmail.com) Received: by ey-out-2122.google.com with SMTP id 9so31406eyd.7 for ; Tue, 19 May 2009 15:01: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=yRp/wBuJArgR9MvmI6NVLAjExM7H7ZA3eMV3A9Z22XY=; b=hb1icYo74pfE+qHpmeMEHn0wTMnpw0r3+lh4dhLwUoXoId7rX2/ymv7CCA6kxTQr16 QAqZ0TGjQM/zd9upE2mSSxgOlPwNA+4L6jcGiRkwRYfR4zEeifd++r2rSDACDKdya26E d7YLPgywPZaCKPYlmbCoDp1iawTpmhnFX3mQ0= 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=p7JDGOe2ogaoSQgY3GnLEHEYVJLGMyu1bfyHdHGhQS6eJjOiJ5xPOAKRWVlSyFSmCB OqhiHcle6ttzCRJl7nTfPCpmFxtjD93twVDFgGmK4CaFA3VXlrlgSqCNNvwJd4QKCgAo zo3FEs4/15hvNYvW2NpTUuq/IHd4A+o27/99k= MIME-Version: 1.0 Received: by 10.216.54.83 with SMTP id h61mr132393wec.69.1242768803934; Tue, 19 May 2009 14:33:23 -0700 (PDT) In-Reply-To: <200905192100.n4JL0qNx079696@casselton.net> References: <4A12D46B.8040808@telenix.org> <200905192100.n4JL0qNx079696@casselton.net> Date: Tue, 19 May 2009 22:33:23 +0100 Message-ID: From: Wenqi Chen To: Mark Tinguely Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-arm@freebsd.org Subject: Re: crosscompiler and porting notes 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, 19 May 2009 22:01:03 -0000 codesourcery revison of GCC-4.3 does seem to support armv7-a compiler flag/NEON instruction set. 2009/5/19 Mark Tinguely : > > sorry for the blank reply. It should have said > > Looking at the current sources for the GNU assembler, it appears to me th= at > the "gas" sources do not have some new and important ARMv7 commands such = as > "dmb", "dsb", and "isb" (barriers). There ARMv6 equivalent command, but > are not recommended. > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0--- > I looked at the Cortex document, the first thing that changed in ARMv7 > is the information registers (for example information on the caches). > You will need to replace the CPU information and intialization code. > > It would be nice to get an ARMv7 ARM. Someone with authority, like the > FreeBSD Foundation may be needed. > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0--- > You will need to write a new cpufunc_asm_XXX.S file of routines. The > existing routines assume the pmap will flush the caches on context change= . > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0--- > I would suggest you start by using the existing memory model of flushing > caches on context changes until we learn more on the Cortex cache - are t= hey > *really* not effected by the cache coloring problem. > > If you can get the console working, and are willing to put some test > code into somewhere like pmap_bootstrap(), to test if the cache coloring > is really fixed, I would write it up. > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0--- > I have some rough code for the new ARMv6/ARMv7 TLS registers, the tlb ASI= D > and load and store exclusive. You have plenty to do to get the board up > to single user, without having to worry about this other stuff. > > --Mark. > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > --=20 WC From owner-freebsd-arm@FreeBSD.ORG Wed May 20 00:42: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 AFF6D106564A for ; Wed, 20 May 2009 00:42:17 +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 8D0DC8FC13 for ; Wed, 20 May 2009 00:42:17 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 16111 invoked from network); 20 May 2009 00:42:17 -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 ; 20 May 2009 00:42:16 -0000 Message-ID: <4A1351EC.2010904@telenix.org> Date: Tue, 19 May 2009 20:42:20 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.19 (X11/20090121) MIME-Version: 1.0 To: Mark Tinguely References: <200905192100.n4JL0qNx079696@casselton.net> In-Reply-To: <200905192100.n4JL0qNx079696@casselton.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: crosscompiler and porting notes 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, 20 May 2009 00:42:17 -0000 Mark Tinguely wrote: > sorry for the blank reply. It should have said > > Looking at the current sources for the GNU assembler, it appears to me that > the "gas" sources do not have some new and important ARMv7 commands such as > "dmb", "dsb", and "isb" (barriers). There ARMv6 equivalent command, but > are not recommended. > --- > I looked at the Cortex document, the first thing that changed in ARMv7 > is the information registers (for example information on the caches). > You will need to replace the CPU information and intialization code. > > It would be nice to get an ARMv7 ARM. Someone with authority, like the > FreeBSD Foundation may be needed. > --- > You will need to write a new cpufunc_asm_XXX.S file of routines. The > existing routines assume the pmap will flush the caches on context change. > --- > I would suggest you start by using the existing memory model of flushing > caches on context changes until we learn more on the Cortex cache - are they > *really* not effected by the cache coloring problem. > > If you can get the console working, and are willing to put some test > code into somewhere like pmap_bootstrap(), to test if the cache coloring > is really fixed, I would write it up. > --- > I have some rough code for the new ARMv6/ARMv7 TLS registers, the tlb ASID > and load and store exclusive. You have plenty to do to get the board up > to single user, without having to worry about this other stuff. Thanks for the comments, Mark, I'll use them to begin my code research. I would VERY much like to put my hands on whatever is written today, and I actually do hope that it's not all written today, I would like to add to the code, it's a learning experience. I also have probably a fiar amount of time, because I sent away for the Pandora about 6 weeks ago, and it looks like it won't ship for maybe another month or two. I'm really anxious for it to show up, but it does allow me to start the research right away. > > --Mark. From owner-freebsd-arm@FreeBSD.ORG Wed May 20 19:31:33 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 3E8E71065794 for ; Wed, 20 May 2009 19:31:33 +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 16EC08FC1A for ; Wed, 20 May 2009 19:31:32 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 26649 invoked from network); 20 May 2009 19:31:32 -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 ; 20 May 2009 19:31:32 -0000 Message-ID: <4A145A9B.2020001@telenix.org> Date: Wed, 20 May 2009 15:31:39 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.19 (X11/20090121) MIME-Version: 1.0 To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: what 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, 20 May 2009 19:31:35 -0000 I'm trying to see what compiler would be chosen, if any work is contemplated on the Cortex-A8 processor (BeagleBoard, Pandora, and I think the Nokia N800/N810, and others). From what I've read, LLVM has support for the V6, but isn't it true that the Bortex-A8 needs V7 compatibility? I'm not sure if the LLVM *can* yet do the task. Considering gcc instead, it's not until version 4.3.0 that they added the Cortex support, and I've heard that gcc on FreeBSD, currently at 4.2.1, isn't likely to move forward to anything 4.3.+ any time soon. So, I'm curious, what might be used for a Cortex port? I guess you might tell me that FreeBSD won't be supporting it any time soon, but I'd really not like to hear that (I wanted to see what I could personally help on that) but I think that what compiler to use, it's got to be my first question. I have time (my Pandora hasn't even arrived yet), I'm just very curious on this point (the compiler to use). From owner-freebsd-arm@FreeBSD.ORG Thu May 21 20:44:14 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 CCA141065670 for ; Thu, 21 May 2009 20:44:14 +0000 (UTC) (envelope-from gballet@gmail.com) Received: from mail-bw0-f165.google.com (mail-bw0-f165.google.com [209.85.218.165]) by mx1.freebsd.org (Postfix) with ESMTP id 575E88FC21 for ; Thu, 21 May 2009 20:44:14 +0000 (UTC) (envelope-from gballet@gmail.com) Received: by bwz9 with SMTP id 9so1299897bwz.43 for ; Thu, 21 May 2009 13:44:13 -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=6jvMt8jxy34qrttdKpSzhDfbiV8W9I1bCDmqevRuyJU=; b=MCJE9COzPyOEhgRIzaBmNft1S3MNgOU+TaHdJfs+1GIOarb1PKtXdDgAJtfpkfWV9w dOzUloParJJpfyO8dd5XlQuFyXoI/fBCs5bt1O3hxfA/JsAWySjsV1swqIoTyFPNIBeC /EjHOf3kc92ZLgWRxQ/qaVJBhDXZ8+0gDcEFk= 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=JPBL9t+Hcx26gNNazaa3T445z2VP4v1UGIbDB6PP0L7HD43/gx6qpX19CT6USnWZxy d+S0W+jEbfN6EvOgjEugSPhWfX9chZ0U3h6F8+AvRvc1scb1iUI0zwKBRW52g0tWu0AX m1eGJUWo/BCS4ce+6ZpUZH+xCl5lwIBYnV3k0= MIME-Version: 1.0 Received: by 10.204.60.148 with SMTP id p20mr2775214bkh.165.1242937091688; Thu, 21 May 2009 13:18:11 -0700 (PDT) Date: Thu, 21 May 2009 22:18:11 +0200 Message-ID: From: Guillaume Ballet To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: LMA != VMA when compiling a kernel 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, 21 May 2009 20:44:15 -0000 Hello list, I am still working on a port of FreeBSD to the beagleboard, and am currently working on enabling the VM. So far, I have loaded the kernel at phys_addr = virt_addr = 0x80000000, because that is where the RAM is. However, when enabling the VM, I would like the kernel virtual addresses to start with 0xC0000000 as they do on most other platform. Hence, I have been trying to set the ELF file sections' VMAs to something starting with 0xC and the LMAs to something starting with 0x8. It turns out that just setting KERNPHYSADDR and KERNVIRTADDR is not enough >.< If found a way to do this by chaning the script linker and adding AT after each section declaration, and it works fine. But it's tedious, hacky and lots of hardcoded values only work with my platform. Googling for ideas, I found that there has been some discussion about it barely a year ago. Yet, it doesn't seem to have yielded any tangible result. Would someone have addressed the progress in the mean time? I guess another way to look at it would be to work it around by also porting a full-fledged loader(8). A task which I have delayed to until I get a booting kernel - maybe not the wisest move :) Still, I'm curious about the possibility of specifying distinct LMAs and VMAs for the kernel executable. Guillaume From owner-freebsd-arm@FreeBSD.ORG Thu May 21 20:58:21 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 CF32A1065670 for ; Thu, 21 May 2009 20:58:21 +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 8D9DD8FC0C for ; Thu, 21 May 2009 20:58:21 +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 n4LKtfbx082858; Thu, 21 May 2009 14:55:41 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 21 May 2009 14:55:52 -0600 (MDT) Message-Id: <20090521.145552.410235390.imp@bsdimp.com> To: gballet@gmail.com From: "M. Warner Losh" In-Reply-To: References: 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: LMA != VMA when compiling a kernel 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, 21 May 2009 20:58:22 -0000 In message: Guillaume Ballet writes: : I am still working on a port of FreeBSD to the beagleboard, and am : currently working on enabling the VM. So far, I have loaded the kernel : at phys_addr = virt_addr = 0x80000000, because that is where the RAM : is. However, when enabling the VM, I would like the kernel virtual : addresses to start with 0xC0000000 as they do on most other platform. This isn't a bad idea... : Hence, I have been trying to set the ELF file sections' VMAs to : something starting with 0xC and the LMAs to something starting with : 0x8. It turns out that just setting KERNPHYSADDR and KERNVIRTADDR is : not enough >.< If found a way to do this by chaning the script linker : and adding AT after each section declaration, and it works fine. But : it's tedious, hacky and lots of hardcoded values only work with my : platform. Want to share? : Googling for ideas, I found that there has been some discussion about : it barely a year ago. Yet, it doesn't seem to have yielded any : tangible result. Would someone have addressed the progress in the mean : time? : : I guess another way to look at it would be to work it around by also : porting a full-fledged loader(8). A task which I have delayed to until : I get a booting kernel - maybe not the wisest move :) Still, I'm : curious about the possibility of specifying distinct LMAs and VMAs for : the kernel executable. Its already there, but requires a lot of code in the primary boot loader to call back into to do things like loading files and doing network I/O. Also, while a secondary boot loader makes sense in the higher end booting environment where you have lots of storage (say an SD or CF card), it doesn't make so much sense for a more constrained boot a ramdisk from flash setup. Warner From owner-freebsd-arm@FreeBSD.ORG Thu May 21 21:04:08 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 9B056106566B for ; Thu, 21 May 2009 21:04:08 +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 4CC048FC16 for ; Thu, 21 May 2009 21:04:08 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from DSPAM-Daemon (localhost [127.0.0.1]) by mx0.deglitch.com (Postfix) with SMTP id 706828FC1D for ; Fri, 22 May 2009 01:04:06 +0400 (MSD) Received: from orion.SpringDaemons.com (unknown [77.232.3.143]) by mx0.deglitch.com (Postfix) with ESMTPA id DF5098FC18; Fri, 22 May 2009 01:04:05 +0400 (MSD) Received: from orion (localhost [127.0.0.1]) by orion.SpringDaemons.com (Postfix) with SMTP id 33A193982B; Fri, 22 May 2009 01:04:45 +0400 (MSD) Date: Fri, 22 May 2009 01:04:39 +0400 From: Stanislav Sedov To: Guillaume Ballet Message-Id: <20090522010439.1ae3d8c1.stas@FreeBSD.org> In-Reply-To: References: Organization: The FreeBSD Project X-XMPP: ssedov@jabber.ru X-Voice: +7 916 849 20 23 X-PGP-Fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 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: Fri May 22 01:04:06 2009 X-DSPAM-Confidence: 0.9899 X-DSPAM-Improbability: 1 in 9809 chance of being spam X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 4a15c1c6994291674276043 Cc: freebsd-arm@freebsd.org Subject: Re: LMA != VMA when compiling a kernel 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, 21 May 2009 21:04:08 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 21 May 2009 22:18:11 +0200 Guillaume Ballet mentioned: > Hello list, > > I am still working on a port of FreeBSD to the beagleboard, and am > currently working on enabling the VM. So far, I have loaded the kernel > at phys_addr = virt_addr = 0x80000000, because that is where the RAM > is. However, when enabling the VM, I would like the kernel virtual > addresses to start with 0xC0000000 as they do on most other platform. > > Hence, I have been trying to set the ELF file sections' VMAs to > something starting with 0xC and the LMAs to something starting with > 0x8. It turns out that just setting KERNPHYSADDR and KERNVIRTADDR is > not enough >.< If found a way to do this by chaning the script linker > and adding AT after each section declaration, and it works fine. But > it's tedious, hacky and lots of hardcoded values only work with my > platform. > Does beagleboard use PXA cpu? I know only one place where the physical memory location for PXA is hardcoded, and I belive it should work fine after changing it... - -- Stanislav Sedov ST4096-RIPE -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAkoVwe0ACgkQK/VZk+smlYEfZgCfdTzYvcyQhghzClcHkXV3ccI7 8JwAn36Gw/pkJVS+jPEM3MiUiSqRKrOE =hWi6 -----END PGP SIGNATURE----- !DSPAM:4a15c1c6994291674276043! From owner-freebsd-arm@FreeBSD.ORG Sat May 23 16:43: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 AD64F10656A3 for ; Sat, 23 May 2009 16:43:35 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id 028968FC08 for ; Sat, 23 May 2009 16:43:34 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id n4NGhXEA000658; Sat, 23 May 2009 10:43:33 -0600 Message-Id: From: Rafal Jaworowski To: Guillaume Ballet In-Reply-To: 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: Sat, 23 May 2009 18:43:31 +0200 References: X-Mailer: Apple Mail (2.935.3) Cc: freebsd-arm@freebsd.org Subject: Re: LMA != VMA when compiling a kernel 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, 23 May 2009 16:43:36 -0000 On 2009-05-21, at 22:18, Guillaume Ballet wrote: > I am still working on a port of FreeBSD to the beagleboard, and am > currently working on enabling the VM. So far, I have loaded the kernel > at phys_addr = virt_addr = 0x80000000, because that is where the RAM > is. However, when enabling the VM, I would like the kernel virtual > addresses to start with 0xC0000000 as they do on most other platform. > > Hence, I have been trying to set the ELF file sections' VMAs to > something starting with 0xC and the LMAs to something starting with > 0x8. It turns out that just setting KERNPHYSADDR and KERNVIRTADDR is > not enough >.< If found a way to do this by chaning the script linker > and adding AT after each section declaration, and it works fine. But > it's tedious, hacky and lots of hardcoded values only work with my > platform. What exactly are your problems with getting 0xC0000000 as the KVA base? It seems that all our current ARM variations follow this route and they all use a single linker script, so there shouldn't be major problems doing likewise with yet another port.. > Googling for ideas, I found that there has been some discussion about > it barely a year ago. Yet, it doesn't seem to have yielded any > tangible result. Would someone have addressed the progress in the mean > time? > > I guess another way to look at it would be to work it around by also > porting a full-fledged loader(8). A task which I have delayed to until > I get a booting kernel - maybe not the wisest move :) Still, I'm > curious about the possibility of specifying distinct LMAs and VMAs for > the kernel executable. The loader(8) entity is separate from how the kernel is linked, so I don't think that problems with kernel virtual addresses you mention could be worked around at the loader(8) level. Kernel linking/mapping should be addressed independently of any booting method involved. Rafal