qemu中的任何ARM平台仿真功能是否足以在多核仿真模式下运行ARM v7代码?

时间:2016-05-06 19:24:48

标签: qemu armv7

在vexpress-a9和vespress-a15的情况下,似乎qemu(至少版本2.0.0)在ARMv7主板上运行U-boot和Linux的发行版存在问题。有没有人在这里成功运行多核ARMv7操作系统?如果是的话什么是qemu发布版本? 我的意思是和

一起跑
url = "https://www.wikidata.org/w/api.php?action=some_method&ids=Q19675"
r = requests.post(url, headers={"User-Agent" : "Magic Browser"})

1 个答案:

答案 0 :(得分:1)

<强> qemu-system-arm -M virt -cpu cortex-a15

此设置工作正常:

qemu-system-arm \
-M virt \
-append 'root=/dev/vda' \
-cpu cortex-a15 \
-drive file='rootfs.ext2.qcow2,if=virtio,format=qcow2' \
-kernel zImage \
-nographic \
-smp '2'

然后:

cat /proc/cpuinfo

给出:

processor       : 0
model name      : ARMv7 Processor rev 1 (v7l)
BogoMIPS        : 125.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x2
CPU part        : 0xc0f
CPU revision    : 1

processor       : 1
model name      : ARMv7 Processor rev 1 (v7l)
BogoMIPS        : 125.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x2
CPU part        : 0xc0f
CPU revision    : 1

我还打赌它适用于-M vexpress-a15 -cpu cortex-a15,但我没有测试过。如果您想尝试一下,只需复制what Buildroot says,它就会正常工作。

在QEMU 2.11.0,Linux v2.16中使用this setup进行了测试。