用Qemu模拟vexpress-a9 (六) --- 多核

 

环境介绍

Win7 64 + Vmware 11 + ubuntu14.04 32

u-boot 版本:u-boot-2015-04

Linux kernel版本:linux-3.16.y

busybox版本:1_24_stable

交叉编译工具链:arm-linux-gnueabi-

qemu版本:stable-2.4

 

不带图形界面

qemu-system-arm \
    -M vexpress-a9 \
    -m 512M \
    -kernel /root/tq2440_work/kernel/linux-stable/out_vexpress_3_16/arch/arm/boot/zImage \
    -nographic \
    -append "root=/dev/mmcblk0  console=ttyAMA0" \
    -sd /root/tq2440_work/busybox_study/a9rootfs.ext3 \
    -smp 4

起来后可以看一下它的cpuinfo

[root@vexpress ]# cat /proc/cpuinfo 
processor    : 0
model name    : ARMv7 Processor rev 0 (v7l)
Features    : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpd32 
CPU implementer    : 0x41
CPU architecture: 7
CPU variant    : 0x0
CPU part    : 0xc09
CPU revision    : 0

processor    : 1
model name    : ARMv7 Processor rev 0 (v7l)
Features    : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpd32 
CPU implementer    : 0x41
CPU architecture: 7
CPU variant    : 0x0
CPU part    : 0xc09
CPU revision    : 0

processor    : 2
model name    : ARMv7 Processor rev 0 (v7l)
Features    : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpd32 
CPU implementer    : 0x41
CPU architecture: 7
CPU variant    : 0x0
CPU part    : 0xc09
CPU revision    : 0

processor    : 3
model name    : ARMv7 Processor rev 0 (v7l)
Features    : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpd32 
CPU implementer    : 0x41
CPU architecture: 7
CPU variant    : 0x0
CPU part    : 0xc09
CPU revision    : 0

Hardware    : ARM-Versatile Express
Revision    : 0000
Serial        : 0000000000000000
[root@vexpress ]# 

 

带图形界面

qemu-system-arm \
    -M vexpress-a9 \
    -m 512M \
    -kernel /root/tq2440_work/kernel/linux-stable/out_vexpress_3_16/arch/arm/boot/zImage \
    -serial stdio \
    -append "root=/dev/mmcblk0  console=ttyAMA0 console=tty0" \
    -sd /root/tq2440_work/busybox_study/a9rootfs.ext3 \
    -smp 4

 

效果:

 

 

未完待续。

 

posted @ 2015-12-06 17:59  dolinux  阅读(2870)  评论(0编辑  收藏  举报