Skip to content

HopOS v3.2.2

Latest

Choose a tag to compare

@derekdhaas derekdhaas released this 10 Nov 17:48
· 9 commits to main since this release

HopOS v3.2.2. Where the kernel and Hop run is now configuration in every image, and fully settable. With Hop v3.2.1 and lean v3.2.0.

  • Each board's image carries its placement as active config lines (image/cfg/<board>.cfg, after the flavor's config), for example on the LicheeRV:

    hopos.system.core=0
    hopos.system.sharegroup=system
    hopos.hop.sharegroup=hop
    hopos.hop.core=1
    

    hop image <image> shows them; your own lines after them win.

  • New keys: hopos.hop.core=N gives Hop's group exactly that core; hopos.system.coreclass=small|mid|big picks the OS core by class; hopos.system.sharegroup names the OS core's group (default system; Hop in the same group lives next to the kernel).

  • Renamed: hopos.oscore is hopos.system.core, hopos.oscore.asid is hopos.system.asid, hopos.hop.core-class is hopos.hop.coreclass. An own config with the old names is ignored on those keys: rename them.

  • LicheeRV: reads hopos.system.core (0, the C906B; any other value is refused loudly).

A warm flip from 3.2.x keeps the node's own config; from 3.0.x write the boot medium once.


HopOS v3.2.2, 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.coreclass
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:

37f8fc9fa98a12b5ff37eb299e9ad7f18bac09c308fd225876d04515f104a1cb  appspike-arm64.elf
dfbed35810ada2d7ae2114de7c6745209670d8e5843d269782ddc38bf6c3b2bd  appspike-riscv64.elf
0ecf86e2f261f157a84d5f16f24798a409fe001a6f294e27a09e68bc52868bf8  bench-arm64.elf
de181ebea3cd4c1aa2b307b0660c1d29406903eac0a039c054600ea1e095d200  cloudflared-arm64-tamago.elf
cc810064553f8d509c714e579ce34f82bad616352ea3e827a8fad19840cdce15  decode-arm64.elf
2c48ab41aa55968a0a8089bf487a54ec29caf7bf84be32703f811ba5b9855614  display-arm64.elf
f48e99d6a82be266314809911dd12c240a24bdf6df38a787ee160737955d5c52  hopos-altra-headfull.flip
7eb2f8ef1d926840807456491c5ab988e970588628a4dab2daa4995c8f35b7f6  hopos-altra-headfull.img.gz
a7c7b955cf41786f96788672ddf49e82431fd3d5c9f8c79ca29a0fb11b0361de  hopos-altra-headless.flip
ce6952c352f6f8572d77855e53fae14493a3b71cdf0f1b199dd073ec70897e94  hopos-altra-headless.img.gz
e87de4d21334430901b5ed30cb2c94d3e0956ce8bccc56df4c3995a51a7507bc  hopos-apple-headless.flip
dcdf3e69e3205d753efde126020c4136ac15b13802cd5a6483f884ff9b31bc30  hopos-apple-headless.img.gz
94ed8e4c66eea8c55d43d06d91aa45be934606025e2737376ced35024f286c98  hopos-licheerv-fip.bin
3c69b633d906c355f2eb7e7bda16006d59ef0b6a9fdcca340e68472277e36bcd  hopos-licheerv-headless.img.gz
0050b9710386da1a074019bbb914c62feaa9c1774fbcec61d385a7b6a948e0a9  hopos-o6n-headfull.flip
3f0dd4cceb3588fae806e3d4c9cf29f8c452e20351ca378cfb6b38939225b25e  hopos-o6n-headfull.img.gz
0d4110c6bea6beba35d97891eb113ee015bf48a264a62640b58ac8ade906c012  hopos-o6n-headless.flip
95a583a351a88a228ccc160e8f2612523f15c0b8c59f4fe2483d5d704baaa498  hopos-o6n-headless.img.gz
6f7fe9af468aeb4546e2846dbf6e4b2e144a8a81fb62eae89d73af5ad7294498  hopos-radxa-headfull.flip
ed18fc47ffcbce75e0eec0fb26bba7121c9a68af670c5d0f6b429fe2c7843259  hopos-radxa-headfull.img.gz
0d91cf2e9557be05e4992591b57d007d151ffc1f722d877d609f667ff4bb8736  hopos-radxa-headless.flip
2242033711b52c94ad161a95c7922ce5010dde68030c520598a06ae376288cee  hopos-radxa-headless.img.gz
5375973fda9a9da23c5b9300e40f6a77431281cef7cacf718aa5766567f26efb  hopos-rpi4-headfull.flip
90dc743ecc1e61b6b85fd50cd221f631defb3c788755264a6018b0f2c2124885  hopos-rpi4-headfull.img.gz
693507aa78f86397ad4cd3e9e062ae4c15cf6799b682f4bb348cf67d64e2b8d3  hopos-rpi4-headless.flip
e72c27e1bb72e953ddb9a4ae6572789ea1d0a0595191a78108d108929e961a4e  hopos-rpi4-headless.img.gz
4c8050c7633dfef218f4bdf77ecda23e6d09b59690b0970f07ed71a3f795b871  hopos-rpi5-headfull.flip
24f1cbd90fec19ab6e532b841e5d323ee29c8603c7ca77256ab1448013a9e5ef  hopos-rpi5-headfull.img.gz
473c21f839ecb78c5cf3d1fd6525f0726d40e296915a32258390b7a2b7abad87  hopos-rpi5-headless.flip
381265095a9412e2eea95656f619e95383db7203d3388403e6159727c4225af8  hopos-rpi5-headless.img.gz
74f1b24959df37296cd553570fe0703ca274044fe41a0e4f487feca373235352  syncprobe-arm64.elf
1ebacc01675b47965cecf3ab1d48f311cd5b6816d7959dbb7956bd8037086e65  vitals-arm64.elf
f5f04592388afba24af70dce000b598123d7853b6cc3a1b9ba85697a05b99e98  welcome-arm64.elf
03fc18ad23b173de1c431db0718ef684fd44e774a82abaff9094f8b998e20f66  welcome-riscv64.elf