Go to file
Thomas Klaehn eb576c77b6 tmp
Change-Id: I621501b146de4440d9ad7087ce1cda88dc6d2346
2021-05-22 08:17:33 +02:00
default.xml tmp 2021-05-22 08:17:33 +02:00
Jenkinsfile jenkins: Use unified yocto model. 2019-03-16 06:45:08 +01:00
README.md tmp 2021-05-22 08:17:33 +02:00

Yocto

...

Get the repository

mkdir yocto-bf
cd yocto-bf
repo init -u "https://git.blackfinn.de/yocto/linux-blackfinn.git"
repo sync

Build environment

For details see https://git.blackfinn.de/docker/oe-buildenv.

Execute

docker run -it --rm --network host -v=/var/lib/sss/pipes/:/var/lib/sss/pipes/:rw -v $(pwd):$(pwd) -w $(pwd) -u $(id -u $USER):$(id -g $USER) oe-buildenv /bin/bash

Set Environment

MACHINE=<machineconf> source blackfinn-init-build-env

Supported machineconfs:

  • qemuarm
  • beaglebone-yocto
  • raspberrypi3-64
  • raspberrypi4-64

Build the Image

bitbake <image_name>

Supported images:

  • console-image
  • console-dev-image
  • docker-image

Flash the Image

beaglebone-yocto

dd if=tmp/deploy/images/beaglebone-yocto/docker-image-beaglebone-yocto.wic of=/dev/<sd_card>

raspberrypiX-64

bmaptool copy --bmap \
	tmp/deploy/images/raspberrypiX-64/docker-image-raspberrypiX-64.wic.bmap \
	tmp/deploy/images/raspberrypiX-64/docker-image-raspberrypiX-64.wic.bz2 \
	/dev/<sd_card>

opkg package handling

Build index

bitbake package index

Synchronize packages

rsync -avz --progress build/tmp/deploy/ipk/ /srv/files.blackfinn.de/data/yocto/gatesgarth/