Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/native/kernel/tools/ck_imac_netboot.c # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / native / kernel / tools / ck_imac_netboot.c` 439 lines ยท 16035 bytes Raw Blame History 1 /* ck_imac_netboot.c -- host side of the AIENOS lab netboot (NETLDR.EFI on the 2 * iMac; wire format native/boot/netboot_proto.h). Hosted C (POSIX sockets), 3 * tooling only, never in an image. No Python, no outside libraries: Ed25519 4 * and SHA-512 are native/sig. 5 * 6 * ck_imac_netboot keygen KEY PUB new lab signing key: KEY = 32-byte seed 7 * (created 0600, never overwritten), PUB = 8 * "owner_root_`ed25519` " for 9 * make imac-netldr CK_NETLDR_KEYS=PUB 10 * ck_imac_netboot pubkey KEY print the public key (64 hex) 11 * ck_imac_netboot sign KEY TBS SIG Ed25519 over the to-be-signed bytes 12 * (ck_slot_tool tbs) -> 64-byte SIG 13 * ck_imac_netboot serve SPOOL [--bcast A.B.C.D] [--mac M] [--seconds N] 14 * [--qemu-dgram LOCALPORT:REMOTEPORT] 15 * 16 * serve answers NETLDR. A job is SPOOL/next.job: a signed slot manifest 17 * (CK_SLOT_UNIT bytes) followed by the image; write it elsewhere and rename() 18 * it in. On a HELLO the job moves to SPOOL/serving.job and is offered; the 19 * loader's DONE moves it to SPOOL/booted-