Commit Graph

1281 Commits

Author SHA1 Message Date
Andrei Gherzan
0059905a90
rpi-base.inc: Add Raspberry Pi 3B+ dtb
Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2018-03-29 11:49:40 +01:00
Andrei Gherzan
c717e7359a
raspberrypi3-64.conf: Use linux-firmware-raspbian packages and add bcm43455
Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2018-03-29 11:06:35 +01:00
Andrei Gherzan
d5f252ef23
raspberrypi3.conf: Use linux-firmware-raspbian packages and add bcm43455
Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2018-03-29 11:05:57 +01:00
Andrei Gherzan
9209f20c7a
linux-firmware-raspbian: New recipe which uses RPi-Distro repository
This packages only the firmware needed for the RaspberryPi boards. We use the
RPi-Distro as it's already maintained by the Raspbian guys and we get better
support for the RaspberryPi needed firmwares.

Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2018-03-29 11:04:40 +01:00
Andrei Gherzan
e99afb0c89
firmware: Update to 20180313
Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2018-03-28 14:48:34 +01:00
Andrei Gherzan
857db4a496
linux-raspberrypi: Update 4.14 recipe to 4.14.30
Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2018-03-28 14:48:33 +01:00
Andrei Gherzan
a4c79714d6
linux-raspberrypi: Update 4.9 recipe to current HEAD
Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2018-03-28 14:48:26 +01:00
Paul Barker
63e53f9190 docs: Remove reference to deprecated images
Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2018-03-23 20:41:12 +00:00
Hugo Hromic
415c1998a6 gstreamer1.0-omx: refresh and clean-up patches
fixes:

    WARNING: gstreamer1.0-omx-1.12.4-r0 do_patch:
    Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
    The context lines in the patches can be updated with devtool:

        devtool modify <recipe>
        devtool finish --force-patch-refresh <recipe> <layer_path>

    Then the updated patches and the source tree (in devtool's workspace)
    should be reviewed to make sure the patches apply in the correct place
    and don't introduce duplicate lines (which can, and does happen
    when some of the context is ignored). Further information:
    http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
    https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
    Details:
    Applying patch 0001-config-files-path.patch
    patching file config/bellagio/gstomx.conf
    Hunk #1 succeeded at 1 with fuzz 2.
    Hunk #2 succeeded at 9 with fuzz 2.
    patching file config/rpi/gstomx.conf
    Hunk #8 succeeded at 63 with fuzz 2.
    Hunk #10 succeeded at 82 with fuzz 2.
    Hunk #11 succeeded at 92 with fuzz 2.

    Now at patch 0001-config-files-path.patch

deleted obsolete `gstreamer1.0-omx` directory with duplicated patches that are also in `gstreamer1.0-omx-1.12`.
made file naming for `gstreamer1.0-omx_%.bbappend` consistent with the rest of the layer recipes.

Signed-off-by: Hugo Hromic <hhromic@gmail.com>
2018-03-23 11:44:45 +00:00
Paul Barker
f86f9f0013
Merge pull request #202 from kraj/kraj/master
Upgrade to 4.14 kernel
2018-03-18 19:09:12 +00:00
Khem Raj
790e100a90 userland: Add wayland support for libbrcmEGL
These renames are recently added
dd98890106

Some packages e.g. libSDL2 has started using the new names
and are resulting in undefined symbols e.g.

| /mnt/a/oe/build/tmp/work/cortexa7t2hf-neon-vfpv4-bec-linux-gnueabi/libsdl2-mixer/2.0.2-r0/recipe-sysroot/usr/lib/libb
rcmEGL.so: undefined reference to `wl_resource_post_error'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-08 20:31:12 -08:00
Khem Raj
4230fae1de firmware: Use snapshots from master again
This time use the snapshot archives to avoid
repo clone size issues

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-08 20:31:12 -08:00
Khem Raj
712558c64e userland: Update to master as of 20180219
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-08 20:31:12 -08:00
Khem Raj
b588825238 linux-raspberrypi-4.14: Update past 4.14.22
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-08 20:31:12 -08:00
Maxin B. John
79ea44b997 gstreamer1.0-omx: remove unused patches
Remove the following unused patches:
 1. 0002-Don-t-try-to-acquire-buffer-when-src-pad-isn-t-activ.patch
 2. 0003-fix-decoder-flushing.patch

Signed-off-by: Maxin B. John <maxin.john@intel.com>
2018-03-08 21:57:25 +00:00
Peter A. Bigot
abd453d7da bluez5: brcm43438: update device dependency
A previous patch changed the BT serial device to the alias, but did not
update the device dependency resulting in the service failing to start
on boot.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2018-03-07 23:37:53 +00:00
Peter A. Bigot
ad7693c9a0 rpi-base.inc: set default wic kickstart file
While wic is not a standard image, adding it to IMAGE_FSTYPES in
local.conf will fail unless a WKS_FILE is provided.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2018-03-07 23:35:18 +00:00
Peter A. Bigot
0e1e2c6e0a sdimage-raspberrypi.wks: find /boot partition on mmcblk0
Recently wic was modified to no longer exclude /boot from partitions
added to fstab.  The --on parameter in many kickstart specifications
insufficiently resolved the MMC device, resulting in attempts to mount
/dev/mmcblkp1 as boot when the device should be /dev/mmcblk0p1.

With systemd the mount failure is an error and the system drops into
emergency mode.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2018-03-07 23:35:18 +00:00
Paul Barker
207efc6fcf rpi-basic-image: Refactor to avoid double deprecation warnings
If rpi-basic-image is based on rpi-hwup-image, both deprecation warnings are
printed which may be confusing. Therefore let's just copy over the relevant bits
of rpi-hwup-image for now.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2018-02-28 18:02:58 +00:00
Paul Barker
81a9e9d450 linux-raspberrypi: Change default version to 4.14.y
This matches the change made in the upstream firmware repository earlier in
February.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2018-02-28 18:02:58 +00:00
Paul Barker
ad0443b3d2 linux-raspberrypi: Add recipe for v4.14.y
It's alive! (a.k.a. upstream have stopped rebasing this branch)

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2018-02-28 18:02:58 +00:00
Paul Barker
37f6523aa1 firmware: Update to recent commit
There hasn't been a tagged version of the firmware lately, but there have been
several bugfixes listed in the commit history and we're about to move to v4.14.y
as the default kernel so let's get up-to-date.

The actual commit used is the most recent change to the firmware files as of
2018-02-26, the most recent commits which only change the kernel image and other
files we don't use are ignored.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2018-02-28 18:02:58 +00:00
Paul Barker
8501a33253 linux-raspberrypi-dev: Update to v4.15.y
Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2018-02-28 18:02:58 +00:00
Paul Barker
69d9fa2a69 linux-raspberrypi: Update to v4.9.80
Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2018-02-28 18:02:58 +00:00
Paul Barker
0deabddb14 rpi-*-image: Deprecate old image names
As discussed on the issue tracker, it's confusing for meta-raspberrypi to have
its own set of image names filling the same jobs as the core images. Therefore
we are marking these images as deprecated and will be removing them in the
future. The recommended replacement images are as follows:

    rpi-hwup-image -> core-image-minimal
    rpi-basic-image -> core-image-base

The image 'rpi-test-image' will be kept and is not marked as deprecated, it is
still useful for testing. It it updated to be based on 'core-image-base'.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2018-02-28 18:02:58 +00:00
Paul Barker
0f145057c3 rpio: Use pypi.bbclass
This should resolve recent issues with the non-https URL in SRC_URI.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2018-02-28 18:02:58 +00:00
Paul Barker
6d0830b26f Fix do_image_rpi_sdimg/do_image_wic dependencies
The dependency resolution code in bitbake has recently been optimized and this
seems to have slightly changed the behaviour of do_image_rpi_sdimg and
do_image_wic. We ensure that the main build artifacts are present by depending
on the relevant do_deploy and do_populate_sysroot tasks. However, we need to
ensure that other build tasks for these dependencies have also been executed
before we try to create our image. This can be achieved by adding a recursive
dependency on do_build, so that the do_build tasks of all recipes in the
dependency chain of do_image_rpi_sdimg/do_image_wic are executed before the
image function itself is executed.

The original issue seen here was that 'recipedata' files were not copied to
'tmp/deploy/licenses' as do_populate_lic for each dependency had not been ran
before the image creation function. The write_deploy_manifest function from
license.bbclass (listed in IMAGE_POSTPROCESS_COMMAND) therefore failed. Adding
the recursive dependency on do_build fixes this issue, ensuring do_populate_lic
runs before do_image_rpi_sdimg/do_image_wic.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2018-02-28 18:02:58 +00:00
Drew Moseley
72bc798ff5 u-boot: Update RPi Zero W defconfig to support DTB.
This makes the defconfig more consistent with the RPi 3 and
CONFIG_OF_EMBED is needed to get the RPi firmware provided
DTB to function.

Recently removed by:
    a50e19695f u-boot: drop upstreamed patches in v2018.01
however this change missed the cutoff for v2018.01

Signed-off-by: Drew Moseley <drew.moseley@northern.tech>
2018-02-14 17:52:28 +00:00
Hugo Hromic
a2ba56f74e linux-firmware: fix addition of NVRAM file to image (fixes #184)
Signed-off-by: Hugo Hromic <hhromic@gmail.com>
2018-02-05 19:19:06 +00:00
Jeff Wannamaker
ee668d8072 userland: Update to latest master
Add patch to allow multiple wayland clients per process

userland has limit of one wayland client per process and thereby allow compositors
to launch multiple wayland client apps

Signed-off-by: Jeff Wannamaker <jeff_wannamaker@cable.comcast.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-02-02 11:13:24 +00:00
Martin Jansa
073f1e845e omxplayer: make samba support configureable
* samba depends on libpam and it might be useful to disable support
  for it in DISTROs without pam in DISTRO_FEATURES
* disable it by default

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-02-01 18:42:47 +00:00
Martin Jansa
ea35d07b5b recipes: use oe.utils.conditional instead of deprecated base_conditional
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-02-01 13:40:32 +00:00
Martin Kelly
8643e28c3a linux-raspberrypi: fix build with devtool
Currently, building linux-raspberrypi with "devtool build" breaks
because ${B}.config doesn't yet exist when do_configure_prepend runs.

Fix this by taking some logic from kernel.bbclass do_configure to populate
${B}.config before do_configure_prepend.

The full explanation for why this is necessary is fairly complex:

- In devtool builds, externalsrc.bbclass gets inherited and sets a list of
SRCTREECOVEREDTASKS, which don't get run because they affect the source tree
and, when using devtool, we want the developer's changes to be the single
source of truth. kernel-yocto.bbclass adds do_kernel_configme to
SRCTREECOVEREDTASKS, so it doesn't run in a devtool build., In a normal
non-devtool build, do_kernel_configme creates ${B}.config.

- Normally (e.g. in linux-yocto), it would be OK that do_kernel_configme
doesn't run, because the first few lines of do_configure in kernel.bbclass
populate ${B}.config from either ${S}.config (if it exists) for custom
developer changes, or otherwise from ${WORDIR}/defconfig.

- In linux-raspberrypi, we add do_configure_prepend, which tweaks
${B}.config. Since this runs *before* the kernel.bbclass do_configure,
${B}.config doesn't yet exist and we hit an error. Thus we need to move
the logic from do_configure up to before our do_configure_prepend. Because
we are copying only a portion of do_configure and not the whole thing,
there is no clean way to do it using OE functionality, so we just
copy-and-paste.

Signed-off-by: Martin Kelly <mkelly@xevo.com>
2018-01-31 20:38:58 +00:00
Martin Kelly
dfa7f00bab linux-raspberrypi: remove custom oldconfig command
This command is done (with more correct flags) in kernel.bbclass's
kernel_do_configure. Since we inherit that and prepend to it, we don't
need to run it ourselves, as we end up just running it twice.

Signed-off-by: Martin Kelly <mkelly@xevo.com>
2018-01-31 20:38:58 +00:00
Hugo Hromic
1c9986257e rpi-config: fix config variables with the same initial name being overwritten 2018-01-29 18:24:15 +00:00
Andrei Gherzan
6235b0a854 bluez5: Use serial device alias for BT device
Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2018-01-26 16:50:42 +00:00
Andrei Gherzan
0202bc2881 rpi-base.inc: Include udev-rules-rpi in MACHINE_EXTRA_RRECOMMENDS
Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2018-01-26 16:50:42 +00:00
Andrei Gherzan
f864b1068f bluez5: Update BCM43430A1 firmware from Raspbian
[Issue #174]

Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2018-01-23 13:34:12 +00:00
Andrei Gherzan
15d2ea0f5a linux-raspberrypi: Update 4.9 recipe to 4.9.77
Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2018-01-23 13:34:12 +00:00
Andrea Galbusera
a50e19695f u-boot: drop upstreamed patches in v2018.01
These are now in upstream, so they are no longer required here.

Signed-off-by: Andrea Galbusera <gizero@gmail.com>
2018-01-22 20:20:38 +00:00
Martin Kelly
61c2a965a2 linux-firmware: make rpi fw specific to rpi
Currently, we are installing the rpi custom txt and fw files whenever
the meta-raspberrypi layer is included in bblayers.conf. This breaks
other machines that need to use the bcm43430 drivers but with alternate
txt or fw files.

Install these files only when "rpi" is in MACHINEOVERRIDES.

Signed-off-by: Martin Kelly <mkelly@xevo.com>
2018-01-22 19:10:14 +00:00
Ricardo Salveti
c47caaca32 rpi-base.inc: use $KERNEL_PACKAGE_NAME for the kernel package name
The kernel class is now using $KERNEL_PACKAGE_NAME to set the default
kernel package name in order to allow alternate kernel flavors.

This fixes the following bitbake warning:
Variable key RDEPENDS_${KERNEL_PACKAGE_NAME}-base (${KERNEL_PACKAGE_NAME}-image) replaces original key RDEPENDS_kernel-base ().

Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
2018-01-11 21:34:23 +00:00
Ricardo Salveti
ab5ef24ef8 rpi-config: allow VC4DTBO override on raspberrypi3-64
Allow user to replace VC4DTBO (e.g. vc4-kms-v3d) on raspberrypi3-64.

Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
2018-01-11 21:34:11 +00:00
Drew Moseley
58d86c0986 u-boot: Update RPi Zero W defconfig to support DTB.
This makes the defconfig more consistent with the RPi 3 and
CONFIG_OF_EMBED is needed to get the RPi firmware provided
DTB to function.

Signed-off-by: Drew Moseley <drew.moseley@northern.tech>

Added patch status information in patch header, and re-word of commit
message

Signed-off-by: Mirza Krak <mirza.krak@endian.se>
2018-01-11 21:33:55 +00:00
Mirza Krak
9c9c2bac61 raspberrypi0-wifi: update UBOOT_MACHINE variable
The rpi0-wifi has an machine/board specific defconfig instead of the generic one

Signed-off-by: Mirza Krak <mirza.krak@endian.se>
2018-01-11 21:33:55 +00:00
Mirza Krak
f900a6568c u-boot: add support for Raspberry Pi Zero W
It is all ready supported upstream and this will apply a backported
patch until next U-boot release.

Signed-off-by: Mirza Krak <mirza.krak@endian.se>
2018-01-11 21:33:55 +00:00
Paul Barker
24ffe9fb59 docs: Do not force alabaster theme
Sphinx will use the 'alabaster' theme by default when building locally. However,
Read the Docs will use their own theme by default which suits their site better.

By not specifying html_theme we allow both targets to use the appropriate
default theme.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2017-12-18 19:20:43 +00:00
Paul Barker
337a419c0e userland: Use commit date as PV
This gives us a package version which can be reliably expected to move forwards
not backwards.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2017-12-18 19:20:43 +00:00
Paul Barker
9bf918014b rpi-config: Add RPI_EXTRA_CONFIG option
The variable RPI_EXTRA_CONFIG can be set in local.conf to append text to the
Raspberry Pi config.txt file as described in the documentation.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2017-12-18 19:20:43 +00:00
Paul Barker
8124f87175 readme: Update quick links
* As we now use GitHub for development we should point users at this repo.

* Layer documentation is now published on Read the Docs.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2017-12-18 19:20:43 +00:00