Skip to content

Start building 64-bit OS images in GitHub Actions - #416

Merged
ethanjli merged 109 commits into
masterfrom
feature/bullseye-arm64
Jun 7, 2024
Merged

ethanjli merged 109 commits into
masterfrom
feature/bullseye-arm64

Conversation

@ethanjli

@ethanjli ethanjli commented May 25, 2024 •

Copy link
Copy Markdown
Contributor

This PR closes #42 (and thus makes major progress on #136) by setting up a GitHub Actions workflow to build OS images in GitHub Actions, using a combination of https://github.com/marketplace/actions/run-pinspawn and https://github.com/marketplace/actions/run-piqemu to run the PlanktoScope OS setup scripts on Raspberry Pi OS images.

As part of #376 and #322, this PR also implements a decision made in the 2024-05-02 software meeting that starting with v2024.0.0-beta.0 we will build PlanktoScope OS as a 64-bit OS rather than a 32-bit OS (i.e. based on Raspberry Pi OS 11 (bullseye)'s 64-bit images rather than its 32-bit images), and that we will deprecate the 32-bit version of PlanktoScope OS for v2024.0.0 (so that it will no longer be officially supported, though for now everything will probably remain compatible with the 32-bit OS).

This PR also changes the ISO selector from a multibutton to a slider (fulfilling a request made by @fabienlombard on Slack), implementing a decision made in the 2024-05-02 software meeting.

Finally, this PR also includes PlanktoScope/pallet-standard#13 (which includes PlanktoScope/device-pkgs#12).

@ethanjli

ethanjli commented May 25, 2024 •

Copy link
Copy Markdown
Contributor Author

I tested a 64-bit image to ensure that all apps linked to from the landing page opened correctly. I also tested to ensure that I could acquire 10 images. Remaining TODOs:

@ethanjli ethanjli changed the title Update docs for 64-bit PlanktoScope OS Start building 64-bit OS images in GitHub Actions May 30, 2024
@ethanjli
ethanjli marked this pull request as ready for review June 6, 2024 05:59
@ethanjli

ethanjli commented Jun 6, 2024 •

Copy link
Copy Markdown
Contributor Author

The first boot of the planktoscope-pr-416-e3381cc+adafruithat.img.gz SD card image took 43 sec, with the following systemd-analyze outputs:

> systemd-analyze blame | head -n 10
15.999s forklift-apply.service
10.859s dhcpcd.service
 8.200s hciuart.service
 8.000s console-setup.service
 7.073s docker.service
 5.547s overlay-usr.service
 5.521s e2scrub_reap.service
 4.177s bindro-run-forklift-stages-current.service
 3.443s containerd.service
 2.811s dev-mmcblk0p2.device

> systemd-analyze critical-chain multi-user.target
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.

multi-user.target @40.840s
└─getty.target @40.839s
  └─[email protected] @40.837s
    └─rc-local.service @40.809s +22ms
      └─network-online.target @40.763s
        └─dhcpcd.service @10.318s +10.859s
          └─basic.target @10.092s
            └─sockets.target @10.092s
              └─cockpit.socket @9.862s +228ms
                └─sysinit.target @9.795s
                  └─systemd-update-utmp.service @7.979s +1.355s
                    └─systemd-tmpfiles-setup.service @5.911s +485ms
                      └─local-fs.target @5.425s
                        └─run-docker-netns-fbc87784d2e4.mount @37.938s
                          └─local-fs-pre.target @2.773s
                            └─systemd-tmpfiles-setup-dev.service @2.342s +430ms
                              └─systemd-sysusers.service @2.092s +187ms
                                └─systemd-remount-fs.service @1.842s +165ms
                                  └─systemd-fsck-root.service @1.474s +299ms
                                    └─systemd-journald.socket @1.353s
                                      └─system.slice @752ms
                                        └─-.slice @752ms

> systemd-analyze plot > boot.svg

boot-4

@ethanjli

ethanjli commented Jun 6, 2024 •

Copy link
Copy Markdown
Contributor Author

I tested the segmenter on a Raspberry Pi 4 with 4 GB of RAM, to ensure that the SKQ-ToTS_S015_tots-ps-acq-20 dataset (used in #163 (comment)). Segmentation took 48 minutes to finish, which is 8 minutes slower than the last time I ran the segmenter on 64-bit bullseye (but probably within a plausible margin of error).

@ethanjli

ethanjli commented Jun 6, 2024

Copy link
Copy Markdown
Contributor Author

I tested the hardware controller on a v2.6 PlanktoScope; the only problem I noticed is that ISO values above 650 are not allowed (because they go beyond the max allowed image gain). I will limit the max ISO in the planktoscopehat version of the Node-RED dashboard to 650.

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.

ci: Automatically (re-)build OS images reproducibly in GitHub Actions

1 participant