Initial commit
This commit is contained in:
@@ -0,0 +1,162 @@
|
||||
include conf/machine/include/rpi-default-settings.inc
|
||||
include conf/machine/include/rpi-default-versions.inc
|
||||
include conf/machine/include/rpi-default-providers.inc
|
||||
|
||||
SOC_FAMILY = "rpi"
|
||||
include conf/machine/include/soc-family.inc
|
||||
|
||||
IMAGE_FSTYPES ?= "tar.bz2 ext3 wic.bz2 wic.bmap"
|
||||
WKS_FILE ?= "sdimage-raspberrypi.wks"
|
||||
|
||||
XSERVER = " \
|
||||
xserver-xorg \
|
||||
${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "xserver-xorg-extension-glx", "", d)} \
|
||||
${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "xf86-video-modesetting", "xf86-video-fbdev", d)} \
|
||||
"
|
||||
|
||||
RPI_KERNEL_DEVICETREE_OVERLAYS ?= " \
|
||||
overlays/overlay_map.dtb \
|
||||
overlays/at86rf233.dtbo \
|
||||
overlays/disable-bt.dtbo \
|
||||
overlays/dwc2.dtbo \
|
||||
overlays/gpio-ir.dtbo \
|
||||
overlays/gpio-ir-tx.dtbo \
|
||||
overlays/gpio-key.dtbo \
|
||||
overlays/gpio-poweroff.dtbo \
|
||||
overlays/gpio-shutdown.dtbo \
|
||||
overlays/hifiberry-amp.dtbo \
|
||||
overlays/hifiberry-dac.dtbo \
|
||||
overlays/hifiberry-dacplus.dtbo \
|
||||
overlays/hifiberry-digi.dtbo \
|
||||
overlays/justboom-both.dtbo \
|
||||
overlays/justboom-dac.dtbo \
|
||||
overlays/justboom-digi.dtbo \
|
||||
overlays/i2c-gpio.dtbo \
|
||||
overlays/i2c-rtc.dtbo \
|
||||
overlays/imx219.dtbo \
|
||||
overlays/imx477.dtbo \
|
||||
overlays/imx708.dtbo \
|
||||
overlays/iqaudio-dac.dtbo \
|
||||
overlays/iqaudio-dacplus.dtbo \
|
||||
overlays/mcp2515-can0.dtbo \
|
||||
overlays/mcp2515-can1.dtbo \
|
||||
overlays/mcp3008.dtbo \
|
||||
overlays/miniuart-bt.dtbo \
|
||||
overlays/pitft22.dtbo \
|
||||
overlays/pitft28-capacitive.dtbo \
|
||||
overlays/pitft28-resistive.dtbo \
|
||||
overlays/pitft35-resistive.dtbo \
|
||||
overlays/pps-gpio.dtbo \
|
||||
overlays/rpi-ft5406.dtbo \
|
||||
overlays/rpi-poe.dtbo \
|
||||
overlays/vc4-fkms-v3d.dtbo \
|
||||
overlays/vc4-fkms-v3d-pi4.dtbo \
|
||||
overlays/vc4-kms-v3d.dtbo \
|
||||
overlays/vc4-kms-v3d-pi4.dtbo \
|
||||
overlays/vc4-kms-dsi-7inch.dtbo \
|
||||
overlays/w1-gpio.dtbo \
|
||||
overlays/w1-gpio-pullup.dtbo \
|
||||
overlays/wm8960-soundcard.dtbo \
|
||||
"
|
||||
|
||||
RPI_KERNEL_DEVICETREE ?= " \
|
||||
bcm2708-rpi-zero.dtb \
|
||||
bcm2708-rpi-zero-w.dtb \
|
||||
bcm2708-rpi-b.dtb \
|
||||
bcm2708-rpi-b-rev1.dtb \
|
||||
bcm2708-rpi-b-plus.dtb \
|
||||
bcm2709-rpi-2-b.dtb \
|
||||
bcm2710-rpi-2-b.dtb \
|
||||
bcm2710-rpi-3-b.dtb \
|
||||
bcm2710-rpi-3-b-plus.dtb \
|
||||
bcm2710-rpi-zero-2.dtb \
|
||||
bcm2711-rpi-4-b.dtb \
|
||||
bcm2711-rpi-400.dtb \
|
||||
bcm2708-rpi-cm.dtb \
|
||||
bcm2710-rpi-cm3.dtb \
|
||||
bcm2711-rpi-cm4.dtb \
|
||||
bcm2711-rpi-cm4s.dtb \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE ??= " \
|
||||
${RPI_KERNEL_DEVICETREE} \
|
||||
${RPI_KERNEL_DEVICETREE_OVERLAYS} \
|
||||
"
|
||||
|
||||
# By default:
|
||||
#
|
||||
# * When u-boot is disabled use the "Image" format which can be directly loaded
|
||||
# by the rpi firmware.
|
||||
#
|
||||
# * When u-boot is enabled use the "uImage" format and the "bootm" command
|
||||
# within u-boot to load the kernel.
|
||||
KERNEL_BOOTCMD ??= "bootm"
|
||||
KERNEL_IMAGETYPE_UBOOT ??= "uImage"
|
||||
KERNEL_IMAGETYPE_DIRECT ??= "zImage"
|
||||
KERNEL_IMAGETYPE ?= "${@bb.utils.contains('RPI_USE_U_BOOT', '1', \
|
||||
'${KERNEL_IMAGETYPE_UBOOT}', '${KERNEL_IMAGETYPE_DIRECT}', d)}"
|
||||
|
||||
MACHINE_FEATURES += "apm usbhost keyboard vfat ext2 screen touchscreen alsa bluetooth wifi sdio ${@bb.utils.contains('DISABLE_VC4GRAPHICS', '1', '', 'vc4graphics', d)}"
|
||||
|
||||
# Raspberry Pi has no hardware clock
|
||||
MACHINE_FEATURES_BACKFILL_CONSIDERED = "rtc"
|
||||
|
||||
MACHINE_EXTRA_RRECOMMENDS += "kernel-modules udev-rules-rpi"
|
||||
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "${@oe.utils.conditional('ENABLE_I2C', '1', 'kernel-module-i2c-dev kernel-module-i2c-bcm2708', '', d)}"
|
||||
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "${@oe.utils.conditional('ENABLE_IR', '1', 'kernel-module-gpio-ir kernel-module-gpio-ir-tx', '', d)}"
|
||||
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "${@oe.utils.conditional('ENABLE_GPIO_SHUTDOWN', '1', 'gpio-shutdown kernel-module-gpio-keys', '', d)}"
|
||||
|
||||
SERIAL_CONSOLES_CHECK ??= "${SERIAL_CONSOLES}"
|
||||
|
||||
# The name of the deploy directory for raspberry pi boot files.
|
||||
# This variable is referred to by recipes fetching / generating the files.
|
||||
BOOTFILES_DIR_NAME ?= "bootfiles"
|
||||
|
||||
# Set Raspberrypi splash image
|
||||
SPLASH ?= "psplash-raspberrypi"
|
||||
|
||||
def make_dtb_boot_files(d):
|
||||
# Generate IMAGE_BOOT_FILES entries for device tree files listed in
|
||||
# KERNEL_DEVICETREE.
|
||||
alldtbs = d.getVar('KERNEL_DEVICETREE')
|
||||
|
||||
# DTBs may be built out of kernel with devicetree.bbclass
|
||||
if not alldtbs:
|
||||
return ''
|
||||
|
||||
def transform(dtb):
|
||||
base = os.path.basename(dtb)
|
||||
if dtb.endswith('dtbo') or base == 'overlay_map.dtb':
|
||||
# overlay dtb:
|
||||
# eg: overlays/hifiberry-amp.dtbo has:
|
||||
# DEPLOYDIR file: hifiberry-amp.dtbo
|
||||
# destination: overlays/hifiberry-amp.dtbo
|
||||
return '{};{}'.format(base, dtb)
|
||||
elif dtb.endswith('dtb'):
|
||||
# eg: whatever/bcm2708-rpi-b.dtb has:
|
||||
# DEPLOYDIR file: bcm2708-rpi-b.dtb
|
||||
# destination: bcm2708-rpi-b.dtb
|
||||
return base
|
||||
|
||||
return ' '.join([transform(dtb) for dtb in alldtbs.split(' ') if dtb])
|
||||
|
||||
RPI_EXTRA_IMAGE_BOOT_FILES ?= " \
|
||||
${@bb.utils.contains('RPI_USE_U_BOOT', '1', \
|
||||
'${KERNEL_IMAGETYPE} u-boot.bin;${SDIMG_KERNELIMAGE} boot.scr', \
|
||||
'${KERNEL_IMAGETYPE};${SDIMG_KERNELIMAGE}', d)} \
|
||||
"
|
||||
|
||||
IMAGE_BOOT_FILES ?= "${BOOTFILES_DIR_NAME}/* \
|
||||
${@make_dtb_boot_files(d)} \
|
||||
${RPI_EXTRA_IMAGE_BOOT_FILES} \
|
||||
"
|
||||
do_image_wic[depends] += " \
|
||||
rpi-bootfiles:do_deploy \
|
||||
${@bb.utils.contains('RPI_USE_U_BOOT', '1', 'u-boot:do_deploy', '',d)} \
|
||||
"
|
||||
|
||||
do_image_wic[recrdeps] = "do_build"
|
||||
|
||||
# The kernel image is installed into the FAT32 boot partition and does not need
|
||||
# to also be installed into the rootfs.
|
||||
RDEPENDS:${KERNEL_PACKAGE_NAME}-base = ""
|
||||
@@ -0,0 +1,19 @@
|
||||
# RaspberryPi BSP default providers
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel ??= "linux-raspberrypi"
|
||||
PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
|
||||
PREFERRED_PROVIDER_virtual/egl ?= "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "mesa", "userland", d)}"
|
||||
PREFERRED_PROVIDER_virtual/libgles2 ?= "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "mesa", "userland", d)}"
|
||||
PREFERRED_PROVIDER_virtual/libgl ?= "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "mesa", "mesa-gl", d)}"
|
||||
PREFERRED_PROVIDER_virtual/mesa ?= "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "mesa", "mesa-gl", d)}"
|
||||
PREFERRED_PROVIDER_virtual/libgbm ?= "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "mesa", "mesa-gl", d)}"
|
||||
PREFERRED_PROVIDER_vlc ?= "rpidistro-vlc"
|
||||
PREFERRED_PROVIDER_ffmpeg ?= "rpidistro-ffmpeg"
|
||||
PREFERRED_PROVIDER_libav ?= "rpidistro-ffmpeg"
|
||||
PREFERRED_PROVIDER_libpostproc ?= "rpidistro-ffmpeg"
|
||||
PREFERRED_PROVIDER_jpeg ?= "jpeg"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/libomxil ?= "userland"
|
||||
VIRTUAL-RUNTIME_libomxil = "userland"
|
||||
|
||||
PREFERRED_PROVIDER_u-boot-default-script ??= "rpi-u-boot-scr"
|
||||
@@ -0,0 +1,9 @@
|
||||
# RaspberryPi BSP default settings
|
||||
|
||||
IMAGE_CLASSES += "sdcard_image-rpi"
|
||||
|
||||
# RPI kernel has errors of its own which should be filtered
|
||||
# therefore use parselogs_rpi test instead of parselogs from oe-core
|
||||
#
|
||||
DEFAULT_TEST_SUITES:append:rpi = " parselogs_rpi"
|
||||
DEFAULT_TEST_SUITES:remove:rpi = " parselogs"
|
||||
@@ -0,0 +1,4 @@
|
||||
# RaspberryPi BSP default versions
|
||||
|
||||
PREFERRED_VERSION_linux-raspberrypi ??= "6.1.%"
|
||||
PREFERRED_VERSION_linux-raspberrypi-v7 ??= "${PREFERRED_VERSION_linux-raspberrypi}"
|
||||
@@ -0,0 +1,17 @@
|
||||
DEFAULTTUNE ?= "arm1176jzfshf"
|
||||
|
||||
require conf/machine/include/arm/arch-armv6.inc
|
||||
|
||||
TUNEVALID[arm1176jzfs] = "Enable arm1176jzfs specific processor optimizations"
|
||||
TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'arm1176jzfs', ' -mcpu=arm1176jzf-s', '', d)}"
|
||||
MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'arm1176jzfs', 'armv6:', '', d)}"
|
||||
|
||||
AVAILTUNES += "arm1176jzfs"
|
||||
ARMPKGARCH:tune-arm1176jzfs = "arm1176jzfs"
|
||||
TUNE_FEATURES:tune-arm1176jzfs = "arm thumb vfp arm1176jzfs"
|
||||
PACKAGE_EXTRA_ARCHS:tune-arm1176jzfs = "${PACKAGE_EXTRA_ARCHS:tune-armv6} arm1176jzfs"
|
||||
|
||||
AVAILTUNES += "arm1176jzfshf"
|
||||
ARMPKGARCH:tune-arm1176jzfshf = "${ARMPKGARCH:tune-arm1176jzfs}"
|
||||
TUNE_FEATURES:tune-arm1176jzfshf = "${TUNE_FEATURES:tune-arm1176jzfs} callconvention-hard"
|
||||
PACKAGE_EXTRA_ARCHS:tune-arm1176jzfshf = "${PACKAGE_EXTRA_ARCHS:tune-armv6thf} arm1176jzfshf-vfp"
|
||||
@@ -0,0 +1,39 @@
|
||||
# SPDX-FileCopyrightText: Andrei Gherzan <andrei.gherzan@huawei.com>
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
#@TYPE: Machine
|
||||
#@NAME: RaspberryPi Development Boards (32bit)
|
||||
#@DESCRIPTION: Machine configuration for the RaspberryPi boards in 32 bit mode
|
||||
|
||||
DEFAULTTUNE ?= "cortexa7thf-neon-vfpv4"
|
||||
require conf/machine/include/arm/armv7a/tune-cortexa7.inc
|
||||
include conf/machine/include/rpi-base.inc
|
||||
|
||||
# This machine includes by default the kernel for v7l. We hook in support for
|
||||
# v7.
|
||||
RASPBERRYPI_v7_KERNEL = "linux-raspberrypi-v7"
|
||||
RASPBERRYPI_v7_KERNEL_PACKAGE_NAME = "kernel-v7"
|
||||
RASPBERRYPI_v7_KERNEL_FILE ?= "kernel7.img"
|
||||
# We don't need a lot for v7l because it is the default provider,
|
||||
# virtual/kernel.
|
||||
RASPBERRYPI_v7l_KERNEL_FILE ?= "kernel7l.img"
|
||||
|
||||
MACHINE_FEATURES += "pci"
|
||||
MACHINE_EXTRA_RRECOMMENDS += "\
|
||||
linux-firmware-rpidistro-bcm43430 \
|
||||
linux-firmware-rpidistro-bcm43436 \
|
||||
linux-firmware-rpidistro-bcm43436s \
|
||||
linux-firmware-rpidistro-bcm43455 \
|
||||
linux-firmware-rpidistro-bcm43456 \
|
||||
bluez-firmware-rpidistro-bcm43430a1-hcd \
|
||||
bluez-firmware-rpidistro-bcm43430b0-hcd \
|
||||
bluez-firmware-rpidistro-bcm4345c0-hcd \
|
||||
bluez-firmware-rpidistro-bcm4345c5-hcd \
|
||||
"
|
||||
|
||||
# FIXME: This machine doesn't support u-boot (yet)
|
||||
RPI_EXTRA_IMAGE_BOOT_FILES = " \
|
||||
${KERNEL_IMAGETYPE};${RASPBERRYPI_v7l_KERNEL_FILE} \
|
||||
${RASPBERRYPI_v7_KERNEL_PACKAGE_NAME}/${KERNEL_IMAGETYPE};${RASPBERRYPI_v7_KERNEL_FILE} \
|
||||
"
|
||||
@@ -0,0 +1,44 @@
|
||||
# SPDX-FileCopyrightText: Andrei Gherzan <andrei.gherzan@huawei.com>
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
#@TYPE: Machine
|
||||
#@NAME: RaspberryPi Development Boards (64bit)
|
||||
#@DESCRIPTION: Machine configuration for the RaspberryPi boards in 64 bit mode
|
||||
|
||||
require conf/machine/include/arm/armv8a/tune-cortexa53.inc
|
||||
include conf/machine/include/rpi-base.inc
|
||||
|
||||
MACHINE_FEATURES += "pci"
|
||||
MACHINE_EXTRA_RRECOMMENDS += "\
|
||||
linux-firmware-rpidistro-bcm43430 \
|
||||
linux-firmware-rpidistro-bcm43455 \
|
||||
linux-firmware-rpidistro-bcm43456 \
|
||||
linux-firmware-rpidistro-bcm43436 \
|
||||
linux-firmware-rpidistro-bcm43436s \
|
||||
bluez-firmware-rpidistro-bcm43430a1-hcd \
|
||||
bluez-firmware-rpidistro-bcm43430b0-hcd \
|
||||
bluez-firmware-rpidistro-bcm4345c0-hcd \
|
||||
bluez-firmware-rpidistro-bcm4345c5-hcd \
|
||||
"
|
||||
|
||||
RPI_KERNEL_DEVICETREE = " \
|
||||
broadcom/bcm2710-rpi-3-b.dtb \
|
||||
broadcom/bcm2710-rpi-3-b-plus.dtb \
|
||||
broadcom/bcm2837-rpi-3-b.dtb \
|
||||
broadcom/bcm2710-rpi-cm3.dtb \
|
||||
broadcom/bcm2710-rpi-zero-2.dtb \
|
||||
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"
|
||||
KERNEL_IMAGETYPE_UBOOT ?= "Image"
|
||||
KERNEL_IMAGETYPE_DIRECT ?= "Image"
|
||||
KERNEL_BOOTCMD ?= "booti"
|
||||
UBOOT_MACHINE = "rpi_arm64_config"
|
||||
SERIAL_CONSOLES ?= "115200;ttyS0"
|
||||
|
||||
VC4DTBO ?= "vc4-fkms-v3d"
|
||||
@@ -0,0 +1,8 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: RaspberryPi Compute Module (CM1)
|
||||
#@DESCRIPTION: Machine configuration for the RaspberryPi Compute Module (CM1)
|
||||
|
||||
MACHINEOVERRIDES =. "raspberrypi:"
|
||||
include conf/machine/raspberrypi.conf
|
||||
|
||||
ARMSTUB ?= "armstub.bin"
|
||||
@@ -0,0 +1,13 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: RaspberryPi Compute Module 3 (CM3)
|
||||
#@DESCRIPTION: Machine configuration for the RaspberryPi Compute Module 3 (CM3)
|
||||
|
||||
DEFAULTTUNE ?= "cortexa7thf-neon-vfpv4"
|
||||
require conf/machine/include/arm/armv7a/tune-cortexa7.inc
|
||||
include conf/machine/include/rpi-base.inc
|
||||
|
||||
SDIMG_KERNELIMAGE ?= "kernel7.img"
|
||||
UBOOT_MACHINE = "rpi_3_32b_config"
|
||||
SERIAL_CONSOLES ?= "115200;ttyAMA0"
|
||||
|
||||
ARMSTUB ?= "armstub.bin"
|
||||
@@ -0,0 +1,14 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: RaspberryPi Development Board
|
||||
#@DESCRIPTION: Machine configuration for the RaspberryPi http://www.raspberrypi.org/ Board
|
||||
|
||||
DEFAULTTUNE ?= "arm1176jzfshf"
|
||||
|
||||
require conf/machine/include/tune-arm1176jzf-s.inc
|
||||
include conf/machine/include/rpi-base.inc
|
||||
|
||||
SDIMG_KERNELIMAGE ?= "kernel.img"
|
||||
UBOOT_MACHINE = "rpi_config"
|
||||
SERIAL_CONSOLES ?= "115200;ttyAMA0"
|
||||
|
||||
ARMSTUB ?= "armstub.bin"
|
||||
@@ -0,0 +1,17 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: RaspberryPi0 2 Wifi Development Board
|
||||
#@DESCRIPTION: Machine configuration for the RaspberryPi0 2 Wifi in 64 bits mode
|
||||
|
||||
MACHINEOVERRIDES =. "raspberrypi3-64:"
|
||||
|
||||
include conf/machine/raspberrypi3-64.conf
|
||||
|
||||
MACHINE_EXTRA_RRECOMMENDS += "\
|
||||
linux-firmware-rpidistro-bcm43436 \
|
||||
linux-firmware-rpidistro-bcm43436s \
|
||||
bluez-firmware-rpidistro-bcm43430b0-hcd \
|
||||
"
|
||||
|
||||
RPI_KERNEL_DEVICETREE = " \
|
||||
broadcom/bcm2710-rpi-zero-2.dtb \
|
||||
"
|
||||
@@ -0,0 +1,13 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: RaspberryPi0 2 Wifi Development Board
|
||||
#@DESCRIPTION: Machine configuration for the RaspberryPi0 2 Wifi in 32 bits mode
|
||||
|
||||
MACHINEOVERRIDES =. "raspberrypi3:"
|
||||
|
||||
include conf/machine/raspberrypi3.conf
|
||||
|
||||
MACHINE_EXTRA_RRECOMMENDS += "\
|
||||
linux-firmware-rpidistro-bcm43436 \
|
||||
linux-firmware-rpidistro-bcm43436s \
|
||||
bluez-firmware-rpidistro-bcm43430b0-hcd \
|
||||
"
|
||||
@@ -0,0 +1,18 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: RaspberryPi Zero WiFi Development Board
|
||||
#@DESCRIPTION: Machine configuration for the RaspberryPi Zero WiFi board (https://www.raspberrypi.org/blog/raspberry-pi-zero-w-joins-family/)
|
||||
|
||||
DEFAULTTUNE ?= "arm1176jzfshf"
|
||||
require conf/machine/include/tune-arm1176jzf-s.inc
|
||||
include conf/machine/include/rpi-base.inc
|
||||
|
||||
MACHINE_EXTRA_RRECOMMENDS += "\
|
||||
linux-firmware-rpidistro-bcm43430 \
|
||||
bluez-firmware-rpidistro-bcm43430a1-hcd \
|
||||
"
|
||||
|
||||
SDIMG_KERNELIMAGE ?= "kernel.img"
|
||||
UBOOT_MACHINE ?= "rpi_0_w_defconfig"
|
||||
SERIAL_CONSOLES ?= "115200;ttyS0"
|
||||
|
||||
ARMSTUB ?= "armstub.bin"
|
||||
@@ -0,0 +1,8 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: RaspberryPi Zero Development Board
|
||||
#@DESCRIPTION: Machine configuration for the RaspberryPi Zero board (https://www.raspberrypi.org/blog/raspberry-pi-zero)
|
||||
|
||||
MACHINEOVERRIDES =. "raspberrypi:"
|
||||
include conf/machine/raspberrypi.conf
|
||||
|
||||
SERIAL_CONSOLES ?= "115200;ttyAMA0"
|
||||
@@ -0,0 +1,14 @@
|
||||
#@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"
|
||||
@@ -0,0 +1,35 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: RaspberryPi 3 Development Board
|
||||
#@DESCRIPTION: Machine configuration for the RaspberryPi 3 in 64 bits mode
|
||||
|
||||
MACHINEOVERRIDES =. "raspberrypi3:"
|
||||
|
||||
MACHINE_EXTRA_RRECOMMENDS += "\
|
||||
linux-firmware-rpidistro-bcm43430 \
|
||||
linux-firmware-rpidistro-bcm43455 \
|
||||
bluez-firmware-rpidistro-bcm43430a1-hcd \
|
||||
bluez-firmware-rpidistro-bcm4345c0-hcd \
|
||||
"
|
||||
|
||||
require conf/machine/include/arm/armv8a/tune-cortexa53.inc
|
||||
include conf/machine/include/rpi-base.inc
|
||||
|
||||
RPI_KERNEL_DEVICETREE = " \
|
||||
broadcom/bcm2710-rpi-3-b.dtb \
|
||||
broadcom/bcm2710-rpi-3-b-plus.dtb \
|
||||
broadcom/bcm2837-rpi-3-b.dtb \
|
||||
broadcom/bcm2710-rpi-cm3.dtb \
|
||||
"
|
||||
|
||||
SDIMG_KERNELIMAGE ?= "kernel8.img"
|
||||
# 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"
|
||||
UBOOT_MACHINE = "rpi_arm64_config"
|
||||
SERIAL_CONSOLES ?= "115200;ttyS0"
|
||||
|
||||
VC4DTBO ?= "vc4-fkms-v3d"
|
||||
ARMSTUB ?= "armstub8.bin"
|
||||
@@ -0,0 +1,21 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: RaspberryPi 3 Development Board (32bit)
|
||||
#@DESCRIPTION: Machine configuration for the RaspberryPi 3 in 32 bits mode
|
||||
|
||||
DEFAULTTUNE ?= "cortexa7thf-neon-vfpv4"
|
||||
require conf/machine/include/arm/armv7a/tune-cortexa7.inc
|
||||
include conf/machine/include/rpi-base.inc
|
||||
|
||||
MACHINE_EXTRA_RRECOMMENDS += "\
|
||||
linux-firmware-rpidistro-bcm43430 \
|
||||
linux-firmware-rpidistro-bcm43455 \
|
||||
bluez-firmware-rpidistro-bcm43430a1-hcd \
|
||||
bluez-firmware-rpidistro-bcm4345c0-hcd \
|
||||
"
|
||||
|
||||
SDIMG_KERNELIMAGE ?= "kernel7.img"
|
||||
UBOOT_MACHINE = "rpi_3_32b_config"
|
||||
SERIAL_CONSOLES ?= "115200;ttyS0"
|
||||
|
||||
VC4DTBO ?= "vc4-fkms-v3d"
|
||||
ARMSTUB ?= "armstub7.bin"
|
||||
@@ -0,0 +1,39 @@
|
||||
#@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 \
|
||||
"
|
||||
|
||||
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"
|
||||
@@ -0,0 +1,23 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: RaspberryPi 4 Development Board (32bit)
|
||||
#@DESCRIPTION: Machine configuration for the RaspberryPi 4 in 32 bit mode
|
||||
|
||||
DEFAULTTUNE ?= "cortexa7thf-neon-vfpv4"
|
||||
require conf/machine/include/arm/armv7a/tune-cortexa7.inc
|
||||
include conf/machine/include/rpi-base.inc
|
||||
|
||||
MACHINE_FEATURES += "pci"
|
||||
MACHINE_EXTRA_RRECOMMENDS += "\
|
||||
linux-firmware-rpidistro-bcm43455 \
|
||||
bluez-firmware-rpidistro-bcm4345c0-hcd \
|
||||
linux-firmware-rpidistro-bcm43456 \
|
||||
bluez-firmware-rpidistro-bcm4345c5-hcd \
|
||||
"
|
||||
|
||||
# 'l' stands for LPAE
|
||||
SDIMG_KERNELIMAGE ?= "kernel7l.img"
|
||||
UBOOT_MACHINE = "rpi_4_32b_config"
|
||||
SERIAL_CONSOLES ?= "115200;ttyS0"
|
||||
|
||||
VC4DTBO ?= "vc4-kms-v3d"
|
||||
ARMSTUB ?= "armstub7.bin"
|
||||
Reference in New Issue
Block a user