This version is compatible with the 5.10.17 kernel
5985247fb7
Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
(cherry picked from commit 0b4a73ebad)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
* raspberrypi4-64 is 15 characters and with dosfstools-4.2 it breaks rootfs.rpi-sdimg with:
mkfs.vfat: Label can be no longer than 11 characters
mkfs.fat 4.2 (2021-01-31)
* introduced in:
https://github.com/dosfstools/dosfstools/commit/c598354
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 853ccd7440)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
In theory, this would allow one to use the official 7-inch touchscreen
in combination with the (non-firmware) kms driver by adding the
following lines to config.txt:
ignore_lcd=1
dtoverlay=vc4-kms-v3d
dtoverlay=vc4-kms-dsi-7inch
Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
(cherry picked from commit 68976061c5)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
It has prebuilt binary libgpiod_pulsein for rpi machines and these binary is 32bit
therefore we can not include it for 64bit machines even if they are rpi
based unless they have multilib enabled.
This patch makes it visible only on 32bit rpi
Fixes QA errors like
ERROR: QA Issue: Architecture did not match (ARM, expected AArch64) in /usr/lib/python3.9/site-packages/adafruit_blinka/microcontroller/bcm283x/pulseio/.debug/libgpiod_pulsein [arch]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 5e543bd817)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
https://github.com/agherzan/meta-raspberrypi/pull/815
introduced python3-adafruit-blinka and this recipe has added rdep on rpi-gpio,
however rpi-gpio is rpi specific package, and therefore should only be added
when building rpi based platforms, this makes the layer work in a
multi-bsp setup work
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 0a83508fac)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
With current recipe formatting CMDLINE variable contains
many unnecessary white spaces. This patch allow to drop
unnecessary spaces at the moment of writing them to
cmdline.txt. This will improve readability of cmdline.txt,
/proc/cmdline and dmesg output.
Signed-off-by: Bartłomiej Burdukiewicz <bartlomiej.burdukiewicz@gmail.com>
(cherry picked from commit f5fe02c30c)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
add overlays for pi zero, bcm2710 based rpi2 and rpi b rev 1
Change-type: patch
Signed-off-by: Aaron Shaw <aaron@balena.io>
(cherry picked from commit 509ff8c732)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
* COPYING was changed only 4 times (last time in 5.6 with:
https://github.com/torvalds/linux/commit/74835c7db0322 )
so hopefully it will last for a while
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 7565931e23)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
By default in case of CM4 IO board, the USB ports (header + built-in)
are disabled. In order to enable them the DWC2 mode needs to be set to
host.
Signed-off-by: Aurelian Zanoschi <aurelian17@gmail.com>
(cherry picked from commit 7193857284)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
'recipes-kernel/linux/linux-yocto.inc' already inherits 'kernel'.
This commit removes the superfluous one in 'linux-raspberrypi.inc'.
Signed-off-by: Jonas Vautherin <jonas.vautherin@protonmail.ch>
(cherry picked from commit 56ab926557)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
This workaround is no longer needed with recent firmware.
Signed-off-by: Paul Barker <pbarker@konsulko.com>
(cherry picked from commit 2a9c3bb551)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
The rpi_arm64 configuration supports both Raspberry Pi 3 & 4 in 64-bit
mode. Switching to this config is a small step towards supporting a
unified build for these targets.
Signed-off-by: Paul Barker <pbarker@konsulko.com>
(cherry picked from commit a4a8ce9af4)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
reorder list to be in alphabetical order
Change-type: patch
Signed-off-by: Aaron Shaw <aaron@balena.io>
(cherry picked from commit 1c66732627)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Before this patch, use of RPI_EXTRA_CONFIG += in a local.conf would overwrite
the needed 'arm_64bit=1' defined in the core recipes. The net result would be
a system that did not boot.
This patch fixes the assignment of 'arm_64bit=1' even if RPI_EXTRA_CONFIG
has been set elsewhere.
Signed-off-by: matthew@thespencers.me.uk
(cherry picked from commit 881e603ca2)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
* instead of repeating //config.txt
so many times, to make it a bit less error prone (as shown in previous commit)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 17eb1a2f00)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
* in https://github.com/agherzan/meta-raspberrypi/pull/678 this line was acidentally changed
from "${BOOTFILES_DIR_NAME}" to "bcm2835-bootfiles", causing do_deploy to fail finding config.txt
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 5c9309de87)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
It seems like "start_x=1" needs to be earlier in the file to work properly on the Rapberry Pi 4 B.
Fixes: #670
Signed-off-by: SCVready <alejandro.solozabal@outlook.com>
(cherry picked from commit 74deec51de)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
To allow other layers to easily provide a default kernel preference to
use with the Raspberry Pi MACHINEs, switch to use the ??= assignment
operator for setting the default kernel and the device tree value in
this layer.
This change is motivated by enabling Xen support in meta-virtualization
to use the raspberrypi4-64 MACHINE definition from this layer with the
Yocto Linux kernels.
Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
(cherry picked from commit e0b4b8c5df)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
The functionality provided by this compile append is already present in
kernel-devicetree.bbclass since oe-core commit:
https://github.com/openembedded/openembedded-core/commit/74619de02774
The md5sums of the generated dtbs for raspberrypi3-64 and raspberrypi4-64 do
not change with this patch applied.
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
(cherry picked from commit a7cc636d4e)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
CONFIG_UBIFS_FS is used as 'm' in defconfig and depends on MTD and MTD_UBI which
is also 'm', inorder for it to include in kernel proper, set MTD_UBI=y
and MTD=y as well.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 3e2a8534a6)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
balena.io has been sponsoring the project with a build server for a
while now. It's only fair for us to mention this somewhere in our
README.
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
(cherry picked from commit 3fe1f79ea2)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Currently its only disabled when vc4graphics is in use but this recipe
actually needs userland and therefore can not be used for non-rpi
machines as well.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 361f42e346)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Add a recipe to build a set of dispmanx examples.
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
(cherry picked from commit e4f5c32925)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
The new Raspberry Pi 400 (and perhaps the CM4 as well) use the BCM43456 chip from Broadcom/Synaptics. This adds the necessary firmware.
Signed-off-by: Aaron Shaw <aaron@balena.io>
(cherry picked from commit f82376c444)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
The link the brcmfmac is looking for was not created by the recipe for the raspberrypi zero w,
so the wifi was not working for this board. Adding link creation in the recipe solved the issue.
Signed-off-by: Tobias Off <sebastianoff@web.de>
(cherry picked from commit 8e35fbffb0)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
After mesa switched build system to meson, the logic to generate dri
related artifacts changed too, which means when no dri backend is
enabled then dri drivers and corresponding headers dont get generated
and hence we end up with missing pkgconfig files e.g. dri.pc which
usually will come from full mesa3d package, but in rpi when userland is
used we only build GL pieces of mesa.
This patch therefore enables swrast dri backend when using userland,
which gives us the needed header and .pc files to build packages like
Xorg server, since EGL driver will come from userland, the dri backend
would be unused and hence should not be effective at runtime.
Addresses issue report with https://github.com/agherzan/meta-raspberrypi/pull/773
there is no need to check for graphics stack since mesa-gl is only used
with userland graphics
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Trevor Woerner <twoerner@gmail.com>
(cherry picked from commit 6c1c9ff4ee)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
The userland sources include a bunch of sample applications. Add an "allapps"
PACKAGECONFIG to allow the user to build the additional optional applications.
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
(cherry picked from commit 3a1fec22c0)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Linux 5.10 series will be the next LTS kernel so it's likely to be the
new stable branch for linux-raspberrypi within a couple of months. Let's
get set up to test it now.
Signed-off-by: Paul Barker <pbarker@konsulko.com>
(cherry picked from commit 7a6759e242)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
There is no need for a separate inc file for the v5.4 kernel recipe.
Variable assignments are simplified where possible after merging.
Signed-off-by: Paul Barker <pbarker@konsulko.com>
(cherry picked from commit 8c5809ebbb)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>