Commit Graph

1706 Commits

Author SHA1 Message Date
Alexandru Niculita
9fb923aa8d Add kernel 3.8 and 3.11 for Raspberry Pi
From: Philipp Wagner <mail@philipp-wagner.com>

Change-Id: I08dc33857334f0f4bd6fe3fa24b417c01d4729c8
Signed-off-by: Philipp Wagner <mail@philipp-wagner.com>
Signed-off-by: Alexandru Niculita <alexnick87@gmail.com>
2013-11-12 17:38:54 +02:00
Alexandru Niculita
e921fcc54c Make Linux 3.6 the default for Raspberry Pi
From: Philipp Wagner <mail@philipp-wagner.com>

Kernel 3.6 is also the default for Raspbian and thus should be the
most tested version right now.

Change-Id: I03a75fa1be3ab0f8f43fb09a8fff779c6d9100e7
Signed-off-by: Philipp Wagner <mail@philipp-wagner.com>
Signed-off-by: Alexandru Niculita <alexnick87@gmail.com>
2013-11-12 17:36:50 +02:00
Alexandru Niculita
c454aef30f Remove tabs from recipe
From: Philipp Wagner <mail@philipp-wagner.com>

Change-Id: I24aea3b31e144d6f22f9149c186eeaae8b9e2c58
Signed-off-by: Philipp Wagner <mail@philipp-wagner.com>
Signed-off-by: Alexandru Niculita <alexnick87@gmail.com>
2013-11-12 17:35:14 +02:00
Alexandru Niculita
228f0a3ecb Refactor kernel recipes to reduce code duplication
From: Philipp Wagner <mail@philipp-wagner.com>

Change-Id: Ie4bc0d5f3f3301a1955dd077a0d2c3e3286266e3
Signed-off-by: Philipp Wagner <mail@philipp-wagner.com>
Signed-off-by: Alexandru Niculita <alexnick87@gmail.com>
2013-11-12 17:31:50 +02:00
Paul Barker
bb665e7140 README: Fix IMAGE_FSTYPES example
The SD image is always created with the extension "rpi-sdimg" and this cannot be
changed by editing IMAGE_FSTYPES.

Change-Id: I7336e8c698f13fba14ef9cc9bf6c0b262bf261e5
Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2013-11-12 17:17:51 +02:00
Paul Barker
164e87c291 sdcard_image-rpi.bbclass: Allow optional compression
Image files will typically contain lots of null blocks and should compress well.
This will help with distribution of images over slow network links.

Change-Id: Icec7454ff61cd81a2872037037a93ce01191ece5
Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2013-11-12 17:17:46 +02:00
Andrei Gherzan
40267fd013 mesa: Remove egl and gles only for raspberrypi machine
Change-Id: I25fab6e100546cfffdd901383f76de76cd7763ed
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-11-12 00:19:55 +02:00
Andrei Gherzan
c52d4b3da1 mesa: Modify version to match the one from oe-core
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-11-11 11:59:45 +02:00
Andrei Gherzan
0537685dc7 base-files: Remove profile and fstab
Remove these files as the default ones work just OK.
Moreover, not having /run mounted as tmpfs, would break mounting root as
read only. This is done in the default fstab so use that one.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-08-21 18:20:56 +03:00
Andrei Gherzan
8751681571 vc-graphics: Remove some useless new lines
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-08-21 15:55:17 +03:00
Andrei Gherzan
0ab5263f53 firmware: Update to 2013-08-20 master's snapshot
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-08-21 15:55:13 +03:00
Andrei Gherzan
ca4e4659f6 omxplayer: Update to 2013-08-20 master's snapshot
* Use DIST for install path as used in package's makefile.
* Set FLOAT based on callconvention-hard TUNE_FEATURE.
* Add an include path to avoid a header error.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-08-21 15:55:05 +03:00
Andrei Gherzan
78d3a9d68d bcm2835: Update to v1.9
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-08-21 15:55:00 +03:00
Andrei Gherzan
caf5f88c65 mesa: Use libgl from mesa for raspberrypi
The graphics libraries provided by userland does not include libgl. So compile
mesa with libgl support and remove gles and egl from it as these are provided
by userland.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-08-21 15:54:58 +03:00
Andrei Gherzan
0680e94115 rpio: Integrate v0.10.0
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-08-21 15:54:54 +03:00
Andrei Gherzan
cb6ee9867d rpi-gpio: Update to v0.5.3a
don-t-install-setuptools.patch was removed as this is included now in the new
version.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-08-21 15:54:52 +03:00
Andrei Gherzan
cfd873e223 rpi-config: Update to 2013-08-20 master's snapshot
Use git as package version. There is no package version for this script.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-08-21 15:54:49 +03:00
Andrei Gherzan
7c73b36d4a userland: Update to 2013-08-20 master's snapshot
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-08-21 15:54:46 +03:00
Andrei Gherzan
c95edb57d9 linux-raspberrypi: Update to 2013-08-20 rpi-3.6.y's and rpi-3.2.27's snapshot
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-08-21 15:54:43 +03:00
Andrei Gherzan
5da09b299e README: Add info about extra apps / omxplayer
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-08-21 15:54:41 +03:00
Andrei Gherzan
88f8ddceef rpi-default-providers.inc: Remove preferred provider to linux headers
We do this because the recipe was removed. Check:
commit 808f5e54f8

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-06-23 23:15:46 +03:00
Paul Barker
996021a83a rpi-gpio: renamed from RPi-GPIO
Package names shouldn't contain capital letters.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2013-06-23 23:09:05 +03:00
Richard Purdie
7b6aa02efe linux-raspberrypi: Fix i2c issues
I was having intermittent i2c issues on the device until I applied this kernel patch
which I found online.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-06-23 23:07:28 +03:00
Richard Purdie
808f5e54f8 linux-libc-headers-raspberrypi: Drop, its unneeded and bad practise
If we have this recipe, it means the whole armv6 (or whichever tune) is chosen depends
on a machine specific recipe. This makes no sense as armX packages are meant to be
machine independent.

We've had this problem in other layers and it causes needed rebuilds of packages
when you switch machines since the sstate checksums change. These headers are just part
of the toolchain bootstrap process so "standard" kernel headers are fine. The kernel
header version does need to be later of equal to the kernel version but we're fine in
that regard since the core is on 3.8, the latest pi kernel is 3.6.

There is nothing special about these headers so lets remove them and use the standard
system provided recipe, avoding any rebuilds. I tested the various other recipes in
the layer and there doesn't seem to be any dependency on these headers.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-06-23 23:07:28 +03:00
Paul Barker
ac879f9e21 psplash: only set image for MACHINE=raspberrypi
Instead of overriding the default psplash image, the raspberrypi image is added
as an additional image. It is then set as the default in the raspberrypi machine
config file so that other targets do not pick up our splash image.

Tested on raspberrpi and qemuarm: on raspberrypi I see to Raspberry Pi logo, on
qemuarm I see the Yocto Project logo.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2013-06-10 12:04:59 +03:00
Paul Barker
26000aace1 bootfiles, vc-graphics: consolidate SRC_URI and S variables
The variables RPIFW_SRC_URI and RPIFW_S are created in the common firmware
include file so that it is easier to override the firmware source in a local or
distro config file. RPIFW_SRC_URI is used to set SRC_URI in firmware.inc as it
is common to both bootfiles and vc-graphics. RPIFW_S is used as a prefix for S
in bcm2835-bootfiles.bb and vc-graphics.inc as different subdirectories are
referenced in each recipe.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2013-06-10 12:04:50 +03:00
Paul Barker
06630f323d rpi-first-run-wizard: remove
The existing first run script is inappropriate for a board support layer. It is
also full of references to OpenPandora and is not portable across all distros
which may use meta-raspberrypi.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2013-06-10 12:04:45 +03:00
Seth Bollinger
770b88b2ce sdcard_image-rpi.bbclass: Fix error in conditional test
When the shell tests for rootfs type I was seeing "[[: not found".  I
use echo and egrep to test for the xz rootfs type to work around this
error.

Signed-off-by: Seth Bollinger <seth.boll@gmail.com>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-05-02 14:11:32 +02:00
Jan Schmidt
c5f81306b5 sdcard_image-rpi: Use the size of the generated rootfs
When constructing the SD card image, the code was using
the inherited ROOTFS_SIZE, which is the size of the
rootfs contents. When building (for example) a compressed
rootfs, this allocates a partition much larger than necessary.

Instead, take the size of the generated rootfs file that is
about to be written into the generated image, and round it
up to the IMAGE_ROOTFS_ALIGNMENT size.

Fix some comments - the alignment is 4MiB, not 4KiB.

Signed-off-by: Jan Schmidt <thaytan@noraisin.net>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-05-02 13:10:14 +02:00
Eric Bénard
8ad03b9533 Use right license name for GPLv2
This patch fixes the license name for bcm2835 and rpi-first-run-wizard.

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-05-01 22:10:15 +02:00
Seth Bollinger
fe5cd81d27 sdcard_image-rpi.bbclass: Copy startup files required for 16MB GPU operation.
start_cd.elf and fixup_cd.dat are required when running the system with
a 16MB GPU memory configuration.  This change copies all files contained
in bcm2835-bootfiles instead of cherry picking.

Signed-off-by: Seth Bollinger <seth.boll@gmail.com>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-05-01 21:20:42 +02:00
Paul Barker
53555972bc netbase: Remove bbappend and files
Dropped raspberrypi modifications to hosts and interfaces files as they are
unnecessary.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-05-01 20:58:46 +02:00
Andrei Gherzan
cf25e6fc90 rpi-first-run-wizard: Fix RDEPENDS warning
WARNING: QA Issue: [...]/rpi-first-run-wizard.bb:
Variable RDEPENDS is set as not being package specific, please fix this.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-03-13 19:49:20 +02:00
Andrei Gherzan
7da69cff7c vc-graphics.inc: There is no libgl so get rid of this PROVIDES
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-03-13 19:42:56 +02:00
Andrei Gherzan
592274937b userland: Update to 8700279495e266378d36092ccf86424f0ee2539f
* install_vmcs not needed anymore
* By default package is installed in /opt/vc. Move everything in ${prefix}.
* Move recipe in recipes-graphics
* Add PACKAGE_ARCH = MACHINE_ARCH

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-03-13 19:42:51 +02:00
Andrei Gherzan
201f717a60 recipes.txt: Remove file
This file contains outdated informations.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-03-13 19:42:45 +02:00
Andrei Gherzan
db2b8af828 layer.conf: Set LICENSE_PATH to layers's custom licenses directory
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-03-13 19:42:39 +02:00
Andrei Gherzan
996990c98f custom-licenses: Add directory to hold custom licenses
Add Broadcom license to this directory.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-03-13 19:42:27 +02:00
Andrei Gherzan
33d2e1d7bb rpi-default-providers: Use userland as provider for egl and gles2
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-03-13 19:42:19 +02:00
Andrei Gherzan
bff90c7a0d rpi-default-providers: Remove virtual/libgl provider
There are no libgl binary shipped in raspberrypi firmware repo.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-03-13 19:42:09 +02:00
Jan Schmidt
e7fdddc4e1 linux: Add a Linux 3.6 kernel recipe
* Add a recipe to build the linux kernel from the rpi-3.6.y branch at
  https://github.com/raspberrypi/linux
* Since this has a higher version, it will be the preferred linux kernel
  by default.

Signed-off-by: Jan Schmidt <thaytan@noraisin.net>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-01-27 15:28:25 +02:00
Jan Schmidt
b3de8baa2f bcm2835-bootfiles: Bump the firmware revision
* Pull in a newer firmware revision (0ac68c 7th Jan 2013) from
  https://github.com/raspberrypi/firmware for various fixes and
  improvements

Signed-off-by: Jan Schmidt <thaytan@noraisin.net>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-01-27 15:28:09 +02:00
Andreas Müller
d3ec4b1258 layer.conf: fix parse
after meta-systemd commit [1] the following error was thrown during parsing:

ERROR: Unable to parse /home/Superandy/data/oe-core/sources/meta-raspberrypi/conf/layer.conf:
Failure expanding variable BBFILES, expression was
...
which triggered exception NameError: name 'base_contains' is not defined

[1] http://cgit.openembedded.org/meta-openembedded/commit/?id=3c21a46020bd0816579648f684c41dbd6333583e

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-01-27 01:01:39 +02:00
Andrei Gherzan
e3e92fe903 README: Refactor
* Use maximum 80 columns per line
* Add contents
* Add "Contribution" section

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-01-24 21:34:48 +02:00
Andrei Gherzan
305c5259e2 arch-arm: define different ARMPKGARCH when different CCARGS are used
* without this tune-xscale and tune-arm926ejs were both creating
  packages in armv5te feed, but each with different -mtune, with
  OEBasicHash enabled it was causing each package to rebuild with new
  -mtune after MACHINE switch, but that doesn't make sense with output
  stored in the same armv5te feed

* this makes different feed for each -mtune, but more generic one to be
  selected with DEFAULTTUNE

* tune-iwmmxt and tune-ep9312 were already using this, just move it
  bellow AVAILTUNES and use ARMPKGARCH_tune-foo syntax

* tune-cortexr4 and tune-cortexm3 are using armv7r/armv7m as ARMPKGARCH
  because there isn't another tune to use the same -march

(From OE-Core rev: cffda9a821a3b83a8529d643c567859e091c6846)

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-11-28 02:30:04 +02:00
Andrei Gherzan
76c6b87958 tune-*: define more generic DEFAULTTUNE to share feed between machines
* this is mostly for backwards compatibility and to share binary feed
  like it was before, but now without missing different -mtune in it
* if you want to build some package with -mtune add something like this
  to your distro config
  DEFAULTTUNE_qemuarm_pn-openssl = "arm926ejs"
  DEFAULTTUNE_qemuarmx_pn-openssl = "xscale"
  be aware that if you do this you should do it also for all packages
  which depends on openssl because if you dont and you build e.g. dhcp,
  then dhcp build for arm926ejs (even with DEFAULTTUNE armv5te) will
  depend on openssl with arm926ejs, so dhcp in armv5te feed will be
  rebuild after each MACHINE switch.
* cortexm3, cortexr4, iwmmx and ep9312 are using own DEFAULTTUNE because
  they define also different -march
* shared feeds are
  armv4t: arm920t, arm9tdmi
  armv5te: arm926ejs, xscale
  armv7a-neon: cortexa8, cortexa9

(From OE-Core rev: a11bdc36a1be18cc5aa14682b2a2c9ee83141f51)

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-11-28 02:30:04 +02:00
Andrei Gherzan
c71508dae6 userland: Initial integration
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-11-27 22:42:43 +02:00
Andrei Gherzan
cf62711b7c sdcard_image-rpi: Remove RPI_GPU_FIRMWARE and add/remove files to boot partition
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-11-27 22:42:43 +02:00
Andrei Gherzan
ed0cd94914 README: Replace old RPI_GPU_FIRMWARE with GPU_MEM variables
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-11-27 22:42:42 +02:00
Andrei Gherzan
43faccc504 rpi-config: Add variables to set memory split for 256/512 models
GPU_MEM
gpu_mem - GPU memory in megabyte. Sets the memory split between the ARM and
GPU. ARM gets the remaining memory. Min 16. Default 64

GPU_MEM_256
gpu_mem_256 -GPU memory in megabyte for the 256MB Raspberry Pi. Ignored by
the 512MB RP. Overrides gpu_mem. Max 192.

GPU_MEM_512
gpu_mem_512 -GPU memory in megabyte for the 512MB Raspberry Pi. Ignored by
the 256MB RP. Overrides gpu_mem. Max 448.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-11-27 22:42:42 +02:00