mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 03:32:12 +02:00
Current qemu instances all share the same MAC address. This shouldn't be an issue as they are all on separate network interfaces, however on the slight chance this is causing problems, its easy enough to ensure we use unique MAC addresses based on the IP numbers we assign. (From OE-Core rev: c01962bf88786dd84ad83cc1d315297607d29f7c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
24 lines
1.0 KiB
Plaintext
24 lines
1.0 KiB
Plaintext
#@TYPE: Machine
|
|
#@NAME: generic armv8 machine
|
|
#@DESCRIPTION: Machine configuration for running a generic armv8
|
|
|
|
require conf/machine/include/arm/arch-armv8.inc
|
|
require conf/machine/include/qemu.inc
|
|
|
|
KERNEL_IMAGETYPE = "Image"
|
|
|
|
SERIAL_CONSOLES = "38400;ttyAMA0 38400;hvc0"
|
|
|
|
# For runqemu
|
|
QB_SYSTEM_NAME = "qemu-system-aarch64"
|
|
QB_MEM = "-m 512"
|
|
QB_MACHINE = "-machine virt"
|
|
QB_CPU = "-cpu cortex-a57"
|
|
QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0,38400"
|
|
QB_OPT_APPEND = "-show-cursor"
|
|
QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no -device virtio-net-device,netdev=net0,mac=@MAC@"
|
|
QB_SLIRP_OPT = "-netdev user,id=net0 -device virtio-net-device,netdev=net0"
|
|
QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-device,drive=disk0"
|
|
QB_SERIAL_OPT = "-device virtio-serial-device -chardev null,id=virtcon -device virtconsole,chardev=virtcon"
|
|
QB_TCPSERIAL_OPT = " -device virtio-serial-device -chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1 -device virtconsole,chardev=virtcon"
|