Repository navigation
HopOS v3.2.0-rc7
Pre-releaseRelease candidate 7, the one to test on hardware. The last candidate before v3.2.0: every board once cold, then one warm flip. QEMU: all 33 rings green.
Since rc6: applib retries a system call once on a fresh connection after a timeout. On the Pi 5 (07-11) Hop fell 8 s after every warm flip: its long wait NEXT_STORE left just before the jump, kernel A acknowledged it, kernel B never knew the connection, and a timeout was fatal. A silently dead peer only shows as a timeout, so that is now one retry; a kernel that really hangs is still fatal, after 2 × 10 s. The fix is in Hop's applib, so a node takes it with a cold boot of rc7 (card or stick), not with a kernel flip.
Since rc5, in rc6 (the cleanup round, docs/sequence-hopos.md §15):
- The flip has no flight recorder anymore (
HOPOS_FLIP_LASTandHOPOS_FLIP_ARCHIVEDare gone): after a reset, tcp/5555 replays what the new kernel said last (the console ring survives the reset). One bundle format. - On the Radxa and the Mac mini M4 the flip trampoline has its own page; the heap ends one page earlier, and the link fails if it ever runs into it.
- DHCP: one client that keeps asking (rounds of 3 s) until a lease comes; the boot guard (120 s) is the end. The console says
dhcp: asking for a lease for <mac>, until one comes. - A connection of a stopped app ends on a stop bell instead of a 100 ms check.
- Smaller SDK edge:
App::network_ready,Ctrl::rx_door,Env::from_bytesandNic::deferringare gone from applib. - Hop v3.2.0-rc7:
POST /fliptakes onlyurlandsha256; its HTTP park waits on a bell when all workers are busy and no longer closes good keep-alive connections.
Since rc2 (rc3 to rc5): applibhttp (the HTTP server of an app, opt-in: an acceptor with a park for idle keep-alive connections and a fixed pool of workers; welcome and vitals run on it), lean v3.2.0-rc3 (one request per serve call, a listener backlog of 64), and the measuring apps httpprobe and httpload.
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::Slotslists the live slots, the cage block of a slot comes from the pool. - One flip entry on every arm64 board (x3 /
FLIP_ENTRYgone), noStagedRole: 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 Linuxadjust_link. - No storage answers "not found" on every file call.
- On UEFI (O6N, Altra) a warm flip keeps the kernel's own map intact (every change goes through
Board::remap, into the stub's tables, not the heap) and the screen comes back after a flip (the GOP travels in the facts page). - lean v3.2.0-rc3 (ISS from a 16-byte secret, every dial has a deadline, ARP/NDP ask 3 times) and Hop v3.2.0-rc7 (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 rc7 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 and, headfull, HOPOS_FB_CONSOLE again (O6N, Altra), and on the M4 the same hopos x<boot_args> line as the cold boot.
HopOS v3.2.0-rc7, 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 (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:
e71c87be23d73fc4394ab8014472a67d7230054f058afd3d27cdaa912b049301 appspike-arm64.elf
a2651fbc1f082467b52c52988a12d80a77b90bf5e7c128499102da2adc5c542b appspike-riscv64.elf
7299fc51a42edbe753c36feb5770c9d00b4de2827ef2f5208b936aca257464c1 bench-arm64.elf
b77151eda783cc30e9c6889643c18d155d4ca7e088cfc3b761cedb100a6cd1ec cloudflared-arm64-tamago.elf
d1ae47f434b12f3b7905d7dba8185cdb916b5ff208566f4d7f0be75021900de0 decode-arm64.elf
5c156a2381cb2e661dac6185c20b4d05c32024f81d69c93dba97bcddbc8ecaff display-arm64.elf
a130c707162c1f2124995401ad1c68b0581674aac7041c6b7adaa9b0473c1613 hopos-altra-headfull.flip
c94534dc69f6b99e47407b6f82606a376c57bbda2b083b28c1590d2fca328774 hopos-altra-headfull.img.gz
65599f13780bf9959f875988486ed5b6544495c6b7cca7ef2fc5865ba3a1b70e hopos-altra-headless.flip
f577b4ba093a9556a64e4d1f1fbb5f560008821dcb0962f5d789bc151ded84b5 hopos-altra-headless.img.gz
a221c6f4705ebac6784bbd874a2d4f340925e14a1c096fb9fac7b78462814d28 hopos-apple-headless.flip
32c4f5a1f7702d937cda3c2d40f948268b10ae72dbdf0fd04885022aed2aef3a hopos-apple-headless.img.gz
d0527388d934ab18c1d5d730b080537738817cb63009432089262b8907b8c1b8 hopos-licheerv-fip.bin
a4512a0e3fd8e8a1c1b89018c5cc9476c4761f8d5de0356740493609f536898c hopos-licheerv-headless.img.gz
6ad52f25b25b1509629fd048969da1ca956442cba0fb4d6d2e0f1cd5f5c4a2cf hopos-o6n-headfull.flip
edb6af9c2a6f746d8825e45173e7c590d305fae4ec7bc3acad30a40601781d19 hopos-o6n-headfull.img.gz
32bcba28eb62ec8d74453a52e5559a39fb35d7c05cb48618869e0d227acb2467 hopos-o6n-headless.flip
2613d2acd1460b9e9b163026288e5fc6e56aabc6e069edbf663a944c459f9bb7 hopos-o6n-headless.img.gz
47eefaf58d325857e4dc13208a80e84976367a5277e957ff6839c6e1e4ed5723 hopos-radxa-headfull.flip
03099c6b86f9ed627a0071a319f0ae6279b148ce76b82b5ae8f979c2c3022b5a hopos-radxa-headfull.img.gz
662389e614f0cb1b8003df13bfa8c0c7cd6eac8b29acb45964704c8136ad0089 hopos-radxa-headless.flip
7d08958d09960db78380ce9e27ab09966493a7e8d9306e2db88c78c7b89589a9 hopos-radxa-headless.img.gz
a1f5d4b9ccb89e62505b5680a145abe85f946a41eca3a1e4475b2adfe27646bc hopos-rpi4-headfull.flip
53e4a19ffcc7511f34d445bf06371d1a5872bc2c4e91563084cbd1816d56a547 hopos-rpi4-headfull.img.gz
a74845a3ba378e821824f71b48f08b48fbc38cf4dc0b5152389633a79ebb847e hopos-rpi4-headless.flip
40620c3b8fb4bab6b3faf79dbc90bf852bb492f10370dae54aa5ac449058da76 hopos-rpi4-headless.img.gz
e32b3b9d0c2263ca8903715758d36332b2beef2ccfc79a2aa6f92bc5c1541fb0 hopos-rpi5-headfull.flip
d87913c1dbe9f7f632276064512d57bc7bf2e4a0b2a34e36cf4cd9cd99ceb8e1 hopos-rpi5-headfull.img.gz
f3e5b511eb8cc040c7aef4ceb962b564c8d97de321c8aed5b215fdce45cdf816 hopos-rpi5-headless.flip
bd78457e0f8a19dec869327dd9259caaab3eafdba146c5d59c53ff1d73e82482 hopos-rpi5-headless.img.gz
eaa8d9f40cf8d528f07c4539b897b87187a0135f9935ef8bddc22a112fbf96cf syncprobe-arm64.elf
ccf31fb91ad7894468c59b1dcbf22041d5e69e3c8a08c7384f377bbd6b85f18a vitals-arm64.elf
6eea7680374f0f04f04f2af193404687dac01eff1f82e776ab0c477c6fa4936c welcome-arm64.elf
8b97df254463a25cea21138bd8268428aa469379089bcefdef25d9ddbdb561be welcome-riscv64.elf