Commit Graph

624 Commits

Author SHA1 Message Date
Alan Stice
54ecd3402d linux-raspberrypi: Rename linux.inc to linux-rpi.inc Rename linux.inc to prevent it from impacting other machines
Signed-off-by: Alan Stice <alan@alanstice.com>
2016-04-13 04:17:22 +02:00
Petter Mabäcker
e9e4b1bbd2 linux-raspberrypi: Drop support for 3.14
General policy is to support three kernel versions; latest stable + two
longterm versions. These are currently 4.4, 4.1, and 3.18.

Signed-off-by: Petter Mabäcker <petter@technux.se>
2016-04-13 03:18:41 +02:00
Petter Mabäcker
e447357ec4 .gitignore: Ignore some additional files
Signed-off-by: Petter Mabäcker <petter@technux.se>
2016-04-13 03:18:38 +02:00
Petter Mabäcker
3bd9b1bce4 rpi-base.inc: Add overlay for rpi-ft5406
rpi-ft5406 is an enabler for Official Raspberry Pi 7 inch
touchscreen support.

Signed-off-by: Petter Mabäcker <petter@technux.se>
2016-04-13 03:18:21 +02:00
Petter Mabäcker
197266a2aa rpi-base.inc: Remove deprecated MACHINE_FEATURES
Signed-off-by: Petter Mabäcker <petter@technux.se>
2016-04-13 03:17:56 +02:00
Petter Mabäcker
9797874a23 pitft: Add support for pitft28r
The support for PiTFT 28 inch resistive touchscreen is optional
and can be enabled by adding below in local.conf:

MACHINE_FEATURES += "pitft pitft28r"

While at it also fix a minor typo in README.

Signed-off-by: Petter Mabäcker <petter@technux.se>
2016-04-13 03:16:02 +02:00
Khem Raj
84af6e7de3 userland: Fix tearing effect seen with wayland compositors
Introduce EGL flush in few more places

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-04-01 13:27:59 +02:00
Khem Raj
8f425f1b9e firmware: Update to 20160326
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-04-01 13:22:37 +02:00
Khem Raj
e82417d33b userland: Implement dispmanx_wrap_buffer
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-03-28 16:37:43 +02:00
Khem Raj
d28692dc9e userland: Upgrade to latest
Regenerate patches on top of given SRCREV Add return code errors fix to get it
working with clang.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-03-28 16:37:29 +02:00
Khem Raj
f6473c36a5 eglinfo-x11: Disable --as-needed
--as-needed exposes a dependency problem where libegl needs some symbols
from libgles2 but the order that waf uses on linker cmdline for these
libs is reversed so we end up with link time failures e.g.

libEGL.so: undefined reference to `glxx_client_GetRenderbufferParameteriv'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-03-28 16:36:06 +02:00
Khem Raj
8f285bb8f3 sdcard_image: Depend on do_deploy for kernel
SD image is expecting dtb files to be deployed in deploy area, this step
however is done when do_deploy of kernel is finished and we need to pin that in
dependency list, otherwise there are build race conditions during builds
especially visible when building with initramfs enabled.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-03-28 16:35:50 +02:00
Khem Raj
75efa69e75 linux-raspberrypi-4.4: Add the pitft22 overlay from adafruit
Upgrade to 4.4.6

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-03-28 16:35:04 +02:00
Khem Raj
38ab74bd3e linux-raspberrypi_4.4.bb: Update to 4.4.3
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-03-10 15:16:14 +01:00
Khem Raj
e9c8b2aa4d linux-raspberrypi: Upgrade 4.4.1 -> 4.4.2
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-03-10 15:16:03 +01:00
Khem Raj
2c19e8882f linux-raspberrypi: Add recipe for 4.4 release
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2016-03-10 15:15:44 +01:00
Khem Raj
00962adc49 userland: Drop extern inline patches
Not needed since the issues have been fixed differently upstream

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-03-10 14:58:26 +01:00
Khem Raj
370e0f68e6 userland: Upgrade to latest
Drop upstreamed patches

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-03-10 14:57:48 +01:00
Khem Raj
f248d7cf8c gstreamer1.0-omx: Backports and fixes for smooth video playback
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-03-10 14:56:07 +01:00
Khem Raj
53e17683c5 weston: Specify egl and compositor options for rpi
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-03-10 14:55:47 +01:00
Khem Raj
27445a1e4c gstreamer1.0-omx: Add raspberry pi optimization patches and config options
Patches from Hong Li <honglh@gmail.com>

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-03-10 14:54:43 +01:00
Khem Raj
06709d784d userland: Fix build race with wayland support
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-03-10 14:54:02 +01:00
Khem Raj
da73efffe1 userland: Add wayland to deps if in DISTRO_FEATURES
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-03-10 14:53:49 +01:00
Khem Raj
34cb837929 userland: Define PROJECT_APIVER and rprovide libgles2 libgl
These are needed for pkgconfig to have correct version number which is
checked by many configure systems e.g. cogl to decide on support for
wayland-egl

rprovides are expected by cogl as well to define runtime deps on
libgles2 and libgl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-03-10 14:53:28 +01:00
Khem Raj
507ab2682b userland: Delete rpc flushing of thread in glEGLImageTargetTexture2DOES
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2016-03-10 14:53:03 +01:00
Khem Raj
4ed070fc0c eglinfo-x11,eglinfo-fb: Add EGLINFO_DEVICE via bbappends
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-03-10 14:51:44 +01:00
Khem Raj
b47e8f5599 rpi-gpio: Upgrade to 0.6.1 and fix build with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-03-10 14:51:01 +01:00
Khem Raj
6fa040c769 weston: Enable rpi compositor backend
oe-core default configure options disables it

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-03-10 14:50:49 +01:00
Khem Raj
bfbe0ce3b4 userland: Add wayland support
backport and fix needed patches for supporting wayland-egl
use PACKAGECONFIG for wayland so we can add proper DEPENDS on wayland
Fix QA warnings about dev-so

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-03-10 14:49:21 +01:00
Khem Raj
4db634bcda userland: Fix build with clang compiler
ends up with some warning cleanups and extern inline semantics changes

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-03-10 14:49:10 +01:00
Khem Raj
32d0936570 userland: Upgrade to latest git master
Drop upstreamed patches
0002-fix-musl-build.patch was partially upstreamed
git'ify the remaining patches

Change license field to BSD 3 clause, since thats what
the licence it with BCM and RPI Copyrights

Licence changed from Broadcom to Raspberry Pi Ltd

see commit 0863709b9fb90ee1204b7fe52f69535830d3c111
Author: popcornmix <popcornmix@gmail.com>
Date:   Mon Feb 1 21:07:02 2016 +0000

    Update copyright

diff --git a/LICENCE b/LICENCE
index 2582681..dea4c26 100644
--- a/LICENCE
+++ b/LICENCE
@@ -1,4 +1,5 @@
 Copyright (c) 2012, Broadcom Europe Ltd
+Copyright (c) 2015, Raspberry Pi (Trading) Ltd
 All rights reserved.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-03-10 14:48:53 +01:00
Theodor Gherzan
519c387e3b rpi-base.inc: Add rpi3 device tree blob
Signed-off-by: Theodor Gherzan <theodor@resin.io>
2016-03-10 14:45:42 +01:00
Theodor Gherzan
12a8848127 raspberrypi3.conf: Create machine configuration for Raspberrypi 3
Signed-off-by: Theodor Gherzan <theodor@resin.io>
2016-03-10 14:45:12 +01:00
Theodor Gherzan
1601a3571c linux-firmware: Add brcmfmac43430 firmware
Signed-off-by: Theodor Gherzan <theodor@resin.io>
2016-03-10 14:44:44 +01:00
Theodor Gherzan
752a9a89e5 bcm2835-bootfiles: Update LICENCE md5 due to firmware revision update
Signed-off-by: Theodor Gherzan <theodor@resin.io>
2016-03-10 14:44:24 +01:00
Theodor Gherzan
5eaeb55161 firmware.inc: Update revision to include rpi3 support
Signed-off-by: Theodor Gherzan <theodor@resin.io>
2016-03-10 14:44:10 +01:00
Theodor Gherzan
15a23443c8 linux-raspberrypi: Update revision to include rpi3 support
Signed-off-by: Theodor Gherzan <theodor@resin.io>
2016-03-10 14:44:03 +01:00
Petter Mabäcker
a42a1706de pitft: Add PiTFT22 support
- Add support to build overlays for PiTFT22 in the kernel.
- Setup a basic configuration for the driver

The PiTFT22 support is optional and can be enabled by adding below in
local.conf:

MACHINE_FEATURES += "pitft pitft22"

This patch also includes restructuring of kernel patches per kernel version
specific directories.

[Support #70]

Signed-off-by: Petter Mabäcker <petter@technux.se>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2016-03-01 21:56:56 +01:00
Jonathan Liu
249cb544e0 u-boot-rpi: update path to imagetool-uncompressed.py
Signed-off-by: Jonathan Liu <net147@gmail.com>
2016-03-01 15:04:04 +01:00
Jonathan Liu
807cff5e5b linux-raspberrypi: update path to mkknlimg
Signed-off-by: Jonathan Liu <net147@gmail.com>
2016-03-01 15:04:03 +01:00
Jonathan Liu
224d1c9925 rpi-mkimage: install to bindir instead of libexecdir
On fido and earlier branches, ${libexecdir} depends on ${BPN} so it
is not a good choice as ${libexecdir} is different depending on the
recipe name.

For example, rpi-mkimage would install mkknlimg to:
  [...]/sysroots/x86_64-linux/usr/lib/rpi-mkimage
but linux-raspberrypi would look for mkknlimg in the path:
  [...]/sysroots/x86_64-linux/usr/lib/linux-raspberrypi

To resolve this, we use ${bindir} instead as it doesn't depend on
${BPN} in fido and earlier branches as well as in the master branch.

Signed-off-by: Jonathan Liu <net147@gmail.com>
2016-03-01 15:04:02 +01:00
Petter Mabäcker
0d5aff5161 pitft: Add basic support for PiTFT
Add basic support for PiTFT display by using device-trees.

In order get it working below configurations must be active in
local.conf:

MACHINE_FEATURES += "pitft"
 - This will enable SPI bus and i2c device-trees, it will also setup
   framebuffer for console and x server on PiTFT.

[Support #70]

Signed-off-by: Petter Mabäcker <petter@technux.se>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2016-03-01 14:38:03 +01:00
Petter Mabäcker
52671faf4f rpi-base.inc: Allow MACHINE_FEATURES appends
Ensure that it's possible to add MACHINE_FEATURES from places that will
be executed before rpi-base.inc (like e.g. local.conf), without having
them overrided.

Signed-off-by: Petter Mabäcker <petter@technux.se>
2016-03-01 14:25:54 +01:00
Petter Mabäcker
b331933938 rpi-config: I2C support
With newer kernels (>=3.18) that supports device-trees I2C
should be enabled with device-trees.

This is now support by adding:
ENABLE_I2C = "1"
in local.conf

This will enable the dtparams:
i2c1
i2c_arm

Signed-off-by: Petter Mabäcker <petter@technux.se>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2016-03-01 14:10:21 +01:00
Andrei Gherzan
6c6f6cf7b3 Add optional build configuration section
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2016-03-01 14:06:42 +01:00
Andrei Gherzan
8948772554 README: Add missing contents
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2016-03-01 13:24:39 +01:00
Petter Mabäcker
451a8de37c .gitignore: Ignore .swp files
Signed-off-by: Petter Mabäcker <petter@technux.se>
2016-02-29 22:25:35 +01:00
Andrei Gherzan
e9de6d816d linux-raspberrypi: Make sure we have initramfs image before running mkknlimg
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2016-02-28 12:48:20 +01:00
Stéphane Cerveau
9675f8f09a linux-raspberry.inc: add initramfs support
append initramfs creation to install RPi bootloader trailer

Signed-off-by: Stéphane Cerveau <voxtok@voxtok.com>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2016-02-28 12:48:20 +01:00
Khem Raj
4d42a6efec linux-raspberrypi: Upgrade 4.1 kernel to 4.1.17
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-02-28 12:48:20 +01:00