* [Qemu-devel] How linux kernel is directly loaded?
@ 2009-02-01 6:10 Thakur
2009-02-01 14:51 ` Blue Swirl
2009-02-01 19:36 ` Anthony Liguori
0 siblings, 2 replies; 4+ messages in thread
From: Thakur @ 2009-02-01 6:10 UTC (permalink / raw)
To: Qemu Development
Hi,
I was searching for code in qemu which is directly able to load linux
kernel with -k option. Which file implements it? Can someone point me to
location where this load process is described? My objective is to load
the Minix kernel in same fashion.
Thanks
Best Regards
- Thakur
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] How linux kernel is directly loaded?
2009-02-01 6:10 [Qemu-devel] How linux kernel is directly loaded? Thakur
@ 2009-02-01 14:51 ` Blue Swirl
2009-02-01 16:27 ` Thakur
2009-02-01 19:36 ` Anthony Liguori
1 sibling, 1 reply; 4+ messages in thread
From: Blue Swirl @ 2009-02-01 14:51 UTC (permalink / raw)
To: thakur, qemu-devel
On 2/1/09, Thakur <thakur@symmetricore.com> wrote:
> Hi,
>
> I was searching for code in qemu which is directly able to load linux
> kernel with -k option. Which file implements it? Can someone point me to
> location where this load process is described? My objective is to load
> the Minix kernel in same fashion.
For PC architecture, it's done in hw/pc.c. There are ELF, a.out and
binary load functions available, if you need them for Minix.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] How linux kernel is directly loaded?
2009-02-01 14:51 ` Blue Swirl
@ 2009-02-01 16:27 ` Thakur
0 siblings, 0 replies; 4+ messages in thread
From: Thakur @ 2009-02-01 16:27 UTC (permalink / raw)
To: qemu-devel
On Sun, 2009-02-01 at 16:51 +0200, Blue Swirl wrote:
> On 2/1/09, Thakur <thakur@symmetricore.com> wrote:
> > Hi,
> >
> > I was searching for code in qemu which is directly able to load linux
> > kernel with -k option. Which file implements it? Can someone point me to
> > location where this load process is described? My objective is to load
> > the Minix kernel in same fashion.
>
> For PC architecture, it's done in hw/pc.c. There are ELF, a.out and
> binary load functions available, if you need them for Minix.
>
>
I don't have much knowledge of internals of qemu. I know how u-boot
loads the linux kernel, so I was searching for similar pattern. :) How
does qemu know the entry point of the kernel?
Thanks
Regards
- Himanshu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] How linux kernel is directly loaded?
2009-02-01 6:10 [Qemu-devel] How linux kernel is directly loaded? Thakur
2009-02-01 14:51 ` Blue Swirl
@ 2009-02-01 19:36 ` Anthony Liguori
1 sibling, 0 replies; 4+ messages in thread
From: Anthony Liguori @ 2009-02-01 19:36 UTC (permalink / raw)
To: thakur, qemu-devel
Thakur wrote:
> Hi,
>
> I was searching for code in qemu which is directly able to load linux
> kernel with -k option. Which file implements it? Can someone point me to
> location where this load process is described? My objective is to load
> the Minix kernel in same fashion.
>
It's different for every architecture but since you're interested in
Minix, I assume you're interested in x86.
The important bits are in hw/pc.c:load_linux().
Currently, the way this is implemented is by loading the kernel into
memory and creating a tiny option rom that hijacks int19. int19 is the
BIOS boot interrupt so this allows us to run our own tiny boot loader
that loads the kernel that we previously loaded into memory.
Depending on how different the Minix boot protocol is, it should be
relatively easy to adapt.
Regards,
Anthony Liguori
> Thanks
>
> Best Regards
> - Thakur
>
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-02-01 19:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-01 6:10 [Qemu-devel] How linux kernel is directly loaded? Thakur
2009-02-01 14:51 ` Blue Swirl
2009-02-01 16:27 ` Thakur
2009-02-01 19:36 ` Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).