Documentação
Self-hosting

Build QEMU libraries from source

Eidolon ships with prebuilt libqemu-xtensa.so and libqemu-riscv32.so so ESP32 / ESP32-S3 / ESP32-C3 simulation works the moment you pull the docker image. The prebuilts are a convenience — Eidolon is AGPLv3 and so is the QEMU fork it depends on, which means you can always rebuild the libraries yourself from source and run those instead.

Why you might want to

  • Audit the supply chain. Regulated deployments often require that every shared object on the box was built from a known-good source tree.
  • Patch QEMU. Add a peripheral the upstream fork doesn't emulate, or backport a fix from mainline QEMU.
  • You're on an unusual platform. We currently publish Linux x86_64, Linux ARM64, macOS ARM64 and Windows x86_64. BSDs, exotic libc, macOS Intel — build your own.
  • Trust nothing. A valid reason. Drop our binaries, rebuild from sources you've audited, and the chain is your tree only.

The short version

On a Linux box with a working C toolchain:

git clone https://github.com/lcgamboa/qemu.git
cd qemu

# ESP32 (Xtensa)
mkdir build-xtensa && cd build-xtensa
../configure --target-list=xtensa-softmmu --enable-shared-lib \
             --disable-werror --disable-tools --disable-docs
ninja
# → produces libqemu-xtensa.so (~46 MB)
cd ..

# ESP32-C3 (RISC-V)
mkdir build-riscv32 && cd build-riscv32
../configure --target-list=riscv32-softmmu --enable-shared-lib \
             --disable-werror --disable-tools --disable-docs
ninja
# → produces libqemu-riscv32.so (~45 MB)

Drop both .so files into /app/lib/ inside the running Eidolon container (or whatever host path you bind-mount to it) and restart. The backend dlopens whichever library is on disk on the next simulation start, so this replaces the shipped binaries cleanly.

The full guide

Step-by-step build instructions, dependency lists per OS (Debian / Arch / macOS), the canonical commit ID we anchor the prebuilts to, troubleshooting for the common configure / ninja failures, and the licensing notes (QEMU is GPL-2.0, Eidolon is AGPLv3, the dlopen boundary keeps them orthogonal) live in the full document:

Read docs/BUILD-QEMU.md on GitHub →

Or use the prebuilts

If you don't have a 15-30 minute build in you, the sha256-pinned prebuilts are available at velxio.dev/license/signup (free personal-use key, takes a minute), and the existing public release at github.com/davidmonterocrespo24/velxio /releases/tag/qemu-prebuilt still serves the same files byte-for-byte. Both produce identical libraries to what this guide builds — there's no "blessed" version, just convenience choices.