Building and administering the Peios kernel

This repository contains the Peios kernel based on Linux 7.0.9. Its supported build entry points, configuration and security model differ from a generic Linux installation. Start with Building Peios and Peios kernel behaviour.

Relationship to Linux #

Peios retains Linux kernel infrastructure and interfaces while adding native security and system services. Its source includes upstream drivers and architectures that are not necessarily enabled or qualified by the Peios configuration. The repository's COPYING and per-file licenses govern the source; see the licensing documentation for their interpretation.

Build target and hardware #

The repository's configured build targets x86_64. Source support for another architecture, or a driver appearing in this documentation, is not evidence of Peios runtime or hardware qualification.

Documentation #

docs/ is the authoritative human-readable documentation tree. Documentation/ retains tooling inputs such as schemas and ABI data used by generators. Generated references and inherited subsystem guides supplement the Peios behavior and build guides; they do not override the configured native policy.

Source and upstream updates #

Build the Peios repository checkout. An upstream Linux tarball does not contain the Peios changes. Upstream updates require integrating and reviewing code, configuration and mapped documentation changes together; blindly applying a version patch is not a Peios upgrade procedure.

Build prerequisites #

Follow the pekit and host requirements in Building Peios. The build uses its pinned LLVM and Rust toolchain, not whichever compiler happens to be installed on the host.

Build directories #

Builds use a private source copy and an out-of-tree Kbuild output directory, in pekit's sandbox. Do not run make mrproper in the working checkout as a routine preparation step. The build guide describes output locations and provenance reports.

Configuration #

The base configuration, peios/config/pkm.fragment and optional KUnit fragment are merged by the build. peios/verify-config.sh checks required invariants. A menuconfig session, generic defconfig or arbitrary local module selection does not establish equivalent security policy. Make intended configuration changes in the repository inputs and validate the resulting build.

The Kconfig reference describes the underlying configuration machinery.

Compilation and artifacts #

From the kernel repository root:

pekit build kernel
pekit run kunit

These are separate build and test actions. Successful compilation does not establish runtime qualification. Development outputs include unsigned modules even though the kernel enforces module signatures; signing and release publication remain separate stages. The build does not install a kernel onto the host. A generic sudo make install or make modules_install command is not the repository's Peios deployment workflow.

Deployment boundary #

The historical LILO commands attached to this anchor have been retired from the Peios guide. Deploy a matching, signed and qualified kernel/module set through the applicable Peios release or qualification workflow. Preserve the artifact provenance and a recovery path when changing a boot environment. The repository build alone is not a release or installation action.

Diagnostics #

Record the kernel commit, resolved configuration, build provenance, boot arguments and complete failure logs. Distinguish a build failure, signature or authorization refusal, missing runtime prerequisite and kernel fault before changing configuration to work around it.

The bug-hunting guide and GDB debugging reference describe useful mechanisms. Their availability still depends on the Peios configuration, lockdown policy and native authorization.

Edit this page