1282 Commits

Author SHA1 Message Date
Paul Barker
db1975714a conf: Use unified u-boot config for 64-bit targets
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 a4a8ce9af45b8d5aec184cf7bcc57ac856552090)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Aaron Shaw
0efe97f485 overlays: add justboom overlays
add justboom overlays

Change-type: patch
Signed-off-by: Aaron Shaw <shawaj@gmail.com>
(cherry picked from commit 9165aa52b601e50c5cd58aa73c1ed329eb031fcb)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Aaron Shaw
4742634683 overlays: reorder in alphabetical order
reorder list to be in alphabetical order

Change-type: patch
Signed-off-by: Aaron Shaw <aaron@balena.io>
(cherry picked from commit 1c6673262729f60035b6d34b1fa11fc5cbf64710)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Matt Spencer
e20e770049 linux-raspberrypi: Enable use of 'RPI_EXTRA_CONFIG += ...' in local.conf
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 881e603ca240576f63ecaf9ca0f6370e8c3dd549)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Martin Jansa
22e9750971 rpi-config: use CONFIG shell variable
* 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 17eb1a2f00b6d15c073e318181ab0d34b1b5c965)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Martin Jansa
5da689d0af rpi-config: fix do_deploy
* 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 5c9309de874a42291d19f8e03169ea00eab4a655)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
SCVready
18fd207e70 rpi-config: Relocated "start_x=1" in config.txt
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 74deec51ded5b22b31b69b30537a6e9ed0997aea)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Christopher Clark
028e1e0e4d machine: use weak default for kernel and KERNEL_DEVICETREE settings
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 e0b4b8c5df410040e8cef7fbe257f1b9c1513355)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Ovidiu Panait
48a500e7ee linux-raspberry: Drop 64-bit specific do_compile_append()
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 a7cc636d4ef0ed7ddabf5785463dbb5c79633b1e)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Khem Raj
b8b5e80dd3 initramfs-image-bundle: Add MTD_UBI
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 3e2a8534a6f00d66860a9fab4c59b3117ebda43a)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Andrei Gherzan
a6d1c87088 README.md: Mention build server sponsor
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 3fe1f79ea2592213163f0f62a7c8fb1cb071850b)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Khem Raj
62cac69465 raspidmx: Disable for all non-rpi hosts
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 361f42e346e59f3a3fafcfa4ab7c948969d5abf4)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Trevor Woerner
c6e203bac8 raspidmx: add
Add a recipe to build a set of dispmanx examples.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
(cherry picked from commit e4f5c32925fec90ff688e51197cb052fe12af82e)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Trevor Woerner
690ea73547 userland: fix invalid packageconfig
Fix the "allapps" PACKAGECONFIG to avoid the QA warning/error:

	userland-20201027-r0 do_configure: QA Issue: userland: invalid PACKAGECONFIG: allapps [invalid-packageconfig]

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
(cherry picked from commit 4b89f636992b822d13ac748a9f959fbedd962fd4)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Aaron Shaw
17b122785b linux-firmware-rpidistro: Added firmware for BCM43456
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 f82376c44432c55772941e46224f43edd1cbf2fc)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Khem Raj
9cb0883651 libglu: Fix build with userland graphics
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 1ae52a743c077565e5d4e2f49ede90bbdff45fbf)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Khem Raj
4670102940 userland: Fix weston build with userland graphics
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 80bcc2e0edd65cc3ff4958a973f3d27cf239bb46)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Tobias Off
b4877ed7df linux-firmware-rpidistro: Missing link to firmware causes wifi not working on raspberrypi zero w
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 8e35fbffb086728699667b3572ddf30d90ffdb5f)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Khem Raj
5d142b3bf5 mesa-gl: Enable swrast dri backend for rpi/userland
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 6c1c9ff4ee743cd90c4107e05be136dd4cb2dee6)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Trevor Woerner
61a5101fcc userland: add knob for ALL_APPS
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 3a1fec22c0e0cf389e8ff70ebb310f1f3c282a29)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Paul Barker
49c06916ca linux-raspberrypi-dev: Update for testing v5.10.y
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 7a6759e2424cecf57dbc7d891e89a70639faf3a8)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Paul Barker
877d933322 linux-raspberrypi: Merge v5.4 recipe & inc file
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 8c5809ebbb9020ac5867d25a05120a87b9da5e2c)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Paul Barker
b5388c085a linux-raspberrypi: Drop unused rpi-kernel-misc config fragment
This config fragment was unconditionally disabled for the v5.4 kernel
so it can be dropped.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
(cherry picked from commit 64f6a1b7cc6526a49b180ebc632520bbaad195bd)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Paul Barker
e7d00a9768 linux-raspberrypi: Remove obsolete kernel versions
Signed-off-by: Paul Barker <pbarker@konsulko.com>
(cherry picked from commit 2afeee9b82f670b8a3d24a66d31381131555b5d4)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Paul Barker
6529a81bc7 rpi-bootfiles: Rename recipe to avoid ambiguity
The name `bootfiles` is too generic, we should use `rpi-bootfiles`
instead.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
(cherry picked from commit ba3a417fbbccb5f6af9ac036eac97c87dcf4c1b7)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Paul Barker
b197758225 bootfiles: Use BOOTFILES_DIR_NAME variable
This variable is set in rpi-base.inc and referenced by other recipes
which need to know the location of the bootfiles. If this is overridden
for any reason we need to ensure that the bootfiles recipe deploys to
the correct path.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
(cherry picked from commit b8440b3d26fc0b59acd48ed6f3e39e00cd867f6c)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Paul Barker
ccb72fc995 rpi-cmdline: Move cmdline.txt generation to a separate recipe
Instead of generating cmdline.txt in the kernel recipe, it is generated
in a standalone recipe and pulled in as a dependency of the bootfiles
recipe. This simplifies the process of using a linux-yocto,
linux-mainline or similiar kernel recipe instead of linux-raspberrypi.

In the rpi-cmdline recipe the command line is built from fragments which
can all be easily overridden. The variables `SERIAL` and `CMA` are
renamed to `CMDLINE_SERIAL` and `CMDLINE_CMA` for consistency. The
cmdline.txt file is created in the do_compile step to allow further
customisation via do_compile_append if needed.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
(cherry picked from commit 8827040d9c218f68ae3ee6a5814929888ed61581)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Paul Barker
4d54d6f9c1 sdcard_image-rpi: Drop redundant dependency on rpi-config:do_deploy
The bootfiles:do_deploy task already depends on rpi-config:do_deploy so
we do not explicitly need to list the dependency again in the
sdcard_image-rpi class.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
(cherry picked from commit ba6a809a55514a10717bf7b371a63dae440f2cd9)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Paul Barker
2381e39764 linux-raspberrypi: Convert dynamic config patching to config fragments
This allows us to drop all of the custom config patching in
linux-raspberrypi.inc. It also allows the kernel config to be checked
during the build for any discrepancies between the selected config
options and the resulting .config file - this identified that
`CONFIG_DRM_VC4` depends on `CONFIG_SND` and `CONFIG_SND_SOC`.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
(cherry picked from commit 1c8ad80861f4882eb31c00e27dcc97b3cb786913)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Ming Liu
3234e955df rpi-u-boot-scr: drop hard-coded 'arm'
Let's inherit kernel-arch and use ${UBOOT_ARCH} to replace the
hard-coded 'arm'.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
(cherry picked from commit 26a888d669b2d73c251c9107bd7e9871751a1ab6)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Khem Raj
494c4ded6f packagegroup-rpi-test: Add python3-sense-hat in a meta-python specific bbappend
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 25d1eb4146f90526c7511cd40d97b24ad0e02a25)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Khem Raj
84a922e4ed armstubs: Always use gcc compiler
it uses assembly files .S which needs to be processed with gcc alone
until they are made portable use gcc

Fixes
| armstub7.S:175:2: error: instruction requires: thumb
|  cbz r6, 9f @ Skip this section if we are core 0
|  ^

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 5db97b41a84296d4bbc8fd7ffc228124af774cf1)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Khem Raj
d9e042771b raspberrypi-tools: Update to latest on master
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit dcdd0e4a20d8eb87e03ac492dbf308c34bef92e4)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Khem Raj
1c88645b90 userland: Upgrade to latest as of 20201027
refresh patches

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit fd83102af7b0a2ff2de33a2e71bdfbd87335d79b)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Khem Raj
6fdb8a5f56 raspberrypi-firmware: Update to latest to take 5.4.79 prebuilts
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 6a53db2fb689d372c6acbb429f1a2211eca40aa5)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Khem Raj
ca02fb8a51 linux-raspberrypi_5.4.bb: Update to 5.4.79
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 07a4d28f1dac9e63e9207b30b0ef28d7d13752f9)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Khem Raj
c6b0082306 python3-sense-hat: Move to dynamic-layers
Only active when meta-python is in layermix, this recipe rdeps on
python3-pillow, which comes from meta-python, until that moves to
oe-core lets hide this recipe unless meta-python is used

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 08d27cd7997867de69548d04f29d1d2d493791f3)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Jan-Simon Moeller
16eb6ec2b0 python3-sense-hat: Switch to using pillow instead of imaging module
while meta-python does rprovide python3-imaging via python3-pillow, its
better to not rely on that bridge, since this might disappear in future

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 07fc972c60b50ebafe7b31f2c47d3d4a81d78933)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Khem Raj
8c69288c7d linux-raspberrypi: Do not use += with append
append operator and += when used together results in undefined behaviour
in bitbake

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 2e0b2d41cf5b2186bc534a9d9f55a62c952ea236)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Madhavan Krishnan
c448bcd074 libcamera: Enabled camera overlays define based
Added imx219.dtbo file in the overlays, and added dtoverlay in
/boot/config.txt define based.

To enable Sony Raspberry pi camera imx219 sensor, need to set
the variable RASPBERRYPI_CAMERA_V2 as 1.

In future, we can add any camera overlays here to support and
use them with libcamera.

Signed-off-by: Madhavan Krishnan <madhavan.krishnan@linaro.org>
(cherry picked from commit b70c7b9021e37ec765f4db9aac0e0e76f617cbac)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-03-16 22:25:08 +00:00
Khem Raj
09a3c11696 userland: Apply format-overflow warning patch for gcc alone
This warning is gcc specific and causes build failures when building
with clang, lets therefore remove it when build is using clang compiler

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-10-21 17:56:14 +01:00
Marek Belisko
a8085558b5 u-boot: Fix booting raspberrypi CM3 module
With stock u-boot v2020.01 which we use from poky CM3 module won't boot.
We need to apply this patch in order to have platform again working.

Add it only for cm3 to not break anything else.

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
2020-10-21 17:39:43 +01:00
Khem Raj
6ca9b2f9f7 linux-raspberrypi: Fix build regression from last update
This patch is now backported into 5.4 stable

commit bc79abf4afea97d5ce682aa2bd1095fb74400916

so it should have been
deleted, otherwise its causing build/patch failures now as expected

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-10-20 20:09:55 +01:00
Eino Juhani Oltedal
2be75e2ef3 linux-raspberrypi: bump to Linux version 5.4.72
Fixes: "Bleeding Tooth" Bluetooth Vulnerability.

Signed-off-by: Eino Juhani Oltedal <einoju@gmail.com>
2020-10-20 16:39:25 +01:00
Khem Raj
6f85611576 layer.conf: Add gatesgarth to LAYERSERIES_COMPAT
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-10-15 20:47:33 +01:00
Alex Gonzalez
2324089fef linux-raspberrypi: Only deploy cmdline.txt for the main kernel
When multiple kernels are being built, not all of them can deploy the
same file.

Signed-off-by: Alex Gonzalez <alexg@balena.io>
2020-10-12 10:05:48 +01:00
Martin Jansa
6ed1b4ca64 python3-rtimu: don't use trailing slash in S
* see oe-core base.bbclass changes from:
  https://lists.openembedded.org/g/openembedded-core/message/143159
  https://lists.openembedded.org/g/openembedded-core/message/143161

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2020-10-11 20:27:56 +01:00
Martin Jansa
e13d6a2188 linux-raspberrypi-5.4: bump SRCREV to fix raspberrypi3-64 builds
* fixes:
  https://github.com/raspberrypi/linux/issues/3885

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2020-10-09 19:53:43 +01:00
Khem Raj
0355ceef76 rpi-default-settings: Replace default parselogs with parselogs_rpi
rpi kernel spits out additional errors in kernel logs which should be
ignored, there is no easy way to extend parselogs testcase other than
inheriting it into another testcase and use that testcase instead

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-10-09 19:53:43 +01:00
Khem Raj
a5626b6189 oeqa: Add 5.4 specific error messages to ignore list
with 5.4 fd580000.genet has been replaced with fd580000.ethernet in the
error text

Fixes
https://github.com/raspberrypi/linux/issues/3884

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-10-09 19:53:43 +01:00