board/qemu: Add ppc-e500mc configuration

This adds a 32-bit equivalent configuration of ppc64-e5500 board.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Bin Meng
2021-02-28 15:45:17 +08:00
committed by Peter Korsgaard
parent 9044268247
commit 88c1cb10b6
3 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
# Enables generic PPC e500 base arch support for QEMU.
# The e500mc is a variant of the e500 arch.
CONFIG_PPC_QEMU_E500=y
# Enable virtio (blk, rng and net devices)
CONFIG_VIRTIO=y
CONFIG_VIRTIO_PCI=y
CONFIG_HW_RANDOM_VIRTIO=y
CONFIG_VIRTIO_BLK=y
CONFIG_VIRTIO_NET=y

View File

@@ -0,0 +1,5 @@
Run the emulation with:
qemu-system-ppc -M ppce500 -cpu e500mc -m 256 -kernel output/images/uImage -drive file=output/images/rootfs.ext2,if=virtio,format=raw -append "console=ttyS0 rootwait root=/dev/vda" -serial mon:stdio -nographic # qemu_ppc_e500mc_defconfig
The login prompt will appear in the terminal that started Qemu.