Yocto-based OS for Raspberry Pi
Go to file
2022-02-12 16:46:27 +01:00
docker switch to 64bit arm 2021-11-05 21:44:46 +01:00
keys Add RAUC updater 2021-11-08 19:44:55 +01:00
sample-files add device config to local.conf, fix dns 2022-02-09 15:39:36 +01:00
sources fix tsgrain-controller homepage 2022-02-12 16:46:27 +01:00
.editorconfig Add base project files 2021-11-03 17:36:32 +01:00
.gitignore Add base project files 2021-11-03 17:36:32 +01:00
.gitmodules Add RAUC updater 2021-11-08 19:44:55 +01:00
.templateconf Add base project files 2021-11-03 17:36:32 +01:00
bitbake Add base project files 2021-11-03 17:36:32 +01:00
LICENSE switch to 64bit arm 2021-11-05 21:44:46 +01:00
oe-init-build-env Add base project files 2021-11-03 17:36:32 +01:00
README.md add TSGRain application 2022-02-09 13:00:04 +01:00
run_docker.sh add run_docker script 2022-02-10 11:21:11 +01:00
scripts Add base project files 2021-11-03 17:36:32 +01:00

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