Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

QEMU MIPS Debian8.4 run issue

188 views
Skip to first unread message

飞颜

unread,
May 27, 2016, 12:30:04 AM5/27/16
to
Dear all,
 
   I used Ubuntu x86 pc to run QEMU MIPS, but can not run.

  Ubuntu information:
  Linux version 3.13.0-24-generic (buildd@roseapple) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #46-Ubuntu SMP Thu Apr 10 19:08:14 UTC 2014

  QEMU information:
  emu-system-mips --version
QEMU emulator version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1.24), Copyright (c) 2003-2008 Fabrice Bellard


  Debian img download URL:


  QEMU start command below:
  qemu-system-mips -M mips -kernel vmlinux-3.16.0-4-4kc-malta -initrd initrd.gz -hda hda.img  -append "root=/dev/ram console=ttyS0" -nographice

Only show message below, can not run.
qemu: Warning, could not load MIPS bios 'mips_bios.bin'

   Is QEMU start command wrong? Thanks.

Regards,
Wayen.Yan

Christian Seiler

unread,
May 27, 2016, 10:40:05 AM5/27/16
to
On 05/27/2016 06:23 AM, 飞颜 wrote:
> QEMU start command below:
> qemu-system-mips -M mips -kernel vmlinux-3.16.0-4-4kc-malta -initrd
> initrd.gz -hda hda.img -append "root=/dev/ram console=ttyS0" -nographice
>
> Only show message below, can not run.
> qemu: Warning, could not load MIPS bios 'mips_bios.bin'

This looks a lot like:
https://www.linux-mips.org/wiki/QEMU#MIPS_BIOS_not_found_on_startup

Since you start the whole thing with a -kernel command line, the
firmware is actually irrelevant - so you could just create a
dummy file for the MIPS BIOS:

(as root)
dd if=/dev/zero of=/usr/share/qemu/mips_bios.bin bs=1024 count=128

Then the Qemu command should work. (Not tested, though, I've only
ever used qemu-user with MIPS, not qemu-system.)

Hope that helps.

Regards,
Christian

飞颜

unread,
May 28, 2016, 12:40:05 PM5/28/16
to
Dear Christian,

  Thanks for your replay, I found the root cause. Need use -M malata parameter.

Regards,
Yanfei
0 new messages