configs/qemu_aarch64_sbsa_defconfig: new config for QEMU sbsa-ref
commit: https://git.buildroot.net/buildroot/commit/?id=a8466cc5acd29711e534b48764e0db12e5472cf8
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next
This introduces a configuration for the SBSA reference machine under QEMU that is intended for developing and testing firmware. It consists of ATF that load EDK2 as BL33 which in turn will load GRUB2.
Included with the board files is a minimal kernel configuration, almost identical to that of board/qemu/aarch64-virt/linux.config. The main difference is the addition of ACPI which is preferred over DTB for booting an UEFI system.
Signed-off-by Dick Olsson <[email protected]>
Signed-off-by Yann E. MORIN <[email protected]>
--- board/qemu/aarch64-sbsa/assemble-flash-images | 11 +++++ board/qemu/aarch64-sbsa/genimage.cfg | 30 ++++++++++++ board/qemu/aarch64-sbsa/grub.cfg | 6 +++ board/qemu/aarch64-sbsa/linux.config | 68 +++++++++++++++++++++++++++ board/qemu/aarch64-sbsa/readme.txt | 32 +++++++++++++ configs/qemu_aarch64_sbsa_defconfig | 49 +++++++++++++++++++ 6 files changed, 196 insertions(+)
board/qemu/aarch64-sbsa/assemble-flash-images new file +11 -0
@@ -0,0 +1,11 @@ +#!/bin/bash + +set -e + +BOARD_DIR="$(dirname $0)" + +cp -f ${BOARD_DIR}/grub.cfg ${BINARIES_DIR}/efi-part/EFI/BOOT/grub.cfg + +# The QEMU sbsa machine expects flash devices to be 256M. +truncate -s 256M ${BINARIES_DIR}/SBSA_FLASH0.fd +truncate -s 256M ${BINARIES_DIR}/SBSA_FLASH1.fd
board/qemu/aarch64-sbsa/genimage.cfg new file +30 -0
@@ -0,0 +1,30 @@ +image efi-part.vfat { + vfat { + file startup.nsh { + image = "efi-part/startup.nsh" + } + file EFI { + image = "efi-part/EFI" + } + file Image { + image = "Image" + } + } + size = 32M +} + +image disk.img { + hdimage { + gpt = true + } + + partition boot { + partition-type = 0xEF + image = "efi-part.vfat" + } + + partition root { + partition-type = 0x83 + image = "rootfs.ext2" + } +}
board/qemu/aarch64-sbsa/grub.cfg new file +6 -0
@@ -0,0 +1,6 @@ +set default="0" +set timeout="5" + +menuentry "Buildroot" { + linux /Image root=/dev/sda2 rootwait console=ttyAMA0 +}
board/qemu/aarch64-sbsa/linux.config new file +68 -0
68 lines not on this page · raw message
board/qemu/aarch64-sbsa/readme.txt new file +32 -0
@@ -0,0 +1,32 @@ +Intro +===== + +The QEMU sbsa-ref machine is primarily meant for firmware development +and testing according to ARM's SBSA and SBBR standards. + +Build +===== + + $ make qemu_aarch64_sbsa_defconfig + $ make + +Emulation +========= + +Run the emulation with: + + qemu-system-aarch64 \ + -M sbsa-ref \ + -cpu cortex-a53 \ + -smp 4 \ + -m 1024 \ + -nographic \ + -pflash output/images/SBSA_FLASH0.fd \ + -pflash output/images/SBSA_FLASH1.fd \ + -hda output/images/disk.img + +Note that if you want to run sbsa-ref emulation with QEMU provided by +your distro (i.e., not host-qemu by Buildroot) then you may need to +install the SeaBIOS package for some required drivers. On Debian: + + # apt install seabios
configs/qemu_aarch64_sbsa_defconfig new file +49 -0
49 lines not on this page · raw message