From a95dc2cfa74ca2860ef1618d19dfa10084984612 Mon Sep 17 00:00:00 2001 From: "ithink.chan" Date: Mon, 27 Apr 2020 15:08:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=20Manjaro=20=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E5=86=85=E6=A0=B8=E5=BC=80=E5=8F=91=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E6=96=B9=E6=B3=95;=20=E5=BC=BA=E8=B0=83=E9=87=8D=E5=90=AF?= =?UTF-8?q?=E7=9A=84=E9=87=8D=E8=A6=81=E6=80=A7.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ithink.chan --- .../Linux/Kernel/Linux_下搭建驱动开发环境.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Software/Development/OperatingSystem/Linux/Kernel/Linux_下搭建驱动开发环境.md b/Software/Development/OperatingSystem/Linux/Kernel/Linux_下搭建驱动开发环境.md index 0157782..c82c477 100644 --- a/Software/Development/OperatingSystem/Linux/Kernel/Linux_下搭建驱动开发环境.md +++ b/Software/Development/OperatingSystem/Linux/Kernel/Linux_下搭建驱动开发环境.md @@ -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-headers ``` + +## 重启 + +由于升级时可能升级了内核,需要重启一次才能生效,否则 uname 返回值会与实际不符,以及导致其他奇怪问题。