From: ebiederm@xmission.com (Eric W. Biederman)
To: Linus Torvalds <torvalds@transmeta.com>, <linux-kernel@vger.rutgers.edu>
Subject: Q: Linux rebooting directly into linux.
Date: 09 Nov 2000 01:18:24 -0700 [thread overview]
Message-ID: <m17l6deey7.fsf@frodo.biederman.org> (raw)
I have recently developed a patch that allows linux to directly boot
into another linux kernel. With the code freeze it appears
inappropriate to submit it at this time.
Linus in principal do you have any trouble with this kind of
functionality?
The immediate applications of this code, are:
- Clusters can network can network boot over arbitrary network
interfaces, and the network driver only needs to be written and
maintained in one place.
- Multiplatform boot loaders can be written.
- The Linux kernel can be included in a boot ROM and you can still
boot other linux kernels.
- Kernel developers can have a fast interface for booting into a
development kernel.
The interface is designed to be simple and inflexible yet very
powerful. To that end the code just takes an elf binary, and a
command line. The started image also takes an environment generated
by the kernel of all of the unprobeable hardware details.
ELF was picked for it's multiplatform support and the sheer simplicity
of it's program header. Plus you can use standard tools to generate
elf images fairly easily.
The environment passed to a loaded image is designed to expand and
handle new data types without breaking old decoders. They just break
because the don't support the new hardware :)
Linus the path I envision is that this code gets integrated early in
2.5. This includes cleaning up the boot paths so all our C code has
to deal with is this new format. Then backporting the functionality
to 2.4 and possibly 2.2.
The kernel patches can be found in:
ftp://ftp.linuxnetworx.com/pub/kexec-patches-1.0.tar.gz
(This is a patchset with 4 patches
1 Ingo Molanar's improved apic support
2 My enhancements upon it so we restore the apics to their boot
state when we shut down.
3 My 2 line patch to make certain that in smp_send_stop
the last cpu running is the boot cpu. (Required by the MP spec...)
4 The code to support execing a new kernel. )
The code to generate a image bootable by this new syscall is in:
ftp://ftp.linuxnetworx.com/pub/mkelfImage-1.0.tar.gz
(This is a perl script that takes a kernel and possibly a ramdisk
and a command line and generates an elfimage suitable to be booted
in this new infrastructure)
Eric
p.s. Linus the code is not included inline because I don't expect it to
be included just yet.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next reply other threads:[~2000-11-09 14:43 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-09 8:18 Eric W. Biederman [this message]
[not found] ` <3A0ABB0C.99075A61@holly-springs.nc.us>
2000-11-11 19:46 ` Q: Linux rebooting directly into linux Eric W. Biederman
2000-11-11 22:46 ` Adam Lazur
2000-11-12 0:06 ` Eric W. Biederman
[not found] ` <20001109113524.C14133@animx.eu.org>
2000-11-11 20:05 ` Eric W. Biederman
2000-11-11 20:33 ` H. Peter Anvin
2000-11-12 0:09 ` Eric W. Biederman
2000-11-12 0:32 ` H. Peter Anvin
2000-11-12 6:31 ` Eric W. Biederman
2000-11-11 22:11 ` Adam Lazur
2000-11-12 0:00 ` Eric W. Biederman
2000-11-14 14:49 ` Werner Almesberger
2000-11-16 17:33 ` Eric W. Biederman
2000-11-19 2:24 ` Werner Almesberger
2000-11-19 7:20 ` Eric W. Biederman
2000-11-19 13:25 ` Werner Almesberger
2000-11-19 20:14 ` Eric W. Biederman
2001-01-18 16:18 ` Eric W. Biederman
2000-11-14 8:13 ` Erik Andersen
2000-11-14 14:59 ` Eric W. Biederman
2000-11-15 23:30 ` Erik Andersen
2000-11-16 6:19 ` Eric W. Biederman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m17l6deey7.fsf@frodo.biederman.org \
--to=ebiederm@xmission.com \
--cc=linux-kernel@vger.rutgers.edu \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox