Ollie Lho <[EMAIL PROTECTED]> writes:

> Eric,
>       Can we return from and ELF file to the ELF loader in LinuxBIOS

Returning from ELF is possible.  So far I've specced it as bootloader
dependent.  Ant it isn't currently implemented in linuxBIOS.  But
linuxBIOS is also not being stomped by the loaded image.

> ?? For example, LinuxBIOS loads memtest86 for some memory test, if the
> memory is O.K. then it return with something like exit(0) to the ELF
> loader. The ELF loader then loads the real payload (Etherboot or Kernel). How
> does the stack been setup for the ELF laoder and Image
> for your UBE ?? 

Not at all currently.

> Is it possible to do things in this way ??

Definentily.  Etherboot has support for this already, so it is doable.
It is my observation that everyone seems to want different behavior
for the boot process.  So I really want to get a set of miny boot
loaders into the linuxBIOS tree.  So people can easily implement the
policy they want (like call and return) and still have a convient
place to share the code.

 
> P.S. Does memtest work under Linux ?? Or it has to be run in a
> non-os enviroment ??

memtest reads and writes to all of memory, it even relocates itself
so it can test the memory it is sitting on.  It needs a non-os
environment.  Though I can load it from linux.  So except for the fact
it works under linuxBIOS it is a lousy example.  memtest86 is harder
to return from than any program I know.   

Although one of my favortite linuxBIOS examples is to netboot
memtest86 with etherboot.  Hit ESC on the serial console, have
linuxBIOS reboot (because in memtest86 ESC does the reboot via
keyboard controller) and then look at memtest86 back on the screen
again.
 

Eric

Reply via email to