mirror of
https://github.com/agherzan/meta-raspberrypi.git
synced 2025-12-06 06:19:11 +00:00
Compare commits
23 Commits
3afc9728b1
...
kirkstone
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
255500dd9f | ||
|
|
39e5dfd9cb | ||
|
|
9e12ad97b4 | ||
|
|
ac5e8d64b5 | ||
|
|
d7544f3575 | ||
|
|
d2bbc1f32e | ||
|
|
160ae17ce6 | ||
|
|
70c293b25f | ||
|
|
78ad1d44c3 | ||
|
|
a8b5f93c52 | ||
|
|
fd64cfa5e8 | ||
|
|
9dc6673d41 | ||
|
|
ab5815a2ca | ||
|
|
ea4470da2a | ||
|
|
e6d2ff0b0c | ||
|
|
8bad47eba3 | ||
|
|
c40c6e21ed | ||
|
|
59a6a1b5dd | ||
|
|
80a12f7fdd | ||
|
|
43683cb14b | ||
|
|
2a06e4e84b | ||
|
|
dacad9302a | ||
|
|
fdf8252440 |
2
.github/actions/docker-build/action.yml
vendored
2
.github/actions/docker-build/action.yml
vendored
@@ -32,7 +32,7 @@ runs:
|
||||
n=1
|
||||
until [ "$n" -gt "$tries" ]; do
|
||||
echo "Building the docker image ${{ inputs.docker_image }}-${{ inputs.id }}... try $n..."
|
||||
if docker build . -f "${{ inputs.docker_image }}/Dockerfile" -t "${{ inputs.docker_image }}-${{ inputs.id }}"; then
|
||||
if docker build --no-cache . -f "${{ inputs.docker_image }}/Dockerfile" -t "${{ inputs.docker_image }}-${{ inputs.id }}"; then
|
||||
# This can fail if a dangling images cleaning job runs in
|
||||
# parallel. So we try this a couple of times to minimize
|
||||
# conflict. This is because while building, docker creates a
|
||||
|
||||
2
.github/workflows/docker-images/README.md
vendored
2
.github/workflows/docker-images/README.md
vendored
@@ -17,5 +17,5 @@ passing the appropriate `-f` argument.
|
||||
Here is an example for building the `dco-check` image:
|
||||
|
||||
```
|
||||
docker build . -f dco-check/Dockerfile -t dco-check
|
||||
docker build --no-cache . -f dco-check/Dockerfile -t dco-check
|
||||
```
|
||||
|
||||
1
.github/workflows/yocto-builds.yml
vendored
1
.github/workflows/yocto-builds.yml
vendored
@@ -23,6 +23,7 @@ jobs:
|
||||
- raspberrypi3
|
||||
- raspberrypi4-64
|
||||
- raspberrypi4
|
||||
- raspberrypi5
|
||||
- raspberrypi-cm3
|
||||
- raspberrypi-cm
|
||||
image: [rpi-test-image]
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
version: 2
|
||||
|
||||
sphinx:
|
||||
configuration: docs/conf.py
|
||||
build:
|
||||
os: ubuntu-22.04
|
||||
tools:
|
||||
python: "3.7"
|
||||
python:
|
||||
version: "3.7"
|
||||
install:
|
||||
- requirements: docs/requirements.txt
|
||||
|
||||
@@ -25,8 +25,14 @@ RPI_KERNEL_DEVICETREE_OVERLAYS ?= " \
|
||||
overlays/gpio-poweroff.dtbo \
|
||||
overlays/gpio-shutdown.dtbo \
|
||||
overlays/hifiberry-amp.dtbo \
|
||||
overlays/hifiberry-amp100.dtbo \
|
||||
overlays/hifiberry-amp3.dtbo \
|
||||
overlays/hifiberry-dac.dtbo \
|
||||
overlays/hifiberry-dacplus.dtbo \
|
||||
overlays/hifiberry-dacplusadcpro.dtbo \
|
||||
overlays/hifiberry-dacplusdsp.dtbo \
|
||||
overlays/hifiberry-dacplushd.dtbo \
|
||||
overlays/hifiberry-digi-pro.dtbo \
|
||||
overlays/hifiberry-digi.dtbo \
|
||||
overlays/justboom-both.dtbo \
|
||||
overlays/justboom-dac.dtbo \
|
||||
@@ -58,6 +64,10 @@ RPI_KERNEL_DEVICETREE_OVERLAYS ?= " \
|
||||
overlays/wm8960-soundcard.dtbo \
|
||||
"
|
||||
|
||||
RPI_KERNEL_DEVICETREE_OVERLAYS:append:raspberrypi5 = " \
|
||||
overlays/vc4-kms-v3d-pi5.dtbo \
|
||||
"
|
||||
|
||||
RPI_KERNEL_DEVICETREE ?= " \
|
||||
bcm2708-rpi-zero.dtb \
|
||||
bcm2708-rpi-zero-w.dtb \
|
||||
@@ -73,6 +83,7 @@ RPI_KERNEL_DEVICETREE ?= " \
|
||||
bcm2708-rpi-cm.dtb \
|
||||
bcm2710-rpi-cm3.dtb \
|
||||
bcm2711-rpi-cm4.dtb \
|
||||
bcm2711-rpi-cm4s.dtb \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE ??= " \
|
||||
@@ -141,6 +152,7 @@ IMAGE_BOOT_FILES ?= "${BOOTFILES_DIR_NAME}/* \
|
||||
'${KERNEL_IMAGETYPE};${SDIMG_KERNELIMAGE}', d)} \
|
||||
"
|
||||
do_image_wic[depends] += " \
|
||||
virtual/kernel:do_deploy \
|
||||
rpi-bootfiles:do_deploy \
|
||||
${@bb.utils.contains('RPI_USE_U_BOOT', '1', 'u-boot:do_deploy', '',d)} \
|
||||
"
|
||||
|
||||
46
conf/machine/raspberrypi-armv8.conf
Normal file
46
conf/machine/raspberrypi-armv8.conf
Normal file
@@ -0,0 +1,46 @@
|
||||
# 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 \
|
||||
"
|
||||
|
||||
RPI_KERNEL_DEVICETREE:append:raspberrypi5 = " broadcom/bcm2712-rpi-5-b.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"
|
||||
@@ -2,7 +2,7 @@
|
||||
#@NAME: RaspberryPi Compute Module (CM1)
|
||||
#@DESCRIPTION: Machine configuration for the RaspberryPi Compute Module (CM1)
|
||||
|
||||
MACHINEOVERRIDES = "raspberrypi:${MACHINE}"
|
||||
MACHINEOVERRIDES =. "raspberrypi:"
|
||||
include conf/machine/raspberrypi.conf
|
||||
|
||||
ARMSTUB ?= "armstub.bin"
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
#@NAME: RaspberryPi0 2 Wifi Development Board
|
||||
#@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 += "\
|
||||
linux-firmware-rpidistro-bcm43436 \
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
#@NAME: RaspberryPi0 2 Wifi Development Board
|
||||
#@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 += "\
|
||||
linux-firmware-rpidistro-bcm43436 \
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#@NAME: RaspberryPi Zero Development Board
|
||||
#@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
|
||||
|
||||
SERIAL_CONSOLES ?= "115200;ttyAMA0"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#@NAME: RaspberryPi 3 Development Board
|
||||
#@DESCRIPTION: Machine configuration for the RaspberryPi 3 in 64 bits mode
|
||||
|
||||
MACHINEOVERRIDES = "raspberrypi3:${MACHINE}"
|
||||
MACHINEOVERRIDES =. "raspberrypi3:"
|
||||
|
||||
MACHINE_EXTRA_RRECOMMENDS += "\
|
||||
linux-firmware-rpidistro-bcm43430 \
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#@NAME: RaspberryPi 4 Development Board (64bit)
|
||||
#@DESCRIPTION: Machine configuration for the RaspberryPi 4 in 64 bits mode
|
||||
|
||||
MACHINEOVERRIDES = "raspberrypi4:${MACHINE}"
|
||||
MACHINEOVERRIDES =. "raspberrypi4:"
|
||||
|
||||
MACHINE_FEATURES += "pci"
|
||||
MACHINE_EXTRA_RRECOMMENDS += "\
|
||||
|
||||
32
conf/machine/raspberrypi5.conf
Normal file
32
conf/machine/raspberrypi5.conf
Normal file
@@ -0,0 +1,32 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: RaspberryPi 5 Development Board (64bit)
|
||||
#@DESCRIPTION: Machine configuration for the RaspberryPi 5 in 64 bits mode
|
||||
|
||||
require conf/machine/include/arm/armv8-2a/tune-cortexa76.inc
|
||||
include conf/machine/include/rpi-base.inc
|
||||
|
||||
PREFERRED_VERSION_linux-raspberrypi = "6.1%"
|
||||
|
||||
MACHINE_FEATURES += "pci"
|
||||
MACHINE_EXTRA_RRECOMMENDS += "\
|
||||
linux-firmware-rpidistro-bcm43455 \
|
||||
bluez-firmware-rpidistro-bcm4345c0-hcd \
|
||||
linux-firmware-rpidistro-bcm43456 \
|
||||
bluez-firmware-rpidistro-bcm4345c5-hcd \
|
||||
"
|
||||
|
||||
RPI_KERNEL_DEVICETREE = " \
|
||||
broadcom/bcm2712-rpi-5-b.dtb \
|
||||
"
|
||||
|
||||
SDIMG_KERNELIMAGE ?= "kernel_2712.img"
|
||||
SERIAL_CONSOLES ?= "115200;ttyAMA10"
|
||||
|
||||
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"
|
||||
@@ -314,6 +314,13 @@ Some modules may require setting the frequency of the crystal oscillator used on
|
||||
|
||||
CAN_OSCILLATOR="8000000"
|
||||
|
||||
Configure the interrupt pin to the one connected to the CAN module. By default,
|
||||
the pins are set to 25 for can0 and 24 for can1. To change them to 12 and 16,
|
||||
the following variables also have to be set:
|
||||
|
||||
CAN0_INTERRUPT_PIN = "12"
|
||||
CAN1_INTERRUPT_PIN = "16"
|
||||
|
||||
Tested modules:
|
||||
|
||||
* PiCAN2 (16 MHz crystal): <http://skpang.co.uk/catalog/pican2-canbus-board-for-raspberry-pi-23-p-1475.html>
|
||||
|
||||
@@ -12,7 +12,8 @@ repos:
|
||||
poky:
|
||||
url: https://git.yoctoproject.org/git/poky
|
||||
path: layers/poky
|
||||
refspec: master
|
||||
branch: kirkstone
|
||||
commit: b5aa03f336c121269551f9e7baed4c677c76bb39
|
||||
layers:
|
||||
meta:
|
||||
meta-poky:
|
||||
@@ -21,7 +22,8 @@ repos:
|
||||
meta-openembedded:
|
||||
url: http://git.openembedded.org/meta-openembedded
|
||||
path: layers/meta-openembedded
|
||||
refspec: master
|
||||
branch: kirkstone
|
||||
commit: de8681b4a2a101b99dd2c48d89a7de2ccd9a961f
|
||||
layers:
|
||||
meta-oe:
|
||||
meta-python:
|
||||
@@ -31,7 +33,8 @@ repos:
|
||||
meta-qt5:
|
||||
url: https://github.com/meta-qt5/meta-qt5/
|
||||
path: layers/meta-qt5
|
||||
refspec: master
|
||||
branch: kirkstone
|
||||
commit: 644ebf220245bdc06e7696ccc90acc97a0dd2566
|
||||
|
||||
bblayers_conf_header:
|
||||
standard: |
|
||||
@@ -55,7 +58,7 @@ local_conf_header:
|
||||
STOPTASKS,${DL_DIR},1G,100K \
|
||||
STOPTASKS,${SSTATE_DIR},1G,100K \
|
||||
STOPTASKS,/tmp,100M,100K \
|
||||
ABORT,${TMPDIR},100M,1K \
|
||||
ABORT,${DL_DIR},100M,1K \
|
||||
ABORT,${SSTATE_DIR},100M,1K \
|
||||
ABORT,/tmp,10M,1K"
|
||||
HALT,${TMPDIR},100M,1K \
|
||||
HALT,${DL_DIR},100M,1K \
|
||||
HALT,${SSTATE_DIR},100M,1K \
|
||||
HALT,/tmp,10M,1K"
|
||||
|
||||
@@ -62,7 +62,7 @@ CMDLINE = " \
|
||||
"
|
||||
|
||||
do_compile() {
|
||||
echo "${@' '.join('${CMDLINE}'.split())}" > "${WORKDIR}/cmdline.txt"
|
||||
echo "${@' '.join(d.getVar('CMDLINE').split())}" > "${WORKDIR}/cmdline.txt"
|
||||
}
|
||||
|
||||
do_deploy() {
|
||||
|
||||
@@ -29,6 +29,8 @@ GPIO_IR ?= "18"
|
||||
GPIO_IR_TX ?= "17"
|
||||
|
||||
CAN_OSCILLATOR ?= "16000000"
|
||||
CAN0_INTERRUPT_PIN ?= "25"
|
||||
CAN1_INTERRUPT_PIN ?= "24"
|
||||
|
||||
ENABLE_UART ??= ""
|
||||
|
||||
@@ -247,12 +249,12 @@ do_deploy() {
|
||||
# ENABLE DUAL CAN
|
||||
if [ "${ENABLE_DUAL_CAN}" = "1" ]; then
|
||||
echo "# Enable DUAL CAN" >>$CONFIG
|
||||
echo "dtoverlay=mcp2515-can0,oscillator=${CAN_OSCILLATOR},interrupt=25" >>$CONFIG
|
||||
echo "dtoverlay=mcp2515-can1,oscillator=${CAN_OSCILLATOR},interrupt=24" >>$CONFIG
|
||||
echo "dtoverlay=mcp2515-can0,oscillator=${CAN_OSCILLATOR},interrupt=${CAN0_INTERRUPT_PIN}" >>$CONFIG
|
||||
echo "dtoverlay=mcp2515-can1,oscillator=${CAN_OSCILLATOR},interrupt=${CAN1_INTERRUPT_PIN}" >>$CONFIG
|
||||
# ENABLE CAN
|
||||
elif [ "${ENABLE_CAN}" = "1" ]; then
|
||||
echo "# Enable CAN" >>$CONFIG
|
||||
echo "dtoverlay=mcp2515-can0,oscillator=${CAN_OSCILLATOR},interrupt=25" >>$CONFIG
|
||||
echo "dtoverlay=mcp2515-can0,oscillator=${CAN_OSCILLATOR},interrupt=${CAN0_INTERRUPT_PIN}" >>$CONFIG
|
||||
fi
|
||||
|
||||
|
||||
@@ -290,6 +292,19 @@ do_deploy() {
|
||||
echo "# Enable WM8960" >> $CONFIG
|
||||
echo "dtoverlay=wm8960-soundcard" >> $CONFIG
|
||||
fi
|
||||
|
||||
# W1-GPIO - One-Wire Interface
|
||||
if [ "${ENABLE_W1}" = "1" ]; then
|
||||
echo "# Enable One-Wire Interface" >> $CONFIG
|
||||
echo "dtoverlay=w1-gpio" >> $CONFIG
|
||||
fi
|
||||
|
||||
# Reduce config.txt file size to avoid corruption and
|
||||
# to boot successfully Raspberry Pi 5. The issue has
|
||||
# been reported to related projects:
|
||||
# https://github.com/raspberrypi/firmware/issues/1848
|
||||
# https://github.com/Evilpaul/RPi-config/issues/9
|
||||
sed -i '/^##/d' $CONFIG
|
||||
}
|
||||
|
||||
do_deploy:append:raspberrypi3-64() {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
RPIFW_DATE ?= "20220331"
|
||||
RPIFW_DATE ?= "20220830"
|
||||
|
||||
RPIFW_SRC_URI ?= "https://archive.raspberrypi.com/debian/pool/main/r/raspberrypi-firmware/raspberrypi-firmware_1.${RPIFW_DATE}.orig.tar.xz"
|
||||
RPIFW_S ?= "${WORKDIR}/raspberrypi-firmware-1.${RPIFW_DATE}"
|
||||
|
||||
SRC_URI = "${RPIFW_SRC_URI}"
|
||||
SRC_URI[sha256sum] = "8758f10797bd52a7373cc5b39bd46d0d9f882d501ccb9535a72a3fe8a8d329c3"
|
||||
SRC_URI[sha256sum] = "2b27e4b3c4d2664a0a1d0dd8602bd80ea41dd006eb0ad9c67d7b659c9c8bb4e5"
|
||||
|
||||
PV = "${RPIFW_DATE}"
|
||||
|
||||
@@ -12,3 +12,6 @@ do_install:append:rpi () {
|
||||
install -d ${D}${sysconfdir}
|
||||
install -m 0644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config
|
||||
}
|
||||
|
||||
# Temporary avoid Raspberry Pi 5 because U-Boot has not been ported yet
|
||||
COMPATIBLE_MACHINE:raspberrypi5 = "(-)"
|
||||
|
||||
4
recipes-core/psplash/files/framebuf.conf
Normal file
4
recipes-core/psplash/files/framebuf.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
[Unit]
|
||||
Requires=sys-devices-platform-gpu-graphics-fb0.device
|
||||
After=sys-devices-platform-gpu-graphics-fb0.device
|
||||
|
||||
@@ -1,2 +1,12 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
|
||||
SPLASH_IMAGES:rpi = "file://psplash-raspberrypi-img.h;outsuffix=raspberrypi"
|
||||
|
||||
SRC_URI:append:rpi = " file://framebuf.conf"
|
||||
|
||||
do_install:append:rpi() {
|
||||
if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then
|
||||
install -Dm 0644 ${WORKDIR}/framebuf.conf ${D}${systemd_system_unitdir}/psplash-start.service.d/framebuf.conf
|
||||
fi
|
||||
}
|
||||
|
||||
FILES:${PN}:append:rpi = " ${systemd_system_unitdir}/psplash-start.service.d"
|
||||
|
||||
@@ -3,16 +3,17 @@ LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
||||
|
||||
SRC_URI = " \
|
||||
file://99-com.rules \
|
||||
git://github.com/RPi-Distro/raspberrypi-sys-mods;protocol=https;branch=master \
|
||||
file://can.rules \
|
||||
"
|
||||
SRCREV = "5ce3ef2b7f377c23fea440ca9df0e30f3f8447cf"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
|
||||
do_install () {
|
||||
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/
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
@@ -0,0 +1,126 @@
|
||||
From 80663991ddaec664f6ffd37e4b61eed405fbfd9c Mon Sep 17 00:00:00 2001
|
||||
From: Chen-Yu Tsai <wens@kernel.org>
|
||||
Date: Thu, 7 Dec 2023 21:20:50 +0800
|
||||
Subject: [PATCH] wifi: cfg80211: Add my certificate
|
||||
|
||||
commit fb768d3b13ffa325b7e84480d488ac799c9d2cd7 upstream.
|
||||
|
||||
As announced [1][2], I have taken over maintainership of the
|
||||
wireless-regdb project.
|
||||
|
||||
Add my certificate so that newer releases are valid to the kernel.
|
||||
Seth's certificate should be kept around for awhile, at least until
|
||||
a few new releases by me happen.
|
||||
|
||||
This should also be applied to stable trees so that stable kernels
|
||||
can utilize newly released database binaries.
|
||||
|
||||
[1] https://lore.kernel.org/linux-wireless/CAGb2v657baNMPKU3QADijx7hZa=GUcSv2LEDdn6N=QQaFX8r-g@mail.gmail.com/
|
||||
[2] https://lore.kernel.org/linux-wireless/ZWmRR5ul7EDfxCan@wens.tw/
|
||||
|
||||
Cc: stable@vger.kernel.org
|
||||
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
|
||||
Acked-by: Seth Forshee <sforshee@kernel.org>
|
||||
Link: https://msgid.link/ZXHGsqs34qZyzZng@wens.tw
|
||||
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
||||
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
||||
---
|
||||
Upstream-Status: Backport [018f336f79fd wifi: cfg80211: Add my certificate]
|
||||
|
||||
net/wireless/certs/wens.hex | 87 +++++++++++++++++++++++++++++++++++++
|
||||
1 file changed, 87 insertions(+)
|
||||
create mode 100644 net/wireless/certs/wens.hex
|
||||
|
||||
diff --git a/net/wireless/certs/wens.hex b/net/wireless/certs/wens.hex
|
||||
new file mode 100644
|
||||
index 000000000000..ccd5b5dc3360
|
||||
--- /dev/null
|
||||
+++ b/net/wireless/certs/wens.hex
|
||||
@@ -0,0 +1,87 @@
|
||||
+/* Chen-Yu Tsai's regdb certificate */
|
||||
+0x30, 0x82, 0x02, 0xa7, 0x30, 0x82, 0x01, 0x8f,
|
||||
+0x02, 0x14, 0x61, 0xc0, 0x38, 0x65, 0x1a, 0xab,
|
||||
+0xdc, 0xf9, 0x4b, 0xd0, 0xac, 0x7f, 0xf0, 0x6c,
|
||||
+0x72, 0x48, 0xdb, 0x18, 0xc6, 0x00, 0x30, 0x0d,
|
||||
+0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d,
|
||||
+0x01, 0x01, 0x0b, 0x05, 0x00, 0x30, 0x0f, 0x31,
|
||||
+0x0d, 0x30, 0x0b, 0x06, 0x03, 0x55, 0x04, 0x03,
|
||||
+0x0c, 0x04, 0x77, 0x65, 0x6e, 0x73, 0x30, 0x20,
|
||||
+0x17, 0x0d, 0x32, 0x33, 0x31, 0x32, 0x30, 0x31,
|
||||
+0x30, 0x37, 0x34, 0x31, 0x31, 0x34, 0x5a, 0x18,
|
||||
+0x0f, 0x32, 0x31, 0x32, 0x33, 0x31, 0x31, 0x30,
|
||||
+0x37, 0x30, 0x37, 0x34, 0x31, 0x31, 0x34, 0x5a,
|
||||
+0x30, 0x0f, 0x31, 0x0d, 0x30, 0x0b, 0x06, 0x03,
|
||||
+0x55, 0x04, 0x03, 0x0c, 0x04, 0x77, 0x65, 0x6e,
|
||||
+0x73, 0x30, 0x82, 0x01, 0x22, 0x30, 0x0d, 0x06,
|
||||
+0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01,
|
||||
+0x01, 0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0f,
|
||||
+0x00, 0x30, 0x82, 0x01, 0x0a, 0x02, 0x82, 0x01,
|
||||
+0x01, 0x00, 0xa9, 0x7a, 0x2c, 0x78, 0x4d, 0xa7,
|
||||
+0x19, 0x2d, 0x32, 0x52, 0xa0, 0x2e, 0x6c, 0xef,
|
||||
+0x88, 0x7f, 0x15, 0xc5, 0xb6, 0x69, 0x54, 0x16,
|
||||
+0x43, 0x14, 0x79, 0x53, 0xb7, 0xae, 0x88, 0xfe,
|
||||
+0xc0, 0xb7, 0x5d, 0x47, 0x8e, 0x1a, 0xe1, 0xef,
|
||||
+0xb3, 0x90, 0x86, 0xda, 0xd3, 0x64, 0x81, 0x1f,
|
||||
+0xce, 0x5d, 0x9e, 0x4b, 0x6e, 0x58, 0x02, 0x3e,
|
||||
+0xb2, 0x6f, 0x5e, 0x42, 0x47, 0x41, 0xf4, 0x2c,
|
||||
+0xb8, 0xa8, 0xd4, 0xaa, 0xc0, 0x0e, 0xe6, 0x48,
|
||||
+0xf0, 0xa8, 0xce, 0xcb, 0x08, 0xae, 0x37, 0xaf,
|
||||
+0xf6, 0x40, 0x39, 0xcb, 0x55, 0x6f, 0x5b, 0x4f,
|
||||
+0x85, 0x34, 0xe6, 0x69, 0x10, 0x50, 0x72, 0x5e,
|
||||
+0x4e, 0x9d, 0x4c, 0xba, 0x38, 0x36, 0x0d, 0xce,
|
||||
+0x73, 0x38, 0xd7, 0x27, 0x02, 0x2a, 0x79, 0x03,
|
||||
+0xe1, 0xac, 0xcf, 0xb0, 0x27, 0x85, 0x86, 0x93,
|
||||
+0x17, 0xab, 0xec, 0x42, 0x77, 0x37, 0x65, 0x8a,
|
||||
+0x44, 0xcb, 0xd6, 0x42, 0x93, 0x92, 0x13, 0xe3,
|
||||
+0x39, 0x45, 0xc5, 0x6e, 0x00, 0x4a, 0x7f, 0xcb,
|
||||
+0x42, 0x17, 0x2b, 0x25, 0x8c, 0xb8, 0x17, 0x3b,
|
||||
+0x15, 0x36, 0x59, 0xde, 0x42, 0xce, 0x21, 0xe6,
|
||||
+0xb6, 0xc7, 0x6e, 0x5e, 0x26, 0x1f, 0xf7, 0x8a,
|
||||
+0x57, 0x9e, 0xa5, 0x96, 0x72, 0xb7, 0x02, 0x32,
|
||||
+0xeb, 0x07, 0x2b, 0x73, 0xe2, 0x4f, 0x66, 0x58,
|
||||
+0x9a, 0xeb, 0x0f, 0x07, 0xb6, 0xab, 0x50, 0x8b,
|
||||
+0xc3, 0x8f, 0x17, 0xfa, 0x0a, 0x99, 0xc2, 0x16,
|
||||
+0x25, 0xbf, 0x2d, 0x6b, 0x1a, 0xaa, 0xe6, 0x3e,
|
||||
+0x5f, 0xeb, 0x6d, 0x9b, 0x5d, 0x4d, 0x42, 0x83,
|
||||
+0x2d, 0x39, 0xb8, 0xc9, 0xac, 0xdb, 0x3a, 0x91,
|
||||
+0x50, 0xdf, 0xbb, 0xb1, 0x76, 0x6d, 0x15, 0x73,
|
||||
+0xfd, 0xc6, 0xe6, 0x6b, 0x71, 0x9e, 0x67, 0x36,
|
||||
+0x22, 0x83, 0x79, 0xb1, 0xd6, 0xb8, 0x84, 0x52,
|
||||
+0xaf, 0x96, 0x5b, 0xc3, 0x63, 0x02, 0x4e, 0x78,
|
||||
+0x70, 0x57, 0x02, 0x03, 0x01, 0x00, 0x01, 0x30,
|
||||
+0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7,
|
||||
+0x0d, 0x01, 0x01, 0x0b, 0x05, 0x00, 0x03, 0x82,
|
||||
+0x01, 0x01, 0x00, 0x24, 0x28, 0xee, 0x22, 0x74,
|
||||
+0x7f, 0x7c, 0xfa, 0x6c, 0x1f, 0xb3, 0x18, 0xd1,
|
||||
+0xc2, 0x3d, 0x7d, 0x29, 0x42, 0x88, 0xad, 0x82,
|
||||
+0xa5, 0xb1, 0x8a, 0x05, 0xd0, 0xec, 0x5c, 0x91,
|
||||
+0x20, 0xf6, 0x82, 0xfd, 0xd5, 0x67, 0x60, 0x5f,
|
||||
+0x31, 0xf5, 0xbd, 0x88, 0x91, 0x70, 0xbd, 0xb8,
|
||||
+0xb9, 0x8c, 0x88, 0xfe, 0x53, 0xc9, 0x54, 0x9b,
|
||||
+0x43, 0xc4, 0x7a, 0x43, 0x74, 0x6b, 0xdd, 0xb0,
|
||||
+0xb1, 0x3b, 0x33, 0x45, 0x46, 0x78, 0xa3, 0x1c,
|
||||
+0xef, 0x54, 0x68, 0xf7, 0x85, 0x9c, 0xe4, 0x51,
|
||||
+0x6f, 0x06, 0xaf, 0x81, 0xdb, 0x2a, 0x7b, 0x7b,
|
||||
+0x6f, 0xa8, 0x9c, 0x67, 0xd8, 0xcb, 0xc9, 0x91,
|
||||
+0x40, 0x00, 0xae, 0xd9, 0xa1, 0x9f, 0xdd, 0xa6,
|
||||
+0x43, 0x0e, 0x28, 0x7b, 0xaa, 0x1b, 0xe9, 0x84,
|
||||
+0xdb, 0x76, 0x64, 0x42, 0x70, 0xc9, 0xc0, 0xeb,
|
||||
+0xae, 0x84, 0x11, 0x16, 0x68, 0x4e, 0x84, 0x9e,
|
||||
+0x7e, 0x92, 0x36, 0xee, 0x1c, 0x3b, 0x08, 0x63,
|
||||
+0xeb, 0x79, 0x84, 0x15, 0x08, 0x9d, 0xaf, 0xc8,
|
||||
+0x9a, 0xc7, 0x34, 0xd3, 0x94, 0x4b, 0xd1, 0x28,
|
||||
+0x97, 0xbe, 0xd1, 0x45, 0x75, 0xdc, 0x35, 0x62,
|
||||
+0xac, 0x1d, 0x1f, 0xb7, 0xb7, 0x15, 0x87, 0xc8,
|
||||
+0x98, 0xc0, 0x24, 0x31, 0x56, 0x8d, 0xed, 0xdb,
|
||||
+0x06, 0xc6, 0x46, 0xbf, 0x4b, 0x6d, 0xa6, 0xd5,
|
||||
+0xab, 0xcc, 0x60, 0xfc, 0xe5, 0x37, 0xb6, 0x53,
|
||||
+0x7d, 0x58, 0x95, 0xa9, 0x56, 0xc7, 0xf7, 0xee,
|
||||
+0xc3, 0xa0, 0x76, 0xf7, 0x65, 0x4d, 0x53, 0xfa,
|
||||
+0xff, 0x5f, 0x76, 0x33, 0x5a, 0x08, 0xfa, 0x86,
|
||||
+0x92, 0x5a, 0x13, 0xfa, 0x1a, 0xfc, 0xf2, 0x1b,
|
||||
+0x8c, 0x7f, 0x42, 0x6d, 0xb7, 0x7e, 0xb7, 0xb4,
|
||||
+0xf0, 0xc7, 0x83, 0xbb, 0xa2, 0x81, 0x03, 0x2d,
|
||||
+0xd4, 0x2a, 0x63, 0x3f, 0xf7, 0x31, 0x2e, 0x40,
|
||||
+0x33, 0x5c, 0x46, 0xbc, 0x9b, 0xc1, 0x05, 0xa5,
|
||||
+0x45, 0x4e, 0xc3
|
||||
@@ -0,0 +1,34 @@
|
||||
From 14b5aacbb831f4bb411381d885cb87d7c455a0dc Mon Sep 17 00:00:00 2001
|
||||
From: Johannes Berg <johannes.berg@intel.com>
|
||||
Date: Thu, 14 Dec 2023 09:08:16 +0100
|
||||
Subject: [PATCH] wifi: cfg80211: fix certs build to not depend on file order
|
||||
|
||||
commit 3c2a8ebe3fe66a5f77d4c164a0bea8e2ff37b455 upstream.
|
||||
|
||||
The file for the new certificate (Chen-Yu Tsai's) didn't
|
||||
end with a comma, so depending on the file order in the
|
||||
build rule, we'd end up with invalid C when concatenating
|
||||
the (now two) certificates. Fix that.
|
||||
|
||||
Cc: stable@vger.kernel.org
|
||||
Reported-by: Biju Das <biju.das.jz@bp.renesas.com>
|
||||
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
|
||||
Fixes: fb768d3b13ff ("wifi: cfg80211: Add my certificate")
|
||||
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
||||
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
||||
---
|
||||
Upstream-Status: Backport [4ccca0017c4e wifi: cfg80211: fix certs build to not depend on file order]
|
||||
|
||||
net/wireless/certs/wens.hex | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/net/wireless/certs/wens.hex b/net/wireless/certs/wens.hex
|
||||
index ccd5b5dc3360..0d50369bede9 100644
|
||||
--- a/net/wireless/certs/wens.hex
|
||||
+++ b/net/wireless/certs/wens.hex
|
||||
@@ -84,4 +84,4 @@
|
||||
0xf0, 0xc7, 0x83, 0xbb, 0xa2, 0x81, 0x03, 0x2d,
|
||||
0xd4, 0x2a, 0x63, 0x3f, 0xf7, 0x31, 0x2e, 0x40,
|
||||
0x33, 0x5c, 0x46, 0xbc, 0x9b, 0xc1, 0x05, 0xa5,
|
||||
-0x45, 0x4e, 0xc3
|
||||
+0x45, 0x4e, 0xc3,
|
||||
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
|
||||
@@ -1,6 +1,6 @@
|
||||
CONFIG_I2C_BCM2835=y
|
||||
CONFIG_DRM=y
|
||||
CONFIG_DRM_FBDEV_EMULATION=y
|
||||
CONFIG_DRM_VC4=y
|
||||
CONFIG_DRM=m
|
||||
CONFIG_DRM_FBDEV_EMULATION=m
|
||||
CONFIG_DRM_VC4=m
|
||||
CONFIG_SND=y
|
||||
CONFIG_SND_SOC=y
|
||||
|
||||
@@ -15,6 +15,7 @@ SRC_URI += " \
|
||||
${@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", "wm8960", "file://wm8960.cfg", "", d)} \
|
||||
file://default-cpu-governor.cfg \
|
||||
"
|
||||
|
||||
KCONFIG_MODE = "--alldefconfig"
|
||||
@@ -23,9 +24,12 @@ KBUILD_DEFCONFIG:raspberrypi ?= "bcmrpi_defconfig"
|
||||
KBUILD_DEFCONFIG:raspberrypi-cm3 ?= "bcm2709_defconfig"
|
||||
KBUILD_DEFCONFIG:raspberrypi2 ?= "bcm2709_defconfig"
|
||||
KBUILD_DEFCONFIG:raspberrypi3 ?= "bcm2709_defconfig"
|
||||
KBUILD_DEFCONFIG:raspberrypi3-64 ?= "bcmrpi3_defconfig"
|
||||
KBUILD_DEFCONFIG:raspberrypi3-64 ?= "bcm2711_defconfig"
|
||||
KBUILD_DEFCONFIG:raspberrypi4 ?= "bcm2711_defconfig"
|
||||
KBUILD_DEFCONFIG:raspberrypi4-64 ?= "bcm2711_defconfig"
|
||||
KBUILD_DEFCONFIG:raspberrypi-armv7 ?= "bcm2711_defconfig"
|
||||
KBUILD_DEFCONFIG:raspberrypi-armv8 ?= "bcm2711_defconfig"
|
||||
KBUILD_DEFCONFIG:raspberrypi5 ?= "bcm2712_defconfig"
|
||||
|
||||
LINUX_VERSION_EXTENSION ?= ""
|
||||
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
LINUX_VERSION ?= "5.15.34"
|
||||
LINUX_VERSION ?= "5.15.92"
|
||||
LINUX_RPI_BRANCH ?= "rpi-5.15.y"
|
||||
LINUX_RPI_KMETA_BRANCH ?= "yocto-5.15"
|
||||
|
||||
SRCREV_machine = "0086da6acd41600d47b87b05874f99704216426f"
|
||||
SRCREV_meta = "e1b976ee4fb5af517cf01a9f2dd4a32f560ca894"
|
||||
SRCREV_machine = "14b35093ca68bf2c81bbc90aace5007142b40b40"
|
||||
SRCREV_meta = "509f4b9d68337f103633d48b621c1c9aa0dc975d"
|
||||
|
||||
KMETA = "kernel-meta"
|
||||
|
||||
SRC_URI = " \
|
||||
git://github.com/raspberrypi/linux.git;name=machine;branch=${LINUX_RPI_BRANCH};protocol=https \
|
||||
git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=${LINUX_RPI_KMETA_BRANCH};destsuffix=${KMETA} \
|
||||
file://0001-wifi-cfg80211-Add-my-certificate.patch \
|
||||
file://0002-wifi-cfg80211-fix-certs-build-to-not-depend-on-file-.patch \
|
||||
file://powersave.cfg \
|
||||
file://android-drivers.cfg \
|
||||
"
|
||||
|
||||
31
recipes-kernel/linux/linux-raspberrypi_6.1.bb
Normal file
31
recipes-kernel/linux/linux-raspberrypi_6.1.bb
Normal file
@@ -0,0 +1,31 @@
|
||||
LINUX_VERSION ?= "6.1.77"
|
||||
LINUX_RPI_BRANCH ?= "rpi-6.1.y"
|
||||
LINUX_RPI_KMETA_BRANCH ?= "yocto-6.1"
|
||||
|
||||
SRCREV_machine = "77fc1fbcb5c013329af9583307dd1ff3cd4752aa"
|
||||
SRCREV_meta = "43d1723dbe0ce7b341cf32feeb35ecbe6b0ce29a"
|
||||
|
||||
KMETA = "kernel-meta"
|
||||
|
||||
SRC_URI = " \
|
||||
git://github.com/raspberrypi/linux.git;name=machine;branch=${LINUX_RPI_BRANCH};protocol=https \
|
||||
git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=${LINUX_RPI_KMETA_BRANCH};destsuffix=${KMETA} \
|
||||
file://powersave.cfg \
|
||||
file://android-drivers.cfg \
|
||||
"
|
||||
|
||||
require linux-raspberrypi.inc
|
||||
|
||||
KERNEL_DTC_FLAGS += "-@ -H epapr"
|
||||
|
||||
RDEPENDS:${KERNEL_PACKAGE_NAME}:raspberrypi-armv7:append = " ${RASPBERRYPI_v7_KERNEL_PACKAGE_NAME}"
|
||||
RDEPENDS:${KERNEL_PACKAGE_NAME}-base:raspberrypi-armv7:append = " ${RASPBERRYPI_v7_KERNEL_PACKAGE_NAME}-base"
|
||||
RDEPENDS:${KERNEL_PACKAGE_NAME}-image:raspberrypi-armv7:append = " ${RASPBERRYPI_v7_KERNEL_PACKAGE_NAME}-image"
|
||||
RDEPENDS:${KERNEL_PACKAGE_NAME}-dev:raspberrypi-armv7:append = " ${RASPBERRYPI_v7_KERNEL_PACKAGE_NAME}-dev"
|
||||
RDEPENDS:${KERNEL_PACKAGE_NAME}-vmlinux:raspberrypi-armv7:append = " ${RASPBERRYPI_v7_KERNEL_PACKAGE_NAME}-vmlinux"
|
||||
RDEPENDS:${KERNEL_PACKAGE_NAME}-modules:raspberrypi-armv7:append = " ${RASPBERRYPI_v7_KERNEL_PACKAGE_NAME}-modules"
|
||||
RDEPENDS:${KERNEL_PACKAGE_NAME}-dbg:raspberrypi-armv7:append = " ${RASPBERRYPI_v7_KERNEL_PACKAGE_NAME}-dbg"
|
||||
|
||||
DEPLOYDEP = ""
|
||||
DEPLOYDEP:raspberrypi-armv7 = "${RASPBERRYPI_v7_KERNEL}:do_deploy"
|
||||
do_deploy[depends] += "${DEPLOYDEP}"
|
||||
Reference in New Issue
Block a user