一、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. 【Chromium中文文档】沙箱FAQ

    沙箱FAQ 转载请注明出处:https://ahangchen.gitbooks.io/chromium_doc_zh/content/zh//General_Architecture/Sandbox ...

  2. xxx.java: Recompile with -Xlint:unchecked for details.

    一.遇到问题:用ant执行jasperreport的samples/charts示例的build.xml时,无法编译,提示错误如下:javac:    [javac] Compiling 2 sour ...

  3. 为什么国外程序员爱用苹果 Mac 电脑?

      Mac 在国外很受欢迎,尤其是在 设计/web开发/IT 人员圈子里.普通用户喜欢 Mac 可以理解,毕竟 Mac 设计美观,简单好用,没有病毒.那么为什么专业人士也对 Mac 情有独钟呢?从个人 ...

  4. spring MVC通过json与前台交互

    这里用的是spring4.1.4,jquery2.1.3,其它环境为:myeclipse2014,tomcat7,jdk7 首先,新建一个web工程,并导入springMVC的jar包(为了方便起见我 ...

  5. CodeForces - 508D Tanya and Password(欧拉通路)

    Description While dad was at work, a little girl Tanya decided to play with dad characters. She has ...

  6. html表单提交的几种方法

    原文地址:http://www.ijser.cn/?p=34 最普通最经常使用最一般的方法就是用submit type..看代码: <form name=”form” method=”post” ...

  7. Linux--根文件系统的挂载过程分析

    前言: 本篇文章以S3C6410公版的Linux BSP和U-Boot来进行分析,文中全部提及的名词和数据都是以该环境为例,全部的代码流程也是以该环境为例来进行分析.哈哈.假设有不对或者不完好的地方, ...

  8. C++Primer 中间Sales_items.h头文件

    #ifndef SALESITEM_H #define SALESITEM_H #include <iostream> #include <string> class Sale ...

  9. Java面试题之weblogic相关问题

    WebLogic是美国Oracle公司出品的一个application server确切的说是一个基于JAVAEE架构的中间件,BEA WebLogic是用于开发.集成.部署和管理大型分布式Web应用 ...

  10. javascript高级知识分析——作为对象的函数

    代码信息来自于http://ejohn.org/apps/learn/. 函数和对象是不是非常相似? var obj = {}; var fn = function(){}; console.log( ...