This repository is a simple embedded linux system being built for the raspberry pi 4 using the yocto build system.
There are two image targets:
hydrogreen-image— release, lightweighthydrogreen-image-debug— includes on-device build tools (cmake, gdb, git) for CLion remote development
# Source bitbake
source poky/oe-init-build-env
# Build release image
bitbake hydrogreen-image
# Build debug image (larger, includes dev tools)
bitbake hydrogreen-image-debug
# Upload to sdcard
sudo bmaptool copy tmp/deploy/images/raspberrypi4-64/hydrogreen-image-raspberrypi4-64.rootfs.wic.bz2 <sdcard_device_file>Ubuntu / Mint
Not supported by the yocto project and needs an additional fix before compiling:
sudo apparmor_parser -R /etc/apparmor.d/unprivileged_userns
On first boot the RTC has no time set. SSH in and set it once:
date -s "YYYY-MM-DD HH:MM:SS"
hwclock -wAfter this the time is preserved across power cycles.
The goal of the project is to collect vehicle data via can and rs485.
After that we send the data to the base station via lora. This is done using a program called telemetry.
The project documentation is written in Markdown and can be viewed using mkdocs with the following commands:
pip install mkdocs
mkdocs serveIt is also documented as part of an engineering degree publication under docs/latex/.
This can be built using the build.sh script after installing the right latex dependencies.