Commit Graph

127 Commits

Author SHA1 Message Date
Andrei Gherzan
ed571d7296 RPi-config: Create recipe for config.txt file
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-18 19:16:04 +03:00
Sander van Grieken
dbeae85ad0 linux-raspberrypi: Update SRCREV to current@2012-09-13
Signed-off-by: Sander van Grieken <sander@outrightsolutions.nl>
2012-09-18 19:15:48 +03:00
Sander van Grieken
ebc611fbb0 vc-graphics.inc: Fix QA issue; Install libGLESv1_CM.so symlink in source as copy
Signed-off-by: Sander van Grieken <sander@outrightsolutions.nl>
2012-09-18 19:15:48 +03:00
Sander van Grieken
0d4ab1591e firmware.inc: Update firmware SRCREV to current@2012-09-13
Signed-off-by: Sander van Grieken <sander@outrightsolutions.nl>
2012-09-18 19:15:27 +03:00
Andrei Gherzan
a1da838d81 Move fsl-default*.inc from distro to machine
It makes no sense to have distro related configurations in a BSP
layer. So let's have these common parts (provides, version etc)
in machine directory instead.

[GITHUB #73]

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-18 19:14:04 +03:00
Andrei Gherzan
ce41133438 sdcard_image-rpi: Fix xzcat command while writing rootfs partition
[GITHUB #74]

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-18 19:13:55 +03:00
Andrei Gherzan
29f4242ad0 sdcard_image-rpi: Ship cmdline.txt file
Signed-off-by: Tomas Frydrych <tomas@sleepfive.com>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-16 21:36:53 +03:00
Andrei Gherzan
890dca99f9 linux-raspberrypi: Use cmdline.txt to supply kernel command line
The build-time kernel command line (as defined by the CONFIG_CMDLINE config
parameter) is not respected by the RPI bootloader, and instead any custom
command line must be suplied via the cmdline.txt file in the boot partition.

This patch modifies the linux-raspberrypi recipe to generate a cmdline.txt
file that corresponds to the build-time configured command line, and it
also modifies the sdcard_image-rpi.bbclass to include this file in the
generated SD card images.

[GITHUB #62]

Signed-off-by: Tomas Frydrych <tomas@sleepfive.com>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-16 21:35:21 +03:00
Andrei Gherzan
c5e8185710 vchiq: Fix file permission
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-16 20:55:03 +03:00
Andrei Gherzan
875571368b recipes.txt: Fix file permission
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-16 20:55:03 +03:00
Andrei Gherzan
17bad78bbe linux-raspberrypi_3.2.27.bb: Fix file permission
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-16 20:55:03 +03:00
Andrei Gherzan
9b79519990 linux.inc: Fix file permission
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-16 20:55:03 +03:00
Andrei Gherzan
f0dd423862 raspberrypi.conf: Fix file permissions
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-16 20:55:03 +03:00
Andrei Gherzan
8ef27a0bff bcm2835-bootfiles.bb: Fix file permissions
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-16 20:55:03 +03:00
Andrei Gherzan
b67e4610f3 firmware.inc: Remove extra newlines
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-16 20:55:03 +03:00
Andrei Gherzan
05d8b58bc8 rpi-first-run-wizard: Clean extra spaces
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-16 20:55:03 +03:00
Andrei Gherzan
770f679ef4 recipes.txt: Add info about devtools and multimedia recipes groups
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-16 20:55:02 +03:00
Andrei Gherzan
d1b44165da bcm2835: Add COMPATIBLE_MACHINE
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-16 20:55:02 +03:00
Andrei Gherzan
30370bb8f1 rpi-default-settings.inc: Add sdcard_image-rpi to IMAGE_CLASSES
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-16 20:55:02 +03:00
Andrei Gherzan
b5d53c70f0 sdcard_image-rpi.bbclass: Inherit image_types as this class will be in IMAGE_CLASSES
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-16 20:55:02 +03:00
Andrei Gherzan
163498e5ad raspberrypi.conf: Drop INHERIT sdcard_image-rpi as we will use IMAGE_CLASSES
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-16 20:55:02 +03:00
Andrei Gherzan
ba1b6ed74f rpi-default-*.inc: Create inc files included in machine configure file
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-16 20:55:02 +03:00
Andrei Gherzan
3c4e20303b raspberrypi.conf: Remove PREFERRED_* and include rpi-default*.inc
All PREFERRED_* variables were moved to an .inc file to have variables
clearer.
Inherit .inc files and remove PREFERRED_* variables.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-16 20:55:02 +03:00
Andrei Gherzan
209cb3db62 linux-raspberrypi: Remove PR from PV
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-16 20:55:02 +03:00
Andrei Gherzan
b1331fce45 README: Move RPI_GPU_FIRMWARE instructions to README
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-16 20:55:01 +03:00
Andrei Gherzan
384ca93373 raspberrypi.conf: Remove TARGET_ARCH variable
TARGET_ARCH by default is TUNE_ARCH which is already arm. So this line
is useless.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-16 20:55:01 +03:00
Andrei Gherzan
241bd86e52 raspberrypi.conf: Remove GUI_MACHINE_CLASS variable
This variable was dropped:

commit 0504d36646f8def4829250a9eee0cf9bac3b756e
Author: Richard Purdie <richard.purdie@linuxfoundation.org>
Date:   Tue May 10 16:19:02 2011 +0100
bitbake.conf: Drop unused *GUI* and MACHINE_DISPLAY variables
(From OE-Core rev: baf136a9c95a94c5bf89c9a818960d616439682c)

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-16 20:55:01 +03:00
Andrei Gherzan
280c217470 sdcard_image-rpi: Fix SDIMG_SIZE
The final SDIMG_SIZE was missing a IMAGE_ROOTFS_ALIGNMENT padding.

[GITHUB #65]

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-16 03:17:34 +03:00
Andrei Gherzan
b059c59f71 sdcard_image-rpi: Align SD partition and optimize final SD image
SD image file was 4G in size but actually the rootfs partition was only
60MB (ex.: rpi-basic-image).
The image file size is not fixed anymore but calculated inside this
class. In this way we will setup the partition for rootfs to fit the
ext file used as SDIMG_ROOTFS. By default the free space is calculated
with IMAGE_OVERHEAD_FACTOR which is by default 1.3. If more free space
is needed this can be overwritten.
IMAGE_ROOTFS_ALIGNMENT set at 4096. This should be the best value for a
SD card.

[GITHUB #20]
[GITHUB #59]

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-12 23:21:28 +03:00
Sander van Grieken
ce246f83d6 sdcard_image-rpi.bbclass: Add sysctl.d config to set vm.min_free_kbytes to 8192
[GITHUB #49]

Signed-off-by: Sander van Grieken <sander@outrightsolutions.nl>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-06 19:19:31 +03:00
Aurelian Zanoschi
f76ad1e006 bcm2835: Integrate version 1.8
The first integration of bcm2835 package was done. The package version
is 1.8. BCM2835 package provides access to GPIO and other IO functions
on the Broadcom BCM 2835 chip, allowing access to the GPIO pins on the
26 pin IDE plug on the RPi board.

[GITHUB #35]

Signed-off-by: Aurelian Zanoschi <aurelian17@gmail.com>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-06 01:15:54 +03:00
Andrei Gherzan
7b57199e0e README: Instruct users to add BBMASK as distro file was removed
[GITHUB #57]

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-06 00:58:43 +03:00
Andrei Gherzan
a3bd3dba78 poky-raspberrypi.conf: Remove distro file
We added distro file for having BBMASK and thought this would be a good
place to hold some other distro variables. Obviously the only needed
variable was BBMASK after all, so a cleaner way would be to instruct
users to add BBMASK to local.conf

[GITHUB #57]

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-06 00:58:43 +03:00
Jack Mitchell
9a84696178 rpi-basic-image: Add new basic image with SSH server
Add a new basic image with ssh-server-dropbear IMAGE_FEATURE

This is to allow people without physical hardware attached to
the Pi such as monitor and keyboard to connect over the network.

[GITHUB #52]

Signed-off-by: Jack Mitchell <jack.mitchell@dbbroadcast.co.uk>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-09-03 02:20:01 +03:00
Andrei Gherzan
495d44ce1d poky-raspberrypi.conf: Weakly assign BBMASK
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-08-31 12:22:50 +03:00
Andrei Gherzan
ad5ef65066 raspberrypi.conf: Set udev PREFERRED_VERSION to 164
It seems like rpi kernel doesn't work well with newer udev version so
we set 164 as preferred version for it.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-08-29 19:27:43 +03:00
Andrei Gherzan
6647bb651f omxplayer: Integrate git revision 231c08b42005e3de565013bc1cee18bd5a349c1f
Add four patches:
1. don-t-strip-while-installing.patch
   Don't strip binaries because buildsystem will strip them after all.
2. libraries-are-installed-in-usr-lib.patch
   Libraries are installed in /usr/lib not in /usr/local/lib
3, remove-hardcoded-directory-omxplayer-dist.patch
   We want files to be installed in ${D}. Add a variable in Makefile to
   let users install omxplayer in a specific location.
4. remove-makefile-include.patch
   Remove Makefile.include as it includes hardcoded paths. Rely on
   variables provided by build system.

[GITHUB #34]

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-08-29 00:05:21 +03:00
Andrei Gherzan
cc199637a7 vc-graphics.inc: New provides, compatible machine and init for vchiq
1. Add COMPATIBLE_MACHINE=raspberrypi.
2. This package provides libgl libgles2 and libegl. Add these to
PROVIDES.
3. Add an init script to create vchiq device node while booting. This
device is needed by vc_tvservice_*. Package this init script in ${PN}.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-08-29 00:05:21 +03:00
Andrei Gherzan
3e0cf999e8 poky-raspberrypi.conf: Remove libav from BBMASK
We will use this package from meta-oe. libav is a dependency for
omxplayer.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-08-29 00:05:20 +03:00
Andrei Gherzan
7c82087be9 README: Instruct users to add meta-oe layer to bblayers.conf
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-08-29 00:05:20 +03:00
Andrei Gherzan
5de86a6190 bcm2835-bootfiles.bb: Add COMPATIBLE_MACHINE
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-08-29 00:05:20 +03:00
Andrei Gherzan
d5c1df58e3 vc-graphics.bb: Change bb file mode to 644
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-08-29 00:05:20 +03:00
Andrei Gherzan
6f55f7f9f0 raspberrypi.conf: Set PREFERRED_PROVIDER for egl, libgles2 and gl
These variables are weakly assigned to let user overwrite them.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-08-29 00:05:20 +03:00
Andrei Gherzan
2176dc0bbf RPI.GPIO: Integrate v0.2.0
Patch was added to use setuptools that we already have integrated in
yocto and not the one provided in package. In his way we can use
setuptools bbclass.

[GITHUB #36]

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-08-29 00:04:19 +03:00
Sander van Grieken
32d2d1bcde sdcard_image-rpi.bbclass: Add support for 240M/16M GPU memory split
Signed-off-by: Sander van Grieken <sander@outrightsolutions.nl>
2012-08-29 00:01:23 +03:00
Andrei Gherzan
12b0f2db37 README: Add instructions for compressed deployed files
[GITHUB #39]

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-08-28 23:59:28 +03:00
Andrei Gherzan
9317527ce1 sdcard_image-rpi: Use xzcat if SDIMG_ROOTFS_TYPE is a .xz file
When burning the rootfs partition we use dd if rootfs file is not
compressed and xzcat piped with dd if rootfs file is a .xz file.

[GITHUB #39]

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-08-28 23:59:28 +03:00
Andrei Gherzan
221619ec83 raspberrypi.conf: Weakly assign IMAGE_FSTYPES to let users overwrite
[GITHUB #39]

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-08-28 23:59:28 +03:00
Andrei Gherzan
6d866926d8 linux-raspberrypi: Update to v3.2.27
Switch to rpi-3.2.27 branch and use
SRCREV 091073bcab483b976ee33dfe914c28df87914a3b.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-08-28 23:58:26 +03:00
Andrei Gherzan
2757e583aa firmware.inc: Update to SRCREV c42f21261f1eeae0df7ad02f34773e279e7af8c5
01/07/2012 firmware

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-08-28 23:58:26 +03:00