All of lore.kernel.org
 help / color / mirror / Atom feed
* Booting homebrew ELF kernel on NewWorld OpenFirmware 3.0?
@ 2005-10-10  2:28 Andrei Warkentin
  2005-10-10  8:08 ` Olaf Hering
  0 siblings, 1 reply; 6+ messages in thread
From: Andrei Warkentin @ 2005-10-10  2:28 UTC (permalink / raw)
  To: grub-devel

-----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-----



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-10-16 16:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-10  2:28 Booting homebrew ELF kernel on NewWorld OpenFirmware 3.0? Andrei Warkentin
2005-10-10  8:08 ` Olaf Hering
2005-10-10 15:03   ` Andrei Warkentin
2005-10-10 22:01     ` Olaf Hering
2005-10-15 22:35   ` Andrei Warkentin
2005-10-16 16:19     ` Hollis Blanchard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.