Giter Club home page Giter Club logo

letstrusttpmkernel's Introduction

General

This Docker image is meant to be used to build a Linux Kernel for the Raspberry Pi with TPM support (especially LetsTrusts TPM). The steps involved have been extracted from:

letstrust.de - Howto Enable TPM Support on a Raspberry PI (0, 0W, 1, 2, 3, 3b+) and make it work with the LetsTrust TPM

Requirements

This projects aims to enhance already running Raspberry Pis with TPM. Hence, this Docker container expects two volume mounts:

lsblk -o NAME,FSTYPE,LABEL,MOUNTPOINT /dev/mmcblk0
NAME        FSTYPE LABEL  MOUNTPOINT
mmcblk0                   
├─mmcblk0p1 vfat   boot   /media/user/boot
└─mmcblk0p2 ext4   root   /media/user/root

This is how a typical Raspberry Pi SD card is formatted while following the standard installation instructions. If your SD card is still empty, prepare your SD card following those instructions first.

Installation

Build the Docker image:

sudo docker build -t rpi_tpm_kernel_builder .

Afterwards adapt the paths to which your system has mounted the SD card partitions (you can find them using lsblk for example):

SDCARD_BOOT_PATH=/media/user/boot
SDCARD_ROOT_PATH=/media/user/root

and run:

sudo docker run -it --volume $SDCARD_BOOT_PATH:/media/boot --volume $SDCARD_ROOT_PATH:/media/root rpi_tpm_kernel_builder

to build and deploy the kernel to the SD card.

Switching Kernel Version

It is possible to change the Kernel version. This is possible using the Docker's build argument KERNEL_BRANCH, for example:

sudo docker build --build-arg KERNEL_BRANCH=rpi-4.16.y -t rpi_tpm_kernel_builder_rpi-4.16.y .

will build a Kernel with version 4.16. Any branch from Raspberry Pi's Linux Kernel repository can theoretically be used, but newer versions can introduce new dependencies which this Docker container doesn't fulfill.

Switching Targeted Raspberry Pi

It is possible to switch between "Pi 2, Pi 3, or Compute Module 3 (default)" and "Pi 1, Pi Zero, Pi Zero W, or Compute Module". To switch to a build for a Pi Zero, use the KERNEL build argument:

sudo docker build --build-arg KERNEL=kernel -t rpi_tpm_kernel_builder_rpi_0 .

Supported Kernel Version

The last tested kernel version can be found using the git tags of this repository.

letstrusttpmkernel's People

Contributors

jhachenbergersit avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.