|
1 |
| -# docker image to build an RT kernel for the RPI4 based on Ubuntu 20.04 RPI4 image |
| 1 | +# A Dockerfile to build an RT kernel for the RPI4 based on Ubuntu 20.04 or 22.04 RPI4 kernel |
2 | 2 | #
|
3 |
| -# By default it finds and takes the latest raspi image and the RT_PREEMPT patch closest to it |
4 |
| -# if the build arguments defined it will build the corresponding version instead |
5 |
| -# $ docker build [--build-arg UNAME_R=<raspi release>] [--build-arg RT_PATCH=<RT patch>] -t rtwg-image . |
| 3 | +# If run without parameters the Docker image is created to built RT_PREEMPT patched version of the latest 5.4 raspi kernel |
| 4 | +# The Docker build command accepts the following build arguments: |
| 5 | +# $ docker build [--build-arg UBUNTU_VERSION=<ubuntu name>] [--build-arg KERNEL_VERSION=<kernel version>] |
| 6 | +# [--build-arg UNAME_R=<raspi release>] [--build-arg RT_PATCH=<RT patch>] |
| 7 | +# [--build-arg LTTNG_VERSION=<LTTNG version>] -t rtwg-image . |
6 | 8 | #
|
7 |
| -# where <raspi release> is in a form of 5.4.0-1058-raspi, |
| 9 | +# where |
| 10 | +# <ubuntu name> is jammy or focal, default is focal |
| 11 | +# <kernel version> is 5.4.0 or 5.15.0, default is 5.4.0 |
| 12 | +# <raspi release> is in a form of 5.4.0-1058-raspi, if not defined the lastest version is taken |
8 | 13 | # see http://ports.ubuntu.com/pool/main/l/linux-raspi/
|
9 |
| -# and <RT patch> is in a form of 5.4.177-rt69, |
| 14 | +# <RT patch> is in a form of 5.4.177-rt69, if not defined the closest to the defined <raspi release> is taken |
10 | 15 | # see http://cdn.kernel.org/pub/linux/kernel/projects/rt/5.4/older
|
| 16 | +# <LTTNG version> is 2.12 or 2.13, default is 2.12 |
11 | 17 | #
|
| 18 | +# To build a Docker image for the latest 5.4 raspi kernel run |
| 19 | +# $ docker build -t rtwg-image . |
| 20 | +# |
| 21 | +# To build a Docker image for the latest 5.15 raspi kernel run |
| 22 | +# $ docker build --build-arg UBUNTU_VERSION=jammy --build-arg KERNEL_VERSION=5.15.0 --build-arg LTTNG_VERSION=2.13 -t rtwg-image . |
| 23 | +# |
| 24 | +# After that the Docker image is prepared and ready to run |
12 | 25 | # $ docker run -it rtwg-image bash
|
13 | 26 | #
|
14 | 27 | # and then inside the docker
|
|
0 commit comments