configs/qemu: update arm-vexpress instructions for SMP
PATCH 1/3 configs/qemu: update arm-vexpress instructions for SMP
We can use the vexpress arm defconfig to test SMP features in Qemu. So document the necessary invocation changes to account for this, in preparation of the arm nuri defconfig removal.
--- board/qemu/arm-vexpress/readme.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
board/qemu/arm-vexpress/readme.txt +4 -1
@@ -1,8 +1,11 @@ Run the emulation with: - qemu-system-arm -M vexpress-a9 -m 256 -kernel output/images/zImage -dtb output/images/vexpress-v2p-ca9.dtb -drive file=output/images/rootfs.ext2,if=sd,format=raw -append "console=ttyAMA0,115200 root=/dev/mmcblk0" -serial stdio -net nic,model=lan9118 -net user + qemu-system-arm -M vexpress-a9 -smp 1 -m 256 -kernel output/images/zImage -dtb output/images/vexpress-v2p-ca9.dtb -drive file=output/images/rootfs.ext2,if=sd,format=raw -append "console=ttyAMA0,115200 root=/dev/mmcblk0" -serial stdio -net nic,model=lan9118 -net user The login prompt will appear in the terminal that started Qemu. The graphical window is the framebuffer. +If you want to emulate more cores change "-smp 1" to "-smp 2" for +dual-core or even "smp -4" for a quad-core configuration. + Tested with QEMU 2.3.0
Signature · 1 line
2.4.10
PATCH 2/3 configs/qemu: drop arm nuri
This config has no prospect of going into the future (by using DTS), and qemu doesn't do a good job at emulating it (networking problems), so drop it.
All of the ARM SMP testing duties are now in the vexpress defconfig which is better suited/supported.
--- board/qemu/arm-nuri/readme.txt | 11 ----------- configs/qemu_arm_nuri_defconfig | 24 ------------------------ 2 files changed, 35 deletions(-) delete mode 100644 board/qemu/arm-nuri/readme.txt delete mode 100644 configs/qemu_arm_nuri_defconfig
board/qemu/arm-nuri/readme.txt deleted +0 -11
@@ -1,11 +0,0 @@ -Run the emulation with: - - qemu-system-arm -M nuri -kernel output/images/zImage -append "console=ttySAC1,115200" -smp 2 -serial null -serial stdio - -The login prompt will appear in the terminal that started Qemu. The -graphical window is the framebuffer. - -Startup time is slow because of the SMP CPU emulation so be patient. -This emulation is known to be flaky. - -Tested with QEMU 2.3.0
configs/qemu_arm_nuri_defconfig deleted +0 -24
@@ -1,24 +0,0 @@ -# Architecture -BR2_arm=y -BR2_cortex_a9=y -BR2_ARM_ENABLE_NEON=y -BR2_ARM_ENABLE_VFP=y -BR2_ARM_FPU_VFPV3D16=y - -# System -BR2_TARGET_GENERIC_GETTY_PORT="ttySAC1" - -# Filesystem -# BR2_TARGET_ROOTFS_TAR is not set -BR2_TARGET_ROOTFS_INITRAMFS=y - -# Linux headers same as kernel, a 4.4 series -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_10=y - -# Kernel -BR2_LINUX_KERNEL=y -BR2_LINUX_KERNEL_CUSTOM_VERSION=y -# Stuck at 3.10.x because there's no Nuri DTS -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.10.96" -BR2_LINUX_KERNEL_DEFCONFIG="exynos4" -BR2_LINUX_KERNEL_ZIMAGE=y
Signature · 1 line
2.4.10
PATCH 3/3 configs/qemu: convert versatile to dt
In reply to Gustavo ZacariasAs a followup to http://patchwork.ozlabs.org/patch/548550/ fully convert the versatile defconfig to create the dtb and update the instructions.
--- board/qemu/arm-versatile/linux-4.4.config | 1 + board/qemu/arm-versatile/readme.txt | 2 +- configs/qemu_arm_versatile_defconfig | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-)
board/qemu/arm-versatile/linux-4.4.config +1 -0
@@ -3,6 +3,7 @@ CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y CONFIG_ARCH_VERSATILE=y CONFIG_MACH_VERSATILE_AB=y +CONFIG_MACH_VERSATILE_DT=y CONFIG_PCI=y CONFIG_AEABI=y CONFIG_USE_OF=y
board/qemu/arm-versatile/readme.txt +1 -1
@@ -1,6 +1,6 @@ Run the emulation with: - qemu-system-arm -M versatilepb -kernel output/images/zImage -drive file=output/images/rootfs.ext2,if=scsi,format=raw -append "root=/dev/sda console=ttyAMA0,115200" -serial stdio -net nic,model=rtl8139 -net user + qemu-system-arm -M versatilepb -kernel output/images/zImage -dtb output/images/versatile-pb.dtb -drive file=output/images/rootfs.ext2,if=scsi,format=raw -append "root=/dev/sda console=ttyAMA0,115200" -serial stdio -net nic,model=rtl8139 -net user The login prompt will appear in the terminal that started Qemu. The graphical window is the framebuffer.
configs/qemu_arm_versatile_defconfig +2 -0
@@ -20,3 +20,5 @@ BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.4.1" BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/arm-versatile/linux-4.4.config" BR2_LINUX_KERNEL_ZIMAGE=y +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="versatile-pb"
Signature · 1 line
2.4.10
PATCH 1/3 configs/qemu: update arm-vexpress instructions for SMP
In reply to Gustavo ZacariasDear Gustavo Zacarias,
Quoted 8 lines · Gustavo Zacarias
We can use the vexpress arm defconfig to test SMP features in Qemu. So document the necessary invocation changes to account for this, in preparation of the arm nuri defconfig removal.
Signed-off-by Gustavo Zacarias <[email protected]>--- board/qemu/arm-vexpress/readme.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
All three patches applied, thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com