Skip to content

Example project for building an OOT kernel module in resin

Notifications You must be signed in to change notification settings

rgst-io/wireguard-balena-rpi

 
 

Repository files navigation

This is an example of building an out-of-tree kernel module using module headers provided for balena devices.

Make sure you change to the desired balenaOS version in the Dockerfile.template and commit the change before you start building this project.

Usage

usage: build.sh [build|list] [options]

commands:
  list: list available devices and versions.
  build: build kernel module for specified device and OS versions.

build options:
  --device="$device"    Balena machine name.
  --os-version="$os-version"   Space separated list of OS versions.
  --src="$src"     Where to find kernel module source.
  --dest-dir="$dest-dir"     Destination directory, defaults to "output".

examples:
  ./build.sh list
  ./build.sh build --device intel-nuc --os-version '2.48.0+rev3.prod 2.47.1+rev1.prod' --src example_module

About

Example project for building an OOT kernel module in resin

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 91.3%
  • Dockerfile 8.7%