在Centos上打Preempt-rt实时补丁(续)
经过上一篇,发现2.6.31版本的补丁不能正常运行(还未找到原因),现改用2.6.33版本:
- kernel:linux-2.6.33.9
- patch:patch-2.6.33.9-rt
解压并打好补丁后,按照如下步骤进行:
1.配置内核
- make mrprobe //清除环境变量,即清除配置文件
- make menuconfig
(1)进入菜单networking support -> networking options -> network packet filtering framework(netfilter)
A. core netfilter configuration
勾中”Netfilter connection tracking support”
将netbios name service protocal support(new) 编译成模块(状态用空格切换为“M”)
勾中“Netfilter Xtables support (required for ip_tables)”
B. IP: Netfilter Configuration
将“IPv4 connection tracking support (require for NAT)” 编译成模块(状态用空格切换为“M”)
勾中IP tables support (required for filtering/masq/NAT)
将“Full NAT” 下的 “MASQUERADE target support” 和 “REDIRECT target support” 编译成模块(状态用空格切换为“M”)
(2)进入Processor type and features -> Preemption Mode
A. 选中“Complete Preemption(Real-Time)”
B. 选中“Thread Softirqs”和“Thread Hardirqs”
(3)进入Device Drivers,去掉“Staging Drivers”
(4)进入Device Drivers -> Network device support -> Network device support ->
A. Intel(R) PRO/1000 Gigabit Ethernet support
B. Intel(R) PRO/1000 PCI-Express Gigabit Ethernet support
(5)退出并保存
2.编译模块
- make clean // 确保所有东西均保持最新状态
- make bzImage // 生成内核文件
- make modules // 编译模块
3.安装
- make modules_install // 安装模块
- make install // 安装
此处,第二部会报错,形式如下:
- [root@gdyang linux-2.6.33.9]# make install
- sh /usr/src/linux-2.6.33.9/arch/x86/boot/install.sh 2.6.33.9-rt31 arch/x86/boot/bzImage \
- System.map "/boot"
- ERROR: modinfo: could not find module aesni_intel
- ERROR: modinfo: could not find module ablk_helper
- ERROR: modinfo: could not find module xt_CHECKSUM
- ERROR: modinfo: could not find module mperf
- ERROR: modinfo: could not find module ip_tables
- ERROR: modinfo: could not find module nf_defrag_ipv6
- ERROR: modinfo: could not find module nf_conntrack
- ERROR: modinfo: could not find module iwldvm
- ERROR: modinfo: could not find module iwlwifi
- ERROR: modinfo: could not find module lpc_ich
- ERROR: modinfo: could not find module e1000e
- ERROR: modinfo: could not find module ptp
- ERROR: modinfo: could not find module xhci_hcd
- ERROR: modinfo: could not find module i915
- ERROR: modinfo: could not find module nouveau
- ERROR: modinfo: could not find module mxm_wmi
但不影响系统启动。
4.后续处理
- mkinitrd /boot/initrd-2.6.33.9-rt31.img 2.6.33.9-rt31
- cp arch/x86/boot/bzImage /boot/vmlinuz-2.6.33.9-rt31
- cp /usr/src/linux-2.6.33.9/System.map /boot/System.map-2.6.33.9-rt31
在Centos上打Preempt-rt实时补丁(续)的更多相关文章
- 如何在Ubuntu/CentOS上安装Linux内核4.0
大家好,今天我们学习一下如何从Elrepo或者源代码来安装最新的Linux内核4.0.代号为‘Hurr durr I'm a sheep’的Linux内核4.0是目前为止最新的主干内核.它是稳定版3. ...
- 在Centos上安装RabbitMQ流程(转)
在Centos上安装RabbitMQ流程------------------------ 1. 需求 由于项目中要用到消息队列,经过ActiveMQ与RabbitMQ的比较,最终选择了RabbbitM ...
- CentOS上部署JAVA服务【转】
http://www.th7.cn/Program/java/201511/686437.shtml 本文将介绍如何在CentOS上运行Java Web服务,其中将包括如何搭建JAVA运行环境.如何开 ...
- 在CentOS上把MySQL从5.5升级到5.6(转)
http://www.th7.cn/db/mysql/201408/66064.shtml 在CentOS上把MySQL从5.5升级到5.6 摘要:本文记录了在CentOS 6.3上,把MySQL从5 ...
- 在CentOS上把PHP从5.4升级到5.5
在CentOS上把PHP从5.4升级到5.5 摘要:本文记录了在CentOS 6.3上,把PHP从5.4.8升级到5.5.13的过程. 1. 概述 在我做的一个项目中,最近我对生产服务器上的一系列系统 ...
- 在CentOS上把MySQL从5.5升级到5.6
在CentOS上把MySQL从5.5升级到5.6 摘要:本文记录了在CentOS 6.3上,把MySQL从5.5.28升级到5.6.19的过程. 1. 概述 在我做的一个项目中,最近我对生产服务器上的 ...
- 在CentOS上把Nginx从1.2.4升级到1.6.0
在CentOS上升级把Nginx从1.2.4升级到1.6.0 摘要:本文记录了在CentOS 6.3上,把Nginx从1.2.4升级到1.6.0的过程. 1. 概述 在我做的一个项目中,最近我对生产服 ...
- centos上安装supervisor来管理dotnetcore等应用程序
supervisor 介绍: 这是一款用python编写的进程管理工具,可以守护他管理的所有进程,防止异常退出,以及提供一个可视化的web界面来手动管理,打开关闭重启各种应用,界面如下: 关于在cen ...
- mysql集群基于docker 在centos上
新博客https://blog.koreyoshi.work/ mysql集群(PXC)基于docker 在centos上 常用设计方案 Replication(复制) 速度快 弱一致性 低价值 场景 ...
- Ingo Molnar 的实时补丁
一.简介 Ingo Molnar 的实时补丁是完全开源的,它采用的实时实现技术完全类似于Timesys Linux,而且中断线程化的代码是基于TimeSys Linux的中断线程化代码的.这些实时实现 ...
随机推荐
- ubuntu MySQL数据库输入中文乱码 解决方案
一.登录MySQL查看用SHOW VARIABLES LIKE ‘character%’;下字符集,显示如下:+--------------------------+----------------- ...
- Vue 混合
混合(mixins)是一种分发vue组件中可复用功能的非常灵活的方式.混合对象可以可以包含任意组件选项.以组件使用混合对象时,所有混合对象的选项将被混合到该组件本身的选项. //定义一个混合对象 va ...
- IDEA2017 导入 SVN上的 Myeclipse或Eclipse 项目
从SVN上检出项目,不用打开. 关闭IDEA后选择 import project,导入后按F4 (改成eclipse按键模式后 按ctrl alt shift F4)进入 project struct ...
- C#关键字之Partial详解
Partial是局部类型的标志.局部类型可以实现将一个类.结构或接口分成几个部分,分别放在在几个不同的.cs文件中(当然也可以放在同一个.cs文件中).在程序进行编译之后,将会合并成一个完整的类.因此 ...
- Intellij IDEA常用快捷键整理
ps:使用Intellij IDEA编辑器有蛮长一段时间了.哈哈.整合一下常用的快捷.避免自己以后还要再找. 顺序大概就是从上到下的 Alt + ENTER : 自动修正,提示Alt + Insert ...
- 【转】MYSQL 存储过程定时操作数据库
这个涉及2个步骤,第一个就是建立存储过程: create procedure clear_table() begin drop database XXX end 第二步就是让其定时运行: 查看even ...
- 【BZOJ】2102: [Usaco2010 Dec]The Trough Game(暴力)
http://www.lydsy.com/JudgeOnline/problem.php?id=2102 直接枚举所有情况......然后判断是否可行.. #include <cstdio> ...
- 第10步:DBCA创建实例
注意,创建磁盘组时需要以oracle用户身份执行,在那之前可能需要以root身份执行xhost+,即命令: 代码1 [root@sgdb1~]# xhost+ [root@sgdb1~]# su - ...
- MathType与Origin是怎么兼容的
MathType作为一款常用的公式编辑器,可以与很多的软件兼容使用.Origin虽然是一款专业绘图与数据分析软件,但是在使用过程中也是可以用到MathType.它可以帮助Origin给图表加上标签,或 ...
- 【译】.Net 垃圾回收机制原理(转)
上一篇文章介绍了.Net 垃圾回收的基本原理和垃圾回收执行Finalize方法的内部机制:这一篇我们看下弱引用对象,代,多线程垃圾回收,大对象处理以及和垃圾回收相关的性能计数器. 让我们从弱引用对象说 ...