在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的中断线程化代码的.这些实时实现 ...
随机推荐
- 资源文件properties的存放路径
参考这篇博客:http://lavasoft.blog.51cto.com/62575/184605 目前看来,大多数的做法是这样的: 比如a.properties需要被com.xxx.yyy这个包中 ...
- (译)Getting Started——1.3.2 Using Design Patterns(使用设计模式)
设计模式解决了一个常见的软件工程学问题.模式不是编码,它是抽象的设计.它用于帮助开发者定义数据模型的结构和应用的交互.如果你采用了某种设计模式,你需要把它的一般形式适配到你特殊的需求上.不论你的应用是 ...
- PHP——文本编辑器
简单的代码演示 详细文件在文件目录里 <!doctype html> <html> <head> <meta charset="utf-8" ...
- 两款 REST 测试工具
用CURL命令行测试REST API 无疑是低效率的,这里把最近使用的两款 Chrome 插件总结下 POSTMAN 简单易用 REST Console 功能强大 使用的话用POSTMAN就够用了,但 ...
- 中小企业项目的痛VS感人IT团队
早上,接到客户电话,dynamics CRM不能用了,此客户从开始安装程序开始二次开发期间,因电源问题导致服务器多次意外断电,至今也不加UPS电源.前几次,都不是很严重,服务器没有大量文件损坏,操作系 ...
- android最佳实践的建议(翻译自android-best-practices)
Best practices in Android development Use Gradle and its recommended project structure 使用Gradle和其推荐的 ...
- va_list中的_vsntprintf使用介绍
相信大家都用过sprintf这个函数,就是下面这样: int sprintf( char *buffer, const char *format [, argument] ... ); 在之前看到了用 ...
- BootStrap带样式打印
在新窗口打印时bootstrap表格的样式出不来,因为打印时没有加载CSS样式. 我在jquery.PrintArea.js的基础上改造了下打印的方法: (function ($) { var pri ...
- 2018 ACM-ICPC 北京赛区小结 @ Reconquista
Statistics TYPE: Onsite Contest NAME: 2018 - ICPC Regional - Asia EC - Beijing PLAT: Hihocoder TIME: ...
- (转)java并发对象锁、类锁、私有锁
转自:http://ifeve.com/java-locks/ 建议参考:http://www.zhihu.com/question/28113814 Java类锁和对象锁实践 感谢[jiehao]同 ...