Commit Graph

1279 Commits

Author SHA1 Message Date
Martin Jansa
55069cb633 packagegroup-rpi-test: include bigbuckbunny in RRECOMMENDS_${PN} only with meta-multimedia
* resolves:
  ERROR: Nothing RPROVIDES 'bigbuckbunny-480p' (but meta-raspberrypi/recipes-core/packagegroups/packagegroup-rpi-test.bb RDEPENDS on or otherwise requires it)
  NOTE: Runtime target 'bigbuckbunny-480p' is unbuildable, removing...
  Missing or unbuildable dependency chain was: ['bigbuckbunny-480p']
  ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
  Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'packagegroup-rpi-test', 'bigbuckbunny-480p']

  when building without meta-multimedia layer included

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2020-01-30 16:08:58 +00:00
Martin Jansa
3c8fdb4a7a omxplayer: respect virtual/libomxil
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2020-01-28 10:02:02 +00:00
Pierre-Jean Texier
37d3dd955d linux-raspberrypi: bump to Linux version 4.19.97
Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
2020-01-24 17:55:20 +00:00
Pierre-Jean Texier
722d837612 rpi-base.inc: use wic.bz2 for all rpi machines by default
This change moves the default image for all rpi machines.
We moved from rpi-sdimg to wic.bz2.

Also enable wic.bmap image generation.

From the documentation in [1], Bmaptool is a generic tool
for creating the block map (bmap) for a file and copying
files using the block map. The idea is that large files,
like raw system image files, can be copied or flashed a
lot faster and more reliably with bmaptool than with
traditional tools, like "dd" or "cp".

Example:

$: sudo bmaptool copy <image-name>.wic.xz /dev/<your-block-device>

[1] - https://github.com/intel/bmap-tools

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
2020-01-24 12:09:42 +00:00
Khem Raj
2a1a8e396a rpio: Use python3 during build
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-24 12:09:42 +00:00
Martin Jansa
2faf9cab72 gstreamer1.0-omx: let virtual/libomxil dependency to pull userland
* and adjust VIRTUAL-RUNTIME_libomxil to pull runtime provider for libomxil

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2020-01-24 12:09:42 +00:00
Martin Jansa
51bb38b728 gstreamer1.0-plugins-base: adapt to gstreamer1.0 now using meson
* depends on oe-core changes which adds dispmanx PACKAGECONFIG to gstreamer1.0-plugins-base

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2020-01-24 12:09:42 +00:00
Martin Jansa
30eedfa095 userland: add pkg-config for openmaxil and add virtual/libomxil to PROVIDES
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2020-01-24 12:09:42 +00:00
Pierre-Jean Texier
d058d2a2cf kas-poky-rpi: add kas file
The kas tool provides an easy mechanism to setup bitbake based projects.

As explained in [1] the key features provided by kas are:

- clone and checkout bitbake layers
- create default bitbake settings (machine, arch, ...)
- launch minimal build environment, reducing risk of host contamination
- initiate bitbake build process

So, let's create a minimal example in this layer to build an image with a
small effort. This seems interesting for new users of the meta-raspberrypi.

For example:

$: sudo pip3 install kas
$: mkdir rpi
$: cd rpi
$: git clone https://github.com/agherzan/meta-raspberrypi.git
$: kas build meta-raspberrypi/kas-poky-rpi.yml

and that's all !

To adjust the construction with specific options (I2C, SPI, ...), simply add
a section as follows:

local_conf_header:
  rpi-specific: |
    ENABLE_I2C = "1"
    RPI_EXTRA_CONFIG = "dtoverlay=pi3-disable-bt"

To configure the machine, the user have to update the 'machine' variable.
And the same for the 'distro'.

[1] - https://kas.readthedocs.io/en/1.0/userguide.html

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
2020-01-22 18:09:10 +00:00
Paul Barker
05c86e3160 README: Add documentation badge
Signed-off-by: Paul Barker <pbarker@konsulko.com>
2020-01-20 15:30:24 +00:00
Erik Botö
e7c856ee7b Add support for PiTFT 2.8" with capacitive touch
Add support for the Adafruit PiTFT Plus 320x240 2.8" TFT with
Capacitive Touchscreen, using the same patterns used for the other
versions of the PiTFT screens.

Signed-off-by: Erik Botö <erik.boto@gmail.com>
2020-01-14 16:17:04 +00:00
Andrei Gherzan
09f35259a2 armstubs: Define the new symbols use in Makefile
The tools repository renamed the CC, LD etc symbols to CC7, LD7 etc.
See:
b0c869bc92

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2020-01-14 16:16:46 +00:00
Andrei Gherzan
a9ecd32ae4 raspberrypi-tools: Update to current HEAD
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2020-01-14 16:16:46 +00:00
Andrei Gherzan
adccf43655 pi-bluetooth: Fix signature failures
After bc7b654fee, we made this package
depend on a package that is not allarch while this is. Let's drop it for
this package as well to avoid these sstate signature issues.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2020-01-14 16:16:20 +00:00
Martin Jansa
6e84890e8c gstreamer1.0-plugins-base: respect opengl DISTRO_FEATURES when vc4graphics is in MACHINE_FEATURES
No virtual/egl provider is available in the default setup with
vc4graphics enabled and neither opengl nor vulkan in DISTRO_FEATURES:

$ bitbake -e virtual/egl | tee env.egl
ERROR: Nothing PROVIDES 'virtual/egl'
vc-graphics-hardfp PROVIDES virtual/egl but was skipped: PREFERRED_PROVIDER_virtual/libgles2 set to mesa, not vc-graphics-hardfp
vc-graphics PROVIDES virtual/egl but was skipped: PREFERRED_PROVIDER_virtual/libgles2 set to mesa, not vc-graphics

$ bitbake -e userland 2>&1 | tee env.userland
ERROR: Nothing RPROVIDES 'libegl-mesa' (but /jenkins/mjansa/build-ros/ros2-dashing-warrior/meta-raspberrypi/recipes-graphics/userland/userland_git.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'libegl-mesa' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['libegl-mesa']
ERROR: Required build target 'userland' has no buildable providers.
Missing or unbuildable dependency chain was: ['userland', 'libegl-mesa']

$ bitbake -e mesa 2>&1 | tee env.mesa
ERROR: Nothing PROVIDES 'mesa'
mesa was skipped: one of 'vulkan opengl' needs to be in DISTRO_FEATURES

$ bitbake -e vc-graphics-hardfp 2>&1 | tee env.vc-graphics-hardfp
ERROR: Nothing PROVIDES 'vc-graphics-hardfp'
vc-graphics-hardfp was skipped: PREFERRED_PROVIDER_virtual/libgles2 set to mesa, not vc-graphics-hardfp

There is unbuildable dependency on virtual/egl from gstreamer1.0-plugins-base because:
1) gstreamer1.0-plugins-base depends on virtual/egl because of "egl" PACKAGECONFIG

2) "egl" PACKAGECONFIG is enabled by
   meta-raspberrypi/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_%.bbappend
   PACKAGECONFIG_GL_rpi = "egl gles2"

   without respecting the "opengl" in DISTRO_FEATURES like the recipe in oe-core does
   openembedded-core/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.14.4.bb:
   PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2 egl', '', d)}"

3) virtual/egl is provided either by:
   - userland (only without vc4graphics in MACHINE_FEATURES):
     meta-raspberrypi/recipes-graphics/userland/userland_git.bb:PROVIDES += "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "", "virtual/libgles2 virtual/egl", d)}"
   - mesa (selected with vc4graphics in MACHINE_FEATURES)
     meta-raspberrypi/conf/machine/include/rpi-default-providers.inc:PREFERRED_PROVIDER_virtual/egl ?= "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "mesa", "userland", d)}"
   - vc-graphics(-hardfp)
     meta-raspberrypirecipes-graphics/vc-graphics/vc-graphics.inc:PROVIDES = "virtual/libgles2 virtual/egl"

4) vc-graphics(-hardfp) recipe are skipped in default setup, because with vc4graphics being
   in MACHINE_FEATURES by default since:
   690bdca574
   the PREFERRED_PROVIDER_virtual/libgles2 is set to mesa in:
   conf/machine/include/rpi-default-providers.inc:PREFERRED_PROVIDER_virtual/libgles2 ?= "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "mesa", "userland", d)}"

   resulting in skipping the other virtual/libgles2 providers:
   vc-graphics-hardfp PROVIDES virtual/egl but was skipped: PREFERRED_PROVIDER_virtual/libgles2 set to mesa, not vc-graphics-hardfp
   vc-graphics PROVIDES virtual/egl but was skipped: PREFERRED_PROVIDER_virtual/libgles2 set to mesa, not vc-graphics

5) mesa is skipped when neither opengl nor vulkan are in DISTRO_FEATURES

6) userland doesn't provide virtual/egl because we have the default vc4graphics
   meta-raspberrypi/recipes-graphics/userland/userland_git.bb:PROVIDES += "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "", "virtual/libgles2 virtual/egl", d)}"
   and it cannot be built anyway, because with the default vc4graphics it depends on libegl-mesa:
   meta-raspberrypi/recipes-graphics/userland/userland_git.bb:RDEPENDS_${PN} += "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "libegl-mesa", "", d)}"
   and libegl-mesa is provided only by mesa recipe from oe-core which in turn
   requires either "opengl" or "vulkan" to be in DISTRO_FEATURES

This causes a lot of unresolved dependencies in default setup with vc4graphics but without opengl.
- with Yocto 2.6 Thud and older it worked, because vc4graphics wasn't enabled by default before:
  690bdca574

To build gstreamer1.0-plugins-base with egl PACKAGECONFIG enabled you have 2 options:
A) Just add "opengl" to DISTRO_FEATURES and use the default vc4graphics with mesa providing virtual/egl
B) Use DISABLE_VC4GRAPHICS added in
   96c8459c93
   to explicitly disable vc4graphics and use userland to provide virtual/egl

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2020-01-13 18:23:28 +00:00
Pierre-Jean Texier
29fd4d430a linux-raspberrypi: bump to Linux version 4.19.93
Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
2020-01-13 18:00:50 +00:00
Ricardo Salveti
c3b3cd6efd raspberrypi-cm3.conf: drop KBUILD_DEFCONFIG definition
KBUILD_DEFCONFIG should be defined by the kernel recipe instead, such as
linux-raspberrypi.

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2020-01-08 11:24:51 +00:00
Ricardo Salveti
12bbdd91b2 linux-raspberrypi: define kbuild defconfig for rpi cm3
Also define a default kbuild defconfig value for rpi cm3.

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2020-01-08 11:24:51 +00:00
Allen Wild
a4c8118676 conf/machine: add pci to MACHINE_FEATURES for Pi4
This pulls in the pciutils package (including `lspci`) via
packagegroup-base.

Signed-off-by: Allen Wild <allenwild93@gmail.com>
2020-01-07 10:16:54 +00:00
Pierre-Jean Texier
a953fc0f9b raspi-gpio: bump to revision 4edfde1
This includes the following changes:

4edfde1 Update raw output to show pull registers on 2711

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
2019-12-31 13:13:53 +00:00
Pierre-Jean Texier
e57d33298c rpi-gpio: bump to version 0.7.0
Also:
  - update the HOMEPAGE location
  - refresh patch
  - use 'distutils3' to support python3 -> python2 is now deprecated

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
2019-12-31 13:12:48 +00:00
Pierre-Jean Texier
d059288fa0 linux-raspberrypi-rt: bump to revision e2e9cec
This version includes a fix for the USB part.

Fixes:

[    2.988098] CPU: 3 PID: 79 Comm: irq/56-dwc_otg_ Not tainted 4.19.71-rt24 #1
[    2.988102] Hardware name: BCM2835
[    2.988134] [<801120a8>] (unwind_backtrace) from [<8010d260>] (show_stack+0x20/0x24)
[    2.988151] [<8010d260>] (show_stack) from [<8085340c>] (dump_stack+0xbc/0x100)
[    2.988167] [<8085340c>] (dump_stack) from [<80121160>] (__warn.part.0+0xcc/0xe8)
[    2.988182] [<80121160>] (__warn.part.0) from [<80121314>] (warn_slowpath_null+0x54/0x5c)
[    2.988197] [<80121314>] (warn_slowpath_null) from [<8014f120>] (migrate_disable+0x220/0x

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
2019-12-24 21:09:51 +00:00
Michael Baisch
ef6555c09a linux-raspberrypi.inc: no longer set CONFIG_LOCALVERSION to empty string
Fixes: #533

Signed-off-by: Michael Baisch <baisch@tau-tec.com>
2019-12-23 14:13:18 +00:00
Leon Anavi
bc7b654fee pi-bluetooth: Runtime depends on udev-rules-rpi
Add udev-rules-rpi as a runtime dependency. It brings udev rules
for creating /dev/serial1. This way hciuart.service, provided by
pi-bluetooth, will be successfully started because it depends
on dev-serial1.device. As a result the Bluetooth module will
be properly attached via UART HCI to BlueZ stack.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
2019-12-23 14:12:39 +00:00
Andrei Gherzan
a0a5d3848e linux-raspberrypi: Bump to 4.19 recipe to 4.19.88
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2019-12-20 19:08:31 +00:00
Andrei Gherzan
655dbf3de8 raspberrypi-firmware: Update to current HEAD
This RaspberryPi firmware update includes a change in the license file
as well[1]. This change is for supporting customisation program.

[1] dd9e9ebb5d

As a result of this change, we update the hash in the bcm2835-bootfiles
recipe as well.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2019-12-20 19:08:31 +00:00
Francois Retief
3ae288aa38 sdcard_image-rpi.bbclass: Use IMAGE_NAME_SUFFIX variable in SDIMG
Use the IMAGE_NAME_SUFFIX variable to build the SDIMG name. Some layers,
notably meta-mender, change the IMAGE_NAME_SUFFIX variable to something
other that ".rootfs", causing build failures.

Signed-off-by: Francois Retief <fgretief@gmail.com>
2019-12-05 12:45:02 +00:00
Pierre-Jean Texier
ed6b75ba69 pi-blaster: bump to revision befd8ef
Also:
 - remove upstreamed patch.
 - update LIC_FILES_CHKSUM: License in the README was moved a
   couple of lines below

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
2019-11-12 17:07:36 +00:00
Pierre-Jean Texier
a430f1e50a wiringpi: remove obsolete files
Since commit e050601 ("wiringpi: Delete"), wiringpi does not
exits anymore.

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
2019-11-11 10:55:27 +00:00
Pierre-Jean Texier
8672b8656d raspi-gpio: bump to revision 2eaa8b8
This includes the following changes:

2eaa8b8 Initialise hwbase so that access without /dev/gpiomem works again
f36777c Whitespace tidyup (and re-ran astyle). No functional changes.
80fa7d0 Add support for 2711
bf7f4c8 Reformat with astyle (cosmetic change)
aa55bbd Autoreconf for Buster
5e453d0 raspi-gpio: Fix handling of "funcs" mode

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
2019-11-08 11:15:39 +01:00
Andrei Gherzan
b0600bf1ee linux-raspberrypi: Bump to 4.19 recipe to 4.19.81
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2019-11-08 11:15:04 +01:00
Andrei Gherzan
55b9bd6ef3 linux-firmware-rpidistro: Bump revision
This reverts the last firmware update where enabling WiFi breaks
Bluetooth connectivity[1].

[1] https://github.com/RPi-Distro/firmware-nonfree/issues/7

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2019-11-08 11:15:04 +01:00
Andrei Gherzan
b721933013 raspberrypi-tools: Update to current HEAD
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2019-11-08 11:15:04 +01:00
Andrei Gherzan
7f78604c4c raspberrypi-firmware: Update to current HEAD
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2019-11-08 11:15:04 +01:00
Andrei Gherzan
018683d24b pi-bluetooth: Update to latest version (0.1.12)
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2019-11-08 11:15:04 +01:00
Paul Barker
254c9366b9 vc-graphics: Clarify license conditions
The license text matches the 'Broadcom-RPi' custom license used in
bcm2835-bootfiles.

Signed-off-by: Paul Barker <paul@betafive.co.uk>
2019-10-24 14:08:16 +01:00
Paul Barker
ae6611ea46 bcm2835-bootfiles: Clarify license conditions
We define a new 'Broadcom-RPi' license and include the full text in our
custom-licenses directory.

Signed-off-by: Paul Barker <paul@betafive.co.uk>
2019-10-24 14:08:16 +01:00
Paul Barker
55d521a888 armstubs: License is BSD-3-Clause
All source files in the armstubs directory have a 3-clause BSD license.
The Makefile doesn't appear to use any files from outside this directory
during the build.

Signed-off-by: Paul Barker <paul@betafive.co.uk>
2019-10-24 14:08:16 +01:00
Paul Barker
a4bbd10d46 licenses: Drop unused Broadcom license file
Signed-off-by: Paul Barker <paul@betafive.co.uk>
2019-10-24 14:08:16 +01:00
Martin Jansa
baba59dc28 linux-raspberrypi=4.19.80 bcm2835-bootfiles=20191021
* Upgrade the kernel to latest with corresponding firmware.

* This VC4 firmware is compatible with network boot described here:
  https://github.com/raspberrypi/rpi-eeprom/blob/master/firmware/raspberry_pi4_network_boot_beta.md

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2019-10-24 14:07:52 +01:00
Patrick Vacek
4776ecc532 u-boot: drop patches for RPi4 merged upstream.
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
2019-10-23 11:35:53 +01:00
Khan3033
cee2557dc8 linux-raspberrypi: Updating the linux revision to resolve video rendering issue
Signed-off-by: Khan3033 <Riyaz.l@ltts.com>
2019-10-18 09:41:56 +01:00
Khem Raj
95ac7c9c11 omxplayer: Disable on aarch64
It does not build for 64bit, needs porting

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-10-16 15:31:42 +01:00
Vincenzo Pacella
f599fe632e linux-raspberrypi-rt: Update 4.19 recipe to 4.19.71
Signed-off-by: Vincenzo Pacella <shaduz@shaduzlabs.com>
2019-10-15 19:10:32 +01:00
Khem Raj
e050601d86 wiringpi: Delete
It has gone closed source and git tree has disappeared

http://wiringpi.com/wiringpi-deprecated/

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-10-10 22:26:53 +01:00
Florin Sarbu
afc43769e4 linux-firmware-rpidistro_git: Update wifi firmware
This updates brcmfmac43455-sdio.bin to version 7.45.189
and brcmfmac43430-sdio.bin to version 7.45.98.83

This updated upstream firmware also includes the changes from
0001-brcmfmac43455-sdio.txt-Follow-raspbian-change-for-bo.patch
so we remove this patch along with removing the do_clean_pc
function which is not needed anymore since we don't apply
any other patches to the upstream source.

Signed-off-by: Florin Sarbu <florin@balena.io>
2019-10-09 23:16:41 +01:00
Chris Laplante
9a231b5794 sdcard_image-rpi.bbclass: make the dep on rpi-config:do_deploy explicit
Signed-off-by: Chris Laplante <mostthingsweb@gmail.com>
2019-10-09 17:14:23 +01:00
Chris Laplante
787bcf3a0b bcm2835-bootfiles: tighten up dep on rpi-config
Intuitively, bcm2835-bootfiles:do_deploy should depend on rpi-config:do_deploy.
This indirectly resolves a missing dep between rpi-config:do_deploy and
do_image_rpi_sdimg (on an image recipe inheriting from sdcard_image-rpi.bbclass).
This manifested as changes to rpi-config (e.g. setting or unsetting
ENABLE_* variables) not triggering a rebuild of the SD card image.

Signed-off-by: Chris Laplante <mostthingsweb@gmail.com>
2019-10-09 17:14:23 +01:00
Andrei Gherzan
d34e054d51 extra-build-config.md: Document DISABLE_VC4GRAPHICS
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2019-09-16 14:44:39 +01:00
Andrei Gherzan
7c1d1e1eeb rpi-base.inc: Introduce DISABLE_VC4GRAPHICS
Since we enabled vc4graphics by default[1], there is no easy way to disable
it if needed. This patch introduces a variable (DISABLE_VC4GRAPHICS)
which when set to '1' will not add 'vc4graphics' to MACHINE_FEATURES
forcing the old behaviour.
One could use it in 'local.conf' for example.

[1] https://github.com/agherzan/meta-raspberrypi/pull/417

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2019-09-16 14:44:39 +01:00