Go to file
Martin Jansa 9d0935c9bb sdcard_image-rpi.bbclass: use -v for all mcopy calls and add bbfatal in case mcopy fails
* I have this in our layer for some time:
  RPI_KERNEL_DEVICETREE_OVERLAYS_append = " overlays/vc4-fkms-v3d.dtbo"
  because we're using vc4graphics also on raspberrypi3 and it was
  working fine until recently.

* now the default rpi-base.inc in warrior and master branch includes the same since:
  37aa050d5a
  and do_image_rpi_sdimg started failing with a bit useless log:
  ...
  Partition Table: msdos
  Disk Flags:

  Number  Start   End     Size    Type     File system  Flags
   1      4194kB  46.1MB  41.9MB  primary               boot, lba
   2      46.1MB  1145MB  1099MB  primary

  mkfs.fat: warning - lowercase labels might not work properly with DOS or
  Windows
  mkfs.fat 4.1 (2017-01-24)
  WARNING: exit code 1 from a shell command.

* after adding -v to mcopy calls I got slightly better log:
  ...
  Copying w1-gpio-pullup.dtbo
  Copying w1-gpio.dtbo
  WARNING: exit code 1 from a shell command.

* the issue is that mcopy behavior in non-interactive shell is to fail
  when the target file already exists (sometimes it seems to cause mcopy
  to hang forever), but when you execute the run.do_image_rpi_sdimg
  script manually in interactive shell it will nicely show this prompt
  on stderr:
  $ dtb=vc4-fkms-v3d.dtbo recipe-sysroot-native/usr/bin/mcopy  -i boot.img -s BUILD/deploy/images/raspberrypi3/$dtb ::overlays/$dtb
    Long file name "vc4-fkms-v3d.dtbo" already exists.
    a)utorename A)utorename-all r)ename R)ename-all o)verwrite O)verwrite-all
    s)kip S)kip-all q)uit (aArRoOsSq): o

* with the bbfatal the log is finally a bit more useful:
  ...
  Copying w1-gpio-pullup.dtbo
  Copying w1-gpio.dtbo
  ERROR: mcopy cannot copy TOPDIR/BUILD/deploy/images/raspberrypi3/vc4-fkms-v3d.dtbo into boot.img
  WARNING: exit code 1 from a shell command.

* the only exception is FATPAYLOAD where it was ignoring mcopy with || true
  before, I've added bbwarn, because even issues like mentioned there
  "vfat issues like not supporting .~lock files" are probably worth
  reporting as warning (why would people add .~lock to FATPAYLOAD if
  it cannot be copied into boot.img)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2019-08-06 14:18:54 +01:00
.github PULL_REQUEST_TEMPLATE.md: Add pull request template 2017-05-12 20:41:05 +01:00
classes sdcard_image-rpi.bbclass: use -v for all mcopy calls and add bbfatal in case mcopy fails 2019-08-06 14:18:54 +01:00
conf layer.conf: Add meta-networking to dynamic layers 2019-07-28 21:51:16 +01:00
docs docs/layer-contents.md: raspberrypi-cm3 is a stand alone machine now 2019-02-19 17:02:19 +00:00
dynamic-layers drbd: Disable for rpi machines 2019-07-28 21:51:16 +01:00
files/custom-licenses custom-licenses: Add directory to hold custom licenses 2013-03-13 19:42:27 +02:00
recipes-bsp armstubs: Error out when ARMSTUBS is not defined 2019-07-19 20:05:53 +01:00
recipes-connectivity bluez5: Fixed typo (RC_URI -> SRC_URI) 2019-07-18 17:00:07 +01:00
recipes-core packagegroup-rpi-test: Depend on wireless-regdb instead of crda 2019-07-30 16:47:13 +01:00
recipes-devtools wiringpi: Set major version 2019-02-19 14:17:12 +00:00
recipes-graphics xorg-xserver: Adapt bbappend to latest OE-core 2019-08-06 12:12:13 +01:00
recipes-kernel linux-raspberrypi: Bump 4.19 revision 2019-07-18 13:27:34 +01:00
recipes-multimedia omxplayer: remove hardcoded tune and arch from Makefile 2019-06-20 21:52:46 +01: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
README.md README.md: Use matrix chat room 2019-07-25 14:07:24 +01:00

meta-raspberrypi

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

Build Status Build Status Build 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. dd to a SD card the generated sdimg file (use xzcat if rpi-sdimg.xz is used)
  6. Boot your RPI.

Maintainers

  • Andrei Gherzan <andrei at gherzan.ro>