在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的中断线程化代码的.这些实时实现 ...
随机推荐
- mybatis expected at least 1 bean which qualifies as autowire candidate for this dependency
错误原因:没有引入相应mapper接口,导致spring没有找到依赖 解决方法一:使用注解的方法: 首先在spring配置文件中添加 <bean class="org.mybatis. ...
- iOS 给tableView设置contentInset不生效?
给tableView设置contentInset的时候如果tableView中内容比较多,超过一个屏幕,设置的contentInset是生效的,但是呢,如果页面内容比较少,我们会发现设置content ...
- Unity5.1 新的网络引擎UNET(四) UNET Remote Actions
孙广东 2015.7.12 网络系统 具有网络中执行操作actions 的方法.这些类型的actions 有时是调用远程过程调用(Remote Procedure Calls). 在网络系统中有两 ...
- hive 字符集问题 报错 Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:For direct MetaStore DB connections,
学习hive 使用mysql作为元数据 hive创建数据库和切换数据库都是可以的 但是创建表就是出问题 百度之后发现 是编码问题 特别记录一下~~~ 1.报错前如图: 2.在mysql数据库中执行如 ...
- oracle 存储过程中使用date 时、分、秒丢失
今天有一开发兄弟找我.说出现一奇怪现象,在存储过程中赋date类型的值,时.分.秒都丢失了,以下来做个试验: SQL> drop table test purge; SQL> create ...
- cobbler default system 网络安装时主机的menu上只有一个local选项
问题:使用cobbler default system 做pxe网络安装时,主机启动后安装menu上只有一个local选项,看不到对应的system名字 解决:cobbler default syst ...
- VC++ Debug格式化数值显示
When you watch variables in the Watch or Quick Watch window, the values are displayed using the defa ...
- poj万人题
poj提交数量过万的题,除了水爆了的题就是无比经典的,不得不刷的题. 准备将poj上提交次数过万的题刷个遍. 持续更新中... poj 2828(线段树) 此题乃是Zhu, Zeyuan神牛出的,拿到 ...
- ssh框架搭建出现的问题和解决
[说明]今天尝试从头开始搭建ssh 框架, 真心是有点不太容易,可能是第一次吧,之前都是小打小闹. 一:今日完成 搭建 Spring 环境 --> 然后搭建 Hibernate 环境 --> ...
- 获取TXT文件,解决读取TXT乱码问题,查找所输入字是否在TXT文件中,
/// <summary> /// 查看是否存在 /// </summary> /// <param name="str"></param ...