Yocto-based OS for Raspberry Pi
| docker | ||
| keys | ||
| sample-files | ||
| sources | ||
| .editorconfig | ||
| .gitignore | ||
| .gitmodules | ||
| .templateconf | ||
| bitbake | ||
| LICENSE | ||
| oe-init-build-env | ||
| README.md | ||
| run_docker.sh | ||
| scripts | ||
TSGRain yocto os
This is the yocto-based linux distribution that runs the TSGRain irrigation controller.
Build image
# Use docker build environment
docker run -it --rm --privileged --user $(id -u):$(id -g) -v $(pwd):$(pwd) thetadev256/yoctobuild
. ./oe-init-build-env
bitbake tsgrain-image
Provision package repository
Build the package index and run a webserver in the package directory
bitbake package-index
cd {BUILD_DIR}/tmp-glibc/deploy/ipk
sudo python -m http.server 80
On the Pi, add the server to the opkg package sources
# Add to /etc/opkg/opkg.conf
src/gz all http://{hostname}.local/all
src/gz cortexa53 http://{hostname}.local/cortexa53
src/gz raspberrypi3_64 http://{hostname}.local/raspberrypi3_64
opkg update
Generate recipes for Python packages
pipoe --python python3 -p packagename