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
2012-04-12 06:47:45 +01:00

 OpenEmbedded BSP Layer - RaspberryPi
--------------------------------------

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:

* Distro-less (only with OE-Core).
* Angstrom (main focus of testing).
* Yocto/Poky.

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
-------------------------------

This layer depends on:

URI: git://git.yoctoproject.org/poky
branch: master
revision: HEAD

URI: git://git.openembedded.org/meta-openembedded
branch: master
revision: HEAD

How to use it:

1. source poky/oe-init-build-env rpi-build
2. Add needed layers to bblayers.conf:
    - meta-raspberrypi
    - meta-openembedded/meta-oe
3  Set MACHINE to raspberrypi in local.conf
4. Add to local.conf:
    BBMASK = "rpi-zram-service"
5. bitbake rpi-hwup-image
6. dd to a SD card the generated sdimg file (use xzcat if rpi-sdimg.xz is used)
7. Boot your RPI.

Optional - compressed deployed files:

1. Overwrite IMAGE_FSTYPES in local.conf
	IMAGE_FSTYPES = "tar.bz2 ext3.xz rpi-sdimg.xz
2. Overwrite SDIMG_ROOTFS_TYPE in local.conf
	SDIMG_ROOTFS_TYPE = "ext3.xz"
*Accommodate the values above to your own needs (ex: ext3 / ext4).

Layer maintainer: John Willis <John.Willis at distant-earth.com>
                  Andrei Gherzan <andrei at gherzan.ro>
Description
Hardware specific BSP overlay for the Raspberry Pi devices
https://yoctoproject.org/
Readme 4.8 MiB
Languages
C 66.9%
BitBake 32.8%
Shell 0.2%