Re: [ANNOUNCE][CFT] kexec for v2.5.48 && kexec-tools-1.7

From: Eric W. Biederman (ebiederm@xmission.com)
Date: Tue Nov 19 2002 - 12:42:06 EST


Dave Hansen <haveblue@us.ibm.com> writes:

> Eric W. Biederman wrote:
> > Dave Hansen <haveblue@us.ibm.com> writes:
> >>The NUMAQ is another story, though. I get nothing after "Starting new
> kernel".
>
> >>But, I wasn't expecting much. The NUMAQ is pretty weird hardware and god
> knows
>
> >>what is actually happening. I'll try it some more when I'm more confident in
> >>what I'm doing.
> > I suspect the hardware shutdown and start up logic for NUMAQ cpus needs some
> > special handling. Does kexec_test not print anything, or were you not patient
>
> > enough?
>
> Starting new kernel
> kexec_test 1.6 starting...
[snip successful run of kexec_test]
 

Hmm. So it looks like you can make bios calls, on the NUMAQ machine.
It is worth a try to see if "kexec --real_mode bzImage...." will start
up your kernel. Probably not but at least the basic mechanism of kexec
is working. I would be very surprised if you couldn't at least start
a uniprocessor kernel.

> I have a couple of ideas. But, first, is it hard to reconstruct the memory map?

>From your kexec_test run, your memory map...

> E820 Memory Map.
> 000000000009FC00 @ 0000000000000000 type: 00000001
> 00000000EFF00000 @ 0000000000100000 type: 00000001
> 0000000000180000 @ 00000000FFE80000 type: 00000002
> 0000000000009000 @ 00000000FEC00000 type: 00000002
> 0000000100000000 @ 0000000100000000 type: 00000001
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The e820 memory map is printed out on boot up.
>
> Will all 1GB systems have the same memory map?

Most will have pretty much the same memory map, but in general all systems
with same amount of ram will have different memory maps.

> Do you have documentation of the
> format? I don't think that any of these qualify as the "right thing". But, as
> hacks, they should keep me happy for a bit.
>
> For now, I can write a quick script to fix it: --command-line="`memscript`"
>
> Until it is working a --hack-mem option might be a good idea
>
> Perhaps we could just save a copy off when the kernel loads for the first
> time. If we export it somewhere, the kexec executable can just copy it. For
> now, we can just printk it and paste it into each version of kexec that we
> compile.

Yep, essentially that is what needs to happen.

Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:28 EST