Repository navigation
HopOS v3.2.0-rc8
Pre-releaseRelease candidate 8. On hardware so far: 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 rc7:
- One config per flavor.
image/cfgholdsheadless.cfgandheadfull.cfg(media on the O6N uses headfull), complete files, no layers. Where Hop lives is the board's own default in the kernel (systemon 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.sharegroupandhopos.hop.core-classstill 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. Withouthopos.nodeit isradxa-0001with the fixed MAC02:48:4f:50:00:01, like the LicheeRV: two such boards on one LAN collide, so give each its ownhopos.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_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-rc8:
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-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-rc8, 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:
50a7f4957874f111dc6725474722588afcf8e897550643e61d080693e29b8310 appspike-arm64.elf
4fa41bda5b006ff9b46418dfee1a47e7449177d33b4d0886db97cc36da6b6dd2 appspike-riscv64.elf
69d6ae2711597e6aa3b76528a463cd30a685f46d6088eef02e54689b4b3b5654 bench-arm64.elf
a4582f8b61870efd7d19de3de65fa2e64f811439e43288f41ded2de5752b9627 cloudflared-arm64-tamago.elf
07579452c850ebdac93d595d17881807961d9839bd43260c6b3cd0d8eef2fe58 decode-arm64.elf
c2672ade1fa7d2fbd36feb77b1b7b017d6f761e8f4ba357ab11ba8e38017f214 display-arm64.elf
1b26d82531ed4ca0867484b5d57024cd321f5eb12189a34d1fab301c261bd96f hopos-altra-headfull.flip
1c1c22c8b5a65e8ee76a170885d5e2fe2134726c430ccc98a777ead4074ff9b5 hopos-altra-headfull.img.gz
92e24cb2d005aae6955df65151b5870c512d5d1d910962f2731daf154efc9a1c hopos-altra-headless.flip
445fb88177c314d70348e2956411d4607944ac35740fd475d409f311f99323bb hopos-altra-headless.img.gz
81f9604c5a94dc5a39e0d5b952ad5c363cc5e4e4680fc5089dffaccb8b190a51 hopos-apple-headless.flip
0070313dcdec076e9602295b8451a31e0f88d986b0094a7a909586587c71b468 hopos-apple-headless.img.gz
8edf08a581e674fb1ba6a5ef10ef91e27f968625552a7d462e68bab719a13eee hopos-licheerv-fip.bin
ea63cc120fb57e429ecd4f0871ff28024fa45c743559e36c83cfefe78f59f2ca hopos-licheerv-headless.img.gz
cb1e6618808a3b7af1d3472abee89600af954bf5a2fb637776c1eab0a6eb731e hopos-o6n-headfull.flip
ff9b935947be326fa6eb0227355c44d57ced3e41e4aebcde114700b465f4641f hopos-o6n-headfull.img.gz
cdaf3e143165db6db9b0226fc9dbec8ed6b8967f8d5a14dfd0dbfcbd57940668 hopos-o6n-headless.flip
91e7fae2aec1342ce1d35e2d4237b73dab4dcc14310bd2d850011c6bd68713b0 hopos-o6n-headless.img.gz
e59e48607b7dd45d0ae0d4dab73f2451fb128513ff9991c00c86ed775541bb41 hopos-radxa-headfull.flip
a1ffad345f4d14af1de4eb22942be9ea478a6a8c66ebd7c6adffed9e142b45d1 hopos-radxa-headfull.img.gz
613dc48095b8dbc97b268b15ee4b9af43f07327c152a0fec86e264a60fbf725c hopos-radxa-headless.flip
15a67f5cfb3018a4581f81d42ae71c72bca5fade2ec86486154dfcbc858051f3 hopos-radxa-headless.img.gz
4d0bfb999a2d5b7f365036e513ab948327462da2a018b1b7542a63342c6c747c hopos-rpi4-headfull.flip
4a6ce6a9430d4d43e95d0567e300c2c4223d052a6fa952f6ecd62b3029cb57e3 hopos-rpi4-headfull.img.gz
27533f6c005227ebf41e7e5233562032a2fc43d6e6c064c2efb52f5eefc0afb2 hopos-rpi4-headless.flip
f3e50a33409e2ad66e509625e7e027fa84e04d9159f5f76c45703a9163ff378e hopos-rpi4-headless.img.gz
8a077e22029338d1f0ba3ee75688ba1f42ef56a57c62a8c47237be88a943a66b hopos-rpi5-headfull.flip
e846581ebef11b320ab53205177d23e81161f72e42c8b765dc6985d5560b2a7c hopos-rpi5-headfull.img.gz
776456fd2ad1fa15c3226763f6963d2c8d1886e66df783447ef758584d306715 hopos-rpi5-headless.flip
5e800ad30d69f2fec542b192bfa842bde21a2d6d5edf0400a4db7928970ed7a7 hopos-rpi5-headless.img.gz
0e804ebdcd33d9ae55b09a9e59c5854938e23671570d1010ddfc039f82e68398 syncprobe-arm64.elf
2c4044d7540cdab516ad84d9c514490642194b8b48006e54ee7ce0bea719d3ed vitals-arm64.elf
585cda634dc064f0c44756d6180a375a2fc82d3d7f2d8208686faf08897708dc welcome-arm64.elf
0145c9b1b1ab60755b6aab9726c86ceea8702a1a9a6d533b305f24fde8a809df welcome-riscv64.elf