Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 15 additions & 23 deletions image/files/pi/config.txt
Original file line number Diff line number Diff line change
@@ -1,31 +1,23 @@
# BES Linux — Raspberry Pi 5 boot config.
# Read by the Pi 5 firmware (in EEPROM) at boot. flash-kernel populates the
# kernel image, initramfs, DTB and overlays into this same FAT partition
# (/boot/firmware) on every kernel update.
# r[image.boot.pi-firmware]

# r[image.boot.pi-firmware] r[image.boot.pi-uart] r[image.boot.pi-peripherals]
# r[image.boot.pi-tpm-overlay] r[image.boot.pi-pcie-gen3]
# enable_uart=1 tells the firmware to initialise the primary UART so the
# kernel can inherit it as a console. On Pi 5 this is the dedicated 3-pin
# debug UART connector (not GPIO 14/15 on the 40-pin header — that is a
# different UART), and `console=serial0,115200` in cmdline.txt resolves
# to it via the device-tree alias. HDMI may not be attached.
# I2C and SPI are enabled for sensor / peripheral attach, paired with the
# i2c-tools userspace package.
# The tpm-slb9670 overlay enables the Infineon SLB9670 SPI TPM 2.0 module
# on SPI0 CE1, for shipments that include a TPM HAT. With no TPM attached,
# the kernel probes SPI, sees no response, and skips — boot is unaffected.
# pciex1_gen=3 raises the Pi 5's onboard PCIe x1 lane from gen 2 to gen 3,
# which roughly doubles sequential throughput for NVMe HATs. Older or
# marginal drives may need to be flipped back to gen 2.
# disable_splash=1 skips the rainbow splash on boot — cosmetic, but keeps
# the console clean for headless servers.
[all]
disable_splash=1
kernel=vmlinuz
initramfs initrd.img followkernel

# r[image.boot.pi-uart] r[image.boot.pi-peripherals]
enable_uart=1

# r[image.boot.pi-pcie-gen3]
dtparam=pciex1_gen=3

# r[image.boot.pi-peripherals]
dtparam=i2c_arm=on
dtparam=spi=on
dtparam=pciex1_gen=3

# TPM on SPI0 r[image.boot.pi-tpm-overlay]
dtoverlay=tpm-slb9670
kernel=vmlinuz
initramfs initrd.img followkernel

# LCD on SPI1 CE2
dtoverlay=fbtft,spi1-3,st7789v,width=240,height=280,rotate=90,dc_pin=5,reset_pin=6,led_pin=26
Loading