Thread (24 messages) 24 messages, 4 authors, 2010-09-21

Re: Generating elf kernel ?

From: tiejun.chen <hidden>
Date: 2010-09-16 02:36:19

Scott Wood wrote:
On Wed, 15 Sep 2010 16:27:10 +0800
"tiejun.chen" [off-list ref] wrote:
quoted
It's impossible to boot PPC vmlinux format directly if you only change the
original entry point address, 0xc0000000.
Why?  That's pretty much what the bootwrapper does.  Our hypervisor has
directly booted vmlinux this way.
Maybe you misunderstand what I mean.

Although you can change entry point of vmlinux
1> can you load the Linux vmlinux directly to the physical address '0' on
current bootloader?
2> additionally you have to find a way to pass dtb to the native vmlinux.

I believe the hypervisor can boot vmlinux directly. But your so-called vmlinux
should be guest OS. And the hypervisor will handle/assit TLB exception for the
guest OS on MMU. Right?  So you can use the hypervisor to load vmlinux to any
physical address as you expect. But the guest OS should not be same as the
native Linux.
Note that in recent kernels physaddr is even set to zero, allowing the
ELF loader to just use that instead of magically knowing the kernel
wants to go at address zero.
Sure.
quoted
For kernel the following is as default:
v:0xc0000000 --> p:0x0
That mapping is set up by code at the entry point of vmlinux, not by
the bootwrapper.
Absolutely.

Tiejun
-Scott
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help