All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] qemu static elf boot
@ 2003-07-23 20:08 Nicolas Ollinger
  2003-07-24  8:10 ` Fabrice Bellard
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Ollinger @ 2003-07-23 20:08 UTC (permalink / raw)
  To: qemu-devel

Hi,

I just tried qemu and I am really impressed by its speed!

By reading vl.c, more precisely the part that loads the bzImage, I
realized how messy the linux boot process is (please don't flame :-)).

Would it be possible to have a program in the spirit of vl which will
just run a standard static ELF binary, passing the command line parameters
to it. This would allow booting some other OS's kernel with more direct
boot process, like for example NetBSD.

A sample (gzipped) ELF kernel is available at the URL

ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6/i386/binary/kernel/netbsd-GENERIC.gz

Regards,
Nicolas.
-- 

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: [Qemu-devel] qemu static elf boot
@ 2003-07-24 13:08 Nicolas Ollinger
  2003-07-27 21:00 ` Nicolas Ollinger
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Ollinger @ 2003-07-24 13:08 UTC (permalink / raw)
  To: qemu-devel

Hi,

> A static ELF loader would be easy to add, but I don't know what is the
> standard way to pass command line parameters to an OS. I agree that it
> is an important feature. Do you have images of a complete netbsd system
> (kernel with serial console + small disk image) ?

I put a small disk image, kernels, and some files and instructions to use
them under bochs (for comparison purpose) at the following URL:

http://www.ens-lyon.fr/~nollinge/netbsd_bochs/

It works under bochs but it is quite slow (PII/333 here).

Concerning the boot process, I think the following files are worth
reading, even if they are very NetBSD involved:

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/i386/stand/boot/boot2.c?rev=1.1&content-type=text/x-cvsweb-markup
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/i386/stand/lib/exec.c?rev=1.18&content-type=text/x-cvsweb-markup
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/lib/libsa/loadfile.c?rev=1.7.4.2&content-type=text/x-cvsweb-markup
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/i386/stand/lib/startprog.S?rev=1.3&content-type=text/x-cvsweb-markup

=> [bootit] calls [exec_netbsd] calls [loadfile] calls [startprog].

Some involved headers:

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/sys/reboot.h?rev=1.20&content-type=text/x-cvsweb-markup
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/sys/boot_flag.h?rev=1.3&content-type=text/x-cvsweb-markup
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/i386/stand/lib/bootinfo.h?rev=1.5&content-type=text/x-cvsweb-markup

A more general source of information concerning multi-OS booting would be
a complex bootloader like GRUB.

Nicolas.
-- 

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

end of thread, other threads:[~2003-07-27 21:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-23 20:08 [Qemu-devel] qemu static elf boot Nicolas Ollinger
2003-07-24  8:10 ` Fabrice Bellard
2003-07-24 13:08 Nicolas Ollinger
2003-07-27 21:00 ` Nicolas Ollinger

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.