SUCCESS!!! ElfBoot loading images over linuxBIOS... (fwd)
Eugene.Leitl at lrz.uni-muenchen.de
Tue Jan 15 01:35:42 PST 2002
-- Eugen* Leitl <a href="http://leitl.org">leitl</a>
ICBMTO: N48 04'14.8'' E11 36'41.2'' http://www.leitl.org
57F9CFD3: ED90 0433 EB74 E4A9 537F CFF5 86E7 629B 57F9 CFD3
---------- Forwarded message ----------
Date: 15 Jan 2002 02:26:22 -0700
From: Eric W. Biederman <ebiederman at lnxi.com>
To: LinuxBIOS <linuxbios at lanl.gov>
Subject: SUCCESS!!! ElfBoot loading images over linuxBIOS...
I have just successfully created a version of elfboot.c that allows
you to load an image over linuxBIOS is running in ram. Executables
trying to load ontop of linuxBIOS has been one of the biggest problems
with the elfboot stuff. So it should be much more user friendly now.
I move linuxBIOS out of the way to the very top of memory at the last
possible instant. So this should not have much of an impact on
Tommorrow my aim is to clean up and check this code in.
And of course a more detailed description.
/* The problem:
* Static executables all want to share the same addresses
* in memory because only a few addresses are reliably present on
* a machine, and implementing general relocation is hard.
* The solution:
* - Allocate a buffer twice the size of the linuxBIOS image.
* - Anything that would overwrite linuxBIOS copy into the lower half of
* the buffer.
* - After loading an ELF image copy linuxBIOS to the upper half of the
* - Then jump to the loaded image.
* - Nearly arbitrary standalone executables can be loaded.
* - LinuxBIOS is preserved, so it can be returned to.
* - The implementation is still relatively simple,
* and much simpler then the general case implemented in kexec.
More information about the Beowulf