Skip to content

HopOS v3.2.0-rc9

Pre-release
Pre-release

Choose a tag to compare

@derekdhaas derekdhaas released this 08 Nov 12:19
· 19 commits to main since this release

Release candidate 9. The same kernel as rc8; this release moves the project to its new home. HopOS and Hop now live in the GitHub organization hop-os (hop-os/HopOS, hop-os/hop), lean and the apps around it in haas-software. On hardware (from rc8): Raspberry Pi 5, Radxa Zero 3E and Raspberry Pi 4 boot cold and flip warm with Hop carried over; the LicheeRV Nano boots and runs apps on its big core. Still to test: Orion O6N, Ampere Altra, Mac mini M4. QEMU: all 33 rings green.

Since rc8:

  • New URLs. The releases, the rolling apps release, the jobspecs (Hop, Stulp, Spin) and the default configs point at hop-os/HopOS, hop-os/hop and haas-software/…. The old xinix00/… addresses redirect, so running nodes with an old config keep working.
  • lean comes from github.com/haas-software/lean: the same tag v3.2.0-rc3, the same commit.
  • Unchanged on purpose: the Go SDK keeps its module path github.com/xinix00/HopOS/metal/v2. That path is part of the slot ABI (the symbols slotHint and abiVersion), so Go apps built against v2.2.8 run as before.
  • No kernel code changed; a warm flip from rc8 to rc9 is enough.

Since rc7, in rc8:

  • One config per flavor. image/cfg holds headless.cfg and headfull.cfg (media on the O6N uses headfull), complete files, no layers. Where Hop lives is the board's own default in the kernel (system on the Pis and the Radxa, an own small core on the O6N, the Altra and the M4, the app hart on the LicheeRV); hopos.hop.sharegroup and hopos.hop.core-class still override it. Your own config: cat headless.cfg my-node.cfg.
  • Raspberry Pi 4, first boot of v3 on the board. The kernel sets its console UART itself: GPIO14/15 to the PL011 (ALT0) and the baud rate from the 48 MHz clock; the firmware leaves the pins on the mini UART, also with dtoverlay=disable-bt, so the console said nothing after the bootloader. And the GENET keeps its MAC in soft reset with local loopback until the link is up, as Linux does: reading a UniMAC register without the PHY clock was an asynchronous abort that only fell at the first switch to EL1 (the OS-core self-test), and the node reset every 20 s.
  • LicheeRV: the cage now also clears the scheduler block of the OS core. Since rc2 the kernel crashed in its first sleep on a stale resident-list pointer left in DRAM (arm64 always cleared it).
  • Radxa: the release image no longer names every board radxa-1. Without hopos.node it is radxa-0001 with the fixed MAC 02:48:4f:50:00:01, like the LicheeRV: two such boards on one LAN collide, so give each its own hopos.node.

Since rc6, in rc7: applib retries a system call once on a fresh connection after a timeout (Hop fell 8 s after every warm flip on the Pi 5). A node takes that fix with a cold boot of this release, 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_LAST and HOPOS_FLIP_ARCHIVED are 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_bytes and Nic::deferring are gone from applib.
  • Hop v3.2.0-rc8: POST /flip takes only url and sha256; 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::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.
  • 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-rc8 (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 rc8 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-rc9, 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:

6f173fd5a1756fdd01b74654bcb8cead4270f1ff52ee0e6fbe6acc7828b348e2  appspike-arm64.elf
1bbd32a40c3e081620234fc6a250d7878cdfb15650564e0b00f6e05af5eb6a9d  appspike-riscv64.elf
b28722fac6204191d1665c20de32d3a4534333350e5fdba568dd264eab8a3c3d  bench-arm64.elf
468fe83f480bcdceaab7e0bf2a15c446c6efadafe0e221cba75e742d663465a3  cloudflared-arm64-tamago.elf
b67ccc4a43de095bde22ae154f4d225a63855d9ed7644fd6d3e5623dc0d82587  decode-arm64.elf
2bb7623a12bd055483f030cf91776319d29521ac28df66c4aecb798eafcac060  display-arm64.elf
2dda37bb98c0547b9ea3d7bcdf43dd7134b77bbfe80959c4c5454648f98c658e  hopos-altra-headfull.flip
864683d92c3c6c9250627834b607b74a6c37daea3defbfd96a5c588cc02dfc55  hopos-altra-headfull.img.gz
1725d9659a78b7f7ac138c646734c3b76c9259c93535ec7acfb099d981a7508f  hopos-altra-headless.flip
ccc4c0e269b5bd93bfe3cf753fed2e25b5ed1116243cc4d53551c4ba159aa89e  hopos-altra-headless.img.gz
6262491ac3550987e561b3375465b7ff6aedaa26c3dd927cdcaf480537b39f44  hopos-apple-headless.flip
ae865c9aafc23f42751ae9bf64b547221b4e81450f1981ec1e404cc839c24e2f  hopos-apple-headless.img.gz
8d822c1db5700384e3a2e1047a6122b9e9b8a0e7be038f97518ef520d9738251  hopos-licheerv-fip.bin
6556f155559d738e32445ffd07d5182371e89b0ab5075314f5f9ae44f2a16013  hopos-licheerv-headless.img.gz
5c575877b938d3e7a035b8cc198ad5d245af34f305bd72be5b53fece1c0ae71d  hopos-o6n-headfull.flip
a80e0b8d0ce0c225fbd0b15bba4ad5cdd965a17f9ff1b98c8205864f9a0eb7a4  hopos-o6n-headfull.img.gz
fb26a03223b1e846746c7633f7a9346d27f4fda228c3f700c5d8a8d95a9f3db3  hopos-o6n-headless.flip
d9a670f63e4c7baed86d95438b4cdf6b1cdb542d62c20933acc18e8320737b99  hopos-o6n-headless.img.gz
f757b51292b96fd3abb00129a4fa7d72b85d9041604d5ff95e578e02b68c3f23  hopos-radxa-headfull.flip
968c58cab795af0ccb917175dcf90b4f438f3740d9023b3b263ee19c1432df5c  hopos-radxa-headfull.img.gz
9e8c49ebcfb128b5a8f80516d98ec6217feffe761d6b9b4240fefb97d740662f  hopos-radxa-headless.flip
fb6bd977c32f6887840549be60fb6049dc77aed24ecc19210d52951a234928fe  hopos-radxa-headless.img.gz
00ab4d2c29ca8ccde0da3b156c05c66dc1f144580d50e4ee65df5b410625432e  hopos-rpi4-headfull.flip
78f9797c85852c8acd2eeb21b9e3adda1cdaa434e91c7640d48bb19af001a191  hopos-rpi4-headfull.img.gz
0cad404cf889d956dd34a82a92324dd7a1433008cf874ca64847e5be63287265  hopos-rpi4-headless.flip
7fd805a39a6893a4a6b10f0dc6813e5cf0b6de2a40d52c5a145b941f4312f3ba  hopos-rpi4-headless.img.gz
761f807abf2bcc2d47893e95ff115cd92df2a39b940247cffde9857700a6eb22  hopos-rpi5-headfull.flip
e1c412a14ba871dcc8ae915a2c7459421f90454f14a00f16640a038ee5c64f65  hopos-rpi5-headfull.img.gz
7afe8962e1af7990f35310603a07bc4e065994f6067749d07aa6a9a0a92c701d  hopos-rpi5-headless.flip
b4c4a7657b03c76cd66e10f27999b7dcaca2120e14c2aee6c8046168834b8e25  hopos-rpi5-headless.img.gz
4c86a8e3065c09afceb08723b37d3110ce0354523ca1d38c4a6437e2f708514f  syncprobe-arm64.elf
500fac62faee65967a0dbb069d66e36438e5ebb4b7b68f1717a2110c179604ce  vitals-arm64.elf
14e6542195d8c65d65564c571b9bcf3c8833400a494a381ce0785928251a50ec  welcome-arm64.elf
c1495dc59794316772aa63c9c13d8bce0c885c9a8de56a6166884db678df94ab  welcome-riscv64.elf