From cf494c78c1b3963e80a5c601e3e23346cac494e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Date: Fri, 12 Nov 2021 17:04:13 +0100 Subject: [PATCH] configs/qemu_ppc_e500mc: enable dhcp on network interface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a virtio-net-pci device with a user mode host network backend Cc: Bin Meng Signed-off-by: Cédric Le Goater Signed-off-by: Thomas Petazzoni --- board/qemu/ppc-e500mc/readme.txt | 2 +- configs/qemu_ppc_e500mc_defconfig | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/board/qemu/ppc-e500mc/readme.txt b/board/qemu/ppc-e500mc/readme.txt index 77a864ed2b..76bad015d2 100644 --- a/board/qemu/ppc-e500mc/readme.txt +++ b/board/qemu/ppc-e500mc/readme.txt @@ -1,5 +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 + qemu-system-ppc -M ppce500 -cpu e500mc -m 256 -kernel output/images/uImage -drive file=output/images/rootfs.ext2,if=virtio,format=raw -net nic,model=virtio-net-pci -net user -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. diff --git a/configs/qemu_ppc_e500mc_defconfig b/configs/qemu_ppc_e500mc_defconfig index 1a5b1e3c2c..232bc1f70c 100644 --- a/configs/qemu_ppc_e500mc_defconfig +++ b/configs/qemu_ppc_e500mc_defconfig @@ -2,7 +2,8 @@ BR2_powerpc=y BR2_powerpc_e500mc=y -# Serial port config +# System +BR2_SYSTEM_DHCP="eth0" BR2_TARGET_GENERIC_GETTY_PORT="ttyS0" # Image