一、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. [置顶] 实习总结3-job hunting(西安工作)

    开始整理关于西安top level的IT企业的工作从去年开始实习就慢慢展开了,到了北京之后一直关注的比较密切,因此前前后后也整理了很多.本来不打算那么急着写这一篇的,但是在因为在公司呆着,对于西安的一 ...

  2. docker 配置桥接网络

    2.5 docker配置桥接网络(上): 为了使本地网络中的机器和Docker 容器更方便的通信,我们经常会有将Docker容器 配置到和主机同一网段的需求. 这个需求其实很容器实现, 我们只需要将D ...

  3. Pig On Mac

    Install 首先是 Mac OS 下的安装 1 2 export JAVA_HOME=$(/usr/libexec/java_home) brew install pig Run Pig 运行分为 ...

  4. HDU 5700 区间交(线段树)

    [题目链接] http://acm.hdu.edu.cn/showproblem.php?pid=5700 [题目大意] 给出一个长度为n的数列和m个区间,现在求k个区间,使得他们的区间交内的数列项和 ...

  5. Spring、使用注解方式装配对象(@Resource、@Autowired)

    使用手工注解方式有两种方式@Resource.@Autowired 首先,引入注解所使用的Jar包  :common-annotations.jar 然后在beans.xml中加入命名空间空间 xml ...

  6. android listview 三种适配器设置

    1: public class ArrayAdapterActivity extends ListActivity { @Override public void onCreate(Bundle sa ...

  7. NodeJS下载文件实例

    var http = require('http');var express = require('express');var fs=require("fs"); var app ...

  8. WebView缓存

    文章从:http://www.360doc.com/content/14/0611/13/15210553_385676271.shtml  摘录而来 当webview加载html页面时,会在/dat ...

  9. Struts 2.x Unable to load configuration. - action

    问题分析:遇到该问题一般是struts中某个配置文件没有正确配置,比如: 1.class中的TestAction没有成功加载: <constant name="struts.i18n. ...

  10. notepad++中的zencoding的快捷键修改[转]

    在notepad++自己的”设置-->管理快捷键“中,找不到zen coding的快捷键,我又不想改掉已经用习惯了的ctrl+/,结果就用了一种比较偏门的修改快捷键的解决方案,希望可以帮到有同样 ...