From: ebiederm@xmission.com (Eric W. Biederman)
To: Pavel Roskin <proski@gnu.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: "Hearty AOL" for kexec
Date: 23 Oct 2002 09:03:54 -0600 [thread overview]
Message-ID: <m1hefdrycl.fsf@frodo.biederman.org> (raw)
In-Reply-To: <Pine.LNX.4.44.0210230926320.9286-100000@localhost.localdomain>
Pavel Roskin <proski@gnu.org> writes:
> Hello!
>
> I have tested the latest kexec patch (linux-2.5.44.x86kexec.diff) with
> the kernel 2.5.44. It works for me on AOpen AK-33 motherboard with 1GHz
> Athlon. I tried the same kernel and 2.4.20-pre10.
>
> I really want to see this feature in the kernel. It is very useful in
> embedded systems. Just imagine loading the bootstrap kernel, then
> downloading the new kernel over anything - HDLC, 802.11, USB, decrypting
> it from flash etc. Possibilities are infinite.
Yay!!!! My first embedded developer who doesn't think it is silly to
use a kernel as a bootloader :) Or at least the first to admit they
embedded developer.
I need to brush it off but I have a 16K user space that implements a
standard DHCP/TFTP network bootloader. 16K == sizeof(initrd)
> Believe me, this code is needed, and there will be kernel hackers using
> it, so if anything needs fixing, it will be fixed by people who know to
> fix it. It will be more an asset than a responsibility for the kernel
> maintainers.
>
> That said, I don't like the name kexec, and especially the work "execing"
> in arch/i386/config.in. I think "in-kernel bootloader" or something like
> that would be better. It is a reboot after all.
It is basically a kernel level exec system call.
But I will see if I can come up with better wording for arch/i386/config.in.
A mass renaming would probably be a hindrance at this point, unless I
see a name that really screams that it is the perfect name.
> Little fix: there is no need to add kexec.o twice to obj-$(CONFIG_KEXEC)
> in kernel/Makefile - it causes rebuilding kexec.o on every make. One time
> is enough.
Oh, thanks. When I updated my patch at some point that line must have
doubled.
> Little bug (missing feature): I cannot execute memtest.bin
> (http://www.memtest86.com/):
>
> ./kexec /boot/memtest.bin
> read error: Success
> Cannot determine the file type of /boot/memtest.bin
Sorry to be clear:
./kexec memtest
is the case that is expected to work.
My user space code currently understands two images formats.
bzImage 2.0 or greater and static ELF executables. So you need
the memtest86 static ELF executable.
> I'm using kexec-tools-1.2. The rest of the system is Red Hat 8.0.
Thanks for the success report.
Eric
next prev parent reply other threads:[~2002-10-23 14:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-23 13:47 "Hearty AOL" for kexec Pavel Roskin
2002-10-23 15:03 ` Eric W. Biederman [this message]
2002-10-23 16:58 ` Torrey Hoffman
2002-10-23 17:31 ` Richard B. Johnson
2002-10-23 17:43 ` Torrey Hoffman
2002-10-23 18:29 ` Pavel Roskin
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=m1hefdrycl.fsf@frodo.biederman.org \
--to=ebiederm@xmission.com \
--cc=linux-kernel@vger.kernel.org \
--cc=proski@gnu.org \
/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