mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-29 19:36:20 -05:00
The Debian Live image builds tippecanoe at image time, but pi-gen did not, so a fresh Pi compiled it on first boot/upgrade via install_protomaps.sh -- a multi-minute, CPU-heavy C++ build on the weakest hardware WROLPi targets. This is the same "Debian bakes it, pi-gen doesn't" gap recently fixed for the React app build. Build tippecanoe 2.79.0 in the stage2 chroot, mirroring the Debian hook (SHA-pinned source tarball, which is arch-independent). Add the two missing build deps (libsqlite3-dev, zlib1g-dev) to the package list; build-essential was already present. With tippecanoe present at the pinned version, install_protomaps.sh's version guard skips the build on first boot and on upgrades, so the on-device compile only recurs when the pinned version actually bumps. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| stage2/04-wrolpi | ||
| build.sh | ||
| config.txt | ||
| README.md | ||
Pi-Gen
This directory exists to facilitate the creation of WROLPI Raspberry Pi OS images.
See https://github.com/RPI-Distro/pi-gen
Generate 64bit Raspberry Pi WROLPi image
-
Convert a map PBF file to your initial map DB dump:
docker run --rm -v /home/user/district-of-columbia-230111.osm.pbf:/data/region.osm.pbf lrnselfreliance/osm-map-dumper > pi-gen/stage2/04-wrolpi/files/map-db-gis.dumpThe output is already compressed (PostgreSQL custom format with
--compress 9).Verify the dump format is correct:
file pi-gen/stage2/04-wrolpi/files/map-db-gis.dump # Should show: "PostgreSQL custom database dump" -
Run the build (or, with a specific git branch)
-
Build release branch (default)
sudo ./build.sh -
Build specific branch
sudo ./build.sh -b master
-
-
The images are now in the
pi-gendirectory.