mirror of
https://github.com/sysprog21/lkmpg.git
synced 2025-03-13 14:05:10 +08:00
Tidy section: headers
This commit is contained in:
parent
f7f46f145d
commit
58e55d03d0
19
lkmpg.tex
19
lkmpg.tex
@ -142,21 +142,24 @@ Rest assured, after you get over the initial hurdle of doing it for the first ti
|
|||||||
\end{enumerate}
|
\end{enumerate}
|
||||||
|
|
||||||
\section{Headers}
|
\section{Headers}
|
||||||
\label{sec:org087541e}
|
\label{sec:headers}
|
||||||
Before you can build anything you'll need to install the header files for your kernel. On Arch Linux:
|
Before you can build anything you'll need to install the header files for your kernel.
|
||||||
\begin{codebash}
|
|
||||||
sudo pacman -S linux-libre-headers
|
|
||||||
\end{codebash}
|
|
||||||
|
|
||||||
On Debian:
|
On Ubuntu/Debian:
|
||||||
\begin{codebash}
|
\begin{codebash}
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
apt-cache search linux-headers-`uname -r`
|
apt-cache search linux-headers-`uname -r`
|
||||||
\end{codebash}
|
\end{codebash}
|
||||||
|
|
||||||
This will tell you what kernel header files are available. Then for example:
|
On Arch Linux:
|
||||||
\begin{codebash}
|
\begin{codebash}
|
||||||
sudo apt-get install kmod linux-headers-5.6.7-1-amd64
|
sudo pacman -S linux-libre-headers
|
||||||
|
\end{codebash}
|
||||||
|
|
||||||
|
This will tell you what kernel header files are available.
|
||||||
|
Then for example:
|
||||||
|
\begin{codebash}
|
||||||
|
sudo apt-get install kmod linux-headers-5.4.0-80-generic
|
||||||
\end{codebash}
|
\end{codebash}
|
||||||
|
|
||||||
\section{Examples}
|
\section{Examples}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user