Commit Graph

408 Commits

Author SHA1 Message Date
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
Andrei Gherzan
aaf8e2e738 firmware: Bump revision
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-10-21 22:55:43 +02:00
Andrei Gherzan
a7d629e569 bcm2835: Update to v1.46
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-10-21 22:55:18 +02:00
Andrei Gherzan
c0563670d3 rpi-default-versions: Default kernel on 4.1.%
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-10-21 20:49:04 +02:00
Andrei Gherzan
5546748231 linux-raspberrypi: Remove old 3.12 version
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-10-21 20:48:45 +02:00
Andrei Gherzan
0d7f01df10 linux-raspberrypi: Update 4.1 recipe to 4.1.10
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-10-21 20:48:11 +02:00
Alex J Lennon
36c2501130 linux-raspberrypi: support kernel 4.1.3
Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
2015-10-21 14:44:27 +02:00
Alex J Lennon
10a5bace87 linux-raspberrypi: Update kernel to 3.18.16
This requires some changes to KERNEL_DEVICETREE as the dtb
layout has changed to support overlays. This change also
makes us ready to support kernel 4.x series

Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
2015-10-21 14:44:26 +02:00
Jonathan Liu
20c8e6a5bc gstreamer1.0-plugins-bad: remove unrecognized configure option
The --with-egl-window-system=rpi configure option is not recognized
in the current version.

Signed-off-by: Jonathan Liu <net147@gmail.com>
2015-10-13 21:02:57 +02:00
Jonathan Liu
f22ecc425c linux-raspberrypi.inc: use SRCPV instead of SRCREV for PV
SRCPV is intended to be used by PV. Using SRCREV for PV is incorrect.

Signed-off-by: Jonathan Liu <net147@gmail.com>
2015-10-13 19:33:03 +02:00
Andrei Gherzan
72ea51f87b wiringPi: Bump to 2.29
The patch was rebased to apply on the updated version.

Signed-off-by: Gianfranco Costamagna <gianfranco.costamagna@abinsula.com>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-10-13 19:20:00 +02:00
Tom Doehring
4dfa633d23 userland: Fix multiple inline issues while building with gcc 5.x
Building userland source with gcc 5.x causes multiple issues such as:

vcos_thread.h:186:15: warning: inline function 'vcos_thread_get_affinity' declared but never defined
|  VCOS_UNSIGNED vcos_thread_get_affinity(VCOS_THREAD_T *thread);

The following patches fixes these issues and allows building userland on the current
poky master branch.

Signed-off-by: Tom Doehring <toolmmy@googlemail.com>
2015-10-02 23:26:14 +02:00
Jonathan Liu
c6f7ec52cf rpi-config: fix setting decode_WVC1 in config.txt
Signed-off-by: Jonathan Liu <net147@gmail.com>
2015-09-24 01:40:38 +03:00
Petter Mabäcker
bdbe28d7f3 pi-blaster: Bump SRCREV
Update to latest revision in order to get rid of the integration patch
'0001-handle-install-data-hook-when-cross-compile.patch' that has been
submitted upstream.

Changes since cd318cd63031a30249a4c08435b97263fa76d7b7:
  bce7c1b Merge pull request #45 from Technux/dev/technux
  74510ff Display an error message if unable to open mbox
  53197ca handle install-data-hook when cross compile

Signed-off-by: Petter Mabäcker <petter@technux.se>
2015-09-24 01:28:59 +03:00
Jonathan Liu
16718000cf sdcard_image-rpi.bbclass: use existing ROOTFS_SIZE variable
The ROOTFS_SIZE variable is already set to the aligned root filesystem size.

Signed-off-by: Jonathan Liu <net147@gmail.com>
2015-09-23 23:02:58 +03:00
Khem Raj
17dad9328b README: Add extra iformation on creating/sending patches using git
Current instructions could be improvised to help user in creating
properly formatted patches with some command help on git format-patch
and git send-email

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2015-08-10 23:37:14 +02:00
Andrei Gherzan
ade923f17d rpi-default-providers: Let users overwrite the default providers
[Feature #65]

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Pierre FICHEUX <pierre.ficheux@gmail.com>
2015-08-10 23:16:08 +02:00
Petter Mabäcker
4c06098563 packagegroup-rpi-test: Add pi-blaster
Ensure that pi-blaster is built and included by default when building
'rpi-test-image'.

Signed-off-by: Petter Mabäcker <petter@technux.se>
2015-08-10 01:50:08 +02:00
Mauro Carvalho Chehab
b47cbb6996 linux-raspberrypi.inc: Make kgdboc kernel param optional
The kernel debugger over console (kgdboc) parameter is being added
unconditionally to the kernel command line but this means that the
kernel will stop and wait for gdb to attach in case of a exception
or when sending a sysrq-g key. This behaviour may not be what most
users wants that are not remotely debugging the kernel over serial
console so make it optional by adding a ENABLE_KGDB config option.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
[javier: Extended commit message and made it conditional]
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
2015-08-10 00:36:20 +02:00
Derek Foreman
bfe2307cc4 sdcard_image-rpi.bbclass: Allocate more space for boot partition
The boot partition currently has a size of 20 MiB but just the start elf
binaries account almost 12 MiB, which means that only 8 MiB is left for
the kernel image. A recent kernel with many of its options built-in can
easily be more than 4 MiB so let's double the boot partition size to 40
MiB to make sure that it has enough room for the kernel image, the DTBs
and possible even a backup kernel.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
[javier: Extended the commit message]
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
2015-08-09 23:55:55 +02:00
Gary Thomas
d676d54f04 sdcard_image: Fix sdcard image generation
Recent updates to the MSDOS tools (OE-core is now at 3.0.28) have made
it an error to overwrite an image using mkfs.vfat.  This patch fixes
that problem by removing any old/stale images, thus starting from scratch.

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
2015-08-09 23:51:06 +02:00
Khem Raj
f188f3d756 userland: Fix POSIX compliance expectation
We have errors like below with glibc 2.22+

net_sockets_common.c:139:20: error: storage size of 'hints' isn't known
    struct addrinfo hints, *info, *p;
                        ^

newer glibc has now fixed the definitions of getaddrinfo and ilk to be
enabled with correct posix version.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2015-08-09 23:02:30 +02:00
Petter Mabäcker
7457bf182c wiringpi: Bump SRCREV
Update wiringpi to latest revision. Due to a refactoring of the build
procedure in wiringpi the integration patch 'makefile-install.patch'
didn't apply anymore. While migrating that patch it was simplified and
generated using 'git format-patch' instead, to make it easier to maintain
the patch in the future.

[Support #60]

Signed-off-by: Petter Mabäcker <petter@technux.se>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2015-07-19 14:53:27 +02:00
Petter Mabäcker
b78459f260 omxplayer: Bump SRCREV
[Support #60]

Signed-off-by: Petter Mabäcker <petter@technux.se>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2015-07-19 14:52:37 +02:00
Petter Mabäcker
83c9ed7dc7 userland: bump SRCREV
Update to latest version of userland for rpi.

[Support #60]

Signed-off-by: Petter Mabäcker <petter@technux.se>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2015-07-19 14:52:19 +02:00
Petter Mabäcker
9182a217c9 rpi-gpio: update version to 0.5.11
[Support #60]

Signed-off-by: Petter Mabäcker <petter@technux.se>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2015-07-19 14:52:00 +02:00
Petter Mabäcker
27a8acecf5 pi-blaster: bump to latest version
Removed 'enable-autotools-support.patch' since it is included in latest
upstream. Also fix a cross compiling issue.

[Support #60]

Signed-off-by: Petter Mabäcker <petter@technux.se>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2015-07-19 14:51:35 +02:00
Petter Mabäcker
5f057d9343 bcm2835: update version to 1.44
[Support #60]

Signed-off-by: Petter Mabäcker <petter@technux.se>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2015-07-19 14:48:31 +02:00
Petter Mabäcker
3eafe9d57a rpi-mkimage: Bump SRCREV
Update to latest version of rpi-mkimg

[Support #60]

Signed-off-by: Petter Mabäcker <petter@technux.se>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2015-07-19 14:47:58 +02:00
Petter Mabäcker
25d8f0b8d8 bcm: Bump SRCREV
Update to latest version of firmware.git

[Support #60]

Signed-off-by: Petter Mabäcker <petter@technux.se>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2015-07-19 14:46:02 +02:00
Thomas Perrot
c8532df1c2 If SERIAL_CONSOLE is already define by another layer, this value may not be good.
Signed-off-by: Thomas Perrot <thomas.perrot@tupi.fr>
2015-06-05 16:38:14 +02:00
Trevor Woerner
0fc2b1c3ac bcm2835: update SRC_URI
It appears as though the location of this tarball has changed. The current
SRC_URI works but is redirected to this new location.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2015-06-05 16:32:38 +02:00
Petter Mabäcker
bfd50c24a2 README: fix outdated device tree info
After '6392a63 rpi-base.inc: Use KERNEL_DEVICETREE by default' was
introduced, the default value for 3.18+ kernels was changed. Ensure this
is reflected in the README.

Signed-off-by: Petter Mabäcker <petter@technux.se>
2015-06-05 14:49:47 +02:00
Petter Mabäcker
4a4373c02d devicetree: auto-disable dts for old kernels
After '6392a63 rpi-base.inc: Use KERNEL_DEVICETREE by default' was
introduced, kernel versions < 3.18 might not be buildable. Since full
device tree support was introduced in 3.18 this change ensures that all
kernel < 3.18 will automatically disable device tree.

Signed-off-by: Petter Mabäcker <petter@technux.se>
2015-06-05 14:49:46 +02:00
Petter Mabäcker
6ef9d94a2c linux-raspberrypi: Update 3.12 branch to latest
Update linux-raspberrypi_3.12 to latest revision.

Remove sl030raspberrypii2ckernel.patch since it will not apply anymore
and its content seems to be obsolite after
'558d0bf Fix grabbing lock from atomic context in i2c driver' was
merged to 3.12.

[Support #60]

Signed-off-by: Petter Mabäcker <petter@technux.se>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-05-18 00:48:49 +02:00
Petter Mabäcker
bcae58ba84 linux-raspberrypi: Drop support for old kernel versions
meta-raspberrypi currently supports too many versions in order to ensure
that all of them are frequently tested and updated. Change to only
support latest stable + 2 long term versions.

[Support #59]

Signed-off-by: Petter Mabäcker <petter@technux.se>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-05-18 00:48:49 +02:00
Petter Mabäcker
e1c5efc658 linux-raspberrypi: Add 3.14 support
Add basic support for Linux 3.14, cherry-pick changes from 3.18.y in
order to solve some debugfs warnings and get better support
for i2s for BCM2708.

- 3.14 lacks BCM2709 support and will not by default be able to use for
raspberry pi 2.

Below warnings still exists they are harmless and exists due to that
snd_soc_pcm512x is triggered to be loaded twice. The problem is solved
after device tree support for the driver was introduced in 3.18.y and no
easy solution exists to solve this problem on older kernel versions (see
https://github.com/raspberrypi/linux/issues/662 for more info).

   pcm512x 1-004c: Failed to reset device: -5
   pcm512x: probe of 1-004c failed with error

Remove sl030raspberrypii2ckernel.patch since it will not apply anymore
and its content seems to be obsolite after cherry-picking
'558d0bf Fix grabbing lock from atomic context in i2c driver'.

[Support #57]

Signed-off-by: Petter Mabäcker <petter@technux.se>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-05-18 00:48:49 +02:00
Petter Mabäcker
c9f29df249 linux-raspberrypi: Update 3.18 branch to 3.18.11
Update linux-raspberrypi_3.18 to latest version.
Remove sl030raspberrypii2ckernel.patch since it will not apply anymore
and its content seems to be obsolite in later kernel versions.

[Support #56]

Change-Id: I91e57f4e65d9c1c9d12014f5d11b0acd950e2d1d
Signed-off-by: Petter Mabäcker <petter@technux.se>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-04-30 21:55:02 +02:00
Andrei Gherzan
b896a7da70 .gitignore: Ignore some stuff
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-03-12 22:20:51 +01:00
Andrei Gherzan
a7ce059274 rpi-basic-image: Define rpi SPLASH specific package
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-03-12 22:20:51 +01:00