Initial Commit
- initial default booting image
This commit is contained in:
11
board/qemu/aarch64-sbsa/assemble-flash-images
Executable file
11
board/qemu/aarch64-sbsa/assemble-flash-images
Executable file
@@ -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
|
||||
31
board/qemu/aarch64-sbsa/genimage.cfg
Normal file
31
board/qemu/aarch64-sbsa/genimage.cfg
Normal file
@@ -0,0 +1,31 @@
|
||||
image efi-part.vfat {
|
||||
vfat {
|
||||
file EFI {
|
||||
image = "efi-part/EFI"
|
||||
}
|
||||
|
||||
file Image {
|
||||
image = "Image"
|
||||
}
|
||||
}
|
||||
|
||||
size = 64M
|
||||
}
|
||||
|
||||
image disk.img {
|
||||
hdimage {
|
||||
partition-table-type = "gpt"
|
||||
}
|
||||
|
||||
partition boot {
|
||||
image = "efi-part.vfat"
|
||||
partition-type-uuid = U
|
||||
offset = 32K
|
||||
bootable = true
|
||||
}
|
||||
|
||||
partition root {
|
||||
partition-type-uuid = b921b045-1df0-41c3-af44-4c6f280d3fae
|
||||
image = "rootfs.ext2"
|
||||
}
|
||||
}
|
||||
6
board/qemu/aarch64-sbsa/grub.cfg
Normal file
6
board/qemu/aarch64-sbsa/grub.cfg
Normal file
@@ -0,0 +1,6 @@
|
||||
set default="0"
|
||||
set timeout="5"
|
||||
|
||||
menuentry "Buildroot" {
|
||||
linux /Image root=PARTLABEL=root rootwait
|
||||
}
|
||||
32
board/qemu/aarch64-sbsa/readme.txt
Normal file
32
board/qemu/aarch64-sbsa/readme.txt
Normal file
@@ -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 neoverse-n2 \
|
||||
-smp 4 \
|
||||
-m 1024 \
|
||||
-nographic \
|
||||
-pflash output/images/SBSA_FLASH0.fd \
|
||||
-pflash output/images/SBSA_FLASH1.fd \
|
||||
-hda output/images/disk.img # qemu_aarch64_sbsa_defconfig
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user