From: Albert Herranz <albert_herranz@yahoo.es>
To: Ming Lei <mlei@Brocade.COM>
Cc: kexec@lists.infradead.org
Subject: RE: about ppc32/kexec
Date: Thu, 16 Apr 2009 22:32:10 +0000 (GMT) [thread overview]
Message-ID: <415970.75253.qm@web28316.mail.ukl.yahoo.com> (raw)
Hi,
> I don't understand why you choose to turn the MMU off on
> ppc.. Is there
> any practical reason? On Freescale 85xx which is close to
> PPC44x, I did
> not turn off MMU(I cannot) and I just rely on the current
> virtual to
> physical mapping to jump to the start address to execute
> the second
> kernel.
kexec is designed to boot whatever self contained executable image you want (linux or any other binary). In fact, the ppc port was developed on a GameCube, and was designed to boot Linux and non-Linux binaries from Linux.
It currently avoids making assumptions about in-place memory mappings and works in real addressing mode.
The MMU is turned off to switch to real mode addressing. The relocation code works in real addressing mode to copy the image to its final place and then jumps to the entry point of the loaded image, in real addressing mode.
On kexec-tools, depending on the type of executable image loaded, a small stub is used as the entry point which setups whatever environment (address mappings if needed, etc.) the loaded binary expects, and then jumps to the actual entry point of the binary.
In this way, the setup of the different possible environments for the different types of binary images than can be loaded is moved from kernelspace to userspace. The interface between the kernel and kexec-tools is well defined and constant.
On platforms that cannot turn the MMU off you may need to choose another approach. And you may need to fix kexec-tools too to account for that.
Cheers,
Albert
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next reply other threads:[~2009-04-16 22:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-16 22:32 Albert Herranz [this message]
2009-04-16 23:25 ` about ppc32/kexec Ming Lei
-- strict thread matches above, loose matches on Subject: below --
2009-04-17 10:41 Albert Herranz
2009-04-22 10:40 ` Eric W. Biederman
[not found] <95529.61291.qm@web28312.mail.ukl.yahoo.com>
2009-04-16 18:28 ` Ming Lei
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=415970.75253.qm@web28316.mail.ukl.yahoo.com \
--to=albert_herranz@yahoo.es \
--cc=kexec@lists.infradead.org \
--cc=mlei@Brocade.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