Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Building current kernel for Qemu
@ 2008-04-19 22:23 David Daney
  2008-04-19 23:08 ` Thiemo Seufer
  0 siblings, 1 reply; 3+ messages in thread
From: David Daney @ 2008-04-19 22:23 UTC (permalink / raw)
  To: linux-mips

I would like to build a current kernel for mipsel on qemu.  However it
seems that the qemu target was recently removed.

I tried building a plain malta kernel vmlinux, but there is no output on
the console when trying to boot it.  The Debian 2.6.18 qemu kernel seems
to work well though.

Do you have to do anything special to the kernel to run on qemu?

How does one go about building a kernel for qemu from current kernel
sources?

Thanks in advance for any insight into this,
David Daney

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Building current kernel for Qemu
  2008-04-19 22:23 Building current kernel for Qemu David Daney
@ 2008-04-19 23:08 ` Thiemo Seufer
  2008-04-19 23:16   ` David Daney
  0 siblings, 1 reply; 3+ messages in thread
From: Thiemo Seufer @ 2008-04-19 23:08 UTC (permalink / raw)
  To: David Daney; +Cc: linux-mips

David Daney wrote:
> I would like to build a current kernel for mipsel on qemu.  However it
> seems that the qemu target was recently removed.
> 
> I tried building a plain malta kernel vmlinux, but there is no output on
> the console when trying to boot it.  The Debian 2.6.18 qemu kernel seems
> to work well though.
> 
> Do you have to do anything special to the kernel to run on qemu?

Nothing special is needed for the kernel. You need to start with
e.g. "qemu-system-mipsel -M malta" to select Qemu's malta machine
emulation.

> How does one go about building a kernel for qemu from current kernel
> sources?

The special qemu kernel is now deprecated, as the malta kernel is a
full replacement which corresponds better to real existing hardware.

This is btw. also true for Qemu itself, the mips_r4k machine is still
there because
 a) uBoot supports it as the only mips Qemu target
 b) Some out-of-tree machine definitions use it as a baseline
    configuration.


Thiemo

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Building current kernel for Qemu
  2008-04-19 23:08 ` Thiemo Seufer
@ 2008-04-19 23:16   ` David Daney
  0 siblings, 0 replies; 3+ messages in thread
From: David Daney @ 2008-04-19 23:16 UTC (permalink / raw)
  To: Thiemo Seufer; +Cc: linux-mips

Thiemo Seufer wrote:
> David Daney wrote:
>   
>> I would like to build a current kernel for mipsel on qemu.  However it
>> seems that the qemu target was recently removed.
>>
>> I tried building a plain malta kernel vmlinux, but there is no output on
>> the console when trying to boot it.  The Debian 2.6.18 qemu kernel seems
>> to work well though.
>>
>> Do you have to do anything special to the kernel to run on qemu?
>>     
>
> Nothing special is needed for the kernel. You need to start with
> e.g. "qemu-system-mipsel -M malta" to select Qemu's malta machine
> emulation.
>   
Thanks Thiemo,  the '-M malta' is all I was missing.  I am now running
with the current git tip.

David Daney

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-19 23:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-19 22:23 Building current kernel for Qemu David Daney
2008-04-19 23:08 ` Thiemo Seufer
2008-04-19 23:16   ` David Daney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox