mirror of
https://git.yoctoproject.org/meta-raspberrypi
synced 2026-10-15 03:26:59 +00:00
raspberrypi0.conf: add QB_ variables for runqemu
Add the relevant QB_ variables sufficient to get the QEMU raspi0 model running with runqemu. The dwc_otg.fiq_fsm_enable setting is necessary to get USB devices (both disk and net) working. Without this, boot hangs. The initcall_blacklist=bcm2835_pm_driver_init is needed to workaround other boot issues. Seems like the PM HW emulation isn't present in the QEMU model. Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
1 parent
25a847b50f
commit
c3539e8040
1 file changed
+17
@@ -13,3 +13,20 @@ UBOOT_MACHINE = "rpi_config"
|
||||
SERIAL_CONSOLES ?= "115200;ttyAMA0"
|
||||
|
||||
ARMSTUB ?= "armstub.bin"
|
||||
#
|
||||
# Below are variables ONLY needed for running with Yocto/OE's runqemu script
|
||||
#
|
||||
IMAGE_CLASSES += "qemuboot"
|
||||
|
||||
QB_SYSTEM_NAME = "qemu-system-arm"
|
||||
QB_MACHINE = "-machine raspi0"
|
||||
QB_MEM = "-m 512"
|
||||
QB_DTB = "bcm2708-rpi-zero.dtb"
|
||||
QB_NETWORK_DEVICE = "-device usb-net,netdev=net0,mac=@MAC@"
|
||||
QB_KERNEL_ROOT = "/dev/sda"
|
||||
# The dwc_otg.fiq_fsm_enable setting is necessary to get USB devices (both disk and net) working. Without this, boot hangs
|
||||
# The initcall_blacklist=bcm2835_pm_driver_init is needed to workaround boot issues. Seems like the PM HW emulation isn't present
|
||||
QB_KERNEL_CMDLINE_APPEND = "rootwait initcall_blacklist=bcm2835_pm_driver_init earlycon=pl011,0x20201000 dwc_otg.fiq_fsm_enable=0"
|
||||
QB_RNG = ""
|
||||
QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device usb-storage,drive=disk0"
|
||||
QB_DEFAULT_FSTYPE = "ext3"
|
||||
Reference in new issue
Block a user