Go to file
Christopher Clark bfde594164 sdcard_image-rpi.bbclass: enable extensible inclusion into boot
Add DEPLOYPAYLOAD, similar to the existing FATPAYLOAD, to enable
adding files to the boot partition from the image deploy directory.
Files such as hypervisor binaries may not be present (and in fact
unwanted) within the root filesystem, so FATPAYLOAD is not sufficient.

DEPLOYPAYLOAD is implemented with support for file renaming from the
source file in the image deploy directory to the filename written into
the boot image. DEPLOYPAYLOAD is a space-separated list of entries for
additions, each of which can optionally be colon-separated:
    <image deploy directory file>:<destination filename>

If the colon separator is omitted, the source deploy directory filename
is used as the destination filename.

The support for specifying the destination filename is used for
including Xen, which produces a machine-specific file in the image
deploy directory, and is written to the image partition with its
expected filename: xen.

Files that are to be included from the image deploy directory will
be produced by tasks that the do_image_rpi_sdimg[depends] must list,
so enable adding entries to that via a new variable:
RPI_SDIMG_EXTRA_DEPENDS.

These changes enable retiring a Xen-specific Raspberry Pi SD card
bbclass from meta-virtualization and have been tested on the
Raspberry Pi 4.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
2020-08-10 11:10:11 +01:00
.github PULL_REQUEST_TEMPLATE.md: Add pull request template 2017-05-12 20:41:05 +01:00
classes sdcard_image-rpi.bbclass: enable extensible inclusion into boot 2020-08-10 11:10:11 +01:00
conf conf/machine/include/rpi-base.inc: Added can1 interface to bsp 2020-08-10 11:10:11 +01:00
docs docs/extra-build-config.md: Document CAN_OSCILLATOR variable 2020-08-10 11:10:11 +01:00
dynamic-layers Revert "qtbase: Drop xkb packageconfig" 2020-04-08 22:32:06 +01:00
files/custom-licenses bcm2835-bootfiles: Clarify license conditions 2019-10-24 14:08:16 +01:00
lib/oeqa/runtime/cases oeqa: Add rpi specific kernel dmesg parser 2020-03-17 10:33:56 +00:00
recipes-bsp rpi-config: Add CAN_OSCILLATOR variable to set mcp2515 crystal frequency 2020-08-10 11:10:11 +01:00
recipes-connectivity lirc_%.bbappend: Remove 2020-06-25 10:36:52 +01:00
recipes-core packagegroup-rpi-test: resolve wireless-regdb conflict 2020-07-14 18:27:52 +01:00
recipes-devtools rpio: Use python3 during build 2020-01-24 12:09:42 +00:00
recipes-graphics userland: Update to 2020-06-24 top commit 2020-07-14 18:27:52 +01:00
recipes-kernel Revert "Generalize the naming of the bootfiles deploy directory" 2020-08-10 11:10:11 +01:00
recipes-multimedia gstreamer: Fix the compilation issue in meta multimedia image 2020-03-10 17:24:09 +00:00
wic sdimage-raspberrypi.wks: find /boot partition on mmcblk0 2018-03-07 23:35:18 +00:00
.gitignore docs: Initial sphinx configuration 2017-05-26 12:16:52 +01:00
COPYING.MIT COPYING.MIT: Add license file for the metadata. 2012-04-03 20:44:03 +01:00
kas-poky-rpi.yml kas-poky-rpi: add kas file 2020-01-22 18:09:10 +00:00
README.md docs: Remove reference to xz-compressed sdimg 2020-05-23 10:07:46 +01:00

meta-raspberrypi

Yocto BSP layer for the Raspberry Pi boards - http://www.raspberrypi.org/.

Build Status Build Status Build Status Build Status Documentation Status Matrix

Description

This is the general hardware specific BSP overlay for the RaspberryPi device.

More information can be found at: http://www.raspberrypi.org/ (Official Site)

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.
  • Yocto/Poky (main focus of testing).

Dependencies

This layer depends on:

  • URI: git://git.yoctoproject.org/poky

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

    • layers: meta-oe, meta-multimedia, meta-networking, meta-python
    • branch: master
    • revision: HEAD

Quick Start

  1. source poky/oe-init-build-env rpi-build
  2. Add this layer to bblayers.conf and the dependencies above
  3. Set MACHINE in local.conf to one of the supported boards
  4. bitbake core-image-base
  5. Use bmaptool to copy the generated .wic.bz2 file to the SD card
  6. Boot your RPI

Quick Start with kas

  1. Install kas build tool from PyPi (sudo pip3 install kas)
  2. kas build meta-raspberrypi/kas-poky-rpi.yml
  3. Use bmaptool to copy the generated .wic.bz2 file to the SD card
  4. Boot your RPI

To adjust the build configuration with specific options (I2C, SPI, ...), simply add a section as follows:

local_conf_header:
  rpi-specific: |
    ENABLE_I2C = "1"
    RPI_EXTRA_CONFIG = "dtoverlay=pi3-disable-bt"

To configure the machine, you have to update the machine variable. And the same for the distro.

For further information, you can read more at https://kas.readthedocs.io/en/1.0/index.html

Maintainers

  • Andrei Gherzan <andrei at gherzan.ro>