在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的中断线程化代码的.这些实时实现 ...
随机推荐
- redis数据类型List的安全队列和不安全队列
在学习RPOPLPUSH命令的时候,官方文档中有提到安全队列和不安全的队列,一开始没有看懂,现在理解了做个笔记. 一般情况下,我们可以借助List来实现消息队列,比如一个客户端通过命令LPUSH(BL ...
- gm: error while loading shared libraries: libpng15.so.15: cannot open shared object file: No such file or directory
安装gm库产生问题 解决方案: # cat /etc/ld.so.confinclude ld.so.conf.d/*.conf# echo "/usr/local/lib" &g ...
- Nginx+PHP-FPM优化技巧总结
php-fpm的安装很简单,参见PHP(PHP-FPM)手动编译安装.下面主要讨论下如何提高Nginx+Php-fpm的性能. 1.Unix域Socket通信 之前简单介绍过Unix Doma ...
- 第一周python入门
第一编程语言的分类: 1.机器语言 二进制编程 直接操作硬件 优点:执行速度快 缺点:开发效率低 面向机器编程 2.汇编语言 英文标签代替一串特定的二进制,直接操作硬件 缺点开发效率低 面向 ...
- VMWare虚拟机 网络连接模式
这个是rocks 群里面我的一个朋友分享的,我觉很好而且描述的很清楚,这是一个做事的态度问题. 1 VMWare虚拟机bridged.host-only和NAT网络模式的区别和用法 VMWare提 ...
- 参考 generate-parentheses
分析: 关键:当前位置左括号不少于右括号 图是什么? 节点:目前位置左括号和右括号数(x,y)(x>=y) 边:从(x,y)到(x+1,y)和(x,y+1) ...
- .NET学习笔记(2)
--在子页面设置模板页的图片: ( this.Master.FindControl(“imgHead”) as Image ).ImageUrl = “upload/image1.jpg” ; 文件的 ...
- mfc小工具开发之定时闹钟之---功能介绍
使用背景: 之前在xp上用过飞雪日历,感觉挺好用的,还有在音频上的兴趣,促使了我也要自己做一个简单的定时闹钟. 之前开发过图片格式的小工具,没来的急分享,后期整理后,一块奉上,写这篇介绍的时候已近完成 ...
- boost数据结构tuple
boost数据结构tuple tuple(元组)定义了一个有固定数目元素的容器,其中每个元素类型可以不相同,这与其它容器有着本质的区别!vector和array虽然可以容纳很多元素,但是元素的类型必须 ...
- ext布局问题之tab panel内的gridpanel内容数据变多,出现滚动条
1)解决之道: 1.修改tabPanel var tabs= new Ext.TabPanel({ border: false, region:'center', id:'center', activ ...