# Yocto ... ## Get the repository ```shell mkdir yocto-bf cd yocto-bf repo init -u "https://git.blackfinn.de/yocto/linux-blackfinn.git" repo sync ``` ## Build environment For details see . ### Execute ```shell 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 ```shell MACHINE= source blackfinn-init-build-env ``` Supported machineconfs: * qemuarm * beaglebone-yocto * raspberrypi3-64 * raspberrypi4-64 ## Build the Image ```shell bitbake ``` Supported images: * console-image * console-dev-image * docker-image ## Flash the Image ### beaglebone-yocto ```shell dd if=tmp/deploy/images/beaglebone-yocto/docker-image-beaglebone-yocto.wic of=/dev/ ``` ### raspberrypiX-64 ```shell 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/ ``` ## opkg package handling ### Build index ```shell bitbake package index ``` ### Synchronize packages ```shell rsync -avz --progress build/tmp/deploy/ipk/ /srv/files.blackfinn.de/data/yocto/gatesgarth/ ```