Commit Graph

363 Commits

Author SHA1 Message Date
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
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
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
b896a7da70 .gitignore: Ignore some stuff
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-03-12 22:20:51 +01:00
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
d1fa1c0b75 vc-graphics: Move to recipes-graphics
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-03-12 22:20:51 +01:00
ddd1f03373 firmware.inc: Move to recipes-bsp
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-03-12 22:20:51 +01:00
5810be737d bootfiles: Move to recipes-bsp
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-03-12 22:20:51 +01:00
c0ee9c7641 bcm2835: More recipe to devtools
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-03-12 22:20:51 +01:00
df7eeb6f86 xserver-xf86-config: add rpi2 awareness
Use a MACHINEOVERRIDE that is visible for both raspberrypi
and raspberrypi2.

[Bug #52]

Signed-off-by: Petter Mabäcker <petter@technux.se>
2015-03-12 22:20:51 +01:00
57c8e6bffb rpi-base.inc: Include the RPI2 DTB
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-03-01 22:43:40 +01:00
4e59c28f70 README: Layer now depends on meta-oe too
Samba is a build dependency for omxplayer.

Signed-off-by: Andrei Gherzan <andrei@resin.io>
2015-03-01 01:28:28 +01:00
23add242bc README: Remove info about gerrit server
We are not using the gerrit server anymore.
Send patches using the mailing list.

Signed-off-by: Andrei Gherzan <andrei@resin.io>
2015-03-01 01:21:06 +01:00
7146e12374 layer.conf: set high layer priority
Set a high layer prio to ensure that meta-raspberrypi addons
are always prioritized above the depended layers.

Signed-off-by: Petter Mabäcker <petter@technux.se>
2015-03-01 01:13:43 +01:00
1350ba8acf raspberrypi.conf: Use arm1176jzfshf as default tune
Reformat the tune-arm1176jzf-s.inc file.
There is not 'PACKAGE_EXTRA_ARCHS_tune-armv6hf-vfp'. Replace it by
'PACKAGE_EXTRA_ARCHS_tune-armv6hf'.

Change-Id: I0dd63b1dd3e1ebc7fe0600e93fb9d27a6a833cd9
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-03-01 00:59:51 +01:00
6392a63985 rpi-base.inc: Use KERNEL_DEVICETREE by default
We already switched to kernel v3.18 by default so we can activate
KERNEL_DEVICETREE by default too.

Change-Id: I69612be72f8254d462421112cf851e17a1ef24f8
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-03-01 00:59:50 +01:00
1949a0d5ba userland: Fix build for armv7
[Bug #49]

Change-Id: I340b4134ae4227f315c1c3df1345b04ebd4b874b
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-03-01 00:59:48 +01:00
ba383ecd35 linux-raspberrypi: Refactor kernel recipes
We use this to simplify the update process. Updating a kernel version will not
require renaming the recipe but only tweaking LINUX_VERSION.

Update kernel version:
        - bump SRCREV
        - bump LINUX_VERSION if needed

[Support #26]

Change-Id: I7565ddd1f03cc34c34aa5da92664a0057b415c9a
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-03-01 00:48:34 +01:00
4147bd7214 userland: Bump SRCREV
Change-Id: If1d2608322749db4baa445ba94bc471a0ac86a5c
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-03-01 00:43:33 +01:00
fde4b34aa2 bcm2835: Update to v1.38
Change-Id: Iebac94415602454dd4e2808c8e02d0083f804029
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-03-01 00:43:31 +01:00
72c43866c1 rpi-gpio: Update to v0.5.9
Change-Id: Ifc455b9106f07583ccaf3fe82723baaeb5e04d2e
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-03-01 00:43:29 +01:00
b7c3a935cc omxplayer: Bump SRCREV
Add a patch to fix the pkg-config mechanism in ffmpeg.

Change-Id: Ib506bb4e26a8a0c5c294ed55da0a0da8dc67a2d7
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-03-01 00:43:26 +01:00
d8bf60ce6c README: Github repo changed
Change-Id: If16b5a782d7154c05f6502554a03d215774e4c07
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-02-14 02:00:57 +01:00
463d0e2d7d README: As users asked - bitbucket mirror
Change-Id: I240e5686d4740a84c35e5063ba08bff363b1b91e
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-02-11 21:19:40 +01:00
54c5451a04 Add support for Raspberry PI 2
Add machine configuration file.
Change the kernel image name on SD card.
Use the defconfig for this machine (bcm2709_defconfig).

Change-Id: I6549d5f49b1ed32ef4d44aca6f7af4234618c1a8
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-02-08 14:46:42 +02:00
dedd45f4f8 Use variable for kernel image deployed name on SD card
Change-Id: I4a55b53d337930aae3351629a902dbac832ac958
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-02-08 00:30:40 +02:00
8c8a5cd64c linux-raspberrypi.inc: Make KERNEL_DEFCONFIG machine specific
Change-Id: I241a8adead67717f31d1b2e66a71bd5c3edfa9fd
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-02-08 00:28:37 +02:00
318f1b3994 firmware: Update to HEAD
Change-Id: I682365b514f233616ac7eb07667edc4ca6afcdfa
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-02-08 00:19:54 +02:00
7089e6a891 linux-raspberrypi.inc: Remove machine specific CMDLINE definition
This is already a raspberrypi specific recipe. So this is useless and would
break other machines.

Change-Id: Ie1d627384255660d7e213833fd4433f47c0edc1d
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-02-08 00:14:05 +02:00
18e5856a25 rpi-default-versions.inc: Use kernel v3.18 by default
Change-Id: If3ff46ae10b7bee2decead6dfa408833713d16f8
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-02-08 00:09:41 +02:00
e1d4448ce8 xserver-xf86-config: Use SOC specific assignements
In this way the modifications will be used on all RPI boards.

Change-Id: Ife10db876db85c1c4944028a0b49ccae4d8c0d41
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-02-08 00:06:36 +02:00
b89a2743fb raspberrypi.conf: Split in specific and common conf. files
*.conf files should hold board specific stuff while rpi-base.inc should
include configuration that is common for all Raspberry Pi boards.

Remove MACHINE_KERNEL_PR as we don't use it anymore.

Minor tweaks.

Change-Id: I5e1b12c1d224ac003d2890544beb036f1d5d8643
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-02-08 00:01:36 +02:00
b99a09b257 Merge "devicetree: Add support for DT overlays with RPi bootloader" 2015-02-07 22:14:22 +01:00
2dbc974596 devicetree: Add support for DT overlays with RPi bootloader
Compile overlay device trees and put them in 'overlays/' folder
on sdcard RPi boot partition.

Change-Id: I3da0032b3c2618165008eec1fc94e97824d09099
Signed-off-by: Francois Muller <francois@concept-embarque.fr>
2015-02-07 20:54:37 +01:00
4905c7cc2b README: add info about device tree support
Add basic info about device tree support for RPi and how to use
KERNEL_DEVICETREE.

Also fix minor typo in the section about redmine.

Change-Id: Ibfee31e319c421c09d6e9cbfbe83364e8d055b95
Signed-off-by: Petter Mabäcker <petter@technux.se>
2015-02-06 23:33:52 +01:00
4dc75cedf7 devicetree: Add minimal support with RPi bootloader
[RPi DT info] https://github.com/raspberrypi/documentation/blob/master/configuration/device-tree.md#part-3-using-device-trees-on-raspberry-pi

RPi bootloader detects a DT-ready kernel by checking for a specific trailer in kernel.img.
Using latest raspberrypi/firmware (firmware.inc) enables this check ability.
Using latest raspberrypi/tools (rpi-mkimage.bb) gives access to mkknlimg for adding the
required trailer to kernel image.


If KERNEL_DEVICETREE is filled in, the trailer is added to the kernel image before
kernel install task. While creating the SDCard image, this modified kernel is
put on boot partition (as kernel.img) as well as DeviceTree blobs (.dtb files).
If KERNEL_DEVICETREE is empty, this new process isn't operated, legacy one does.

KERNEL_DEVICETREE for RPi is really supported only starting from linux-rapsberry 3.18+
kernels, so as for now it defaults to empty (in machine config file).

Change-Id: Ifea71bbda729b8f3c47be7ba0ba03be5ad2ceeaa
Signed-off-by: Francois Muller <francois@concept-embarque.fr>
2015-02-05 14:07:00 +01:00
327c0c12b5 README: Fix redmine tag
Change-Id: I90d520c66f03503b225f42ac772b3b22cf461626
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-02-05 12:07:52 +02:00
dc6327683e linux-raspberrypi: Update 3.12 branch to 3.12.36
Update linux-raspberrypi_3.12 to latest version.

[ISSUE #10]

Change-Id: Ifd7e86587b3239a3b1240d2b8461560b16e08d08
Signed-off-by: Petter Mabäcker <petter@technux.se>
2015-02-05 09:59:52 +01:00
2adea22b46 Revert "linux-raspberrypi: Change to Linux Yocto style kernel recipes"
This reverts commit 67a1c4eaaf.

[ISSUE #39]

Conflicts:
	recipes-kernel/linux/linux-raspberrypi_3.2.27.bb

Change-Id: I03ae6b9c96894509a4fecd24eef8740889238730
Signed-off-by: Petter Mabäcker <petter@technux.se>
2015-02-05 09:59:40 +01:00
4535ac053f README: Commit log issue tag
Change-Id: I5c981a799abe709cac8e134ffb7b24fb21160de6
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-02-04 01:28:21 +02:00
12eeae3bdf Merge "linux-raspberrypi: Remove old v3.2.27" 2015-02-03 19:20:27 +01:00
b9a3b88ff9 Merge "linux-raspberrypi: Change to Linux Yocto style kernel recipes" 2015-02-03 19:20:15 +01:00
9ac77c112e README: Introduce redmine
Replace the ASCI graphics by some useful quick links.
Some minor other changes.

Change-Id: I7e1f118f22c60a5218751323c6cbebdc86e8e119
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-02-03 17:39:27 +02:00
a335bf5fe6 linux-raspberrypi: Remove old v3.2.27
Change-Id: If5e0a88acdfe67903d1a11133849f35f453904ac
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-02-01 04:03:12 +02:00
67a1c4eaaf linux-raspberrypi: Change to Linux Yocto style kernel recipes
Yocto style recipes provide support for application of kernel
configuration fragments which is achieved with this change.

For further details see the Yocto Linux Kernel Development Manual

ref: http://www.yoctoproject.org/docs/1.6/kernel-dev/kernel-dev.html

In addition .bb files are simplified to take a SRCBRANCH which is
used by the SRC_URI set in linux-raspberrypi.inc and together with
the existing SRCREV define a checkout from the linux-raspberrypi
git repository.

A default configuration, defconfig, is provided as a baseline.
This is generated from bcmrpi_defconfig, as used in the existing
recipes, and so configuration options should be the same.

To change the kernel configuration a new configuration fragment
may be generated, as explained in the kernel development documentation
above, and this file then added to the SRC_URI via a .bbappend.

Added some minor refactoring and removed some useless code.

Change-Id: Ic72e14ec14ec3f042aeda0c6820f896be9c02e69
Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-01-31 18:07:58 +02:00
b6d899e4d2 README: Fix typo
Patch pulled from github:
https://github.com/djwillis/meta-raspberrypi/pull/101

Change-Id: I9aaa3687c30d0fde5e981e7cafbabad7dc24ce50
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-01-31 17:01:57 +02:00
efd760d0a2 linux-raspberrypi: faulty branch and srcrev for 3.16
linux-raspberrypi_3.16 used wrong branch (rpi-3.14.y instead of
rpi-3.16.y). Use latest SRCREV for 3.16 and bump version to 3.16.5.

Change-Id: Ic81eeddb0c8a4df1f11948f00491f83ab877d040
Signed-off-by: Petter Mabäcker <petter@technux.se>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2015-01-25 21:47:45 +02:00
1eda7e8b74 linux-raspberrypi: fix do_configure failure
When building against newer yocto project releases below failure
occurs.

| DEBUG: Executing shell function do_configure
| NOTE: make oldconfig
| make: *** No rule to make target `oldconfig'.  Stop.
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure

Fix this by trying to adapt more of the standard mechanism
that exists in yocto, in order to build "custom kernels".

Change-Id: I0598c0c16d84295a454976f60b56f9d35c36a4ba
Signed-off-by: Petter Mabäcker <petter@technux.se>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2015-01-25 21:47:27 +02:00
1ed383d466 sdimage-raspberrypi.wks: kickstart image definition
Although the sdimage-bootpart.wks kickstrt file in Poky works
fine with Raspberry Pi, this patch adds a kickstart file that
mirrors sdcard_image-rpi.bbclass layout.

Change-Id: I34e60a9c89c9074ea9e114951165cb4fbffcb5c4
Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2015-01-25 20:39:58 +02:00
eb3f087a56 raspberrypi.conf: add IMAGE_BOOT_FILES
Add IMAGE_BOOT_FILES that defines a list of files to be placed in boot
partition. The variable is effectivey used with wic when building a SD
card image.

Change-Id: Ie7b2ea032349bf33ce7a9afc70e2fb4806ff9a04
Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2015-01-25 20:39:39 +02:00