Skip to content

Ship one runtime-configured Bookworm ARM64 field package - #5

Open
dlubom wants to merge 11 commits into
mainfrom
codex/arm64-test-packages
Open

dlubom wants to merge 11 commits into
mainfrom
codex/arm64-test-packages

Conversation

@dlubom

@dlubom dlubom commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

Install or update a scanner

Use the same Bookworm ARM64 package on Pi 4, Pi 5, Pro CM4 and CM5 Direct. Sign in to GitHub to download it. Follow the first-install or upgrade instructions for your scanner. The package comment tracks rebuilds and expiration. Current package and checksum · Install, update and record the first scan on this revision

What changes on a scanner

  • One package reads wiring and operating settings from /etc/mandeye/device.json. Four profiles are included. Each scanner keeps its own GPIO, UART, optional GNSS and PPS settings across package upgrades. The recording drive carries mandeye_config.json for acquisition and the optional Picamera2 driver.
  • Fresh installation waits for an explicit profile. Activation uses an existing account, checks the devices and recording disk, and configures the controller and selected accessories. Each controller start checks the recording directory under the service account. Activation tracks PPS services it enables and restores service policy and account settings if activation fails.
  • Before upgrading, finish the recording, verify the final files and stop the actual controller service. The package refuses an active controller before unpacking. It preserves local units, aliases, drop-ins and boot policy. The operator chooses when to start it again. The guide covers the first migration of an autostarting CM5 Direct.
  • Each Actions build has a distinct Debian package revision. A successful build publishes one raw ARM64 download with its checksum and exact guide. A publisher-only retry can reuse the verified upload from that run.

Verification

Verified build Value
PR head 36b8f2caa1dba6bb5c5b48cf84bafd20745db776
Tested merge and controller /json/status revision b0ee7d1641bc48e4d2b3983a0989b595daec4df3
Debian package mandeye-multisensor, arm64, version 0.83+git1796389410.b0ee7d1641bc-47340041399.1
Downloaded file mandeye-multisensor-bookworm-arm64-b0ee7d1641bc48e4d2b3983a0989b595daec4df3-a1.deb
SHA-256 of the downloaded 9,873,134 bytes 2504b9023e2ba929d7315308b9fd372b6647f58f2b2289912c36bc7cf7e291b8
Expiration (UTC) 2026-12-18 13:24:19
  • The x64 build, formatter, package builder and both comment jobs passed. ARM64 Bookworm installed the .deb with APT and ran the packaged binaries. The workflow checked all four profiles, CaveTronic wiring, disconnected GPIO roles, optional camera settings and the precedence of the USB acquisition file. x64 build · Formatter · ARM64 build
  • With simulated sensors, Stop Record flushed a readable LAZ with matching IMU samples and status, left the scanner idle and allowed another recording. Four forced LAZ, IMU and status write failures produced USB_IO_ERROR, identified the failed file and cleared the previous success. CM5 Direct exited on its third USB error observation.
  • Four Bookworm VM boots covered first installation and migrations with the controller disabled, enabled or using a custom unit and a masked vendor service. Each case checked the running packaged executable through /proc, its mandeye user, its configuration and revision at /json/status, and the number of controller processes. Migration from the archived Pro CM4 package preserved the local JSON, full units, drop-ins and enablement. The tests also exercised rollback, PPS changes, a missing drive, a separate partition on the system disk and replacement recording media.
  • A full rebuild of the preceding revision withdrew the first link and produced a distinct Debian version. In a separate Bookworm VM, ordinary APT upgraded between those two downloaded files and separately from the earlier build to the final download listed above. The final change covers the copied GitHub jobs observed on a publisher-only retry. A live retry on the head above preserved the current download and its digest. Eighteen automated publication and summary tests cover fork association, stale revisions, retries, failure, cancellation and expiration. Live external-fork callbacks, manual dispatch and scheduled refresh can be qualified once these workflows are on the default branch. Full rebuild and APT upgrade pair · Publisher retry

Field acceptance

On each physical scanner, record the checksum, unit/account, actual drive and running revision. Reboot and open the final LAZ and matching IMU samples from the recording drive. Check the fitted LEDs, buzzer, buttons and optional camera. On CaveTronic's two-head scanner, check the USB benchmark, data and synchronization for each serial number alone, then together.

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Raspberry Pi OS Bookworm ARM64 field package

PR head 16d00543a022e0d25b810c62dad567ca2e22afd7 · Test merge 3dc97b3846db6e782ac50eb66bf283ec17b6034e
Installation and first scan

Download the .deb (sign in to GitHub).
File: mandeye-multisensor-bookworm-arm64-3dc97b3846db6e782ac50eb66bf283ec17b6034e-a1.deb

SHA-256: c218cc47b705754a7035f0e5d4c15ce290caef803740e24373bdbe397b122149

Expires 2026-12-19T06:55:42.000Z (UTC). After that time the package is unavailable until a new build.

Build 29, attempt 1

@dlubom
dlubom force-pushed the codex/arm64-test-packages branch 2 times, most recently from d762d68 to 305bf1d Compare December 2, 2026 12:15
@dlubom
dlubom marked this pull request as ready for review December 2, 2026 12:20
@dlubom dlubom closed this Dec 2, 2026
@dlubom dlubom reopened this Dec 2, 2026
Build native ARM64 packages for Raspberry Pi 4, Raspberry Pi 5, Mandeye Pro (CM4), and CM5 Direct with Raspberry Pi OS camera libraries. Upload the .deb files and link the packages for the current PR revision.
@dlubom
dlubom force-pushed the codex/arm64-test-packages branch from 3d72296 to e1b5bd6 Compare December 2, 2026 16:43
@dlubom dlubom changed the title Build ARM64 test packages for RPi 5 and CM5 Direct Build Bookworm ARM64 test packages for four Mandeye variants Dec 2, 2026
@cavetronic

Copy link
Copy Markdown
Collaborator

Thanks — I get the idea and It's ok!

What we need now

For the time being we will only test on two units: mine and Szymek's. So we only need packages for our hardware:

  • Hardware header: mandeye-cavetronic.h (Pi 4, 2× MID-360, sync on GPIO 3/2 + /dev/ttyAMA2, /dev/ttyAMA5). The header currently exists only locally on my Pi;
  • Service user: mandeye (my images have no pi account). Today a make install left mandeye_controller.service failing with status=217/USER until I added a drop-in with User=mandeye; a package would hit the same problem.

Szymek, please confirm your unit uses the same header and username, otherwise we'll add a second variant.

Other variants: prepared but disabled

Please keep standard-rpi4, standard-rpi5, pro-cm4-bookworm and direct-cm5 defined in the workflow but switched off for now (e.g. a matrix filter or a workflow_dispatch input), so we don't spend CI minutes on hardware nobody is testing. We can re-enable them with a one-line change later.

Keep it additive

We regularly sync with upstream, so please keep the changes additive to avoid merge conflicts:

  • add mandeye-cavetronic.h as a new file;
  • make the service user configurable instead of replacing pi: e.g. a CMake option MANDEYE_SERVICE_USER (default pi, so upstream behaviour is unchanged) and generate the .service files with User=@MANDEYE_SERVICE_USER@; the cavetronic build passes -DMANDEYE_SERVICE_USER=mandeye;
  • put cavetronic-specific packaging (postinst, enabled services) in separate files or behind the variant, not in the shared defaults.

Build and services for the cavetronic package

  • Build with FakePPS (mandeye_fake_pps) — this is how our two heads are synchronised. The postinst should enable mandeye_fake_pps.service together with mandeye_controller.service. Optional but useful: ship a drop-in with CPUSchedulingPolicy=fifo / CPUSchedulingPriority=80 for FakePPS (it cut PPS jitter from ~20–30 µs to ~10 µs on my unit).
  • Disable what we don't use: build with -DMANDEYE_USE_LIBCAMERA=OFF -DMANDEYE_BUILD_EXTRAS_MURATA_UART_IMU=OFF. Don't install or enable these services in our package:
    • mandeye_libcamera_cam0/cam1 (no cameras)
    • mandeye_extra_gnss, mandeye_slave_pps (no GNSS / external PPS)
    • mandeye_oled_status (no display yet)
    • mandeye_murata_uart_driver (no Murata IMU)
    • mandeye_ptp4l-gm-eth0, mandeye_phc2sys-gm-eth0 (Pi 4 has no hardware PTP clock; we sync with FakePPS)
  • Nice to have: the postinst could disable leftover units from older manual installs (e.g. mandeye_fakepps.service without the underscore), which on my Pi competed with the new FakePPS service for the same GPIO and serial ports.

Once a cavetronic package is built for this PR, I'll install it on my unit and test it the same way as #3 (service start, both heads, FakePPS, StopScan and continuous recording).

@dlubom dlubom changed the title Build Bookworm ARM64 test packages for four Mandeye variants Ship one runtime-configured Bookworm ARM64 field package Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants