Skip to content

Versa-Node/versanode-os-kmods

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VersaNode OS – Kernel-level mods Pi-gen stage

CI (lint & sanity) Build & Release (pi-gen) PR Labeler Release Drafter

VersaNode OS logo


🔧 Overview

The VersaNode OS Kernel-level Mod Stage enables I²C, SPI, and 1‑Wire interfaces and drops a udev rule — all without using on_chroot. Every modification is applied directly to ${ROOTFS_DIR}, making it safe for automated builds and reproducible images.


🚀 What It Does

  • Adds or updates the following entries in ${ROOTFS_DIR}/boot/firmware/config.txt:
    dtparam=i2c_arm=on
    dtparam=spi=on
    dtoverlay=w1-gpio
  • Installs I/O toolchain packages via 00-packages (handled automatically by pi-gen):
    • i2c-tools
    • python3-smbus
    • spi-tools
  • Drops a udev rule to grant the plugdev group access to I2C and SPI device nodes.

📂 File Structure

stage2-kmods/
  00-versanode-bus-io/
    00-packages
    00-run.sh
    files/
      etc/udev/rules.d/99-versa-bus.rules

♻️ Notes

  • Idempotent: re-runs won’t duplicate lines in config.txt.
  • Compatible with both Raspberry Pi OS Lite and custom pi-gen derivatives.
  • No root filesystem mounting tricks required — everything is path-relative.

About

VersaNode kernel modifications. To support the VersaNode infrastructure.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages