一、linux内核

1.查看linux内核版本

uname -r

2.下载对应的linux内核

https://www.kernel.org/pub/linux/kernel/

将内核文件夹解压到/usr/src/

cd /usr/src/linux***(你的内核文件夹)
#make menuconfig

这里会出现错误:

HOSTCC scripts/basic/fixdep

HOSTCC scripts/basic/docproc

HOSTCC scripts/kconfig/conf.o

HOSTCC scripts/kconfig/kxgettext.o

*** Unable to find the ncurses librariesor the

*** required header files.

*** 'make menuconfig' requires thencurses libraries.

***

*** Install ncurses (ncurses-devel) andtry again.

***

make[1]: *** [scripts/kconfig/dochecklxdialog] Error1

make: *** [menuconfig] Error 2

提示缺少了ncurses 库

apt-get install libncurses5-dev

2

# make xconfig

  CHECK  qt
* Unable to find the QT4 tool qmake. Trying to useQT3
*
* Unable to find any QT installation. Please make surethat
* the QT4 or QT3 development package is correctlyinstalled and
* either qmake can be found or install pkg-config orset
* the QTDIR environment variable to the correctlocation.
*
sed < scripts/kconfig/lkc_proto.h> scripts/kconfig/lkc_defs.h's/P(\([^,]*\),.*/#define \1 (\*\1_p)/'
  HOSTCC scripts/kconfig/kconfig_load.o
make[1]: *** No rule to make target`scripts/kconfig/.tmp_qtcheck', needed by`scripts/kconfig/qconf.o'.  Stop.
make: *** [xconfig] Error 2
 提示缺少qt 开发环境
apt-get install qt4-dev-tools

# make xconfig
 
 
CHECK  
qt
/usr/bin/moc -i scripts/kconfig/qconf.h -oscripts/kconfig/qconf.moc
 
 
HOSTCXXscripts/kconfig/qconf.o
 
 
HOSTLD 
scripts/kconfig/qconf
scripts/kconfig/qconf Kconfig
No protocol specified
qconf: cannot connect to X server :0.0
make[1]: *** [xconfig] Error 1
make: *** [xconfig] Error 2

3.解决问题 继续

 #sudo make menuconfig
# 選擇下面的 module
# Networking support ->
# Networking options ->
# Network packet filtering framework (Netfilter) ->
# IP: Netfilter Configuration

4.重新编译系统(比较久)

sudo make all

5.编译模块

sudo make modules_install

这里会出现错误

#make menuconfig
然后进入Loadable module support, 选中Enable loadable module support

可以了 继续编译模块

sudo make modules_install
sudo make install

linux重新编译内核的更多相关文章

  1. Linux下编译内核配置选项简介

    Code maturity level options代码成熟度选项 Prompt for development and/or incomplete code/drivers 显示尚在开发中或尚未完 ...

  2. Linux自制编译内核

    今天我们来自己学习编译内核并使用它.自制内核是个人定制版,定制自己专属的内核环境. 我们先看看编译步骤有哪些: 步骤: 1.# tar xf linux-3.10.37.tar.xz -C /usr/ ...

  3. Gentoo安装详解(二)-- 编译内核

    编译内核: 安装内核源码: 选择内核:如gentoo-sources emerge gentoo-sources ls -l /usr/src/linux 手动编译内核: cd /usr/src/li ...

  4. linux如何编译安装新内核支持NTFS文件系统?(以redhat7.2x64为例)

    内核,是一个操作系统的核心.它负责管理系统的进程.内存.设备驱动程序.文件和网络系统,决定着系统的性能和稳定性.Linux作为一个自由软件,在广大爱好者的支持下,内核版本不断更新.新的内核修订了旧内核 ...

  5. archlinux 传统方法编译内核linux kernel 3.3.7

    From: http://hi.baidu.com/flashgive/item/eaef6326b5eb73d3a417b662 archlinux中传统方法编译内核 1)下载内核以及补丁并解压: ...

  6. linux内核编译,内核参数修改

    核心(kernel):/boot/vmlinuz-version version 带发行包版本,本地版本内核模块(kernel object): /lib/modules/version/ 内核设计: ...

  7. 【原创】Linux编译内核

    Linux 编译内核 大致分这几个步骤 1.准备编译工具.内核文件 2.开始编译 3.将编译好的新内核install进系统 4.查看是否成功.   一.准备好必备的库和内核文件   1.添加必备的编译 ...

  8. Linux 4.1内核编译报告

    编译环境 Arch Linux on VirtualBox 下载内核 https://www.kernel.org/ 下载的内核压缩包,此时的最新内核版本为4.1: 解压包 # tar -xvJf l ...

  9. linux内核学习之二:编译内核

    在linux内核学习系列的第一课中讲述了搭建学习环境的过程(http://www.cnblogs.com/xiongyuanxiong/p/3523306.html),环境搭好后,马上就进入到下一环节 ...

随机推荐

  1. Android Monkey Test

    Monkey测试是Android自动化测试的一种手段,Monkey测试本身非常简单,就是模拟用户的按键输入,触摸屏输入,手势输入等,看设备多长时间会出异常.当Monkey程序在模拟器或设备运行的时候, ...

  2. (Pre sell) ZOPO ZP998 (C2 II) 5.5 inch smart phone True Octa Core MTK6592 1920X1080 FHD screen 401 ppi 2GB/32GB 14.0Mp camera-in Mobile Phones from Electronics on Aliexpress.com

    (Pre sell) ZOPO ZP998 (C2 II) 5.5 inch smart phone True Octa Core MTK6592 1920X1080 FHD screen 401 p ...

  3. HDOJ1166 敌兵布阵

    赤裸裸的线段树,借个模板,改写一下即可. 代码: #include<iostream> #include<cstdio> #include<stdio.h> #in ...

  4. 全国计算机等级考试二级教程-C语言程序设计_第7章_函数

    函数执行,从右到左执行 #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<string.h> main() ...

  5. 【每天一个Linux命令】14. Linux中locate命令的用法

    命令用途 locate 让使用者可以很快速的搜寻档案系统内是否有指定的档案. 其方法是先建立一个包括系统内所有档案名称及路径的数据库,之后当寻找时就只需查询这个数据库,而不必实际深入档案系统之中了. ...

  6. 跟我一起学extjs5(24--模块Form的自己定义的设计[2])

    跟我一起学extjs5(24--模块Form的自己定义的设计[2])         在本节中将要增加各种类型的字段,在增加字段的时候因为能够一行增加多个字段,因此层次结构又多了一层fieldcont ...

  7. Swfit中视图跳转

    .跳转到任一UIViewController var sb = UIStoryboard(name: "Main", bundle:nil) var vc = sb.instant ...

  8. ORA-32001: 已请求写入 SPFILE, 但是在启动时未指定 SPFILE

    SQL> alter system set smtp_out_server='smtp.126.com' scope=both;alter system set smtp_out_server= ...

  9. 我本人一直以来犯的错误,在看了《Think In Java》后才抓了出来(转)

    也许你是只老鸟,也许你的程序编的很精,但是,在你的程序生活,你也许没有注意到一些“常识性”的问题,因为有些时候我们不需要去注意,我们的程序 照样能够运行得飞快,但是如果那天有一个无聊的人问你一个像这样 ...

  10. C趣味100道之58.拉丁方的一些想法。

    题目如上. 思路(未写) 完整代码如下: #include<iostream> #include<queue> #include<math.h> using nam ...