mirror of
https://git.yoctoproject.org/meta-raspberrypi
synced 2026-10-21 17:48:11 +00:00
Add the relevant QB_ variables sufficient to get the QEMU raspi1ap model running with runqemu. Unfortunately, it doesn't fully boot to shell, and seems to hang trying to find boot media (for both SD and USB boot devices). Signed-off-by: Jon Mason <jon.mason@arm.com>
59 lines
1.7 KiB
Plaintext
59 lines
1.7 KiB
Plaintext
#@TYPE: Machine
|
|
#@NAME: RaspberryPi 4 Development Board (64bit)
|
|
#@DESCRIPTION: Machine configuration for the RaspberryPi 4 in 64 bits mode
|
|
|
|
MACHINEOVERRIDES =. "raspberrypi4:"
|
|
|
|
MACHINE_FEATURES += "pci"
|
|
MACHINE_EXTRA_RRECOMMENDS += "\
|
|
linux-firmware-rpidistro-bcm43455 \
|
|
bluez-firmware-rpidistro-bcm4345c0-hcd \
|
|
linux-firmware-rpidistro-bcm43456 \
|
|
bluez-firmware-rpidistro-bcm4345c5-hcd \
|
|
"
|
|
|
|
DEFAULTTUNE = "cortexa72-nocrypto"
|
|
|
|
require conf/machine/include/arm/armv8a/tune-cortexa72.inc
|
|
include conf/machine/include/rpi-base.inc
|
|
|
|
RPI_KERNEL_DEVICETREE = " \
|
|
broadcom/bcm2711-rpi-4-b.dtb \
|
|
broadcom/bcm2711-rpi-400.dtb \
|
|
broadcom/bcm2711-rpi-cm4.dtb \
|
|
broadcom/bcm2711-rpi-cm4s.dtb \
|
|
"
|
|
|
|
SDIMG_KERNELIMAGE ?= "kernel8.img"
|
|
SERIAL_CONSOLES ?= "115200;ttyS0"
|
|
|
|
UBOOT_MACHINE = "rpi_arm64_config"
|
|
|
|
VC4DTBO ?= "vc4-kms-v3d"
|
|
|
|
# When u-boot is enabled we need to use the "Image" format and the "booti"
|
|
# command to load the kernel
|
|
KERNEL_IMAGETYPE_UBOOT ?= "Image"
|
|
# "zImage" not supported on arm64 and ".gz" images not supported by bootloader yet
|
|
KERNEL_IMAGETYPE_DIRECT ?= "Image"
|
|
KERNEL_BOOTCMD ?= "booti"
|
|
|
|
ARMSTUB ?= "armstub8-gic.bin"
|
|
|
|
#
|
|
# Below are variables ONLY needed for running with Yocto/OE's runqemu script
|
|
#
|
|
IMAGE_CLASSES += "qemuboot"
|
|
|
|
# FIXME - boot hangs trying to find the boot media, for both SD and USB
|
|
QB_SYSTEM_NAME = "qemu-system-aarch64"
|
|
QB_MACHINE = "-machine raspi4b"
|
|
QB_MEM = "-m 2048"
|
|
QB_DTB = "bcm2711-rpi-4-b.dtb"
|
|
QB_NETWORK_DEVICE = "-device usb-net,netdev=net0,mac=@MAC@"
|
|
QB_KERNEL_ROOT = "/dev/sda"
|
|
QB_KERNEL_CMDLINE_APPEND = "rootwait earlycon=pl011,mmio32,0xfe201000"
|
|
QB_RNG = ""
|
|
QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device usb-storage,drive=disk0"
|
|
QB_DEFAULT_FSTYPE = "ext3"
|