From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 18 06:02:32 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 484B816A41F for ; Fri, 18 Nov 2005 06:02:32 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id B654C43D46 for ; Fri, 18 Nov 2005 06:02:31 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: by xproxy.gmail.com with SMTP id s9so106302wxc for ; Thu, 17 Nov 2005 22:02:31 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TBfQH1oUN9SRigf0Fi3PUS9chXN/Z0omc3sJS9dscWSxZ6EzFjVhqcsSfxPzEnrd/TgNcmSX8bOpZViZNBK+1VL0Am/Bn/ftZk4H3/tHKX6GpNXJE9CficWfDS2Z7kqc4iFSsYpzDTqhmOsFMO21zioiODysUKSjnhS9+9XJk3M= Received: by 10.70.74.20 with SMTP id w20mr3955742wxa; Thu, 17 Nov 2005 22:02:30 -0800 (PST) Received: by 10.70.105.13 with HTTP; Thu, 17 Nov 2005 22:02:30 -0800 (PST) Message-ID: <84dead720511172202x3f45b7f3j64273dac7f64f211@mail.gmail.com> Date: Fri, 18 Nov 2005 11:32:30 +0530 From: Joseph Koshy To: Freebsd Enthu In-Reply-To: <20051118014519.21083.qmail@web36415.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20051118014519.21083.qmail@web36415.mail.mud.yahoo.com> Cc: freebsd-hackers@freebsd.org Subject: Re: How do I control the load address in Elf header X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Nov 2005 06:02:32 -0000 > I am one of the firmware guys that is writing a Secondary Boot Loader th= at boots > FreeBSD kernel. From what I see in the ELF header for FreeBSD kernel, the= load > address seems to have a value of 0x80200000 which seems to be a Virtual = address > for me. If I want to put the Physical address where I want the FreeBSD to= go, > what are the FreeeBSD files I need to change? See loader(8) ... /usr/src/sys/boot/* AFAIR we switch to protected mode in the loader itself. -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshy