Skip to content

HopOS v3.2.0-rc1

Pre-release
Pre-release

Choose a tag to compare

@xinix00 xinix00 released this 01 Nov 23:31
· 48 commits to main since this release

Release candidate. Nothing in v3.2.0 has been tested on hardware yet; this rc is for that. QEMU: all 32 rings green.

Upgrading from 3.0.x needs the boot medium once. FLIP_ABI is 5 (one flip entry with the facts page in x0, handoff blob version 8), so a node on 3.0.x refuses these bundles before the 202. Write the card or stick, boot, and flip from there on.

What changed since v3.0.20:

  • No slot maximum: the kernel hands out the lowest free slot and a VMID per placement (no rollover; 8 VMID bits on the Pi 4 means the 256th cage does not fit), the slot LAN is 10.100.0.0/16, PrivOp::Slots lists the live slots, the cage block of a slot comes from the pool.
  • One flip entry on every arm64 board (x3 / FLIP_ENTRY gone), no StagedRole: a staged image is Hop. riscv64 still refuses a flip before the 202.
  • TX completion on the NIC's interrupt line on every driver (the 300 µs poll is gone), no hopos.nicirq (the board picks: MSI-X on QEMU-UEFI and the Altra, INTx 477 on the O6N, INTA on the M4), and no probe waits for the link: the MAC is set at the first link, like Linux adjust_link.
  • No storage answers "not found" on every file call.
  • lean v3.2.0-rc1 (ISS from a 16-byte secret, every dial has a deadline, ARP/NDP ask 3 times) and Hop v3.2.0-rc1 (clock before anything leaves the node, a kernel call without an answer is fatal, the app logs split from the one console, the sweep over PrivOp::Slots).

What to look for on the first boot (console, UART or tcp/5555). Every board with a PHY: first link pending (autoneg), then net: link up at N Mbps after N ms HOPOS_LINK_UP, then HOPOS_DHCP_BOUND. No HOPOS_LINK_UP means no link (cable, MDIO): the boot guard resets the node after 120 s.

Board Line to see
Pi 4 net: genet up, link pending (autoneg), RX and TX done on INTID 189
Pi 5 net: gem up, link pending (autoneg), RX and TX done on INTID 166 (RP1 MSI-X via the MIP)
Radxa Zero 3E net: dwmac4 at 0xfe010000 ... link pending (autoneg), intid 64 (RX and TX done), then link up at 1000 Mbps (the RGMII divider follows the link)
O6N ... link pending (autoneg), INTx on INTID 477 (SPI 445) ... HOPOS_NIC_IRQ, then link up at 2500 Mbps (NBASE-T can take 12 s); the NVMe stays MSI-X and shows whether the IORT is right
Altra net: igb ... link pending (autoneg), MSI-X via the ITS ..., first interrupt after N us HOPOS_NIC_IRQ
Mac mini M4 tg3: link pending (autoneg), net: tg3 INTx on AIC irq 1253 ... HOPOS_NIC_IRQ
LicheeRV Nano net: dwmac irq 31 on the PLIC (RX and TX done) HOPOS_NIC_IRQ, then link up at 100 Mbps

TX interrupt under load: with hopos.tick=1 during an upload, HOPOS_TICK shows nic(full= held=) above 0, err=0, irq(nic=) rising and no stall. A warm flip on the new entry (from rc1 to a later bundle): after HOPOS_FLIP_JUMP the bunny again, fdt: at the same address as the cold boot (Pi, Radxa), the UEFI facts back without HOPOS_UEFI_STUB (O6N, Altra), and on the M4 the same hopos x<boot_args> line as the cold boot.

HopOS v3.2.0-rc1, 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 three layers from image/cfg, the last value of a
key wins: default.cfg (open on your own LAN: no API key, console over
TCP), <board>.cfg (where Hop lives: 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) and headless.cfg or
headfull.cfg (the init jobs: headfull starts welcome on port 80). 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; stack the layers with your own lines
last:

gunzip hopos-rpi4-headless.img.gz
cat default.cfg rpi4.cfg 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 (attached to this release candidate; the rolling release apps stays on v3.0.20 until v3.2.0; named <app>-<arch>.elf): appspike, welcome, bench, display, vitals, syncprobe, decode for arm64;
appspike and welcome for riscv64. Jobspecs in jobs/.

SHA256SUMS:

e88fd064a761ce08ce77f8ca0e1685bade688923616fbe411b3050cd14412791  appspike-arm64.elf
fc586a964e82814e55f91083e78dd760673f1758ef17f0b1b43fe55c0d8fe303  appspike-riscv64.elf
4ebf428723011d95fe25c5766fc95348104b82c13d6d87f8bae5e4f2617c37c8  bench-arm64.elf
158a0feff4368db111caee189a4ef008edcafa00d90384954ca993f1c406cee4  decode-arm64.elf
e70770681fa071c9d9c523c93d1c18c0ec92b054293677e825d0695db3d06a55  display-arm64.elf
0eb454de8edd74c4ea1703f09b52e6b295f3f8e270f63589f305b0209e6ab724  hopos-altra-headfull.flip
d7492ff9c37ea65ea25c4db1bd41a59f48dfb19948ecc272be8eb3a3f054c179  hopos-altra-headfull.img.gz
8236bd24b8ab8d4527ef7e54b5fb5dc5944aca046a4885a7dbdd19ff92e802a4  hopos-altra-headless.flip
14d0db789b9cafc8785b58cf89c5e483d6c34e7b297d5a5e3c201c3810de5b12  hopos-altra-headless.img.gz
110183368733b28f1145407ef3342edce9c1f3c91fb5f6f4e7d92f19b8f66358  hopos-apple-headless.flip
19863275a8cb8711452349fb7a017a2501157e58756deccfcbe636a62742821b  hopos-apple-headless.img.gz
dd32c4522314a19bee16b635c31dc4dceb6ec7e83ae8a88056b39955d0370d6d  hopos-licheerv-fip.bin
14b6304e49d606a39f21686ad92d79680822096fc81c6bd8be33562b25e01e7c  hopos-licheerv-headless.img.gz
811b72dd0b03620b8f67e0d4e0913de2ab178cf830d877f4e45f6365a235383a  hopos-o6n-headfull.flip
af7e3a26ea321d64f684170781ca5593fa1707c3b7dd088b1cf19d2b0a02bf36  hopos-o6n-headfull.img.gz
a01db053ad5967655718740da97d0746a27f9f7940666c27deef57c7cdc5bc4e  hopos-o6n-headless.flip
b8eaa3ba0d9ea582fa0f79db37596bbfe3d06aceb03054173b0a49f2bbbb61bd  hopos-o6n-headless.img.gz
ca314f39dbaa2459edfe298146e8fb1aa04171b31f1b7b0cb1b8e9a5ff4d553b  hopos-radxa-headfull.flip
eaa4ae7b367a5f555609dd2baf6f00dbbec3f37fffbf384ca49175d783e7bb4d  hopos-radxa-headfull.img.gz
2beda6f045bf80aeb94e675eafcfa7b744942726c63a0328e8bd6dbaa6165693  hopos-radxa-headless.flip
2f514242cfe893415444eb7e433b0687f7180f5dacf8b8bc5f72b9330a82cbbd  hopos-radxa-headless.img.gz
c6066844c232b3be38ce26f43b01288de8d20e41587b2529546d67a7b2135d68  hopos-rpi4-headfull.flip
43fa7ad2c57aff89c1b76fbf12b22d1a9b95a35feb7d6d03bbede7a582702637  hopos-rpi4-headfull.img.gz
e32eef573483cff5d71db5f2058a872c2a9e73e158b8de105209ca4373caf7e9  hopos-rpi4-headless.flip
991a73ae41c6bc364b44351f19ef21a48a69c425a09c4d3438531eae9dfc1fe2  hopos-rpi4-headless.img.gz
fc2cb90df9be9633ab7106e45cfaaa283f95ce9e0c99dbe2f2d020124d452b99  hopos-rpi5-headfull.flip
b2356070b3242f297529351ae28f18662e53f9785d6acbd05c8ea7fbf493bb2e  hopos-rpi5-headfull.img.gz
a06c2b82bc8ad69bad5532cb92ffd3e66fbd60a8b0f15149508d95636b6d23aa  hopos-rpi5-headless.flip
cbf433d4c47e16974d5fc39176e49faf4207f374daccead20388ede2335d4617  hopos-rpi5-headless.img.gz
ceedbd89e9208e866a77820a5ec87eeaa34ec0271c513d1f1101874e4912a38c  syncprobe-arm64.elf
4c291af8e8032ccc2651f24e0af6764fd821bd77d2fa13d7a418f4312c8136fe  vitals-arm64.elf
f4d0fd25ea40d4f2b00d7f55eb46bc5df8ff874f5e3f751170cb55aec57f757c  welcome-arm64.elf
d6a164d756d08dde2fb8d21f88298f22d7e92357783842204c589732ba7f847f  welcome-riscv64.elf