补充 Manjaro 构建内核开发环境方法;

强调重启的重要性.

Signed-off-by: ithink.chan <chenyang@autoai.com>
This commit is contained in:
ithink.chan 2020-04-27 15:08:39 +08:00
parent 80bf15dea1
commit a95dc2cfa7
1 changed files with 14 additions and 1 deletions

View File

@ -1,20 +1,33 @@
# Ubuntu 下搭建驱动开发环境 # Linux 下搭建驱动开发环境
## 升级 ## 升级
```sh ```sh
# Ubuntu
apt-get update apt-get update
apt-get upgrade apt-get upgrade
# Manjaro
pacman -Syu
``` ```
## 安装基础软件包 ## 安装基础软件包
```sh ```sh
# Ubuntu
apt-get install build-essential kernel-package kernek-source libncurses5-dev libssl-dev libelf-dev apt-get install build-essential kernel-package kernek-source libncurses5-dev libssl-dev libelf-dev
``` ```
## 安装内核源码 ## 安装内核源码
```sh ```sh
# Ubuntu
apt-get install linux-source-$(uname -r) apt-get install linux-source-$(uname -r)
# Manjaro
uname -r
pacman -Ss linux-headers
pacman -S linux<kernel version>-headers
``` ```
## 重启
由于升级时可能升级了内核,需要重启一次才能生效,否则 uname 返回值会与实际不符,以及导致其他奇怪问题。