补充 Manjaro 构建内核开发环境方法;
强调重启的重要性. Signed-off-by: ithink.chan <chenyang@autoai.com>
This commit is contained in:
parent
80bf15dea1
commit
a95dc2cfa7
|
@ -1,20 +1,33 @@
|
|||
# Ubuntu 下搭建驱动开发环境
|
||||
# Linux 下搭建驱动开发环境
|
||||
|
||||
## 升级
|
||||
|
||||
```sh
|
||||
# Ubuntu
|
||||
apt-get update
|
||||
apt-get upgrade
|
||||
# Manjaro
|
||||
pacman -Syu
|
||||
```
|
||||
|
||||
## 安装基础软件包
|
||||
|
||||
```sh
|
||||
# Ubuntu
|
||||
apt-get install build-essential kernel-package kernek-source libncurses5-dev libssl-dev libelf-dev
|
||||
```
|
||||
|
||||
## 安装内核源码
|
||||
|
||||
```sh
|
||||
# Ubuntu
|
||||
apt-get install linux-source-$(uname -r)
|
||||
# Manjaro
|
||||
uname -r
|
||||
pacman -Ss linux-headers
|
||||
pacman -S linux<kernel version>-headers
|
||||
```
|
||||
|
||||
## 重启
|
||||
|
||||
由于升级时可能升级了内核,需要重启一次才能生效,否则 uname 返回值会与实际不符,以及导致其他奇怪问题。
|
||||
|
|
Loading…
Reference in New Issue