From: Werner Almesberger <wa@almesberger.net>
To: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [CFT] kexec syscall for 2.5.43 (linux booting linux)
Date: Sat, 19 Oct 2002 14:18:06 -0300 [thread overview]
Message-ID: <20021019141806.E7951@almesberger.net> (raw)
In-Reply-To: <m13cr2zs99.fsf@frodo.biederman.org>; from ebiederm@xmission.com on Sat, Oct 19, 2002 at 03:34:42AM -0600
Eric W. Biederman wrote:
> Cool. What fails with X11. Fixing it might be as simple as calling
> int 0x10 early in the new image.
The graphic engine (i810) simply doesn't switch back to text mode.
Yes, 0x10 helps. I've attached a little patch that does this in a
relatively safe way. (Alternative, one could also use set_80x25,
but I think always forcing mode 3 is slightly more reliable.
Except for MGA users, of course :-)
If you get a new boot loader type code from Peter Anvin, this
should even be good enough for inclusion into the mainstream
kernel. Alternatively, we could also pick a new loader flag to
indicate that the firmware didn't initialize the system.
> [vmlinux] specifies incorrect physical
> addresses, and it expects to be passed a whole host of strange values,
> in weird places.
I see. Perhaps you could say then that mkelfImage fixes flaws in
the vmlinux ELF image meta-data, or such:
| A kernel reformater is makes images that seem to boot more reliably is at:
| ftp://ftp.lnxi.com/pub/mkelfImage/mkelfImage-1.17.tar.gz
This sounds more like "if I kick it here, it usually works,
but I have no idea why" :-)
And yes, if it's not too intrusive, fixing the ELF meta-data
along with the addition of kexec might be a good idea.
- Werner
---------------------------------- cut here -----------------------------------
--- linux-2.5.44/arch/i386/boot/video.S.orig Sat Oct 19 12:55:14 2002
+++ linux-2.5.44/arch/i386/boot/video.S Sat Oct 19 13:51:19 2002
@@ -148,6 +148,13 @@
cmpb $0x10, %bl # No, it's a CGA/MDA/HGA card.
je basret
+ cmpb $0xff,type_of_loader # are we using kexec ?
+ jne novgareset
+
+ movw $0x3, %ax # reset EGA/VGA to 80x25 text
+ int $0x10
+
+novgareset:
incb adapter
movw $0x1a00, %ax # Check EGA or VGA?
int $0x10
--
_________________________________________________________________________
/ Werner Almesberger, Buenos Aires, Argentina wa@almesberger.net /
/_http://www.almesberger.net/____________________________________________/
next prev parent reply other threads:[~2002-10-19 17:12 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-18 19:59 [CFT] kexec syscall for 2.5.43 (linux booting linux) Eric W. Biederman
[not found] ` <20021018173248.E14894@almesberger.net>
[not found] ` <m1bs5rz1d6.fsf@frodo.biederman.org>
[not found] ` <20021018231540.C7951@almesberger.net>
[not found] ` <20021019025309.A24579@almesberger.net>
[not found] ` <m17kgfyltc.fsf@frodo.biederman.org>
[not found] ` <20021019040600.D7951@almesberger.net>
2002-10-19 9:34 ` Eric W. Biederman
2002-10-19 17:18 ` Werner Almesberger [this message]
2002-10-19 17:37 ` Eric W. Biederman
2002-10-21 23:11 ` [Fastboot] " Andy Pfiffer
2002-10-22 4:18 ` Eric W. Biederman
2002-10-22 6:04 ` Eric W. Biederman
2002-10-22 8:33 ` Eric W. Biederman
2002-10-22 3:57 ` Rob Landley
2002-10-22 14:48 ` Eric W. Biederman
2002-10-22 16:02 ` Eric W. Biederman
2002-10-22 16:27 ` erich
2002-10-23 2:23 ` Eric W. Biederman
2002-10-22 16:30 ` erich
2002-10-22 23:27 ` Andy Pfiffer
2002-10-22 23:32 ` Andy Pfiffer
2002-10-22 8:30 ` Werner Almesberger
2002-10-22 8:55 ` Eric W. Biederman
2002-10-22 23:17 ` Andy Pfiffer
2002-10-23 6:29 ` Eric W. Biederman
2002-10-23 17:11 ` Andy Pfiffer
2002-10-24 17:10 ` Eric W. Biederman
2002-10-28 7:45 ` Kasper Dupont
2002-10-28 8:24 ` Eric W. Biederman
2002-10-28 8:48 ` Kasper Dupont
2002-10-28 17:14 ` 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=20021019141806.E7951@almesberger.net \
--to=wa@almesberger.net \
--cc=ebiederm@xmission.com \
--cc=linux-kernel@vger.kernel.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