From b165a198256b631c1e59aecf0608c784407ca71d Mon Sep 17 00:00:00 2001 From: Ivan-Velickovic Date: Tue, 22 Aug 2023 12:41:58 +1000 Subject: [PATCH] examples/framebuffer: add ethernet device to QEMU command --- examples/framebuffer/Makefile | 4 +++- examples/framebuffer/board/qemu_arm_virt/framebuffer.system | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/framebuffer/Makefile b/examples/framebuffer/Makefile index 4c2eaf6b..545c7314 100644 --- a/examples/framebuffer/Makefile +++ b/examples/framebuffer/Makefile @@ -108,7 +108,9 @@ qemu: all -serial mon:stdio \ -device loader,file=$(IMAGE_FILE),addr=0x70000000,cpu-num=0 \ -m size=2G \ - -device virtio-gpu-pci + -device virtio-gpu-pci \ + -netdev user,id=mynet0 \ + -device virtio-net-device,netdev=mynet0,mac=52:55:00:d1:55:01 directories: $(shell mkdir -p $(BUILD_DIR)) diff --git a/examples/framebuffer/board/qemu_arm_virt/framebuffer.system b/examples/framebuffer/board/qemu_arm_virt/framebuffer.system index beb45358..6e15c7a4 100644 --- a/examples/framebuffer/board/qemu_arm_virt/framebuffer.system +++ b/examples/framebuffer/board/qemu_arm_virt/framebuffer.system @@ -38,7 +38,7 @@ - +