171 Commits
danny ... dizzy

Author SHA1 Message Date
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
a1f39c598e omxplayer: Minor tweaks
Change-Id: Ic88656f2efba3d976918a4c556931b294bd00ed5
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-01-25 20:30:25 +02:00
2dea23c4fb omxplayer: Add patch to fix lflags and cflags
This patch fixes the following package build break:
| arm-poky-linux-gnueabi-gcc is unable to create an executable file.
| C compiler test failed.

Change-Id: I9f0bf47e4bf969a793718e915fc6c5f4eab012bb
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-01-25 20:30:25 +02:00
6c6f44136f gstreamer1.0-plugins-bad: Making bbappend version independent
Making the bbappend file gstreamer1.0-plugins-bad into version independent

Change-Id: I1ed1fb91e23aa58e9b1a02429ca60a4484eaad93
Signed-off-by: Parthiban N <parthitce@gmail.com>
2014-11-20 12:32:36 +01:00
6b63f6fcbd omxplayer: Update to remote's HEAD
Cleanup and rebase patches.

Change-Id: I151fa6b067a66ac6de9eed920f7e16a08a157e17
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-08-24 03:04:54 +02:00
ec36d853d8 linux-raspberrypi: Replace v3.14.2 by v3.16.1
Latest kernel supported by rPI.

Change-Id: I658d8bb78ff61f856fc82328633ca227325436e4
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-08-24 03:03:36 +02:00
0a5b6bb390 linux-raspberrypi: Update 3.12 branch to 3.12.26
Change-Id: Ie6630f53bb2e4dd71825e0453236de30d25bd07b
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-08-24 03:02:52 +02:00
d85f800dd9 rpi-gpio: Update to v0.5.6
Change-Id: I93d3239c6f797d4a5ebf4d0ff5a910d20a9042ac
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-08-24 03:01:49 +02:00
5abdd93e35 firmware: Update to remote's HEAD
Change-Id: I320ceb1f6c0015d5ce48028b0e3581d2f4d52a3b
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-08-24 03:01:22 +02:00
6a8c859c2f rpi-config,README: Add option to enable offline image compositing
Set this variable to enable support for dispmanx offline compositing
DISMANX_OFFLINE = "1"

This will enable the firmware to fall back to off-line compositing of
Dispmanx elements. Normally the compositing is done on-line, during scanout,
but cannot handle too many elements. With off-line enabled, an off-screen
buffer is allocated for compositing. When scene complexity (number and sizes
of elements) is high, compositing will happen off-line into the buffer.

Heavily recommended for Wayland/Weston.

See: http://wayland.freedesktop.org/raspberrypi.html

Change-Id: I722b20ff5bdba1bdd0683d30bee07c3934c95a1f
Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
2014-08-14 19:54:30 +02:00
e598f63fbb README: Some minor clarifications
Change-Id: I28f7e45b7b323597ed7e542ec117a2556bcecc94
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-08-14 19:37:22 +02:00
7ec84dd0a1 omxplayer: Add dependency on openssl
Change-Id: I06527c3814fe3690cdbbd03e4a41c79fe554773f
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-08-14 15:36:17 +02:00
9939629b44 gstreamer1.0-plugins-bad: Sync version with yocto master
Change-Id: I7913b849ddfc615de4846dbd653e03d084bb8039
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-08-14 15:36:14 +02:00
c3410fe342 Merge "gstreamer1.0-plugins-bad: Build eglglessink for Raspberry Pi" 2014-06-12 14:46:14 +00:00
c67cee2e95 gstreamer1.0-plugins-bad: Build eglglessink for Raspberry Pi
The eglglessink needs to be built to target the Raspberry Pi or it will
seg-fault in use.

Autoconf attempts to detect whether to build for RPi but there are some
include files needed, the search path to which must be specified.

ref: https://github.com/raspberrypi/firmware/issues/34

ref: https://github.com/raspberrypi/firmware/issues/99

This patch adds the needed include paths and forces the plugin to be
built for Raspberry Pi.

With this patch the following pipeline works on RPi,

  modprobe bcm2835-v4l2 gst_v4l2src_is_broken=1
  gst-launch-1.0 --gst-debug-no-color v4l2src \
  ! 'video/x-raw,format=RGB,width=1280,height=720,framerate=(fraction)30/1' \
  ! eglglessink max-lateness=-1

Change-Id: Iabd93c0601c2ab898de3352a7d30423ef9cfce43
Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
2014-06-12 00:09:10 +01:00
f6680e791c README: Add patch guidelines info
Change-Id: I2dac882a6dbe2fbca63a5c7405339edcca18cf04
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-06-11 20:43:37 +03:00
4a6f326a23 Merge "linux-raspberrypi: Update kernel to 3.12.21" 2014-06-11 17:18:30 +00:00
9cb147d1dd Merge "pi-blaster: Added recipe" 2014-06-11 16:58:44 +00:00
25fd817f62 pi-blaster: Added recipe
This project enables PWM on the GPIO pins you request of a Raspberry Pi.
The technique used is extremely efficient: does not use the CPU and gives
very stable pulses

Patches have been provided to build pi-blaster using autotools, and to
remove startup script dependencies on the lsb.

Change-Id: Ie1bec0702e4520d24e4f024aafff14ddef825589
Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
2014-06-11 17:40:54 +01:00
0409d0e521 linux-raspberrypi: Update kernel to 3.12.21
Amongst other patches, this release includes a fix to an issue with
gstreamer1.0 and v4l2src blocking

ref: https://bugzilla.gnome.org/show_bug.cgi?id=726521

ref: http://tinyurl.com/mkqooeg

To make use of the optional fix the module parameter gst_v4l2src_is_broken
needs to be set when loading bcm2835-v4l2.ko

With this in place, and with userland and gstreamer1.0-omx patches,
gstreamer1.0 can be used with PiCam via v4l2src instead of raspivid.

(There may still be performance issues to be addressed for v4l2src vs
raspivid pipe & fdsrc).

Change-Id: Ia0ed4e6c8f27df9bb12ae2350526f6314e016d51
Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
2014-06-11 12:50:26 +01:00
aa790be2fa userland: Add SRCBRANCH and SRCFORK for use by SRC_URI
Makes it clearer to manage repo forks, and branches prior to (e.g.) upstream
commits of in tree changes.

Change-Id: I42f8af975c08f84c4ceb9910713eba2da3a87d8b
Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2014-06-10 21:20:21 +03:00
e7fdcad1fa userland: Add '--no-as-needed' linker flag
This is done to ensure all specified shared libraries are linked against
applications (e.g. raspivid)i.

libmmal_vc_client.so makes use of __attribute__(constructor) to ensure
that supplier components (e.g. camera) are loaded when the static library is
loaded.

raspivid, and possibly other applications, link against libmmal_vc_client.so,
causing the ctor to execute, but there is no needed dependency.

Some build environments (e.g. Yocto/OpenEmbedded) pass the '--no-as-needed'
linker flag which removes the dependency on libmmal_vc_client and thus
components are not registered.

In this situation raspivid then gives an error of the form
  root@raspberrypi:~# raspivid -o test
  mmal: mmal_component_create_core: could not find component 'vc.ril.camera'
  mmal: Failed to create camera component
  mmal: main: Failed to create camera component
  mmal: Failed to run camera app. Please check for firmware updates

For further details see:
https://lists.yoctoproject.org/pipermail/yocto/2014-June/019933.html

Change-Id: I9d787fd83379e8b6428dde3827395c8b96be1f7f
Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2014-06-10 21:20:15 +03:00
f3a8693f08 omxplayer: Update to remote's HEAD
Rebase a patch for this version and fix "unsafe for cross-compilation"
warnings.

Change-Id: Idcc9f188bc716982ede9dfb5f87870d9f5a2f9a3
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-05-09 14:56:59 +03:00
4bdd72341c rpi-gpio: Update to v0.5.5
Change-Id: I8394426b9ffc3c3b524e9fb536945e25d74b2ddd
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-05-09 14:56:59 +03:00
c07c5cdbf3 userland: Update to remote's HEAD
Change-Id: If0e36184c741da5d68c158e1fb582050f5835bf9
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-05-08 21:26:38 +03:00
4167e7e210 firmware: Update to remote's HEAD
Change-Id: I9e28318c5746484ebde636295c66f7b6b64ba2fb
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-05-08 21:26:32 +03:00
abcd66b30d linux-raspberrypi: Replace v3.13.3 by v3.14.2
Change-Id: I2ceb950d30f984ab66de79085b30b541d20e6e25
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-05-08 21:26:26 +03:00
34c217d114 linux-raspberrypi: Update v3.12.11 to v3.12.18
Change-Id: Ifa763e4352051e4533eac98b4f7c74daf791cf72
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-05-08 21:26:17 +03:00
d470f32da2 linux-raspberrypi: Remove v3.11
Change-Id: I28824a738a081bdeb362da4cf0cb449d11cbe449
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-05-08 21:26:10 +03:00
d399605ea5 linux-raspberrypi: Update v3.10.30 to v3.10.38
Change-Id: Ia620e8fd6928f9cd2c625b87599cd6d6a405a344
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-05-08 21:26:03 +03:00
00e185cf52 rpi-default-versions: Use 3.12.X as default kernel version
Change-Id: Ief7949be4b9726b5b6ba58e6280f6b6ca3fdfdc4
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-05-08 21:25:52 +03:00
02c9c4eded xserver-xf86-config: Remove changes of THISDIR and FILESPATH
THISDIR and FILESPATH are not supposed to be changed from within
recipes. This was causing troubles with other bbapend.

Change-Id: I7c3c788ddb61b0b790a9fe06f86e4bd93a822c8c
Signed-off-by: Michaël Burtin <mburtin@connected-labs.com>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2014-05-08 21:21:40 +03:00
2f98f49fab Remove uses of PRINC
PRINC is now obsolete and the PR Service should be used instead to keep PR
values incrementing on change.

A patch has also been submitted to openembedded-core to bump the appropriate PR
values so that PR doesn't move backwards. This patch should only be applied
after that patch, and only to branches which include that patch (ie. if that
patch doesn't go into daisy in oe-core, this patch shouldn't go into daisy in
meta-raspberrypi).

Change-Id: Ibac9e4e89d12dbd6e94430f47e20b82a67506625
Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2014-05-08 21:20:26 +03:00
cc74bf6c1f omxplayer: Separate build directory is broken for this package
Change-Id: If08395ecd79c1d8e9a269ba03efba863de8dbe9d
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-05-08 20:26:12 +03:00
a986e168bc bcm2835: Fix recipe when using separate build directory
Change-Id: I18f41c1cd3a0b1158e96e6d2d4455268700d3496
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-05-08 20:25:25 +03:00
fbc0947e96 Merge "sdcard_image-rpi: make rpi-sdimg image dependent on rootfs type" 2014-03-05 15:59:28 +00:00
edce18f691 omxplayer: Don't hardcode datadir
Change-Id: Ibe66106fdf1da38d43278f5e2853c722709b91db
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-03-05 17:48:45 +02:00
f638f7cf38 sdcard_image-rpi: make rpi-sdimg image dependent on rootfs type
The rootfs may be using a filesystem type other than ext3 so it should
not be hardcoded.

Change-Id: I71c1a96831ce4617b24de7743fe3b70ec5822a33
Signed-off-by: Jonathan Liu <net147@gmail.com>
2014-03-06 00:29:13 +11:00
a760ea5fa2 sdcard_image-rpi: Make rpi-sdimg image dependent on ext3
Change-Id: Ib48c8fd941be5ceb8fe2bcc087f53fb4ef1c0eb5
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-02-25 17:47:07 +02:00
bdb6b72284 mesa: Replace ugly fix for gles/egl
Use instead, the special created recipe mesa-gl which provides on libgl.

Change-Id: I5ed3c50a0a794f8ea63cc1906f0139ec47459fa6
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-02-25 17:45:00 +02:00
9d626df7b8 Merge changes I1eecd332,I635b2f2b,Iad457c26,Iace03974,I4358434c,Ib15942c4,I724511ad
* changes:
  omxplayer: Update to current remote HEAD
  userland: Update to current remote HEAD
  firmware: Update to current remote HEAD
  linux-raspberrypi: Add v3.13.3
  linux-raspberrypi: Update v3.12.7 to v3.12.11
  linux-raspberrypi: Update v3.10.26 to v3.10.30
  linux-raspberrypi: Update v3.11.10 to current remote HEAD
2014-02-24 11:22:03 +00:00
9d8e47274b omxplayer: Update to current remote HEAD
No need for mktemp-compatible-with-busybox.patch as the issue was
fixed in current revision.
omxplayer startup bash script needs pgrep so add procps to RDEPENDS.

Change-Id: I1eecd332e8e51dbbf97e25ec6ed133077f137d7b
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-02-24 13:19:06 +02:00
fcf5cb333e mesa: rename .bbappend to match new version from oe-core
Change-Id: Ie3c7bc3e70bfd46cea64ef813c3875d1ba8d07fc
Signed-off-by: Jonathan Liu <net147@gmail.com>
2014-02-21 22:05:47 +11:00
f83334b687 userland: Update to current remote HEAD
Change-Id: I635b2f2bff03ca7f091f8d5476afa4681f6bda71
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-02-21 10:32:15 +02:00
55e2c1c172 firmware: Update to current remote HEAD
Change-Id: Iad457c2610ee3a0209598c92e5c473ae8f113636
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-02-21 10:31:18 +02:00
d06976118b linux-raspberrypi: Add v3.13.3
Change-Id: Iace039740f3b1b910d65bd3a2c82dc08836fde57
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-02-21 10:27:54 +02:00
8ba072fa76 linux-raspberrypi: Update v3.12.7 to v3.12.11
Change-Id: I4358434c036eb8285f60dafac961c5734da1320b
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-02-21 10:27:30 +02:00
2bcc11d41e linux-raspberrypi: Update v3.10.26 to v3.10.30
Change-Id: Ib15942c4f525c8765d49deda94d2195dc01df14c
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-02-21 10:26:52 +02:00
54d3650fa1 linux-raspberrypi: Update v3.11.10 to current remote HEAD
Change-Id: I724511ad5e96ff1b7779c3afe772eaf0d5250c8e
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-02-21 10:25:12 +02:00
27ae741581 Merge "sdcard_image-rpi.bbclass: use absolute path to rootfs" 2014-02-21 08:16:16 +00:00
9f79376203 xserver-xf86-config: don't use wildcards in SRC_URI
It is strongly discouraged to use wildcards in SRC_URI since it breaks
when using multiple bbappends and immediate expansion of FILESDIR.

This fixes a do_install failure when building with multiple BSPs
enabled.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2014-02-21 10:12:21 +02:00
c2102292fa sdcard_image-rpi.bbclass: use absolute path to rootfs
Change-Id: Ib513f195351b379dbb9f503dc5927f2018169b95
Signed-off-by: Jonathan Liu <net147@gmail.com>
2014-02-18 22:39:47 +11:00
5e62146ae3 Add initramfs support
Permit to build an image with initramfs.
Add information in README to build with initramfs.

Change-Id: Icb812151a22771717805ec0a82feb7993f462b47
Signed-off-by: Sébastien Mennetrier <s.mennetrier@innotis.org>
2014-02-14 01:23:33 +02:00
d6468b7f91 Merge "tune-arm1176jzfs-s.inc: Add hard float profile, arm1176jzfshf, in AVAILTUNES" 2014-02-11 10:59:58 +00:00
833e61aa5c rpi-mkimage: Integrate package
Tool needed to convert bootable images in kernel.img files which can be loaded
by rpi bootloader.

Change-Id: I0088707be5d31d77def1087f51e3f8cc886d19db
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-02-09 03:05:14 +02:00
34047964fe u-boot-rpi: Integrate package
Change-Id: I61f2cd7d3b64ea3efac618aa2bb3555e9e79da2a
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-02-09 03:05:14 +02:00
dbc5ea02b2 README: Add info about U-Boot support
Change-Id: I1b17ef313d2005b7bf0ef853a2730144032f8539
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-02-09 03:05:14 +02:00
d9ce376660 sdcard_image-rpi: Add support for u-boot and uImage
If KERNEL_IMAGETYPE is uImage, use u-boot image as kernel.img and copy uImage
too. Otherwise, use kernel image as kernel.img (as we did until now
unconditionally).

Change-Id: Iac46a57e4266299f2fe5746cb6957dcfc0e90443
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-02-09 03:05:13 +02:00
d0cb637e1b tune-arm1176jzfs-s.inc: Add hard float profile, arm1176jzfshf, in AVAILTUNES
* arm1176jzfshf uses -mtune=hard.
* Add -mfpu=vfp if vfp is included in TUNE_FEATURES

Signed-off-by: Kazuya Nishimura <kazuya.nisimura@gmail.com>
Change-Id: If81977cacbba052fa30c4a407ec65e93148d2ee3
2014-02-04 23:28:53 +09:00
7b1791f45f raspberrypi.conf: Let KERNEL_IMAGETYPE be modified
Change-Id: I6019c1ec77ed1ec5c00ab16cb57dd108e2bd5ba8
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-25 13:02:13 +02:00
48bd943382 rpi-default-providers: Move PREFERRED_VERSIONs to rpi-default-versions.inc
Change-Id: I61c32aa23eef86cb9861776b37c4ecd8f7c8052c
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-25 13:02:13 +02:00
26fa448b0c rpi-default-providers: Use u-boot-rpi as u-boot provider
Change-Id: Ic537cada66ff09cde592da977a109415e05cb19c
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-25 13:02:13 +02:00
8778a3724c rpi-config: Use deploy as it should be used
Change-Id: I6c7782f3f46adeae74e22991bb9203dafa2e1c78
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-25 13:01:48 +02:00
9fea357028 bcm2835-bootfiles: Use deploy as it should be used
Change-Id: Ia90f01e037286647fdfafdd54ccb47c1ad9cbab2
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-25 13:01:48 +02:00
ca8a3eeaaf omxplayer: Update to remote HEAD
* Rebase 0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch
to apply on HEAD.
* Add fix-tar-command-with-DIST.patch which reverts a change in tar command
which breaks compilation if DIST is an absolute path.
* Avoid stripping omxplayer binary (let build system take care of strpping).

Change-Id: I95d70094b0069ad19f7d445abaf421756776c4c7
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-19 20:38:06 +02:00
30e3972912 packagegroup-rpi-test: Add some packages
bcm2835 is an empty package because this recipe provides a static library.
Install on target only bcm2835-tests package in which files are statically
linked to that library.

Add forgotten GPIO packages: rpi-gpio and rpio.

Change-Id: I498d2a3948ad5faf963d492bc496d4725a79e136
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-19 20:32:59 +02:00
9a3ee96ea3 rpi-gpio: Update to v0.5.4
Change-Id: Ie24be5363933fa994e38b030677d7381eb8a7f2a
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-19 20:29:43 +02:00
da3e157408 bcm2835: Update to v1.36
Change-Id: I8b55d7233919b6ebe68b9504eb2504bedb1846e1
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-19 20:28:39 +02:00
49c0872448 README: Cleanup and add info about images
Change-Id: I904de647fdd5514d361d33e887fd68977cde7e8c
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-19 17:22:00 +00:00
4ace9c24f0 rpi-test-image: Add test image
Change-Id: Iff4f58b43d1dcf5ea4f866b565542807345d6066
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-19 17:21:42 +00:00
c1b08f6704 Merge "packagegroup-rpi-test: Add test packagegroup" 2014-01-19 17:20:11 +00:00
07764b251d Merge "omxplayer: Update to HEAD and tweak SUMMARY and DESCRIPTION" 2014-01-19 17:19:41 +00:00
c4fd6d1102 linux-raspberrypi: Update v3.11.10 to remote HEAD
Change-Id: Ia0eac89faa63cb6d748f2749b82d1f80588e6a04
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-18 14:24:52 +02:00
5916b4abd2 userland: Update to remote HEAD
Change-Id: Ib98889d05b33ec2647966f2827e1fbf84f35fd95
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-18 14:24:47 +02:00
31375eb909 firmware: Update to remote HEAD
Change-Id: I20a8ebf0e5743250c66fae337d28e867959d3114
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-18 14:24:37 +02:00
c4527681d2 linux-raspberrypi: Update v3.10.24 to v3.10.26
Change-Id: I1fa7211af2d0c80ed49e6b3f70565ace88088601
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-17 16:59:55 +02:00
43414393af linux-raspberrypi: Update v3.12.4 to v3.12.7
Change-Id: Id721163e3e69946e3c82710bf12851211b493dee
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-17 16:59:31 +02:00
3d7a6edce0 packagegroup-rpi-test: Add test packagegroup
Change-Id: I74f7c0d33d5f9692a427587bf0f8ef9980ebfcd3
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-17 16:48:44 +02:00
cbb6008288 omxplayer: Update to HEAD and tweak SUMMARY and DESCRIPTION
* Update to current git HEAD commit which includes fix for boost 1.55.
* Replace tabs by spaces
* Tweak SUMMARY and DESCRIPTION
* Add bash to PN RDEPENDS as omxplayer is actually a bash script.
* omxplayer is a bash script - add RDEPENDS and fix mktemp inside

Change-Id: I5c8a4cf1005ba49f9b01821e3f832d1da49869bc
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-17 16:48:44 +02:00
3994102d7b linux-raspberrypi: Remove old v3.12.0
Change-Id: Ie757c9626540aaed44d35bf2ae058bb0cdcc6d08
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-03 23:20:53 +02:00
908e69151b userland: Update to latest HEAD
Change-Id: I4403ab492bbe825541149905995ad3e4c61dc897
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-03 23:20:50 +02:00
7cb819a69b firmware.inc: Update to latest HEAD
Change-Id: I758da027a378b535205d42b9304473704be63fb2
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-03 23:20:47 +02:00
6305870896 linux-raspberrypi: Update v3.6.11 to latest HEAD
Change-Id: I9e30fc0c9a16df888ce8e0f56f5bcf7a3aff77bf
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-03 23:20:43 +02:00
be20e02dec linux-raspberrypi: Update v3.11.7 to v3.11.10
Change-Id: I8ba4b853a9e3f07517c401c9a421c65c53c25977
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-03 23:20:39 +02:00
78519944fe linux-raspberrypi: Update v3.10.18 to v3.10.24
Change-Id: Icf95ec58d39eb187c0cf0fe31fd1822f81f3f038
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-03 23:20:36 +02:00
5aec26c461 linux-raspberrypi: Add version 3.12.4+
This kernel enables camera video via the new 'bcm2835-v4l2' module.
Just add 'start_x=1' to your boot config.txt

Change-Id: I19f72708b854291314691944a58fa16451e2677b
Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-03 23:07:53 +02:00
7bea82b2b8 rpi-config: Add video camera control
Add video camera enable 'VIDEO_CAMERA' for config.txt

Change-Id: I547004eebfba204ba683365bbdbad143f2cdfe6e
Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-03 23:07:46 +02:00
9cd9f42fa1 README: Add video camera control
Add optional 'VIDEO_CAMERA' setting to enable video
camera at boot time.

Change-Id: I8b2509aee1ff8ec94b7a3a3b5066d0411a957f43
Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-03 23:07:43 +02:00
bfb7098335 bcm2835: Update to version 1.34
Change-Id: I189927439028f6f11f513c84c5e6dc6bfb249d06
Signed-off-by: Alexandru Niculita <alexnick87@gmail.com>
2013-12-18 13:11:43 +02:00
acc1661473 Merge "wiringpi: Add new package" 2013-12-15 13:46:51 +00:00
5dc928066a Merge "rpi-default-providers: Use jpeg as default provider" 2013-12-03 21:21:56 +00:00
6864865fd6 rpi-default-providers: Use jpeg as default provider
Change-Id: Ic7f1faa3ed60a3ccd1b0b08ed366cfb71df06536
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-11-29 11:51:49 +02:00
3f519e6b89 linux-raspberrypi_3.10.18: Fix commit SHA
The remote SHA used is no longer available in github. Move to a
usable one.

Fixies this build error:
fatal: reference is not a tree: ae937f99fee8a37f2ddd7270f6bcc0e497e8c903
on raspberry 3.10 kernel:
raspberrypi-poky-linux-gnueabi/linux-raspberrypi/3.10.18+gitae937f99fee8a37f2ddd7270f6bcc0e497e8c903-r0

More info: https://trello.com/c/tQ7l8ftd

Change-Id: I9fcc571622cbe4adb8ed99b11e5d6889e791d555
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-11-29 11:46:41 +02:00
eff5ec9b75 omxplayer: Updated package to the latest version from git
Changed the active development repository to git://github.com/popcornmix/omxplayer.git
Added dbus package as a dependency.
Installed fonts directory in the default location needed by omxplayer

Change-Id: Ie2e1ae73656d3c9a5cbefbf87d0792b10fcd9430
Signed-off-by: Alexandru Niculita <alexnick87@gmail.com>
2013-11-14 17:26:13 +02:00
aa662e8575 userland: Update to HEAD on 2013-11-13
Change-Id: Ic618f8bc5365b9f787a230a2a3e0ccb92c17738a
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-11-13 18:24:39 +02:00
bfe7d23dd1 firmware.inc: Update to HEAD on 2013-11-13
Change-Id: I00ace3f8575015612ae09dfb99e2a33d87ddc4cb
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-11-13 18:24:39 +02:00
c96c590d0c rpi-default-providers: Use 3.10.X as default kernel
This is the default/base branch on official github repository:
https://github.com/raspberrypi/linux/branches

Change-Id: I99702ae7548b49a5b4b575b3f02f5a3a48ad347f
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-11-13 18:24:39 +02:00
4498a2be50 linux-raspberrypi: Add version 3.10.18 and 3.12.0
Change-Id: Idd59fed4f2ab975c50b3727e436b4a0caeb0ab16
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-11-13 18:24:39 +02:00
0680f82e91 linux-raspberrypi: Update available versions to HEAD
Update 3.11.0 to 3.11.7 HEAD.
Update 3.6.11 to HEAD.

Change-Id: Iacd8f78b418b0bd6d8513b97ce57ce0108057850
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-11-13 18:17:09 +02:00
c1f6772e6b bcm2835: Update to version 1.32
Change-Id: I68721f30c9551b392d2851a96d9819524a088faf
Signed-off-by: Alexandru Niculita <alexnick87@gmail.com>
2013-11-13 17:21:34 +02:00
8c35f8f296 Merge "raspberrypi.conf: is not a usb gadget" 2013-11-13 14:48:49 +00:00
4c3555651b Merge "README: Fix IMAGE_FSTYPES example" 2013-11-13 14:01:18 +00:00
1929844aab Merge "README: Add info" 2013-11-13 13:59:04 +00:00
b7511f7fda README: Add info
* Add some other minor formatting changes.
* Add info about Trello board.
* Add info about Gerrit server.
* Split source code info in a separate section.

Change-Id: Ib8fe5e11c1d95d14ff825a26d356b5ae432f2f93
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-11-13 15:57:14 +02:00
184fa20444 Merge "sdcard_image-rpi.bbclass: Allow optional compression" 2013-11-13 13:51:28 +00:00
5c8d2c08df raspberrypi.conf: is not a usb gadget
Change-Id: I93ed1832905e4fdfc5f5d387c37933b60a50f4c5
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-11-12 18:41:39 +02:00
298e28ff96 wiringpi: Add new package
Commit created from merging:
c8046050db
fe2467c0e8
72f7705cba

Added some minor changes:
* remove PR
* remove tabs

Change-Id: Ia430db732e6c9662f71eca2433d03cce738ca23f
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-11-12 18:37:23 +02:00
fef11f98cf Merge "mesa: Remove egl and gles only for raspberrypi machine" 2013-11-12 16:11:02 +00:00
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
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
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
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
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
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
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
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
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
8751681571 vc-graphics: Remove some useless new lines
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-08-21 15:55:17 +03:00
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
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
78d3a9d68d bcm2835: Update to v1.9
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-08-21 15:55:00 +03:00
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
0680e94115 rpio: Integrate v0.10.0
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-08-21 15:54:54 +03:00
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
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
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
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
5da09b299e README: Add info about extra apps / omxplayer
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-08-21 15:54:41 +03:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
c71508dae6 userland: Initial integration
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-11-27 22:42:43 +02:00
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
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
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
14734e73a3 rpi-config: Update to 62bf3e9db62f547eb1a2a352dde957d2f94bd216
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-11-27 22:42:42 +02:00
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
bc7e740348 linux-raspberrypi: Update to 10182a3bc434b27740f81c2b836a1af943060241
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-11-27 22:42:41 +02:00
48e0739783 linux-raspberrypi: Cleanup recipe
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-11-27 22:42:41 +02:00
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
4ac170e18b firmware: Update to 537c78b113d06e37e2cca90a0b3d3f39a129ee23
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-11-27 22:42:41 +02:00
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
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
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
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
69 changed files with 1476 additions and 1460 deletions

249
README
View File

@ -24,54 +24,47 @@
....
OpenEmbedded BSP Layer - RaspberryPi
--------------------------------------
Contents:
=========
1. Description
2. Yocto BSP Layer - RaspberryPi
2.A. Compressed deployed files
2.B. GPU memory
2.C. Add purchased license codecs
2.D. Disable overscan
2.E. Set overclocking options
2.F. Optional - Video camera support with V4L2 drivers
2.G. Optional - Enable offline compositing support
2.H. Images
2.I. Boot to U-Boot
2.J. Image with Initramfs
3. Extra apps
3.A. omxplayer
4. Source code and mirrors
5. Contribution
5.A. Mailing List
5.B. Gerrit Review Server
5.C. Trello Board
6. Maintainers
1. Description
==============
This is the general hardware specific BSP overlay for the RaspberryPi device.
It should be used with openembedded-core (not old-style org.openembedded.dev).
More information can be found at:
http://www.raspberrypi.org/ (Official Site)
http://www.distant-earth.com/ (My Site)
Build scripts patched to support making a firmware image for the RaspberryPi with Angstrom can be found at:
http://github.com/Angstrom-distribution/setup-scripts
When not depending on meta-openembedded and not using systemd, you may need to
mask few recipes requiring systemd or other recipes not included in your distribution of choice.
You can achieve this by adding something like the following to local.conf:
BBMASK = "meta-raspberrypi/recipes-multimedia/libav|meta-raspberrypi/recipes-core/systemd"
You can adjust the BBMASK for any .bbappends that your distribution does not contain recipes for.
The core BSP part of meta-raspberrypi should work with different OpenEmbedded/Yocto
distributions and layer stacks, such as:
The core BSP part of meta-raspberrypi should work with different
OpenEmbedded/Yocto distributions and layer stacks, such as:
* Distro-less (only with OE-Core).
* Angstrom (main focus of testing).
* Yocto/Poky.
* Angstrom.
* Yocto/Poky (main focus of testing).
This layer in its entirety depends on:
URI: git://git.openembedded.org/openembedded-core
branch: master
revision: HEAD
URI: git://git.openembedded.org/meta-openembedded
branch: master
revision: HEAD
It is preferred that people raise pull requests using GIThub by forking the appropriate tree:
https://github.com/djwillis/
(More info on achieving this can be found at http://help.github.com/send-pull-requests/)
Yocto BSP Layer - RaspberryPi
-------------------------------
2. Yocto BSP Layer - RaspberryPi
================================
This layer depends on:
@ -80,54 +73,58 @@ branch: master
revision: HEAD
URI: git://git.openembedded.org/meta-openembedded
layers: meta-multimedia
branch: master
revision: HEAD
How to use it:
1. source poky/oe-init-build-env rpi-build
2. Add needed layers to bblayers.conf:
2. Add needed layer to bblayers.conf:
- meta-raspberrypi
- meta-openembedded/meta-oe
3 Set MACHINE to raspberrypi in local.conf
4. bitbake rpi-hwup-image
5. dd to a SD card the generated sdimg file (use xzcat if rpi-sdimg.xz is used)
6. Boot your RPI.
Optional - compressed deployed files:
=====================================
2.A. Optional - compressed deployed files:
==========================================
1. Overwrite IMAGE_FSTYPES in local.conf
IMAGE_FSTYPES = "tar.bz2 ext3.xz rpi-sdimg.xz
IMAGE_FSTYPES = "tar.bz2 ext3.xz"
2. Overwrite SDIMG_ROOTFS_TYPE in local.conf
SDIMG_ROOTFS_TYPE = "ext3.xz"
3. Overwrite SDIMG_COMPRESSION in local.conf
SDIMG_COMPRESSION = "xz"
*Accommodate the values above to your own needs (ex: ext3 / ext4).
Optional - GPU firmware:
========================
By default the GPU firmware shipped is arm192. You can overwrite this using the
variable RPI_GPU_FIRMWARE with one of the values below.
# arm128 : 128M ARM, 128M GPU split
# arm192 : 192M ARM, 64M GPU split
# arm224 : 224M ARM, 32M GPU split
# arm240 : 240M ARM, 16M GPU split
2.B. Optional - GPU memory:
===========================
Variable : Details
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 memory in megabyte for the 256MB Raspberry Pi. Ignored by the
512MB RP. Overrides gpu_mem. Max 192. Default not set.
GPU_MEM_512 : GPU memory in megabyte for the 512MB Raspberry Pi. Ignored by the
256MB RP. Overrides gpu_mem. Max 448. Default not set.
Optional - Add purchased license codecs:
========================================
To add you own licenses use variables KEY_DECODE_MPG2 and KEY_DECODE_WVC1 in local.conf. Example:
2.C.Optional - Add purchased license codecs:
============================================
To add you own licenses use variables KEY_DECODE_MPG2 and KEY_DECODE_WVC1 in
local.conf. Example:
KEY_DECODE_MPG2 = "12345678"
KEY_DECODE_WVC1 = "12345678"
You can supply more licenses separated by comma. Example:
KEY_DECODE_WVC1 = "0x12345678,0xabcdabcd,0x87654321"
Optional - Disable overscan:
============================
By default the GPU adds a black border around the video output to compensate for TVs
which cut off part of the image. To disable this set this variable in
2.D. Optional - Disable overscan:
=================================
By default the GPU adds a black border around the video output to compensate for
TVs which cut off part of the image. To disable this set this variable in
local.conf:
DISALE_OVERSCAN = "0"
Optional - Set overclocking options:
====================================
2.E. Optional - Set overclocking options:
=========================================
The Raspberry PI can be overclocked. As of now overclocking up to the "Turbo
Mode" is officially supported by the raspbery and does not void warranty.
Check the config.txt for a detailed description of options and modes. Example:
@ -137,6 +134,130 @@ CORE_FREQ = "500"
SDRAM_FREQ = "500"
OVER_VOLTAGE = "6"
2.F. Optional - Video camera support with V4L2 drivers
======================================================
Set this variable to enable support for the video camera (Linux 3.12.4+ required)
VIDEO_CAMERA = "1"
Layer maintainer: John Willis <John.Willis at distant-earth.com>
Andrei Gherzan <andrei at gherzan.ro>
2.G. Optional - Enable offline compositing support
==================================================
Set this variable to enable support for dispmanx offline compositing
DISMANX_OFFLINE = "1"
This will enable the firmware to fall back to off-line compositing of
Dispmanx elements. Normally the compositing is done on-line, during scanout,
but cannot handle too many elements. With off-line enabled, an off-screen
buffer is allocated for compositing. When scene complexity (number and sizes
of elements) is high, compositing will happen off-line into the buffer.
Heavily recommended for Wayland/Weston.
See: http://wayland.freedesktop.org/raspberrypi.html
2.H. Images
===========
* rpi-hwup-image
Hardware up image
* rpi-basic-image
Based on rpi-hwup-image with some added features (ex: splash)
* rpi-test-image
Image based on rpi-basic-image which includes most of the packages in this
layer and some media samples.
2.I. Boot to U-Boot
===================
To have u-boot load kernel image, set in your local.conf
KERNEL_IMAGETYPE = "uImage"
This will make kernel.img be u-boot image which will load uImage.
By default, kernel.img is the actual kernel image (ex. Image).
2.J. Image with Initramfs
=========================
To build an initramfs image :
* Set this 3 kernel variables (in linux-raspberrypi.inc for example)
- kernel_configure_variable BLK_DEV_INITRD y
- kernel_configure_variable INITRAMFS_SOURCE ""
- kernel_configure_variable RD_GZIP y
* Set the yocto variables (in linux-raspberrypi.inc for example)
- INITRAMFS_IMAGE = "<a name for your initramfs image>"
- INITRAMFS_IMAGE_BUNDLE = "1"
* Set the meta-rasberrypi variable (in raspberrypi.conf for example)
- KERNEL_INITRAMFS = "-initramfs"
3. Extra apps
=============
3.A. omxplayer
==============
omxplayer depends on libav which has a commercial license. So in order to be
able to compile omxplayer you will need to whiteflag the commercial license
adding to you local.conf:
LICENSE_FLAGS_WHITELIST = "commercial"
4. Source code and mirrors
==========================
Main repo:
git://git.yoctoproject.org/meta-raspberrypi
http://git.yoctoproject.org/git/meta-raspberrypi
Github mirror:
https://github.com/djwillis/meta-raspberrypi
Gerrit review repo:
https://review.gherzan.ro:8443/meta-raspberrypi
5. Contributing
===============
5.A. Mailing list
=================
To contribute to this layer you should send the patches for review to the
mailing list.
The patches should be compliant with the openembedded patch guidelines:
http://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Mailing list:
https://lists.yoctoproject.org/listinfo/yocto
To send changes to mailing list use something like:
git send-email --to yocto@yoctoproject.org \
--subject-prefix='meta-raspberrypi][PATCH'
OPTIONALLY push changes to gerrit (help maintainers merge and review patches
easier in this way).
git push ssh://<username>@review.gherzan.ro:29418/meta-raspberrypi
<local-branch>:refs/for/master
See 5.B. Gerrit Review Server.
5.B. Gerrit Review Server
=========================
We have a gerrit server configured at review.gherzan.ro. Changes made in gerrit
are merged in git.yoctoproject.org/meta-raspberrypi.
You can setup a gerrit account in less than 2 minutes:
A) Login / Register on https://review.gherzan.ro:8443.
B) Add your PUBLIC key in Settings/SSH Public Keys.
C) Add remote in your local repo:
git remote add gherzan ssh://<username>@review.gherzan.ro:29418/meta-raspberrypi
D) Push changes to gerrit using:
git push gherzan <local-branch>:refs/for/master
Please check your spam folder for gerrit messages. Sometimes they end up there.
5.C. Trello Board
=================
A public Trello board is set to manage tasks and bugs. Join us there:
https://trello.com/b/QsYeVjVe/meta-raspberrypi
6. Maintainers
==============
John Willis <John.Willis at distant-earth.com>
Andrei Gherzan <andrei at gherzan.ro>

View File

@ -13,23 +13,28 @@ inherit image_types
# Default Free space = 1.3x
# Use IMAGE_OVERHEAD_FACTOR to add more space
# <--------->
# 4KiB 20MiB SDIMG_ROOTFS
# 4MiB 20MiB SDIMG_ROOTFS
# <-----------------------> <----------> <---------------------->
# ------------------------ ------------ ------------------------ -------------------------------
# | IMAGE_ROOTFS_ALIGNMENT | BOOT_SPACE | ROOTFS_SIZE | IMAGE_ROOTFS_ALIGNMENT |
# ------------------------ ------------ ------------------------ -------------------------------
# ^ ^ ^ ^ ^
# | | | | |
# 0 4096 4KiB + 20MiB 4KiB + 20Mib + SDIMG_ROOTFS 4KiB + 20MiB + SDIMG_ROOTFS + 4KiB
# ------------------------ ------------ ------------------------
# | IMAGE_ROOTFS_ALIGNMENT | BOOT_SPACE | ROOTFS_SIZE |
# ------------------------ ------------ ------------------------
# ^ ^ ^ ^
# | | | |
# 0 4MiB 4MiB + 20MiB 4MiB + 20Mib + SDIMG_ROOTFS
# This image depends on the rootfs image
IMAGE_TYPEDEP_rpi-sdimg = "${SDIMG_ROOTFS_TYPE}"
# Set kernel and boot loader
IMAGE_BOOTLOADER ?= "bcm2835-bootfiles"
# Set initramfs extension
KERNEL_INITRAMFS ?= ""
# Boot partition volume id
BOOTDD_VOLUME_ID ?= "${MACHINE}"
# Boot partition size [in KiB]
# Boot partition size [in KiB] (will be rounded up to IMAGE_ROOTFS_ALIGNMENT)
BOOT_SPACE ?= "20480"
# Set alignment to 4MB [in KiB]
@ -37,9 +42,7 @@ IMAGE_ROOTFS_ALIGNMENT = "4096"
# Use an uncompressed ext3 by default as rootfs
SDIMG_ROOTFS_TYPE ?= "ext3"
SDIMG_ROOTFS = "${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}"
RPI_GPU_FIRMWARE ?= "arm192"
SDIMG_ROOTFS = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}"
IMAGE_DEPENDS_rpi-sdimg = " \
parted-native \
@ -47,11 +50,19 @@ IMAGE_DEPENDS_rpi-sdimg = " \
dosfstools-native \
virtual/kernel \
${IMAGE_BOOTLOADER} \
${@base_contains("KERNEL_IMAGETYPE", "uImage", "u-boot", "",d)} \
"
# SD card image name
SDIMG = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.rpi-sdimg"
# Compression method to apply to SDIMG after it has been created. Supported
# compression formats are "gzip", "bzip2" or "xz". The original .rpi-sdimg file
# is kept and a new compressed file is created if one of these compression
# formats is chosen. If SDIMG_COMPRESSION is set to any other value it is
# silently ignored.
#SDIMG_COMPRESSION ?= ""
# Additional files and/or directories to be copied into the vfat partition from the IMAGE_ROOTFS.
FATPAYLOAD ?= ""
@ -62,39 +73,40 @@ IMAGE_CMD_rpi-sdimg () {
# Align partitions
BOOT_SPACE_ALIGNED=$(expr ${BOOT_SPACE} + ${IMAGE_ROOTFS_ALIGNMENT} - 1)
BOOT_SPACE_ALIGNED=$(expr ${BOOT_SPACE_ALIGNED} - ${BOOT_SPACE_ALIGNED} % ${IMAGE_ROOTFS_ALIGNMENT})
SDIMG_SIZE=$(expr ${IMAGE_ROOTFS_ALIGNMENT} + ${BOOT_SPACE_ALIGNED} + $ROOTFS_SIZE + ${IMAGE_ROOTFS_ALIGNMENT})
ROOTFS_SIZE=`du -bks ${SDIMG_ROOTFS} | awk '{print $1}'`
# Round up RootFS size to the alignment size as well
ROOTFS_SIZE_ALIGNED=$(expr ${ROOTFS_SIZE} + ${IMAGE_ROOTFS_ALIGNMENT} - 1)
ROOTFS_SIZE_ALIGNED=$(expr ${ROOTFS_SIZE_ALIGNED} - ${ROOTFS_SIZE_ALIGNED} % ${IMAGE_ROOTFS_ALIGNMENT})
SDIMG_SIZE=$(expr ${IMAGE_ROOTFS_ALIGNMENT} + ${BOOT_SPACE_ALIGNED} + ${ROOTFS_SIZE_ALIGNED})
echo "Creating filesystem with Boot partition ${BOOT_SPACE_ALIGNED} KiB and RootFS ${ROOTFS_SIZE_ALIGNED} KiB"
# Initialize sdcard image file
dd if=/dev/zero of=${SDIMG} bs=1 count=0 seek=$(expr 1024 \* ${SDIMG_SIZE})
dd if=/dev/zero of=${SDIMG} bs=1024 count=0 seek=${SDIMG_SIZE}
# Create partition table
parted -s ${SDIMG} mklabel msdos
# Create boot partition and mark it as bootable
parted -s ${SDIMG} unit KiB mkpart primary fat32 ${IMAGE_ROOTFS_ALIGNMENT} $(expr ${BOOT_SPACE_ALIGNED} \+ ${IMAGE_ROOTFS_ALIGNMENT})
parted -s ${SDIMG} set 1 boot on
# Create rootfs partition
parted -s ${SDIMG} unit KiB mkpart primary ext2 $(expr ${BOOT_SPACE_ALIGNED} \+ ${IMAGE_ROOTFS_ALIGNMENT}) $(expr ${BOOT_SPACE_ALIGNED} \+ ${IMAGE_ROOTFS_ALIGNMENT} \+ ${ROOTFS_SIZE})
# Create rootfs partition to the end of disk
parted -s ${SDIMG} -- unit KiB mkpart primary ext2 $(expr ${BOOT_SPACE_ALIGNED} \+ ${IMAGE_ROOTFS_ALIGNMENT}) -1s
parted ${SDIMG} print
# Create a vfat image with boot files
BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDIMG} unit b print | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 512 /2 }')
mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS
case "${RPI_GPU_FIRMWARE}" in
"arm128" | "arm192" | "arm224" | "arm240")
mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/${RPI_GPU_FIRMWARE}_start.elf ::start.elf
;;
*)
bberror "RPI_GPU_FIRMWARE is undefined or value not recognised. Possible values: arm128, arm192, arm224 or arm240."
exit 1
;;
mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/* ::/
case "${KERNEL_IMAGETYPE}" in
"uImage")
mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/u-boot.img ::kernel.img
mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}${KERNEL_INITRAMFS}-${MACHINE}.bin ::uImage
;;
*)
mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}${KERNEL_INITRAMFS}-${MACHINE}.bin ::kernel.img
;;
esac
mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt ::
mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/cmdline.txt ::
mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/bootcode.bin ::
mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/loader.bin ::
mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::kernel.img
if [ -n ${FATPAYLOAD} ] ; then
echo "Copying payload into VFAT"
for entry in ${FATPAYLOAD} ; do
@ -110,12 +122,25 @@ IMAGE_CMD_rpi-sdimg () {
# Burn Partitions
dd if=${WORKDIR}/boot.img of=${SDIMG} conv=notrunc seek=1 bs=$(expr ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync
# If SDIMG_ROOTFS_TYPE is a .xz file use xzcat
if [[ "$SDIMG_ROOTFS_TYPE" == *.xz ]]
if echo "${SDIMG_ROOTFS_TYPE}" | egrep -q "*\.xz"
then
xzcat ${SDIMG_ROOTFS} | dd of=${SDIMG} conv=notrunc seek=1 bs=$(expr 1024 \* ${BOOT_SPACE_ALIGNED} + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync
else
dd if=${SDIMG_ROOTFS} of=${SDIMG} conv=notrunc seek=1 bs=$(expr 1024 \* ${BOOT_SPACE_ALIGNED} + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync
fi
# Optionally apply compression
case "${SDIMG_COMPRESSION}" in
"gzip")
gzip -k9 "${SDIMG}"
;;
"bzip2")
bzip2 -k9 "${SDIMG}"
;;
"xz")
xz -k "${SDIMG}"
;;
esac
}
ROOTFS_POSTPROCESS_COMMAND += " rpi_generate_sysctl_config ; "

View File

@ -2,9 +2,13 @@
BBPATH .= ":${LAYERDIR}"
# We have a recipes directory containing .bb and .bbappend files, add to BBFILES
BBFILES := "${BBFILES} ${LAYERDIR}/recipes*/*/*.bb \
BBFILES += "${LAYERDIR}/recipes*/*/*.bb \
${LAYERDIR}/recipes*/*/*.bbappend"
BBFILE_COLLECTIONS += "raspberrypi"
BBFILE_PATTERN_raspberrypi := "^${LAYERDIR}/"
BBFILE_PRIORITY_raspberrypi = "6"
# Additional license directories.
LICENSE_PATH += "${LAYERDIR}/files/custom-licenses"

View File

@ -1,7 +1,10 @@
# RaspberryPi BSP default providers
PREFERRED_PROVIDER_virtual/kernel = "linux-raspberrypi"
PREFERRED_PROVIDER_u-boot = "u-boot-rpi"
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
PREFERRED_PROVIDER_virtual/egl ?= "vc-graphics-hardfp"
PREFERRED_PROVIDER_virtual/libgles2 ?= "vc-graphics-hardfp"
PREFERRED_PROVIDER_virtual/libgl ?= "vc-graphics-hardfp"
PREFERRED_PROVIDER_virtual/egl ?= "userland"
PREFERRED_PROVIDER_virtual/libgles2 ?= "userland"
PREFERRED_PROVIDER_virtual/libgl ?= "mesa-gl"
PREFERRED_PROVIDER_virtual/mesa ?= "mesa-gl"
PREFERRED_PROVIDER_jpeg = "jpeg"

View File

@ -1,3 +1,3 @@
# RaspberryPi BSP default versions
PREFERRED_VERSION_udev = "164"
PREFERRED_VERSION_linux-raspberrypi ?= "3.12.%"

View File

@ -1,10 +1,18 @@
DEFAULTTUNE ?= "arm1176jzfs"
DEFAULTTUNE ?= "armv6"
require conf/machine/include/arm/arch-armv6.inc
TUNEVALID[arm1176jzfs] = "Enable arm1176jzfs specific processor optimizations"
TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "arm1176jzfs", "-mtune=arm1176jzf-s", "", d)}"
TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "vfp", "-mfpu=vfp", "", d)}"
AVAILTUNES += "arm1176jzfs"
TUNE_FEATURES_tune-arm1176jzfs = "${TUNE_FEATURES_tune-armv6} arm1176jzfs"
ARMPKGARCH_tune-arm1176jzfs = "arm1176jzfs"
PACKAGE_EXTRA_ARCHS_tune-arm1176jzfs = "${PACKAGE_EXTRA_ARCHS_tune-armv6}"
AVAILTUNES += "arm1176jzfshf"
TUNE_FEATURES_tune-arm1176jzfshf = "${TUNE_FEATURES_tune-arm1176jzfs} callconvention-hard"
ARMPKGARCH_tune-arm1176jzfshf = "arm1176jzfs"
PACKAGE_EXTRA_ARCHS_tune-arm1176jzfshf = "${PACKAGE_EXTRA_ARCHS_tune-armv6hf-vfp} arm1176jzfshf-vfp"

View File

@ -12,7 +12,7 @@ IMAGE_FSTYPES ?= "tar.bz2 ext3 rpi-sdimg"
SERIAL_CONSOLE = "115200 ttyAMA0"
MACHINE_KERNEL_PR = "r4"
MACHINE_KERNEL_PR = "r5"
XSERVER = " \
xserver-xorg \
@ -22,9 +22,9 @@ XSERVER = " \
xf86-video-fbdev \
"
KERNEL_IMAGETYPE = "Image"
KERNEL_IMAGETYPE ?= "Image"
MACHINE_FEATURES = "kernel26 apm usbgadget usbhost keyboard vfat ext2 screen touchscreen alsa bluetooth wifi sdio"
MACHINE_FEATURES = "kernel26 apm usbhost keyboard vfat ext2 screen touchscreen alsa bluetooth wifi sdio"
#RaspberryPi has no hardware clock
MACHINE_FEATURES_BACKFILL_CONSIDERED = "rtc"
@ -33,5 +33,7 @@ MACHINE_EXTRA_RRECOMMENDS += " \
kernel-modules \
"
# Set default GPU firmware image to be shipped
RPI_GPU_FIRMWARE ?= "arm192"
# Set raspberrypi splash image
SPLASH = "psplash-raspberrypi"
IMAGE_BOOT_FILES ?= "bcm2835-bootfiles/* ${KERNEL_IMAGETYPE};kernel.img"

View File

@ -0,0 +1,25 @@
Copyright (c) 2012, Broadcom Europe Ltd
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@ -5,38 +5,36 @@ SECTION = "base"
HOMEPAGE = "http://www.open.com.au/mikem/bcm2835"
AUTHOR = "Mike McCauley (mikem@open.com.au)"
LICENSE = "GPL-2.0"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
PR = "r0"
COMPATIBLE_MACHINE = "raspberrypi"
SRC_URI = "http://www.open.com.au/mikem/bcm2835/bcm2835-1.8.tar.gz"
SRC_URI = "http://www.open.com.au/mikem/bcm2835/bcm2835-${PV}.tar.gz"
SRC_URI[md5sum] = "cca8500049d4ebf9087de4bd1601d185"
SRC_URI[sha256sum] = "64be77b10aaf48ecb2a9022e13057f3b564093916875c0fc56373b4142dd5cae"
SRC_URI[md5sum] = "3299ddaef60f80b7f85de3318f08dee7"
SRC_URI[sha256sum] = "b4dfcdb453d44ba9ff55634ce7e0ddca21b96355ab61e40b4c3afb9406d4b8d2"
inherit autotools
do_compile_append() {
# Now compiling the examples provided by the package
mkdir -p ${B}/examples
for file in `ls ${S}/examples`; do
${CC} ${S}/examples/${file}/${file}.c -o ${B}/examples/${file} -Bstatic -L${B}/src -lbcm2835 -I${S}/src
done
}
do_install_append() {
install -d ${D}/${libdir}/${BPN}
for file in ${B}/examples/*
do
install -m 0755 ${file} ${D}/${libdir}/${BPN}
done
}
PACKAGES += "${PN}-tests"
FILES_${PN} = ""
FILES_${PN}-tests = "${libdir}/${BPN}"
FILES_${PN}-dbg += "${libdir}/${BPN}/.debug"
inherit autotools
do_compile_append() {
#Now compiling the examples provided by the package
for file in examples/*
do
${CC} ${file}/${file##*/}.c -o ${file}/${file##*/} -Bstatic -L${S}/src -lbcm2835 -I${S}/src
done
}
do_install_append() {
install -d ${D}/${libdir}/${BPN}
for file in examples/*
do
install -m 0755 ${file}/${file##*/} ${D}/${libdir}/${BPN}
done
}

View File

@ -3,32 +3,37 @@ LICENSE = "Proprietary"
LIC_FILES_CHKSUM = "file://LICENCE.broadcom;md5=e86e693d19572ee64cc8b17fb062faa9"
inherit deploy
include ../common/firmware.inc
RDEPENDS_${PN} = "rpi-config"
COMPATIBLE_MACHINE = "raspberrypi"
SRC_URI = " \
git://github.com/raspberrypi/firmware.git;protocol=git;branch=master \
"
S = "${RPIFW_S}/boot"
S = "${WORKDIR}/git/boot"
PR = "r2"
addtask deploy before do_package after do_install
PR = "r3"
do_deploy() {
install -d ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles
for i in *.elf ; do
cp $i ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles
done
for i in *.bin ; do
cp $i ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles
done
# Add stamp in deploy directory
touch ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/${PN}-${PV}.stamp
install -d ${DEPLOYDIR}/${PN}
for i in ${S}/*.elf ; do
cp $i ${DEPLOYDIR}/${PN}
done
for i in ${S}/*.dat ; do
cp $i ${DEPLOYDIR}/${PN}
done
for i in ${S}/*.bin ; do
cp $i ${DEPLOYDIR}/${PN}
done
# Add stamp in deploy directory
touch ${DEPLOYDIR}/${PN}/${PN}-${PV}.stamp
}
addtask deploy before do_package after do_install
do_deploy[dirs] += "${DEPLOYDIR}/${PN}"
PACKAGE_ARCH = "${MACHINE_ARCH}"

View File

@ -1,46 +0,0 @@
DESCRIPTION = "Commented config.txt file for the Raspberry Pi. \
The Raspberry Pi config.txt file is read by the GPU before \
the ARM core is initialised. It can be used to set various \
system configuration parameters."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
COMPATIBLE_MACHINE = "raspberrypi"
SRCREV = "afeaed02ba5f01298dec3ac4e1bd98f27bcd876e"
SRC_URI = "git://github.com/Evilpaul/RPi-config.git;protocol=git;branch=master \
"
S = "${WORKDIR}/git"
PR = "r1"
addtask deploy before do_package after do_install
do_deploy() {
install -d ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles
cp config.txt ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/
if [ -n "${KEY_DECODE_MPG2}" ]; then
sed -i '/#decode_MPG2/ c\decode_MPG2=${KEY_DECODE_MPG2}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt
fi
if [ -n "${KEY_DECODE_WVC1}" ]; then
sed -i '/#decode_WVC1/ c\decode_MVC1=${KEY_DECODE_WVC1}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt
fi
if [ -n "${DISABLE_OVERSCAN}" ]; then
sed -i '/#disable_overscan/ c\disable_overscan=${DISABLE_OVERSCAN}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt
fi
if [ -n "${ARM_FREQ}" ]; then
sed -i '/#arm_freq/ c\arm_freq=${ARM_FREQ}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt
fi
if [ -n "${CORE_FREQ}" ]; then
sed -i '/#core_freq/ c\core_freq=${CORE_FREQ}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt
fi
if [ -n "${SDRAM_FREQ}" ]; then
sed -i '/#sdram_freq/ c\sdram_freq=${SDRAM_FREQ}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt
fi
if [ -n "${OVER_VOLTAGE}" ]; then
sed -i '/#over_voltage/ c\over_voltage=${OVER_VOLTAGE}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt
fi
}
PACKAGE_ARCH = "${MACHINE_ARCH}"

View File

@ -0,0 +1,74 @@
DESCRIPTION = "Commented config.txt file for the Raspberry Pi. \
The Raspberry Pi config.txt file is read by the GPU before \
the ARM core is initialised. It can be used to set various \
system configuration parameters."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
COMPATIBLE_MACHINE = "raspberrypi"
SRCREV = "5d2ca5f9bcb1b239c051e20c05a233fd79cf09d5"
SRC_URI = "git://github.com/Evilpaul/RPi-config.git;protocol=git;branch=master \
"
S = "${WORKDIR}/git"
PR = "r4"
inherit deploy
do_deploy() {
install -d ${DEPLOYDIR}/bcm2835-bootfiles
cp ${S}/config.txt ${DEPLOYDIR}/bcm2835-bootfiles/
if [ -n "${KEY_DECODE_MPG2}" ]; then
sed -i '/#decode_MPG2/ c\decode_MPG2=${KEY_DECODE_MPG2}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
fi
if [ -n "${KEY_DECODE_WVC1}" ]; then
sed -i '/#decode_WVC1/ c\decode_MVC1=${KEY_DECODE_WVC1}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
fi
if [ -n "${DISABLE_OVERSCAN}" ]; then
sed -i '/#disable_overscan/ c\disable_overscan=${DISABLE_OVERSCAN}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
fi
if [ -n "${ARM_FREQ}" ]; then
sed -i '/#arm_freq/ c\arm_freq=${ARM_FREQ}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
fi
if [ -n "${CORE_FREQ}" ]; then
sed -i '/#core_freq/ c\core_freq=${CORE_FREQ}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
fi
if [ -n "${SDRAM_FREQ}" ]; then
sed -i '/#sdram_freq/ c\sdram_freq=${SDRAM_FREQ}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
fi
if [ -n "${OVER_VOLTAGE}" ]; then
sed -i '/#over_voltage/ c\over_voltage=${OVER_VOLTAGE}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
fi
# GPU memory
if [ -n "${GPU_MEM}" ]; then
sed -i '/#gpu_mem=/ c\gpu_mem=${GPU_MEM}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
fi
if [ -n "${GPU_MEM_256}" ]; then
sed -i '/#gpu_mem_256/ c\gpu_mem_256=${GPU_MEM_256}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
fi
if [ -n "${GPU_MEM_512}" ]; then
sed -i '/#gpu_mem_512/ c\gpu_mem_512=${GPU_MEM_512}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
fi
# Video camera support
if [ -n "${VIDEO_CAMERA}" ]; then
echo "# Enable video camera" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
echo "start_x=1" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
fi
# Offline compositing support
if [ -n "${DISPMANX_OFFLINE}" ]; then
echo "# Enable offline compositing" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
echo "dispmanx_offline=1" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
fi
}
addtask deploy before do_package after do_install
do_deploy[dirs] += "${DEPLOYDIR}/bcm2835-bootfiles"
PACKAGE_ARCH = "${MACHINE_ARCH}"

View File

@ -1,6 +1,8 @@
# 13/09/2012 firmware; this can be overridden from distro config
RPIFW_SRCREV ?= "b616053edb93713efa25299cb4ea7efa439dcb61"
RPIFW_DATE ?= "20120913"
RPIFW_SRCREV ?= "43c5b2fc9bdb0a43ba67661b8677445e71ae9e82"
RPIFW_DATE ?= "20140817"
RPIFW_SRC_URI ?= "git://github.com/raspberrypi/firmware.git;protocol=git;branch=master"
RPIFW_S ?= "${WORKDIR}/git"
SRC_URI = "${RPIFW_SRC_URI}"
SRCREV = "${RPIFW_SRCREV}"
PV = "${RPIFW_DATE}"

View File

@ -1,8 +1,6 @@
CONFLICTS = "vc-graphics"
VCDIR = "hardfp/opt/vc"
require vc-graphics.inc
PR = "${INCPR}.0"

View File

@ -1,8 +1,6 @@
CONFLICTS = "vc-graphics-hardfp"
VCDIR = "opt/vc"
require vc-graphics.inc
PR = "${INCPR}.0"

View File

@ -3,18 +3,19 @@ LICENSE = "Proprietary"
LIC_FILES_CHKSUM = "file://LICENCE;md5=86e53f5f5909ee66900418028de11780"
PROVIDES = "virtual/libgl virtual/libgles2 virtual/egl"
PROVIDES = "virtual/libgles2 virtual/egl"
COMPATIBLE_MACHINE = "raspberrypi"
include ../common/firmware.inc
SRC_URI = "git://github.com/raspberrypi/firmware.git;protocol=git;branch=master\
file://egl.pc \
file://vchiq.sh"
SRC_URI += " \
file://egl.pc \
file://vchiq.sh \
"
S = "${WORKDIR}/git/${VCDIR}"
S = "${RPIFW_S}/${VCDIR}"
INCPR = "r0"
INCPR = "r1"
inherit pkgconfig update-rc.d

View File

@ -1,2 +1 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
PRINC = "1"

View File

@ -0,0 +1,25 @@
Copyright (c) 2012, Broadcom Europe Ltd
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@ -0,0 +1,17 @@
When using open, use path relative to imagetool-uncompressed.py
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Index: git/mkimage/imagetool-uncompressed.py
===================================================================
--- a/mkimage/imagetool-uncompressed.py
+++ b/mkimage/imagetool-uncompressed.py
@@ -18,7 +18,7 @@ re_line = re.compile(r"0x(?P<value>[0-9a
mem = [0 for i in range(32768)]
def load_to_mem(name, addr):
- f = open(name)
+ f = open(os.path.dirname(__file__) + '/' + name)
for l in f.readlines():
m = re_line.match(l)

View File

@ -0,0 +1,22 @@
SUMMARY = "RaspberryPi tool to produce kernel.img"
LICENSE = "Broadcom"
LIC_FILES_CHKSUM = "file://${WORKDIR}/License;md5=957f6640d5e2d2acfce73a36a56cb32f"
SECTION = "bootloader"
DEPENDS = "python"
SRCREV = "330c72c2412f75a32932c4d9b51c9c678bce4180"
SRC_URI = " \
git://github.com/raspberrypi/tools.git;branch=master;protocol=git \
file://License \
file://open-files-relative-to-script.patch \
"
S = "${WORKDIR}/git"
do_install () {
install -d ${D}${libexecdir}
cp ./mkimage/* ${D}${libexecdir}
}
BBCLASSEXTEND = "native"

View File

@ -0,0 +1,29 @@
DESCRIPTION = "U-Boot port for RaspberryPi"
require recipes-bsp/u-boot/u-boot.inc
DEPENDS += "rpi-mkimage-native"
PROVIDES += "u-boot"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
SRCREV = "6709570cdc947c2a546f96d571551acf4474778c"
SRC_URI = "git://github.com/gonzoua/u-boot-pi.git;branch=rpi"
S = "${WORKDIR}/git"
UBOOT_MACHINE = "rpi_b"
UBOOT_MAKE_TARGET = "u-boot.bin"
UBOOT_SUFFIX = "img"
PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = "raspberrypi"
do_compile_append() {
# Create kernel.img from uboot.bin and name it u-boot.img
${STAGING_DIR_NATIVE}/usr/lib/rpi-mkimage/imagetool-uncompressed.py u-boot.bin
mv kernel.img u-boot.img
}

View File

@ -1,9 +0,0 @@
# stock fstab for the RaspberryPi - you may want to tweak this to suit.
rootfs / auto defaults,noatime 1 1
proc /proc proc defaults 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
usbfs /proc/bus/usb usbfs defaults 0 0
tmpfs /var/volatile tmpfs defaults 0 0
tmpfs /dev/shm tmpfs mode=0777 0 0
tmpfs /media/ram tmpfs defaults 0 0

View File

@ -1,33 +0,0 @@
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
PATH="/usr/local/bin:/usr/bin:/bin"
EDITOR="/bin/vi" # needed for packages like cron
test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc.
if [ ! -e /etc/localtime -a ! -e /etc/TZ ]; then
TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html
# for an explanation of how to set this to your local timezone.
export TZ
fi
if [ "`id -u`" -eq 0 ]; then
PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin:
fi
if [ "$PS1" ]; then
# works for bash and ash (no other shells known to be in use here)
PS1='\u@\h:\w\$ '
fi
if [ -d /etc/profile.d ]; then
for i in /etc/profile.d/*.sh; do
if [ -r $i ]; then
. $i
fi
done
unset i
fi
export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM
umask 022

View File

@ -1,3 +0,0 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
# Don't forget to bump PRINC if you update the extra files.
PRINC = "1"

View File

@ -0,0 +1,4 @@
# Base this image on rpi-basic-image
include rpi-basic-image.bb
IMAGE_INSTALL_append = " packagegroup-rpi-test"

View File

@ -1,2 +0,0 @@
127.0.0.1 localhost.localdomain localhost raspberrypi rpi

View File

@ -1,15 +0,0 @@
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# Wireless interfaces
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid any
wpa-driver wext
wpa-conf /etc/wpa_supplicant.conf
# Bluetooth networking
iface bnep0 inet dhcp

View File

@ -1,3 +0,0 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
# Don't forget to bump PRINC if you update the extra files.
PRINC = "1"

View File

@ -0,0 +1,19 @@
DESCRIPTION = "RaspberryPi Test Packagegroup"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
inherit packagegroup
RDEPENDS_${PN} = "\
omxplayer \
bcm2835-tests \
wiringpi \
rpio \
rpi-gpio \
"
RRECOMMENDS_${PN} = "\
bigbuckbunny-1080p \
bigbuckbunny-480p \
bigbuckbunny-720p \
"

View File

@ -1,2 +1,2 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SPLASH_IMAGES = "file://psplash-raspberrypi-img.h;outsuffix=default"
SPLASH_IMAGES += "file://psplash-raspberrypi-img.h;outsuffix=raspberrypi"

Some files were not shown because too many files have changed in this diff Show More