mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-07-16 03:47:19 +00:00
f1098681f4
Add support for the newest release of TF-A. mnedtls was made a git submodule, and moved location. Given that this will be the location going forward, I thought it best to change inc file to point by default to the new location, and have the LTS versions to point to the old location in their recipes. Also, seeing some weird behavior with CPUs not coming on line in sbsa-ref and qemuarm-secureboot. So, pinning those back to the LTS until they can be sorted out. Signed-off-by: Jon Mason <jon.mason@arm.com>
47 lines
2.1 KiB
Plaintext
47 lines
2.1 KiB
Plaintext
#@TYPE: Machine
|
|
#@NAME: sbsa-ref
|
|
#@DESCRIPTION: Reference SBSA machine in qemu-system-aarch64 on Neoverse N2
|
|
|
|
require conf/machine/include/arm/armv9a/tune-neoversen2.inc
|
|
require conf/machine/include/qemu.inc
|
|
|
|
PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
|
|
KERNEL_IMAGETYPE = "Image"
|
|
MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
|
|
|
|
MACHINE_FEATURES = " alsa bluetooth efi qemu-usermode rtc screen usbhost vfat wifi"
|
|
|
|
IMAGE_FSTYPES += "wic.qcow2"
|
|
|
|
# This unique WIC file is necessary because kernel boot args cannot be passed
|
|
# because there is no default kernel (see below). There is no default kernel
|
|
# because QEMU will only allow firmware or kernel to be passed in as a
|
|
# parameter, and we need the firmware. So, to allow for "ip=dhcp" as a kernel
|
|
# boot arg (which we need for testimage), we have to have a WIC file unique to
|
|
# this platform.
|
|
WKS_FILE = "qemu-efi-disk.wks.in"
|
|
|
|
EFI_PROVIDER ?= "${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd-boot", "grub-efi", d)}"
|
|
|
|
SERIAL_CONSOLES ?= "115200;ttyAMA0 115200;hvc0"
|
|
|
|
EXTRA_IMAGEDEPENDS += "edk2-firmware"
|
|
#FIXME - in 2.15.0, new logic for pen hold the SMP cores was added, which breaks this platform. Hold this back until it can be resolved.
|
|
PREFERRED_VERSION_trusted-firmware-a ?= "2.14.%"
|
|
|
|
QB_SYSTEM_NAME = "qemu-system-aarch64"
|
|
QB_MACHINE = "-machine sbsa-ref"
|
|
QB_CPU = "-cpu neoverse-n2"
|
|
QB_SMP = "-smp 4"
|
|
QB_MEM = "-m 1024"
|
|
QB_DEFAULT_FSTYPE = "wic.qcow2"
|
|
QB_NETWORK_DEVICE = "-device e1000e,netdev=net0,mac=@MAC@"
|
|
QB_DRIVE_TYPE = "/dev/hd"
|
|
QB_ROOTFS_OPT = "-drive file=@ROOTFS@,if=ide,format=qcow2"
|
|
QB_DEFAULT_KERNEL = "none"
|
|
QB_OPT_APPEND = "-device usb-tablet -device usb-kbd -drive if=pflash,format=raw,unit=0,readonly=on,file=@DEPLOY_DIR_IMAGE@/SBSA_FLASH0.fd -drive if=pflash,format=raw,unit=1,readonly=on,file=@DEPLOY_DIR_IMAGE@/SBSA_FLASH1.fd"
|
|
QB_SERIAL_OPT = "-device virtio-serial-pci -chardev null,id=virtcon -device virtconsole,chardev=virtcon"
|
|
QB_TCPSERIAL_OPT = "-device virtio-serial-pci -chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1 -device virtconsole,chardev=virtcon"
|
|
# sbsa-ref is a true virtual machine so can't use KVM
|
|
QEMU_USE_KVM = "0"
|