Files
meta-raspberrypi/conf/machine/raspberrypi2.conf
Jon Mason 97e3d165a6 raspberrypi2: add usb networking and change to usb storage
Add support for USB networking and change to USB storage for the boot
device.  This requires adding in a workaround of
"dwc_otg.fiq_fsm_enable=0" to prevent a hang during boot.  Booting from
a USB devices prevents and issues with "power of 2" for emulated SD
cards and seems to be more reliable.  Also, add in the early console
help with future debugging.

Also, adding in init-ifupdown file to automatically get an IP address on
the USB network interface.  This is the same file currently in OE Core,
only with the USB interface being automatically brought up and given a
dynamic address.  This will help when testimage support is added.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2026-10-13 19:30:08 -07:00

32 lines
1.0 KiB
Plaintext

#@TYPE: Machine
#@NAME: RaspberryPi 2 Development Board
#@DESCRIPTION: Machine configuration for the RaspberryPi 2
DEFAULTTUNE ?= "cortexa7thf-neon-vfpv4"
require conf/machine/include/arm/armv7a/tune-cortexa7.inc
include conf/machine/include/rpi-base.inc
SDIMG_KERNELIMAGE ?= "kernel7.img"
SERIAL_CONSOLES ?= "115200;ttyAMA0"
UBOOT_MACHINE = "rpi_2_config"
ARMSTUB ?= "armstub7.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 raspi2b"
QB_MEM = "-m 1024"
QB_DTB = "bcm2709-rpi-2-b.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
QB_KERNEL_CMDLINE_APPEND = "rootwait earlycon=pl011,0x3f201000 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"