Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1EOnOV-0003wz-Le for mharc-grub-devel@gnu.org; Sun, 09 Oct 2005 22:28:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EOnOT-0003uD-P0 for grub-devel@gnu.org; Sun, 09 Oct 2005 22:28:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EOnOS-0003sq-4w for grub-devel@gnu.org; Sun, 09 Oct 2005 22:28:01 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EOnOR-0003sn-W6 for grub-devel@gnu.org; Sun, 09 Oct 2005 22:28:00 -0400 Received: from [64.233.162.204] (helo=zproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EOnOS-0006lM-2L for grub-devel@gnu.org; Sun, 09 Oct 2005 22:28:00 -0400 Received: by zproxy.gmail.com with SMTP id x7so575752nzc for ; Sun, 09 Oct 2005 19:27:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-pgp-agent:x-mailer; b=gL7UeDlYUJY76X731wSdFP7bEilE1h5/IClC8pDT9BYy5UxeNHvIfJn/f9eZRahK3XG0u1KGV9ikKY+k9hsU5JoZynGivuMcpXAM8UIEkeNe/SE9Ypu6FEXRRa51rna8/kbC2G8I6/J5xWTIjZcaiSj+jJhYKr40lfVKM9iqydc= Received: by 10.36.227.29 with SMTP id z29mr3319774nzg; Sun, 09 Oct 2005 19:27:58 -0700 (PDT) Received: from ?192.168.1.100? ( [64.135.199.23]) by mx.gmail.com with ESMTP id 5sm3181165nzk.2005.10.09.19.27.56; Sun, 09 Oct 2005 19:27:58 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v734) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: grub-devel@gnu.org From: Andrei Warkentin Date: Sun, 9 Oct 2005 21:28:35 -0500 X-Pgp-Agent: GPGMail 1.1.1 (Tiger) X-Mailer: Apple Mail (2.734) Subject: Booting homebrew ELF kernel on NewWorld OpenFirmware 3.0? X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 02:28:02 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I trying to cobble together a simple Hello World ``kernel'' on the mac, and have a question concerning the booting specifics. I understand that OF 3.0 groks ELF, but the ELF file should contain some special information in the note section (and have the PT_NOTE thing). This special information entails the values for load-base and real-base (among other things) that are to be used. Here is where I become confused. There are plenty of warnings on the web (*BSD sites, usually) to not mess with load-base and real-base in OF 3.0, since doing so can inadvertently result in overwriting OF in flash, thus bricking the computer. I don't want to do that to my new iBook :-). Yet, looking at BSD's ofwboot, yaboot, and NewWorld booting code in Linux, I see that all of these mess with the load-base in the note descriptor - setting it to 0x4000 (which, interestingly enough is the default load- base in OF 1.0.5, and not a good one for linux at that) or 0x3000. Is there a reason for not leaving this at 0xffffffff thus using whatever the default OF 3.0 one is? (The BSD bootloader sites assure me it's a good one). I'm sorry if this a tad OT, but I realized this is probably the best place to ask this question (to which I can't find an answer anywhere) since you guys probably eat this stuff for lunch :-). Thank you very much and have a good day. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFDSdHZY/rXIPQviuERAoqSAJ9CBBGasgGbTP1daGKIhAOjwJoGTQCgmUKt hx7Pp0UFf8LtOnx/V9XWNRA= =Dlgh -----END PGP SIGNATURE-----