Giter Club home page Giter Club logo

zeroplayerbuild's Introduction

Zeroplayer

This yocto-based buildsystem uses a Docker container for the build of a Raspberry Pi zero-w image. The Dockerfile is located in folder docker and based on crop porky ubuntu-18.04 (https://github.com/crops/poky-container). The Docker image contains all tools to build with the OpenEmbedded/Yocto buildsystem. The workspace is created in a volume directory given by the the host.

The buildsystem uses the Google repo tool (https://android.googlesource.com/tools/repo) to setup the Yocto layer structure (i.e. checkout all repos).

To know, what to do, when you start the raspberry pi with the image sd card, please have a look at the wiki: https://github.com/yorns/zeroPlayerBuild/wiki/Get-started-and-work-with-the-zero-player

Usage

Checkout the right branch (start should be master branch).

git clone https://github.com/yorns/zeroPlayerBuild.git
cd zeroPlayerBuild

Build the Docker image:

cd docker
export WORKDIR=$HOME/tmp/workdir/
mkdir -p $WORKDIR
docker build . -t crops/poky
docker run --rm -it -v $WORKDIR:/workdir crops/poky --workdir=/workdir

In case you have set the docker environment, on a second run, you can do:

cd docker
export WORKDIR=$HOME/tmp/workdir/
docker run --rm -it -v $WORKDIR:/workdir crops/poky --workdir=/workdir

Start a yocto build

inside the running Docker container or on a host which has all required build host packages installed: https://www.yoctoproject.org/docs/current/yocto-project-qs/yocto-project-qs.html#packages

git config --global user.email "[email protected]"
git config --global user.name "Your Name"
repo init -u https://github.com/yorns/zeroPlayerBuild.git
repo sync
. setup-environment
bitbake zero-image

again, in case you are here for the second (or third ...) time:

repo sync
. setup-environment
bitbake zero-image

The final images are stored on the host at (please set WORKDIR variable in that environment if necessary) in $WORKDIR/build/tmp/deploy/images/raspberrypi0-wifi/zero-image-raspberrypi0-wifi.rpi-sdimg

Writing the image to an sd card

sudo su
dd if=/home/yorn/tmp/workdir/build/tmp/deploy/images/raspberrypi0-wifi/zero-image-raspberrypi0-wifi.rpi-sdimg  of=/dev/mmcblk0 bs=1M status=progress

In case you want to reuse the generated blobs (and only update changes), find some hints here

https://github.com/yorns/zeroPlayerBuild/wiki/Tips-and-Tweaks

zeroplayerbuild's People

Contributors

yorns avatar bjoe avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.