Compare commits
11 Commits
master
...
mickledore
Author | SHA1 | Date | |
---|---|---|---|
7a21646e7d | |||
ca66e1859c | |||
302cada8c8 | |||
9c81413d0b | |||
cfd3eb4ec5 | |||
f9af665ee4 | |||
5c2d60b3f5 | |||
74b8496a2c | |||
750dadcb18 | |||
584c4bce89 | |||
aa0aed9a08 |
@ -1,6 +1,9 @@
|
|||||||
version: 2
|
version: 2
|
||||||
|
|
||||||
|
build:
|
||||||
|
os: ubuntu-22.04
|
||||||
|
tools:
|
||||||
|
python: "3.7"
|
||||||
python:
|
python:
|
||||||
version: "3.7"
|
|
||||||
install:
|
install:
|
||||||
- requirements: docs/requirements.txt
|
- requirements: docs/requirements.txt
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#@NAME: RaspberryPi Compute Module (CM1)
|
#@NAME: RaspberryPi Compute Module (CM1)
|
||||||
#@DESCRIPTION: Machine configuration for the RaspberryPi Compute Module (CM1)
|
#@DESCRIPTION: Machine configuration for the RaspberryPi Compute Module (CM1)
|
||||||
|
|
||||||
MACHINEOVERRIDES = "raspberrypi:${MACHINE}"
|
MACHINEOVERRIDES =. "raspberrypi:"
|
||||||
include conf/machine/raspberrypi.conf
|
include conf/machine/raspberrypi.conf
|
||||||
|
|
||||||
ARMSTUB ?= "armstub.bin"
|
ARMSTUB ?= "armstub.bin"
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
#@NAME: RaspberryPi0 2 Wifi Development Board
|
#@NAME: RaspberryPi0 2 Wifi Development Board
|
||||||
#@DESCRIPTION: Machine configuration for the RaspberryPi0 2 Wifi in 64 bits mode
|
#@DESCRIPTION: Machine configuration for the RaspberryPi0 2 Wifi in 64 bits mode
|
||||||
|
|
||||||
include conf/machine/raspberrypi3-64.conf
|
MACHINEOVERRIDES =. "raspberrypi3-64:"
|
||||||
|
|
||||||
MACHINEOVERRIDES := "${@'${MACHINEOVERRIDES}'.replace(':${MACHINE}',':raspberrypi3-64:${MACHINE}')}"
|
include conf/machine/raspberrypi3-64.conf
|
||||||
|
|
||||||
MACHINE_EXTRA_RRECOMMENDS += "\
|
MACHINE_EXTRA_RRECOMMENDS += "\
|
||||||
linux-firmware-rpidistro-bcm43436 \
|
linux-firmware-rpidistro-bcm43436 \
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
#@NAME: RaspberryPi0 2 Wifi Development Board
|
#@NAME: RaspberryPi0 2 Wifi Development Board
|
||||||
#@DESCRIPTION: Machine configuration for the RaspberryPi0 2 Wifi in 32 bits mode
|
#@DESCRIPTION: Machine configuration for the RaspberryPi0 2 Wifi in 32 bits mode
|
||||||
|
|
||||||
include conf/machine/raspberrypi3.conf
|
MACHINEOVERRIDES =. "raspberrypi3:"
|
||||||
|
|
||||||
MACHINEOVERRIDES := "${@'${MACHINEOVERRIDES}'.replace(':${MACHINE}',':raspberrypi3:${MACHINE}')}"
|
include conf/machine/raspberrypi3.conf
|
||||||
|
|
||||||
MACHINE_EXTRA_RRECOMMENDS += "\
|
MACHINE_EXTRA_RRECOMMENDS += "\
|
||||||
linux-firmware-rpidistro-bcm43436 \
|
linux-firmware-rpidistro-bcm43436 \
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#@NAME: RaspberryPi Zero Development Board
|
#@NAME: RaspberryPi Zero Development Board
|
||||||
#@DESCRIPTION: Machine configuration for the RaspberryPi Zero board (https://www.raspberrypi.org/blog/raspberry-pi-zero)
|
#@DESCRIPTION: Machine configuration for the RaspberryPi Zero board (https://www.raspberrypi.org/blog/raspberry-pi-zero)
|
||||||
|
|
||||||
MACHINEOVERRIDES = "raspberrypi:${MACHINE}"
|
MACHINEOVERRIDES =. "raspberrypi:"
|
||||||
include conf/machine/raspberrypi.conf
|
include conf/machine/raspberrypi.conf
|
||||||
|
|
||||||
SERIAL_CONSOLES ?= "115200;ttyAMA0"
|
SERIAL_CONSOLES ?= "115200;ttyAMA0"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#@NAME: RaspberryPi 3 Development Board
|
#@NAME: RaspberryPi 3 Development Board
|
||||||
#@DESCRIPTION: Machine configuration for the RaspberryPi 3 in 64 bits mode
|
#@DESCRIPTION: Machine configuration for the RaspberryPi 3 in 64 bits mode
|
||||||
|
|
||||||
MACHINEOVERRIDES = "raspberrypi3:${MACHINE}"
|
MACHINEOVERRIDES =. "raspberrypi3:"
|
||||||
|
|
||||||
MACHINE_EXTRA_RRECOMMENDS += "\
|
MACHINE_EXTRA_RRECOMMENDS += "\
|
||||||
linux-firmware-rpidistro-bcm43430 \
|
linux-firmware-rpidistro-bcm43430 \
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#@NAME: RaspberryPi 4 Development Board (64bit)
|
#@NAME: RaspberryPi 4 Development Board (64bit)
|
||||||
#@DESCRIPTION: Machine configuration for the RaspberryPi 4 in 64 bits mode
|
#@DESCRIPTION: Machine configuration for the RaspberryPi 4 in 64 bits mode
|
||||||
|
|
||||||
MACHINEOVERRIDES = "raspberrypi4:${MACHINE}"
|
MACHINEOVERRIDES =. "raspberrypi4:"
|
||||||
|
|
||||||
MACHINE_FEATURES += "pci"
|
MACHINE_FEATURES += "pci"
|
||||||
MACHINE_EXTRA_RRECOMMENDS += "\
|
MACHINE_EXTRA_RRECOMMENDS += "\
|
||||||
|
@ -1,36 +0,0 @@
|
|||||||
From 55ca589ab9e6e719c1e1f9fc72997d1643d28fe3 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Allan Xavier <mr.a.xavier@googlemail.com>
|
|
||||||
Date: Thu, 12 Jan 2023 12:08:55 +0000
|
|
||||||
Subject: [PATCH] Fix rpi-eeprom-update when using busybox find
|
|
||||||
|
|
||||||
The busybox implementation of find does not detect recursive nested
|
|
||||||
symlinks, this results in it finding multiple instances of of_node
|
|
||||||
matching -samefile, the result of which then fails the -e path test.
|
|
||||||
|
|
||||||
The of_node symlink we're tyring to find should match the path
|
|
||||||
/sys/bus/nvmem/devices/*/of_node so just limit the find depth to 3 as
|
|
||||||
there's no point searching deeper than that.
|
|
||||||
|
|
||||||
Signed-off-by: Allan Xavier <mr.a.xavier@googlemail.com>
|
|
||||||
|
|
||||||
Upstream-Status: Backport [https://github.com/raspberrypi/rpi-eeprom/commit/55ca589ab9e6e719c1e1f9fc72997d1643d28fe3]
|
|
||||||
---
|
|
||||||
rpi-eeprom-update | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/rpi-eeprom-update b/rpi-eeprom-update
|
|
||||||
index 79eb3bf..cb25316 100755
|
|
||||||
--- a/rpi-eeprom-update
|
|
||||||
+++ b/rpi-eeprom-update
|
|
||||||
@@ -126,7 +126,7 @@ getBootloaderConfig() {
|
|
||||||
|
|
||||||
if [ -f "${blconfig_alias}" ]; then
|
|
||||||
local blconfig_ofnode_path="/sys/firmware/devicetree/base"$(strings "${blconfig_alias}")""
|
|
||||||
- local blconfig_ofnode_link=$(find -L /sys/bus/nvmem -samefile "${blconfig_ofnode_path}" 2>/dev/null)
|
|
||||||
+ local blconfig_ofnode_link=$(find -L /sys/bus/nvmem -maxdepth 3 -samefile "${blconfig_ofnode_path}" 2>/dev/null)
|
|
||||||
|
|
||||||
if [ -e "${blconfig_ofnode_link}" ]; then
|
|
||||||
blconfig_nvmem_path=$(dirname "${blconfig_ofnode_link}")
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -6,11 +6,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=f546ed4f47e9d4c1fe954ecc9d3ef4f3"
|
|||||||
|
|
||||||
SRC_URI = " \
|
SRC_URI = " \
|
||||||
git://github.com/raspberrypi/rpi-eeprom.git;protocol=https;branch=master \
|
git://github.com/raspberrypi/rpi-eeprom.git;protocol=https;branch=master \
|
||||||
file://0001-Fix-rpi-eeprom-update-when-using-busybox-find.patch \
|
|
||||||
"
|
"
|
||||||
|
|
||||||
SRCREV = "6e79e995bbc75c5fdd5305bd7fe029758cfade2f"
|
SRCREV = "f13b5789f56f65112e2b8aa58be43ebfcbedfe1d"
|
||||||
PV = "v2022.12.07-138a1"
|
PV = "v2023.10.18-2712"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
@ -35,16 +34,15 @@ do_install() {
|
|||||||
install -m 0755 ${S}/rpi-eeprom-digest ${D}${bindir}
|
install -m 0755 ${S}/rpi-eeprom-digest ${D}${bindir}
|
||||||
|
|
||||||
# copy firmware files
|
# copy firmware files
|
||||||
install -d ${D}${base_libdir}/firmware/raspberrypi/bootloader/critical
|
install -d ${D}${base_libdir}/firmware/raspberrypi/bootloader/default
|
||||||
install -d ${D}${base_libdir}/firmware/raspberrypi/bootloader/stable
|
install -d ${D}${base_libdir}/firmware/raspberrypi/bootloader/latest
|
||||||
install -d ${D}${base_libdir}/firmware/raspberrypi/bootloader/beta
|
|
||||||
|
|
||||||
install -m 644 ${S}/firmware/critical/* ${D}${base_libdir}/firmware/raspberrypi/bootloader/critical
|
install -m 644 ${S}/firmware-2711/default/* ${D}${base_libdir}/firmware/raspberrypi/bootloader/default
|
||||||
install -m 644 ${S}/firmware/stable/* ${D}${base_libdir}/firmware/raspberrypi/bootloader/stable
|
install -m 644 ${S}/firmware-2711/latest/* ${D}${base_libdir}/firmware/raspberrypi/bootloader/latest
|
||||||
install -m 644 ${S}/firmware/beta/* ${D}${base_libdir}/firmware/raspberrypi/bootloader/beta
|
|
||||||
|
|
||||||
ln -s critical ${D}${base_libdir}/firmware/raspberrypi/bootloader/default
|
ln -s default ${D}${base_libdir}/firmware/raspberrypi/bootloader/critical
|
||||||
ln -s stable ${D}${base_libdir}/firmware/raspberrypi/bootloader/latest
|
ln -s latest ${D}${base_libdir}/firmware/raspberrypi/bootloader/stable
|
||||||
|
ln -s latest ${D}${base_libdir}/firmware/raspberrypi/bootloader/beta
|
||||||
|
|
||||||
# copy default config
|
# copy default config
|
||||||
install -d ${D}${sysconfdir}/default
|
install -d ${D}${sysconfdir}/default
|
||||||
|
@ -3,16 +3,17 @@ LICENSE = "MIT"
|
|||||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
||||||
|
|
||||||
SRC_URI = " \
|
SRC_URI = " \
|
||||||
file://99-com.rules \
|
git://github.com/RPi-Distro/raspberrypi-sys-mods;protocol=https;branch=master \
|
||||||
file://can.rules \
|
file://can.rules \
|
||||||
"
|
"
|
||||||
|
SRCREV = "5ce3ef2b7f377c23fea440ca9df0e30f3f8447cf"
|
||||||
|
|
||||||
S = "${WORKDIR}"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
INHIBIT_DEFAULT_DEPS = "1"
|
INHIBIT_DEFAULT_DEPS = "1"
|
||||||
|
|
||||||
do_install () {
|
do_install () {
|
||||||
install -d ${D}${sysconfdir}/udev/rules.d
|
install -d ${D}${sysconfdir}/udev/rules.d
|
||||||
install -m 0644 ${WORKDIR}/99-com.rules ${D}${sysconfdir}/udev/rules.d/
|
install -m 0644 ${S}/etc.armhf/udev/rules.d/99-com.rules ${D}${sysconfdir}/udev/rules.d/
|
||||||
install -m 0644 ${WORKDIR}/can.rules ${D}${sysconfdir}/udev/rules.d/
|
install -m 0644 ${WORKDIR}/can.rules ${D}${sysconfdir}/udev/rules.d/
|
||||||
}
|
}
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
KERNEL=="ttyAMA[01]", PROGRAM="/bin/sh -c '\
|
|
||||||
ALIASES=/proc/device-tree/aliases; \
|
|
||||||
if cmp -s $$ALIASES/uart0 $$ALIASES/serial0; then \
|
|
||||||
echo 0;\
|
|
||||||
elif cmp -s $$ALIASES/uart0 $$ALIASES/serial1; then \
|
|
||||||
echo 1; \
|
|
||||||
else \
|
|
||||||
exit 1; \
|
|
||||||
fi\
|
|
||||||
'", SYMLINK+="serial%c"
|
|
||||||
|
|
||||||
KERNEL=="ttyS0", PROGRAM="/bin/sh -c '\
|
|
||||||
ALIASES=/proc/device-tree/aliases; \
|
|
||||||
if cmp -s $$ALIASES/uart1 $$ALIASES/serial0; then \
|
|
||||||
echo 0; \
|
|
||||||
elif cmp -s $$ALIASES/uart1 $$ALIASES/serial1; then \
|
|
||||||
echo 1; \
|
|
||||||
else \
|
|
||||||
exit 1; \
|
|
||||||
fi \
|
|
||||||
'", SYMLINK+="serial%c"
|
|
9
recipes-kernel/linux/files/default-cpu-governor.cfg
Normal file
9
recipes-kernel/linux/files/default-cpu-governor.cfg
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# The defconfigs from the RPi Kernel set "powersave" as the default CPU governor.
|
||||||
|
# That is a bad idea as it reduces performance, so we unset that default option here.
|
||||||
|
# The option to build the powersave governor (but not as the default) is also enabled.
|
||||||
|
# A fix for this was sent to upstream: https://github.com/raspberrypi/linux/pull/5666
|
||||||
|
# However, we need to carry this option override until those defconfigs are fixed on
|
||||||
|
# *all* the kernel branches that we support. So that can be a long time depending
|
||||||
|
# on wheter the above PR gets accepted and/or backported to the stable branches.
|
||||||
|
CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE=n
|
||||||
|
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
|
@ -15,6 +15,7 @@ SRC_URI += " \
|
|||||||
${@bb.utils.contains("INITRAMFS_IMAGE_BUNDLE", "1", "file://initramfs-image-bundle.cfg", "", d)} \
|
${@bb.utils.contains("INITRAMFS_IMAGE_BUNDLE", "1", "file://initramfs-image-bundle.cfg", "", d)} \
|
||||||
${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "file://vc4graphics.cfg", "", d)} \
|
${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "file://vc4graphics.cfg", "", d)} \
|
||||||
${@bb.utils.contains("MACHINE_FEATURES", "wm8960", "file://wm8960.cfg", "", d)} \
|
${@bb.utils.contains("MACHINE_FEATURES", "wm8960", "file://wm8960.cfg", "", d)} \
|
||||||
|
file://default-cpu-governor.cfg \
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI:append:raspberrypi4 = " \
|
SRC_URI:append:raspberrypi4 = " \
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
LINUX_VERSION ?= "6.1.20"
|
LINUX_VERSION ?= "6.1.77"
|
||||||
LINUX_RPI_BRANCH ?= "rpi-6.1.y"
|
LINUX_RPI_BRANCH ?= "rpi-6.1.y"
|
||||||
LINUX_RPI_KMETA_BRANCH ?= "yocto-6.1"
|
LINUX_RPI_KMETA_BRANCH ?= "yocto-6.1"
|
||||||
|
|
||||||
SRCREV_machine = "a1cd5351f431caf7cf472825aff0e1c66bf31de4"
|
SRCREV_machine = "77fc1fbcb5c013329af9583307dd1ff3cd4752aa"
|
||||||
SRCREV_meta = "1a97a82e62ebf4ef3787768a1f5937e2d2f280ce"
|
SRCREV_meta = "43d1723dbe0ce7b341cf32feeb35ecbe6b0ce29a"
|
||||||
|
|
||||||
KMETA = "kernel-meta"
|
KMETA = "kernel-meta"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user