Skip to content

HopOS v3.2.1

Choose a tag to compare

@derekdhaas derekdhaas released this 10 Nov 13:58
· 11 commits to main since this release

HopOS v3.2.1. The same kernel as v3.2.0 with a clearer default config, cages without a switch, and no hoplockserver. With Hop v3.2.1 and lean v3.2.0.

  • The default config shows every key. headless.cfg and headfull.cfg list each key a user sets, most of them commented out with an example: the node name and its MAC (on the Radxa and the LicheeRV derived from the name), access (hopos.insecure=0 with hopos.apikey), storage, where the kernel and Hop run per board (on the LicheeRV the kernel on the C906B with the apps, Hop on the C906L), init jobs with welcome as an example, an S3 bucket, a cluster, and the time server. Remove the # to switch a line on. hopos.console is gone from it: the console over TCP follows hopos.insecure.
  • Cages are always on. hopos.cages and the Mac mini M4's own OS-core preflight are gone; a red preflight used to leave the node running without apps. The kernel's self-test (HOPOS_OS_SELFTEST) checks the same and stops the node when it fails, on every board.
  • A cluster uses S3 or runs standalone. The hoplockserver is gone from Hop, and with it hopos.lock.url and hopos.lock.apikey: hopos.lock.type=s3 with the hopos.s3.* bucket is the cluster lock. For tests and playing around, the hop repo has tools/fakes3, an in-memory S3 with the compare-and-swap a lease needs.

A warm flip from 3.2.0 is enough; from 3.0.x write the boot medium once.


HopOS v3.2.1, the Rust generation. Every board comes in two flavors:
headless (no gui) and headfull (gui, plus media on the O6N). The
config in each image is one file per flavor from image/cfg:
headless.cfg (open on your own LAN: no API key, console over TCP) or
headfull.cfg (the same, and welcome on port 80). Where Hop lives is
the board's default: the OS core on the Pis and the Radxa, a core of his
own, a small one where the board has them, on the O6N, the Altra, the M4
and the LicheeRV (hopos.hop.sharegroup and hopos.hop.core-class
override it). A node without hopos.node names itself after its board
and the tail of its MAC (rpi4-4c54).

Board Headless Headfull
Raspberry Pi 4 hopos-rpi4-headless.img.gz hopos-rpi4-headfull.img.gz
Raspberry Pi 5 hopos-rpi5-headless.img.gz hopos-rpi5-headfull.img.gz
Radxa Zero 3E hopos-radxa-headless.img.gz hopos-radxa-headfull.img.gz
Radxa Orion O6N (USB stick) hopos-o6n-headless.img.gz hopos-o6n-headfull.img.gz (media)
Ampere Altra (USB stick) hopos-altra-headless.img.gz hopos-altra-headfull.img.gz
Mac mini M4 hopos-apple-headless.img.gz (USB stick: image, installer, README) none
Sipeed LicheeRV Nano hopos-licheerv-headless.img.gz none

Every image carries its node config (hopos.cfg) inside the kernel, in a
16 KiB config window, the same on every board and in every flip bundle. Put
your own config in (hopos.node, hopos.apikey, your jobs) and write the
card or stick in one go with the hop command from
hop; your own lines go last, the last
value of a key wins:

gunzip hopos-rpi4-headless.img.gz
cat headless.cfg my-node.cfg >node.cfg
hop image hopos-rpi4-headless.img --config node.cfg --write /dev/rdiskN

hop image <file> shows the config in an image, a bundle or on a card;
--keep writes a new image but keeps the config already on the card.
Without hop: gunzip -c hopos-rpi4-headless.img.gz | sudo dd of=/dev/rdiskN bs=4m
gives a node with the default config of its flavor.

The M4 stick is not a boot medium: write it to a USB drive, boot the mini
into Recovery and run sh /Volumes/HOPOS/install.sh go (the README on
the stick has the steps); from then on the Mac powers on into HopOS.

Kernel flip bundles, hopos-<board>-<flavor>.flip, replace a running
kernel without a reboot (docs/flip.md): put one on a web server and
curl -X POST http://NODE:8080/flip -d '{"url":"...","sha256":"..."}'
with its sum from SHA256SUMS. A bundle's config window is empty, so the
node keeps its own config over the flip; hop image <bundle> --config <cfg> gives it another one (and prints the new sha256).

Apps (rolling release apps,
named <app>-<arch>.elf): appspike, welcome, bench, display, vitals, syncprobe, decode for arm64;
appspike and welcome for riscv64. Jobspecs in jobs/.

SHA256SUMS:

c913d63c78dcbc3055d51f9bfdf851d4c9e395a1c0c66eb5404a81f00feba075  appspike-arm64.elf
9ebb2119efefbabe9ac3ad3fdf01fc54d8bd2220c7f08047b22583e0766c1e55  appspike-riscv64.elf
d0b891ec1e8b6764bf9c57236bf2f91f8e05e892e9382eba9641bc323fecf026  bench-arm64.elf
c748b137fd0487af20c79093c97375dfe60b8524eac96bc595af4c1f3b813232  cloudflared-arm64-tamago.elf
102f050e66cc731aa8882ff90349c650a1994cbd9d9afdf9f8b84ad858701467  decode-arm64.elf
55fef8c7efe7bcee80da883d7aaf2ecd6e2c8eafd7cd6e9662da6d26795401e5  display-arm64.elf
50ffb6187aa67bb3e1b534ca5b5a93589a00896086b2eda9c7c107069b695442  hopos-altra-headfull.flip
1f8f493ab2f02eea8915dadcb6f3081b2c83708ac2e45999173f3d99648de203  hopos-altra-headfull.img.gz
6942c4048a6748be37c3c7b23074829a47f9e6fe205697a5f7fabca6cd885c60  hopos-altra-headless.flip
4fc3dc814951eef34a1aace39e2cfe5e5e1850fb2cf437037e22a160d1f4a6e4  hopos-altra-headless.img.gz
2bb748e04bf4fb19a2f6d7d2639bffc02854d7533417e91774578d1af8e1e5fa  hopos-apple-headless.flip
321b45750008c86301c85b8a02eed90ee5d8759e57af0ce59ddaaa8f38dcc220  hopos-apple-headless.img.gz
fe0d84642c6882317401b2df17e686f907861b4a0cae501a37f7d207381cf5cd  hopos-licheerv-fip.bin
9eb995682f49540ca0f59bb5ddc341ed107399127be4c2fa8094fbbfafe119ad  hopos-licheerv-headless.img.gz
2ecc7d4310954b3acd091305327e88781cca7852e52fee2595110b0f23af814b  hopos-o6n-headfull.flip
11ca7ce3e4ccea70559056781b5b2eca8a531b8e6cb3f42de439b7efbdd5a1bd  hopos-o6n-headfull.img.gz
ef7be648c9f113d967254801e62d0106bc6a9c7ed6d7fcf69cdd09fcd7a81297  hopos-o6n-headless.flip
85f4b0e2e963cdb82d0ed7edf43aff7143386deb82246efde716a946acf4d0dd  hopos-o6n-headless.img.gz
757abf6c761cc4c3a82faa2a4e2dd6bd16fc2227236912abde3f5d3375bab268  hopos-radxa-headfull.flip
604fa0ba341f9a5923b3775a853a940fb471bb8a91e50620ec10120765f6c0bd  hopos-radxa-headfull.img.gz
8b5f3eb32db8bc6c9128fc665a4632035ffc7b0806824055da9f55f3e51885f1  hopos-radxa-headless.flip
948eb05155c487530362beb2682d74c0ca0ee1fcb563fa68dccf9fc269744ec0  hopos-radxa-headless.img.gz
08699f42a6348c71b3cb30fc4e6a77796bad6498d1f3d8f67e126c6b42c430ad  hopos-rpi4-headfull.flip
c50b930caf754aced29ca585655161a8e02e54bda4367998d493c887adf2b89c  hopos-rpi4-headfull.img.gz
848014e1e0c148f59ed51490d6b27b200856e050ab88488858d1df03f3787780  hopos-rpi4-headless.flip
eb777d4fb880671f8c8684a24a82a1fc326108d277f6b448163eefd6d104b961  hopos-rpi4-headless.img.gz
a14ddbf0ee1fc014d20308b94632f5c8bf0dc639728c1ed036ad1d8b2c13a68f  hopos-rpi5-headfull.flip
981283a6b3ce62389e219911fd72bf3587fd21379c56e884798db6bcd35e0665  hopos-rpi5-headfull.img.gz
34865ef8bcf0d9c15680bcdba21fa7a733292d0fda058548811968e7466dfbeb  hopos-rpi5-headless.flip
201c3ebdc309e0f4500f8d7be6450c461a3e6550023bd4f626fba729ab91ec9b  hopos-rpi5-headless.img.gz
ebda4deab1af923a4392141f043ee2c8e45be46aeb83d25edcd5b1d301570f5c  syncprobe-arm64.elf
e282049604ad1f857a1e9052deaacffc888cc74a5a9a9bff5ec1cba06d9d2fe0  vitals-arm64.elf
a121a47645783d2019744fc066c7e49e1575c3150facdc9ed467ef2720f3f075  welcome-arm64.elf
f79b7fd1a14e161dddf525a98243d828ce965f050ef094aecaf27a69c40e1c2b  welcome-riscv64.elf