Commit Graph

647 Commits

Author SHA1 Message Date
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
Khem Raj
68b18fa80e rpi-config: Upgrade to tip of tree to get GPU_MEM_1024
Document it in README

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-02-28 12:48:20 +01:00
Khem Raj
37e4913438 wiringPi: Fix build with musl
Include asm/ioctl.h for _IOC_SIZEBITS

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-02-28 12:48:20 +01:00
Khem Raj
c65b0b8c3f python-rtimu: Fix build with musl
ioctl(3) needs to include asm/ioctl.h for its signature

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-02-28 12:48:20 +01:00
Khem Raj
bcb26ed634 rpio: Include sys/types.h for caddr_t
Fixes build with musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-02-28 12:48:20 +01:00
Andrei Gherzan
9295c7fd71 omxplayer: Add patch to fix host-user-contaminated QA
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Jonathan Liu <net147@gmail.com>
2016-02-28 11:31:49 +01:00
Jonathan Liu
048008a935 u-boot-rpi: update path to imagetool-uncompressed.py
Signed-off-by: Jonathan Liu <net147@gmail.com>
2016-02-28 10:48:56 +01:00
Jonathan Liu
c25a43a3b4 linux-raspberrypi: update path to mkknlimg
Signed-off-by: Jonathan Liu <net147@gmail.com>
2016-02-28 10:48:55 +01:00
Jonathan Liu
736e1ba035 rpi-mkimage: install to ${libexecdir}
It doesn't make sense to install to ${libexecdir}/rpi-mkimage as it
changes the path on fido and earlier branches from:
  [...]/sysroots/x86_64-linux/usr/lib/rpi-mkimage
to:
  [...]/sysroots/x86_64-linux/usr/lib/rpi-mkimage/rpi-mkimage

Using ${libexecdir} instead of ${libexecdir}/rpi-mkimage preserves
the path for fido and earlier.

Signed-off-by: Jonathan Liu <net147@gmail.com>
2016-02-28 10:48:54 +01:00
Jonathan Liu
6726ffb4fe omxplayer: bump revision
Fixes compile errors with ffmpeg 3.0.

Signed-off-by: Jonathan Liu <net147@gmail.com>
2016-02-27 13:56:47 +01:00
Maciej Borzecki
053cb6ea0d linux-raspberrypi: use STAGING_LIBEXECDIR_NATIVE for rpi-mkimage tools
The rpi-mkimage tools are installed ${libexecdir}/rpi-mkimage within
native sysroot, where ${libexecdir} resolves to /usr/libexec. This caused
the build to fail due to recipe trying to access ${libdir}/mkimage. Fix
the paths to use an unambiguous STAGING_LIBEXECDIR_NATIVE so that a
proper location is used.

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
2016-02-26 20:42:19 +01:00
Maciej Borzecki
1465bc8787 u-boot-rpi: use STAGING_LIBEXECDIR_NATIVE for rpi-mkimage tools
The rpi-mkimage tools are installed ${libexecdir}/rpi-mkimage within
native sysroot, where ${libexecdir} resolves to /usr/libexec. This caused
the build to fail due to recipe trying to access ${libdir}/mkimage. Fix
the paths to use an unambiguous STAGING_LIBEXECDIR_NATIVE so that a
proper location is used.

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
2016-02-26 20:42:18 +01:00
Maciej Borzecki
6bd39a61b7 rpi-mkimage: install tools under {libexecdir}/rpi-mkimage
For consistency with other recipes that look for mkimage
tools (u-boot-rpi, linux-raspberrypi) under ${libexecdir}/rpi-mkimage,
make sure that the tools are installed at the proper location.

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
2016-02-26 20:42:11 +01:00
Andrei Gherzan
6314f668fa raspberrypi0.conf: Add machine configuration for Raspberry Pi Zero
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2016-01-11 11:09:35 +01:00
Andrei Gherzan
fe25a1163a packagegroup-rpi-test: Include newly added packages
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2016-01-11 11:00:12 +01:00
Leon Anavi
70e7860820 python-rtimu: Add recipe to support RTIMULib
RTIMULib is a C++ and Python library that makes it easy to use
9-dof and 10-dof IMUs with embedded Linux systems. Python
module for Raspberry Pi Sense HAT depends on it.

Python module python-rtimu uses the source code from the
GitHub repository of RPi-Distro.

Signed-off-by: Leon Anavi <leon@anavi.org>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2016-01-10 19:55:25 +01:00
Leon Anavi
509f042280 python-sense-hat: Add recipe to support Raspberry Pi Sense HAT
Python module to control the Raspberry Pi Sense HAT used in
the Astro Pi mission. This recipe provides the officially
supported library for the Sense HAT with access to all of the
on-board sensors and the LED matrix.

Signed-off-by: Leon Anavi <leon@anavi.org>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2016-01-10 19:53:25 +01:00
Jonathan Liu
f2cff839f5 README: Fix documentation to disable overscan
To disable overscan, DISABLE_OVERSCAN should be set to 1 rather than 0.

Signed-off-by: Jonathan Liu <net147@gmail.com>
2015-12-02 23:05:16 +01:00
Andrei Gherzan
a967c15d75 patch: Delete useless file
This file has been wrongly introduced in commit 72ea51f.

Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-12-02 23:00:23 +01:00
Gary Thomas
bc0d788b47 rpi-config: SPI bus support
With the newer kernels that use device tree, the SPI bus is only
enabled by a device tree setting.  This is now supported by adding
  ENABLE_SPI_BUS = "1"
in local.conf

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
2015-12-02 15:33:43 +01:00
Jonathan Liu
0776b86c66 rpi-base.inc: add i2c-rtc overlay
The update of the kernel in 10a5bace87 to
3.18.16 missed the separate rtc overlays being replaced by the i2c-rtc
overlay.

Signed-off-by: Jonathan Liu <net147@gmail.com>
2015-10-25 19:50:19 +01:00
Khem Raj
58806f6552 userland: Adjust include location for pthreads-headers
vcos headers include headers like "vcos_platform.h" "vcos_futex_mutex.h"
"vcos_platform_types.h" and these headers are different based on
platform/OSes. e.g. OS targets that support pthreads these headers
should come from pthreads/ folder but not for others. So one would add
right -I option for every package that accesses them directly or
indirectly. so if a software does #include <EGL/egl.h> then it will
break

| In file included from
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/raspberrypi2/usr/include/interface/vcos/vcos_assert.h:149:0,
|                  from
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/raspberrypi2/usr/include/interface/vcos/vcos.h:114,
|                  from
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/raspberrypi2/usr/include/interface/vmcs_host/vc_dispmanx.h:33,
|                  from
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/raspberrypi2/usr/include/EGL/eglplatform.h:110,
|                  from
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/raspberrypi2/usr/include/EGL/egl.h:36,
|                  from
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/weston/1.8.0-r0/weston-1.8.0/clients/../shared/platform.h:29,
|                  from
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/weston/1.8.0-r0/weston-1.8.0/clients/window.h:33,
|                  from
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/weston/1.8.0-r0/weston-1.8.0/clients/eventdemo.c:40:
|
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/raspberrypi2/usr/include/interface/vcos/vcos_types.h:38:33:
fatal error: vcos_platform_types.h: No such file or directory
|  #include "vcos_platform_types.h"
|                                  ^
| compilation terminated.

This is wrong, it should not happen since doing simple #include
<EGL/egl.h> should not demand manual addition of some internal paths
tobe added to -I flags.

This patch fixes the headers which refer to headers inside pthreads/
folder to prefix them with pthreads/ so we dont have to specify
additional paths

This fixes weston on rpi and I believe there are more patches now to

recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend
recipes-multimedia/omxplayer/omxplayer_git.bb

which can be removed as well

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2015-10-24 22:00:48 +02:00
Khem Raj
dba20cbb0a userland: Fix install prefix and generate pkgconfigs
several userspace libraries like libepoxy poke for pkgconfigs ( .pc )
files to detect egl support, and comes out to fail in configure stage,
one of the patches now adds support to generate .pc files for some known
cases. it could be further extended if needed for other libraries too

Secondly, the default CMAKE_INSTALL_PREFIX is /opt/vc but in OE we use
proper /usr so lets make this change as well, it simplifies do_install()

.so are not versioned so we need to grapple with OE's defaults of
expecting versioned .so files.

Adjust packages for -dev package such that it can automatically package
pkgconfig files and inherit pkgconfig because in cmake code we are not
looking for pkgconfig so we need the dependency also put in place for
consistent builds

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2015-10-24 21:51:51 +02:00
Alex J Lennon
7cff0a0a9e README: Add section on audio routing
See http://redmine.gherzan.com/issues/55

Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
2015-10-24 21:45:56 +02:00
Andrei Gherzan
50a7710718 pi-blaster: Bump revision
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-10-21 22:58:54 +02:00
Andrei Gherzan
fcbb1e6e91 userland: Bump revision
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-10-21 22:58:40 +02:00
Andrei Gherzan
7d2249a2e2 rpi-mkimage: Bump revision
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-10-21 22:58:19 +02:00
Andrei Gherzan
7f043ab724 omxplayer: Bump revision
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-10-21 22:56:44 +02:00