Commit Graph

737 Commits

Author SHA1 Message Date
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
Andrei Gherzan
14734e73a3 rpi-config: Update to 62bf3e9db62f547eb1a2a352dde957d2f94bd216
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-11-27 22:42:42 +02:00
Andrei Gherzan
e79ec70804 linux.inc: Refactor inc file
Clean up the file and add function to setup configs.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-11-27 22:42:42 +02:00
Andrei Gherzan
bc7e740348 linux-raspberrypi: Update to 10182a3bc434b27740f81c2b836a1af943060241
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-11-27 22:42:41 +02:00
Andrei Gherzan
48e0739783 linux-raspberrypi: Cleanup recipe
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-11-27 22:42:41 +02:00
Andrei Gherzan
d952980bd4 bcm2835-bootfiles: Deploy .dat files too
These files are used in the boot process with the updated bootloader.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-11-27 22:42:41 +02:00
Andrei Gherzan
4ac170e18b firmware: Update to 537c78b113d06e37e2cca90a0b3d3f39a129ee23
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-11-27 22:42:41 +02:00
Andrei Gherzan
cfd5c65469 rpi-default-versions: Remove preferred version of udev
We use now the latest one from meta-openembedded.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-11-27 22:42:40 +02:00
Andrei Gherzan
b3a4e96cf9 raspberrypi.conf: Remove RPI_GPU_FIRMWARE definition
We don't use this anymore as the memory split is now done from config.txt.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-11-27 22:42:40 +02:00
Andrei Gherzan
e1e8477a77 rpi-default-providers: Use linux-libc-headers-raspberrypi
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-11-27 22:42:39 +02:00
Andrei Gherzan
a74544ac37 linux-libc-headers-raspberrypi: Add headers for raspberrypi kernel
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-11-27 22:42:39 +02:00
Andrei Gherzan
4ed04f4073 sdcard_image-rpi: Use the partition table as described in comments
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-10-18 00:40:50 +03:00
Andrei Gherzan
ae68402e22 libav: Remove patch and recipe as new version of libav works ok
New v0.8.3 from meta-oe fixes issues with some arm machines.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-10-18 00:40:50 +03:00
Andrei Gherzan
cfc8731b55 README: Minor tweaks
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-10-17 21:24:30 +03:00
Andrei Gherzan
c2ace32527 libav: Align recipe version with meta-oe
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-10-17 21:21:07 +03:00
Julian Scheel
c3211b180f README: Describe overclocking options
Signed-off-by: Julian Scheel <julian@jusst.de>
2012-10-17 16:43:35 +03:00
Julian Scheel
c052d6239b README: Describe overscan option
Signed-off-by: Julian Scheel <julian@jusst.de>
2012-10-17 16:43:34 +03:00
Julian Scheel
77d077cdcc rpi-config: Add variables for overclocking options.
config.txt allows several overclocking parameters to be tweakes. This makes
the most important ones overridable through local.conf.

Signed-off-by: Julian Scheel <julian@jusst.de>
2012-10-17 16:43:34 +03:00
Julian Scheel
0a181df8c5 rpi-config: Add variable for overscan configuration.
Add a DISABLE_OVERSCAN variable that can be used in local.conf to overwrite
the overscan default setting.

Signed-off-by: Julian Scheel <julian@jusst.de>
2012-10-17 16:43:34 +03:00
Julian Scheel
aaeb90959f rpi-config: update git revision.
Several options have been added in the meantime to config.txt.

Signed-off-by: Julian Scheel <julian@jusst.de>
2012-10-17 16:43:34 +03:00