[bootlin/training-materials updates] master: boot-time labs: kernel: add host tools for compression (8b5292a7)
Michael Opdenacker
michael.opdenacker at bootlin.com
Thu Jun 15 20:45:56 CEST 2023
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/8b5292a7272ee236d1202338629257712fd54445
>---------------------------------------------------------------
commit 8b5292a7272ee236d1202338629257712fd54445
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date: Thu Jun 15 20:45:56 2023 +0200
boot-time labs: kernel: add host tools for compression
Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>
>---------------------------------------------------------------
8b5292a7272ee236d1202338629257712fd54445
labs/boot-time-kernel/boot-time-kernel.tex | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/labs/boot-time-kernel/boot-time-kernel.tex b/labs/boot-time-kernel/boot-time-kernel.tex
index d8fef36f..b5cf492c 100644
--- a/labs/boot-time-kernel/boot-time-kernel.tex
+++ b/labs/boot-time-kernel/boot-time-kernel.tex
@@ -161,6 +161,8 @@ ideas to further reduce size and boot time.
The time has come to make final optimizations on our kernel, mainly
related to code size.
+\subsection{Kernel instruction set}
+
First, measure and write down your kernel size and the total boot time
in the \code{~/boot-time-labs/results/kernel-size-arm-thumb2.ods} spreadsheet:
@@ -175,7 +177,15 @@ reduction work, the full rebuild should be faster than in the earlier labs.
Write down the kernel size and total boot time in the above table,
and keep whatever option works best for you.
-Then, continue by trying all the kernel compression schemes listed in
+\subsection{Kernel compression}
+
+Install the below packages:
+
+\begin{verbatim}
+sudo apt install lzop lz4
+\end{verbatim}
+
+We are now going to try all the kernel compression schemes listed in
the \code{~/boot-time-labs/results/kernel-size-compression.ods} spreadsheet:
\includegraphics[width=\textwidth]{labs/boot-time-kernel/kernel-size-compression.png}
More information about the training-materials-updates
mailing list