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!