Subject: Re: The current status of ofwboot.xcf?
To: Chris Tribo <ctribo@college.dtcc.edu>
From: Lars Nordlund <lars.nordlund@hem.utfors.se>
List: port-macppc
Date: 11/20/2003 22:58:29
On Sat, Nov 15, 2003 at 02:28:09AM -0500, Chris Tribo wrote:
> 
> 	Ow my brain, could this have anything to do with the recent 
> Non-executable stack changes that don't quite get recombobulated from 
> ofwboot.elf to ofwboot.xcf by our elf2ecoff tool?

So far I have only come to the conclusion that something breaks during
compiling/linking of the ofwboot program and/or kernel. There have not
been any changes in the actual ofwboot code, I think. Only in the tool
chain and kernel.

And what is the story on xcoff vs. elf here? I have been looking for
documentation on this but all I can find is description of how open
firmware can load elf binaries. The kernel is elf, but is it not the
task of the ofwboot program to load the kernel? Is open firmware
involved in this process also, or will it just load the ofwboot and then
be gone and leave all control over to ofwboot?

How far from the truth am I when I say:

Open Firmware finds ofwboot.xcf. ofwboot.xcf finds the bootxx at the
beginning of the NetBSD root partition. bootxx understands NetBSD
filesystems and finds the kernel that Open Firmware specified. The
kernel loads.

How much debugging can be done in the ofwboot program? Is it possible to
do remote debugging and actually step the code somehow? ofwboot breakage
has been a splinter in my eye for as long as I have owned my iBook.


Best regards
	Lars Nordlund