Linux 核心编译与管理

 

 

 

一般情况下,不需要重新编译核心,除非以下特有的用途

Linux 核心编译与管理

 

 Linux 核心编译与管理

 

 

Linux 核心编译与管理

 

 

 

[[email protected] ~]# wget ftp://ftp.twaren.net/pub/Unix/Kernel/linux/kernel/v3.x/linux-3.10.89.tar.xz
[[email protected] ~]# tar -Jxvf linux-3.10.89.tar.xz -C /usr/src/kernels/

[[email protected] ~]# ls /usr/src/kernels
3.10.0-957.el7.x86_64 linux-3.10.89

 

 

[[email protected] linux-3.10.89]# ls
arch  block  COPYING  CREDITS  crypto  Documentation  drivers  firmware  fs  include  init  ipc  Kbuild  Kconfig  kernel  lib  MAINTAINERS  Makefile  mm  net  README  REPORTING-BUGS  samples  scripts  security  sound  tools  usr  virt

 

Linux 核心编译与管理

 

开始编译

[[email protected] ~]# cd /usr/src/kernels/linux-3.10.89/
[[email protected] linux-3.10.89]# ls
arch  block  COPYING  CREDITS  crypto  Documentation  drivers  firmware  fs  include  init  ipc  Kbuild  Kconfig  kernel  lib  MAINTAINERS  Makefile  mm  net  README  REPORTING-BUGS  samples  scripts  security  sound  tools  usr  virt
[[email protected] linux-3.10.89]# make mrproper

要删除以前的编译数据,只需要
make clean就可以

Linux 核心编译与管理

 

 

[[email protected] linux-3.10.89]# cp /boot/config-3.10.0-957.el7.x86_64 .config


  [[email protected] linux-3.10.89]# make menuconfig

  

  会出现下图所示的内容

 

 Linux 核心编译与管理

 

 上图介绍

Linux 核心编译与管理

 

 

Linux 核心编译与管理

 

 对照着书中进行的改动

Linux 核心编译与管理

 

 

 一下的截图是每一个细项的解释说明

Linux 核心编译与管理

 

Linux 核心编译与管理

 

Linux 核心编译与管理

 

Linux 核心编译与管理

 

 Linux 核心编译与管理

 

Linux 核心编译与管理

 

Linux 核心编译与管理

 

 Linux 核心编译与管理

 

Linux 核心编译与管理

 

 Linux 核心编译与管理

 

Linux 核心编译与管理

 

 Linux 核心编译与管理

 

Linux 核心编译与管理

 

 Linux 核心编译与管理

 

 

鸟哥说非常耗费时间。经过测试,确实非常耗费时间,做好等待的准备吧

 剩下的直接看懵我了。。。。好吧。先把重点回顾贴一下吧,剩下的再慢慢研究,懵的

Linux 核心编译与管理

 

Linux 核心编译与管理

 

相关文章:

  • 2021-12-23
  • 2021-11-24
  • 2021-05-31
  • 2022-01-20
  • 2022-12-23
  • 2021-12-24
猜你喜欢
  • 2021-06-25
  • 2022-12-23
  • 2021-07-22
  • 2021-06-10
  • 2021-06-07
  • 2021-12-23
相关资源
相似解决方案