Skip to content

HopOS v3.2.0-rc2

Pre-release
Pre-release

Choose a tag to compare

@xinix00 xinix00 released this 03 Nov 10:25
· 46 commits to main since this release

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

Since rc1:

  • Every change the kernel makes to its own map goes through one board hook (Board::remap). On UEFI (O6N, Altra) it writes the stub's tables. Before this, cpu::memattr took the table for a split block from the kernel heap. The UEFI map survives a warm flip, the heap does not, so kernel B could overwrite its own translation and hang after landing. That path was used by the glass (headfull) and the O6N codec arena (media).
  • The screen survives a warm flip on UEFI: the GOP now travels in the stub's facts page. Before, kernel B came up with HOPOS_FB_NONE. A node cold-booted from rc1 keeps that rc1 facts page, so after a flip its screen stays dark until the next cold boot.
  • New ring flip-uefi-gui: a warm flip on QEMU UEFI with a framebuffer, checking the glass on both kernels. It is red on rc1 and green here.

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-rc2 (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 rc2 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-rc2, 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:

9c0d75d888dcc0db4584d9a43a73c76fb5b6048a32ed8922c868b2116c8c8282  appspike-arm64.elf
3d4fae5201bca6d1a925437a2685c9e802ea4949e0a6a04441471205365009a2  appspike-riscv64.elf
6ee900af0b94374cfcd700ddd23b44af147376c2b1bc14369e75ae2dc648b173  bench-arm64.elf
7c5511ca8b7e4ba4c7d1f30157847bc73b4d2479f95f1cea657e93774137567d  cloudflared-arm64-tamago.elf
da2dd369d17a5067dc9837f63a61842f18225df323d3b20fe0d1d581014a0e22  decode-arm64.elf
0efdabd5ce53345584c4b3ffaa4d1b127218ebc29180f71f1be3b5e609383617  display-arm64.elf
b1ec0d4486f99d96affe0fdeb6d49bd32fc1c08b2d7946d57f04a55c1ed68030  hopos-altra-headfull.flip
c7a6808b3a54b0200efb1776ca0d522c73e9de2da2abea81dd61ef52bf22a82c  hopos-altra-headfull.img.gz
7283cb62597dad95b74a3bb5edd063fa5d3820a847d8aa50aeee10b11367b9e8  hopos-altra-headless.flip
33d9d6a9cb89d7b5446b9ebce9e7225879f892831ea0dfac817a123b98c37a5a  hopos-altra-headless.img.gz
e5c7f98b9597e909d487b9cbc86a0b8b52378239b743de918b768247ba25d459  hopos-apple-headless.flip
f373cc66dac903f29a32c7fdffb5a53bc2b25abeb997111a2d5fe71e218895e7  hopos-apple-headless.img.gz
c6b372978d13af0ad87c4fb34300ba29ca473fb06b28ce42a647d08437ef9a19  hopos-licheerv-fip.bin
84fd45e47199172fcf41c7a0abfc2b3104d7d274f7b7e378efc72253041a32ca  hopos-licheerv-headless.img.gz
e4bf2fba4376f3e41b86102b5a3d207229dfb8570ea42e16db5177fe732d3f55  hopos-o6n-headfull.flip
c8bbf0a059fe429e0cdeb3a63753af2ed1516e363206fcb0321940130b6314e3  hopos-o6n-headfull.img.gz
4347d732552547f0f8b963498a7a063278072312f7ed7b0aa8b781e97ff0c8d0  hopos-o6n-headless.flip
ec6fc00511d6e9c0a248998e4b55142c5a7d8645d060e69c8d4ebfc6d8eec3ab  hopos-o6n-headless.img.gz
e29458da667212de341f38229cb1dac60b13b894a4402b622ee3b91d6da70336  hopos-radxa-headfull.flip
49d4bb5d45ce8903306b0b6744a0e16199049f91cfc276a1accc728e78425a6c  hopos-radxa-headfull.img.gz
9b5721b5918d2728cf7f91a907bb587fcf918625699067e3e31f4a30298daf80  hopos-radxa-headless.flip
21989cc33f9253a253bcf93a99c85d1eea8856b04e1d6359ab20bce48c93a1da  hopos-radxa-headless.img.gz
118f9486354137d4f5ee7a9993298eb8d4b8eec5908b741b9fafbcd7b141f6df  hopos-rpi4-headfull.flip
509a53c5ce12125b7c1dce239e528bef5dd1fe686eb10e9ee216e61090bdb52e  hopos-rpi4-headfull.img.gz
451e27ce12c1e159c55b0e5b70663e383f4ca57c28ac2fbdbc7b448a00b0299b  hopos-rpi4-headless.flip
968875563be18e681ce9f83747966a967d40597c72715b85f563adf08f1829a0  hopos-rpi4-headless.img.gz
a3f59343e90e8bde1d412ebb41b73f39cd7560001a9b236e2bb796b37b7c66e7  hopos-rpi5-headfull.flip
b6d4a0179d9d7c669b8d554aee80a3dd2e983084b86b6eae3f6bb2be949aa307  hopos-rpi5-headfull.img.gz
e02fc66973ce84fbee9a1becda3e203a528dfaef2cb3bf847e5c0a265353e0fe  hopos-rpi5-headless.flip
86b981ea5c111f8dd18ae646f03f2f3768972e39ad91adcf39fe6838a2ba1067  hopos-rpi5-headless.img.gz
fe703ec36d8d1d1796ccb21aa7ff64b78f6a61e827624872b9f6278d3dba3e81  syncprobe-arm64.elf
80fdb0ba37e3282b0af68440a07ed83195e140a526f798e4a93dbbd33a7e5a83  vitals-arm64.elf
9fb5adc2c53ceffecb4d5f6d08c34f66134349fbd35c05e5aa60953cbeb6e21d  welcome-arm64.elf
f74ea7ec601ea2837b1e6941d064272873758b128bf5a2e954ab6678dbf46a8b  welcome-riscv64.elf