linux 内核编译
时间: 2023-11-21 09:58:40 浏览: 130
以下是Linux内核编译的步骤:
1.获取内核源码,解压至/usr/src
```shell
tar xf linux-3.13.5.tar.xz -C /usr/src
ln -sv /usr/src/linux-3.13.5 /usr/src/linux
```
2.配置内核特性
```shell
make config # 遍历选择所要编译的内核特性
make allyesconfig # 配置所有可编译的内核特性
make allnoconfig # 并不是所有的都不编译
make menuconfig # 这种就是打开一个文件窗口选择菜单
make kconfig # KDE桌面环境下,并且安装了qt开发环境
make gconfig # Gnome桌面环境,并且安装gtk开发环境
```
3.编译内核
```shell
make [-j #] # #号最多为CPU物理核心总数的两倍,这样会快点哦
```
4.安装内核模块
```shell
make modules_install
```
5.安装内核
```shell
make install
```
6.验证并测试
```shell
cat /boot/grub/grub.conf # 查看新内核是否已经添加
reboot # 重启系统并测试
```
阅读全文
相关推荐
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![ppt](https://img-home.csdnimg.cn/images/20241231044937.png)
![application/pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![ppt](https://img-home.csdnimg.cn/images/20241231044937.png)
![application/pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![application/msword](https://img-home.csdnimg.cn/images/20210720083327.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![doc](https://img-home.csdnimg.cn/images/20241231044833.png)
![application/msword](https://img-home.csdnimg.cn/images/20210720083327.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![txt](https://img-home.csdnimg.cn/images/20241231045021.png)
![7z](https://img-home.csdnimg.cn/images/20241231044736.png)