Skip to contentSkip to conversation

MIPSEL emulation is broken in svn

Qemu-devel yajin 2 participants 2 messages Jan 15, 2009

lore
Share & tools
lore

yajin

author
#0 lore raw

Hi everyone,

I check out the current qemu code in svn(version 6311 ) and compiled it using gcc 3.4 in ubuntu 8.04 for mipsel emulation. I follow the steps in http://www.aurel32.net/info/debian_mips_qemu.php.

1. ./configure --target-list=mipsel-softmmu
2. cd mipsel-softmmu
3. ../qemu-img create -f qcow hda.img 10G
4. $ wget http://ftp.de.debian.org/debian/dists/etch/main/installer-mipsel/current/images/qemu/netboot/vmlinux-2.6.18-6-qemu

    $ wget http://ftp.de.debian.org/debian/dists/etch/main/installer-mipsel/current/images/qemu/netboot/initrd.gz 

5. ./qemu-system-mipsel -kernel vmlinux-2.6.18-6-qemu -initrd initrd.gz -hda hda.img -append "root=/dev/ram console=ttyS0" -nographic

But there is no serial put on console.

I try it on qemu 0.91 and it works.

I wonder whether the mipsel emulation of current svn version of qemu is broken?

Thanks & Regards

yajin

http://vm-kernel.org

#1 lore raw
Quoted 20 lines · yajin

Hi everyone,

I check out the current qemu code in svn(version 6311 ) and compiled it using gcc 3.4 in ubuntu 8.04 for mipsel emulation. I follow the steps in
http://www.aurel32.net/info/debian_mips_qemu.php.

1. ./configure --target-list=mipsel-softmmu
2. cd mipsel-softmmu
3. ../qemu-img create -f qcow hda.img 10G
4. $ wget
http://ftp.de.debian.org/debian/dists/etch/main/installer-mipsel/current/images/qemu/netboot/vmlinux-2.6.18-6-qemu

    $ wget
http://ftp.de.debian.org/debian/dists/etch/main/installer-mipsel/current/images/qemu/netboot/initrd.gz

5. ./qemu-system-mipsel -kernel vmlinux-2.6.18-6-qemu -initrd initrd.gz -hda hda.img -append "root=/dev/ram console=ttyS0" -nographic

Quoted 7 lines

But there is no serial put on console.

I try it on qemu 0.91 and it works.

I wonder whether the mipsel emulation of current svn version of qemu is broken?

No, it is not, it's just that the default emulated machine has changed. Try adding '-M mips' to the arguments.

Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net