* kernel patch for QEMU ?
@ 2006-05-14 16:08 Atsushi Nemoto
2006-05-14 17:52 ` Ralf Baechle
2006-05-14 18:21 ` Thiemo Seufer
0 siblings, 2 replies; 5+ messages in thread
From: Atsushi Nemoto @ 2006-05-14 16:08 UTC (permalink / raw)
To: linux-mips; +Cc: Thiemo Seufer
Now I'm trying QEMU 0.8.1 on mips.
I found mips-test-0.1.tar.gz on QEMU download page and can run it
(thanks ths!), but I still can not run a kernel (current lmo git)
compiled by myself. My kernel stops after the famous "Checking for
'wait' instruction... available." message.
The mips-test-0.1 contains kernel 2.6.16-rc6. Is this a stock
kernel.org's kernel or lmo's kernel? Or is there any patch to make
kernel run on QEMU?
---
Atsushi Nemoto
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: kernel patch for QEMU ?
2006-05-14 16:08 kernel patch for QEMU ? Atsushi Nemoto
@ 2006-05-14 17:52 ` Ralf Baechle
2006-05-14 18:21 ` Thiemo Seufer
1 sibling, 0 replies; 5+ messages in thread
From: Ralf Baechle @ 2006-05-14 17:52 UTC (permalink / raw)
To: Atsushi Nemoto; +Cc: linux-mips, Thiemo Seufer
On Mon, May 15, 2006 at 01:08:46AM +0900, Atsushi Nemoto wrote:
> Now I'm trying QEMU 0.8.1 on mips.
>
> I found mips-test-0.1.tar.gz on QEMU download page and can run it
> (thanks ths!), but I still can not run a kernel (current lmo git)
> compiled by myself. My kernel stops after the famous "Checking for
> 'wait' instruction... available." message.
>
> The mips-test-0.1 contains kernel 2.6.16-rc6. Is this a stock
> kernel.org's kernel or lmo's kernel? Or is there any patch to make
> kernel run on QEMU?
Thiemo promised to send me patches so I hope it's only a matter of days
to get this fixed.
Ralf
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: kernel patch for QEMU ?
2006-05-14 16:08 kernel patch for QEMU ? Atsushi Nemoto
2006-05-14 17:52 ` Ralf Baechle
@ 2006-05-14 18:21 ` Thiemo Seufer
2006-05-15 1:55 ` Atsushi Nemoto
1 sibling, 1 reply; 5+ messages in thread
From: Thiemo Seufer @ 2006-05-14 18:21 UTC (permalink / raw)
To: Atsushi Nemoto; +Cc: linux-mips
Atsushi Nemoto wrote:
> Now I'm trying QEMU 0.8.1 on mips.
>
> I found mips-test-0.1.tar.gz on QEMU download page and can run it
> (thanks ths!), but I still can not run a kernel (current lmo git)
> compiled by myself. My kernel stops after the famous "Checking for
> 'wait' instruction... available." message.
>
> The mips-test-0.1 contains kernel 2.6.16-rc6. Is this a stock
> kernel.org's kernel or lmo's kernel? Or is there any patch to make
> kernel run on QEMU?
This kernel is stock lmo except for a small patch which allows clean
system shutdown (qemu 0.8.1 does not have the counterpart to it).
The patch should be completely irrelevant otherwise.
However, later kernels try to access the CP0 pagemask register which
is R10000 specific, IIRC Qemu throws an Reserved Instruction exception
on accessing it.
I use a heavily patched version of Qemu which mostly supports mips32r2,
it also has better decoding of CP0 accesses. My current patchset is
available at http://people.debian.org/~ths/qemu/qemu-patches-bogus2,
it needs more work before it is ready for inclusion, and may be
completely useless for anybody else, since it works ATM only on powerpc
hosts.
Thiemo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: kernel patch for QEMU ?
2006-05-14 18:21 ` Thiemo Seufer
@ 2006-05-15 1:55 ` Atsushi Nemoto
2006-05-15 14:23 ` Atsushi Nemoto
0 siblings, 1 reply; 5+ messages in thread
From: Atsushi Nemoto @ 2006-05-15 1:55 UTC (permalink / raw)
To: ths; +Cc: linux-mips
On Sun, 14 May 2006 19:21:51 +0100, Thiemo Seufer <ths@networkno.de> wrote:
> > The mips-test-0.1 contains kernel 2.6.16-rc6. Is this a stock
> > kernel.org's kernel or lmo's kernel? Or is there any patch to make
> > kernel run on QEMU?
>
> This kernel is stock lmo except for a small patch which allows clean
> system shutdown (qemu 0.8.1 does not have the counterpart to it).
> The patch should be completely irrelevant otherwise.
>
> However, later kernels try to access the CP0 pagemask register which
> is R10000 specific, IIRC Qemu throws an Reserved Instruction exception
> on accessing it.
Thanks. I'm looking output of "git-diff linux-2.6.16-rc6" but still
failed to find relevant changes...
The stock QEMU 0.8.1 works ok with vmlinux-r1 in mips-test-0.1 so it
should be something different on kernel side. Hmm...
---
Atsushi Nemoto
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: kernel patch for QEMU ?
2006-05-15 1:55 ` Atsushi Nemoto
@ 2006-05-15 14:23 ` Atsushi Nemoto
0 siblings, 0 replies; 5+ messages in thread
From: Atsushi Nemoto @ 2006-05-15 14:23 UTC (permalink / raw)
To: ths; +Cc: linux-mips
On Mon, 15 May 2006 10:55:13 +0900 (JST), Atsushi Nemoto <anemo@mba.ocn.ne.jp> wrote:
> The stock QEMU 0.8.1 works ok with vmlinux-r1 in mips-test-0.1 so it
> should be something different on kernel side. Hmm...
It seems the difference comes from configuration. If I enabled
CONFIG_DEBUG_SPINLOCK, I can run a kernel compiled from current git
tree. Also, if I used kernel-config in mips-test-0.1 and disabled
CONFIG_DEBUG_SPINLOCK, the kernel stops at the same place. So I'm
quite sure the option affects qemu's behavior. But no idea why ...
---
Atsushi Nemoto
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-05-15 14:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-14 16:08 kernel patch for QEMU ? Atsushi Nemoto
2006-05-14 17:52 ` Ralf Baechle
2006-05-14 18:21 ` Thiemo Seufer
2006-05-15 1:55 ` Atsushi Nemoto
2006-05-15 14:23 ` Atsushi Nemoto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox