There are three kinds of good simulators to emulat
时间:2009-05-07 来源:bob_zhang2004
There are three kinds of good simulators to emulates MIPS cpu.
They emulates MIPS demo board named “mips malta” board.
l OVPSim http://www.linux-mips.org/wiki/OVPsim
l Gxemul http://gavare.se/gxemul/
l QEMU www.qemu.org
About mips demo board named mips_malta:
http://www.linux-mips.org/wiki/Mips_Malta
About these simulators, their same pity is they don’t have detailed documents about how to compile and configure the linux kernel to make them run on these simulators.
Generally speaking, they only provided a binary vmlinux,this is useless for us, we want to compile kernel source to generate a vmlinux.
1, OVPSim:
http://www.linux-mips.org/wiki/OVPsim
It seems that is good, but it is working on windowsXP ,while we are developer based-on-linux.
What ‘s more ,through looking through their website , I don’t find any documents or papers to describe how to make 2.4.x kernel with mips support to run on it.
Other documents are rich ,because its vendor is a commercial company , however, OVPSim is opensource.
For example:
http://www.ovpworld.org/first_MIPS.php
I can run their examples, but I feel that compiling our kernel and running it on it is not convenient .
2, Gxemul :
Wiki:
http://en.wikipedia.org/wiki/GXemul
I can’t find any documents to say about how to make linux 2.4.21 with mips support to run on it.
But , it provide some examples ,
http://gavare.se/gxemul/gxemul-stable/doc/unsupported.html#declinuxredhat
but it only provide a vmlinux binary, doesn’t provide how to configure malta board kernel.
I tried this method for 2.4.21 mips board kernel, but can’t work.
3,QEMU:
I feel that ,QEMU has much hope for support 2.4.21 mips malta board kernel.
l Support for mips malta board:
Only support 2.6.18 kernel with supporting malta board.
http://www.aurel32.net/info/debian_mips_qemu.php
From QEMU old mailing list, I found there was one people had claimed that he had a patch that could make qemu support 2.4.x kernel with mips support. I contacted him,but no response.
This mailing list is at:
http://lists.gnu.org/archive/html/qemu-devel/2007-09/msg00117.html
l Support for AR7 board.
I found a good opensource project named “openwrt” .
This project simulates AR7 board whose core is 4KE , you know our board ‘s cpu core is 4KEc.
It seems that they have been successful in most part.
The most beautiful is they provide .config file , once we have .config file , we can compile 2.4.21 kernel with mips support.
About openWRT
http://www.openwrt.org/
about AR7
http://www.linux-mips.org/wiki/AR7
http://forum.openwrt.org/viewtopic.php?id=2654
http://ar7-firmware.berlios.de/openwrt/index.html.en
existed binary:
http://developer.berlios.de/project/showfiles.php?group_id=3721
some patches:
http://ar7-firmware.berlios.de/openwrt/
there are some 2.4.31 ‘s patches.
http://ar7-firmware.berlios.de/openwrt/patches.html.en