[Top] [All Lists]

Re: Emulating MIPS -- please help!

To: Chris Boot <>
Subject: Re: Emulating MIPS -- please help!
From: Thiemo Seufer <>
Date: Wed, 29 Mar 2006 00:58:27 +0100
In-reply-to: <>
Original-recipient: rfc822;
References: <>
User-agent: Mutt/1.5.11+cvs20060126
On Tue, Mar 28, 2006 at 09:39:02PM +0100, Chris Boot wrote:
> Hi all,
> I'm desperately trying to get a MIPS emulator running Linux, and while 
> I've managed to get gxemul and (I think) qemu running, I can't for the 
> life of me get them to (1) output anything or (2) use an initrd.
> Can anyone post some instructions and, perhaps, a .config for 2.6.16 so 
> I can get some output like kernel boot messages and a login screen?
> I've got gxemul emulating code and running a kernel, which I can test by 
> stopping emulation and stepping the code. Qemu seems to boot my 
> qemu-specific kernel but I get no output and qemu appears to hang (won't 
> take keyboard input).

VGA support for qemu isn't there yet, use -nographics to get the serial
console output.

> I can't seem to get either emulator to load my 
> initrd, but that doesn't really matter at this stage since I can't see 
> anything anyway (I have no idea how to using gxemul, and qemu refuses to 
> load the image).

Current qemu confuses virtual and physical adresses when loading initrds,
this and a bunch of other bugs are fixed in a set of patches I have.
Note that these are work in progress, and may cause different bugs.
Notably, the gcc4 support patch won't work on x86, and probably only on
powerpc. It has, however, emulated IDE support, I use a self-compiled
qemu kernel and a Debian/mips image to boot from, no ramdisk. The
patchset is available at

Use at your own risk.


<Prev in Thread] Current Thread [Next in Thread>