启动图形MIPS QEMU机器

时间:2017-12-17 16:17:57

标签: linux mips qemu

我想启动运行某些Linux发行版的QEMU MIPS架构机器。我一直在查看这个文档(https://www.linux-mips.org/wiki/QEMU),但我陷入了这个部分

[ralf@box qemu]$ qemu-system-mips -kernel /tftboot/192.168.0.1/vmlinux.bin -m 16 -nographic

(qemu) mips_r4k_init: start
mips_r4k_init: load BIOS '/usr/local/share/qemu/mips_bios.bin' size 131072
qemu: could not load MIPS bios '/usr/local/share/qemu/mips_bios.bin'

[ralf@box qemu]$

There currently is no MIPS BIOS file for QEMU (see firmware). However if passed a
 -kernel argument qemu will not call the firmware at all, so this does no harm at all. Therefore, a command such as
    dd if=/dev/zero of=/usr/local/share/qemu/mips_bios.bin bs=1024 count=128
    will generate a firmware file that will do the job for now.

我很困惑我应该为内核传递什么争论? /usr/local/share/qemu/mips_bios.bin参数是编译后的Linux映像吗?

如果可能的话,我希望模拟器有一个GUI。我不确定这是如何实现的。

感谢。

1 个答案:

答案 0 :(得分:1)

您不再需要创建mips_bios.bin文件。如果在运行qemu-system-mips时在同一文件夹中有一个名称相同的文件,它将进行拾取。如果你这样做,我会删除它。这是关于它的一点历史的维基链接:

https://www.linux-mips.org/wiki/QEMU

有关使用图形和qemu的mips特定内核的一个很好的例子,请检查此链接:

http://shadow-file.blogspot.com/2013/05/running-debian-mips-linux-in-qemu.html