PLANCK BOX -- the whole recipe, configuration only                      state of 2026-10-07

A planck box is a service VM built from ONE kernel config stack over allnoconfig, ONE PID 1 manifest, ONE
inittab. Nothing else is on the box. Below is every input file of the smallest box (the calendar box), directives
only; the source files carry a reason on every line.

INPUTS (upstream, pinned by sha256 in the build scripts)
  linux-6.19.12.tar.xz          cdn.kernel.org
  musl 1.2.6 + 1 patch          /etc -> /root/ (planck-libc/patches)
  gcc 16.2.0, binutils 2.47     crosstool-NG 1.29.0, static x86_64-linux-musl
  no busybox, no shell, no ssh, no package manager, no initramfs, no disk

THE BOX, EVERY FILE
  <box>/vm-configuration-x86-64/
      010-arch.config          -> shared   x86-64 contract           5 directives
      020-minimize.config      -> shared   planck floor               11 directives
      025-unwinder.config      -> shared   no ORC tables               1 directive
      030-functional.config    this box   what it exercises          33 directives
      patches/                 -> shared   34 kernel source patches, listed below
      planckinit.manifest      this box   PID 1 components            6 lines
      build.mjs                -> shared   the cascade entry
  <box>/rootfs/root/
      inittab                  1 line
      planck-init              static ELF, 37,944 bytes (output)
  <box>/boot/
      bzImage                  1,446,912 bytes (output)

010-arch.config
  CONFIG_64BIT=y
  # CONFIG_RELOCATABLE is not set
  # CONFIG_RANDOMIZE_BASE is not set
  CONFIG_PHYSICAL_START=0x200000
  CONFIG_PHYSICAL_ALIGN=0x200000

020-minimize.config
  CONFIG_EXPERT=y
  CONFIG_PROCESSOR_SELECT=y
  CONFIG_CPU_SUP_AMD=y
  CONFIG_BASE_SMALL=y
  CONFIG_TINY_RCU=y
  CONFIG_RCU_EXPERT=y
  CONFIG_TINY_SRCU=y
  CONFIG_CC_OPTIMIZE_FOR_SIZE=y
  CONFIG_SLUB_TINY=y
  CONFIG_SLAB_MERGE_DEFAULT=y
  CONFIG_KERNEL_LZ4=y

025-unwinder.config
  CONFIG_UNWINDER_GUESS=y

030-functional.config (the calendar box)
  CONFIG_BINFMT_ELF=y
  # CONFIG_BINFMT_SCRIPT is not set
  # CONFIG_BLK_DEV_INITRD is not set
  CONFIG_PCI=y
  CONFIG_PCI_MSI=y
  CONFIG_VIRTIO_MENU=y
  CONFIG_VIRTIO_PCI=y
  CONFIG_NETWORK_FILESYSTEMS=y
  CONFIG_NET_9P=y
  CONFIG_NET_9P_VIRTIO=y
  CONFIG_9P_FS=y
  # CONFIG_9P_FS_POSIX_ACL is not set
  # CONFIG_9P_FS_SECURITY is not set
  # CONFIG_NET_9P_DEBUG is not set
  CONFIG_NET=y
  CONFIG_INET=y
  CONFIG_NETDEVICES=y
  CONFIG_NET_CORE=y
  CONFIG_VIRTIO_NET=y
  CONFIG_INET_TABLE_PERTURB_ORDER=8
  CONFIG_TCP_CONG_ADVANCED=y
  # CONFIG_TCP_CONG_CUBIC is not set
  CONFIG_DEFAULT_RENO=y
  # CONFIG_PRINTK is not set
  CONFIG_TTY=y
  CONFIG_SERIAL_8250=y
  CONFIG_SERIAL_8250_CONSOLE=y
  CONFIG_PROC_FS=y
  # CONFIG_PROC_SYSCTL is not set
  # CONFIG_SYSFS is not set
  # CONFIG_DEVTMPFS is not set
  # CONFIG_UNIX98_PTYS is not set
  # CONFIG_TMPFS is not set
  # CONFIG_SHMEM is not set
  CONFIG_STRICT_KERNEL_RWX=y
  CONFIG_INIT_STACK_ALL_ZERO=y

  Not set, each waits for a program that needs it: MULTIUSER, FUTEX, POSIX_TIMERS, FILE_LOCKING.

planckinit.manifest
  target x86_64-linux-musl
  component inittab
  component ipv4
  component log
  component devnodes
  without rundir

  PID 1 source: planck-init.c 335 lines, inittab 246, ipv4 200, fmt 91, log 50, header 40 = 962 lines of C.
  No printf, no libc stdio; vfork; makes /dev (6 nodes) and /proc itself.

rootfs/root/inittab
  ::builtin:ipv4

patches/ (applied to the pinned 6.19.12 source before the build; a config switch cannot remove these)
  net, what the box never uses
    040  do not force the BPF virtual machine on NET
    045  TCP child sockets build without BPF
    050  socket filters and SO_REUSEPORT removed
    060  unreachable BPF hooks replaced by stubs
    065  SO_REUSEPORT and BPF socket lookup disabled
    070  ethtool and per-device RSS state removed
    080  virtio-net standby failover removed
    090  route netlink control and notifications removed (address and route come from ioctls)
    100  UDP-Lite removed
    110  network-device generic-netlink control plane removed
    120  socket diagnostics removed
    130  TCP cross-connection metrics and their genetlink API removed
    140  IP tunnel metadata and GRE removed
    150  IGMP and multicast membership replaced by rejection stubs
    160  ping sockets removed
    170  TCP upper-layer protocols (kTLS, MPTCP) removed
    180  IPv4 header options rejected
    190  IPv4 rtnetlink handlers removed
    200  nexthop and route-attribute engines collapsed
    210  FIB notification fanout removed
    280  IPv4 fragments rejected instead of reassembled
    285  router-alert chain drops fragments
    300  virtio-net negotiates no checksum or segmentation offload
    310  generic flow dissector replaced by fixed one-queue behaviour
    340  TCP Fast Open removed
    350  no /proc/net files
    450  sysctl and sysfs rebuilt without the removed net parts
    460  generic netlink back only for an in-kernel family (nfsd on the NAS box)
    470  nfsd does not wait 1 s for nfsdcld without rpc_pipefs
  memory
    400  no 2 MB paddings of .bss and entry text (SEV and PTI are off): about 3.2 MB
    410  struct pages mapped only for memory that exists: 2 MB -> 512 KiB in a 32 MB guest
    420  virtio rings at most 32 slots: 2 MB -> 64 KiB of receive buffers
    430  no rescuer threads for slub_flushwq, mm_percpu_wq, inet_frag_wq: 3 threads
    440  no oom_reaper thread: 1 thread

KERNEL COMMAND LINE (qemu/PVE -kernel, planckboot.rom as -bios, 64 KB)
  root=root rootfstype=9p rootflags=trans=virtio,version=9p2000.L,msize=262144 console=ttyS0
  planck.ipv4=<a.b.c.d/16> planck.gateway=<a.b.c.d>

HOW THE CONFIG IS MADE
  allnoconfig, then the fragments in numeric order, built verbatim under KCONFIG_NOSILENTUPDATE: a symbol the
  stack did not name and kconfig wants to add fails the build. The result is a closed config: nothing is on
  that a fragment did not name.

MEASURED (an ECC workstation, KVM, PVE's `pc` machine, 1 vCPU, 16 MB RAM, 2026-10-06)
  bzImage                        1,446,912 bytes
  vmlinux text / data            2,002,398 / 880,960 bytes
  planck-init text / bss         26,306 / 10,560 bytes
  time to PID 1                  251 ms (PID 1's own stamp on the serial console)
  RAM left by the kernel         12.2 MB of 16
  RAM in use at PID 1            1.7 MB
  processes                      1

  Serial console, complete:
    planck +251ms: PID 1 alive
    planck +251ms: running sysinit
    planck +253ms: ipv4
    planck +254ms: planck-net: eth0 configured, gw set
    planck +255ms: sysinit complete

The same shape with a service: the svn box (svn over ssh: dropbear 211,144 bytes + busybox 63 applets 341,888
bytes + svnserve, kernel 1,487,872 bytes, 40,960 more than the empty box).
