Skip to content

Open Source

My upstream work centers on firmware that boots servers and devices, the protocols they use to prove what they are running, and getting software to run well on new hardware. Everything below is merged upstream; each item links to the change itself.

Boot firmware

U-Boot

U-Boot is the bootloader on most embedded Linux boards and on QEMU’s virt machines.

QEMU RISC-V now boots through standard boot, so a kernel passed with -kernel, -initrd and -append boots directly when U-Boot runs from pflash:

TPM:

SpacemiT K1, on the Milk-V Jupiter:

u-root (LinuxBoot)

u-root is the Go userland that LinuxBoot uses to replace UEFI’s boot stage with Linux. I added RISC-V and 32-bit Arm support to its kexec path.

Android Generic Bootloader (AOSP libbootloader)

Fixes to the documented QEMU flows for GBL, each one a command that failed as written on a current distribution:

Platform security

DMTF libspdm

libspdm is DMTF’s reference implementation of SPDM, the protocol devices use to authenticate and establish secure sessions with the platform.

OpenPRoT pldm-lib

pldm-lib is OpenPRoT’s Rust implementation of PLDM, the protocol a platform root of trust uses for firmware updates and device management. My changes make its decoders safe against malformed messages from a peer:

LLM inference on RISC-V

llama.cpp

Matrix kernels for the SpacemiT X60’s IME matrix extension:

Triton CPU backend

triton-cpu compiles Triton GPU kernels for CPUs:

Android kernel

Documentation fixes in the Android Common Kernel (kernel/common), for the binder, dma-buf, dma-heap and UFS interfaces:

Systems tools

  • elfuse (7 merged) — runs Arm64 and x86-64 Linux ELF binaries on macOS. My changes bring its Linux syscall emulation closer to the kernel: futex refusals, CLONE_THREAD exit signalling, AT_EMPTY_PATH, deferred stack unmapping.
  • codetrial (6 merged) — a live technical interview simulator.
  • frama-c-mcp (3 merged) — an MCP server that gives AI agents the Frama-C formal verification tools.
  • shecc — a regression test for the self-hosting, educational C compiler.
  • sse2neon — dropped a <fenv.h> dependency that leaked FE_* macros into every includer, and added an SVE2 fast path for the string compare EQUAL_ANY mode.
  • UCAgent (2 merged) — a CI workflow that runs the unit tests on pull requests, and skill scripts run with the Python that runs UCAgent instead of whichever is first on PATH.

Documentation