SchOS/ports
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nexoniarz 4a032c9c62 build: fix four things a clean build found, three of them mine
`make` had been failing since the e1000 work and I did not see it, because I
was checking build output with `grep error` -- which matches neither "Błąd" nor
mkfs's "image full". Checking the exit status instead found all of this in a
minute.

**usbstick.img was full.** `make ldls-stage` puts a module and its BTF in
sysroot/lib/modules, and a vmlinux BTF is 5 MB on its own; the 16 MB test image
could not hold it. The size cannot move -- tools/windows/bootcheck.ps1 asserts
READ CAPACITY returns exactly 32768 sectors -- so the exclusions grew instead:
lib and usr as well as bin. That image exists to prove the USB driver can read
one block, so its contents were never the point. It also stopped a GPL module
riding into a test artifact, which RAMDISK_EXCLUDE does for the ramdisk and
nothing was doing for this one.

**toybox's httpd was shadowing ours.** /bin/httpd answered `-p` with toybox's
"Unknown option 'p'", because whichever install rule ran second won the name.
TOYBOX_SKIP existed for exactly this and held one entry, `ping`, found the same
hard way. It is now generated from cmd/ -- a list you have to remember is a
list that is wrong the next time cmd/ grows, and it already was: `chvt` had
been silently toybox's, whose VT ioctls are Linux's and not ours.

**ldlsd would not link with clang.** `*out = in;` on a 96-byte struct is a call
to memcpy as far as the C standard is concerned; gcc unrolled it and clang
emitted the call, so a freestanding program linked for months and then did not
on a machine where nothing about it had changed but the compiler. lib/glue.c
now provides memcpy, memmove, memset and memcmp -- the four an implementation
may call without being asked.

**OVMF was never found on NixOS.** `$(dir $(QEMU))share` is the *bin*
directory plus "share", so it looked in /usr/bin/share. The absolute paths
after it covered that up on distributions that keep firmware in /usr; on one
that keeps nothing there it meant the firmware was undiscoverable on a machine
that had it, and the only way to build was to copy the file in by hand. It
resolves the prefix properly now and looks in <prefix>/share/qemu too.

Verified by exit status, from a clean tree and a no-op: both 0. ldls-check
passes 27. The guest boots, serves /srv to the host and answers 403 to
%2e%2e/etc/passwd.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VQ7Qx8E1q1M1bbCq8QLHS2
2026-09-14 19:45:22 +02:00
..
fastfetch kernel: processes have an environment now, and zsh is the shell 2026-09-12 23:26:50 +02:00
JetBrains_Mono Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
kilo userland: 268 applets, an editor, names that resolve, and a web server 2026-09-14 19:24:55 +02:00
lwip net: a TCP/IP stack, and AF_INET on the sockets that were already there 2026-08-15 16:02:48 +02:00
mk ports: ncurses, so zsh's line editor has a terminal to drive 2026-09-12 21:34:36 +02:00
mksh kernel: processes have an environment now, and zsh is the shell 2026-09-12 23:26:50 +02:00
musl Build and tools work on Linux, macOS and BSD as well as Windows 2026-08-09 14:24:53 +02:00
ncurses kernel: processes have an environment now, and zsh is the shell 2026-09-12 23:26:50 +02:00
Roboto Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
toybox build: fix four things a clean build found, three of them mine 2026-09-14 19:45:22 +02:00
zsh ports: zsh reinstalled on every make, and eventually stopped working 2026-09-13 13:57:26 +02:00
Makefile userland: 268 applets, an editor, names that resolve, and a web server 2026-09-14 19:24:55 +02:00