linux内核在编译RTAI时的配置说明

本文介绍了如何通过命令查看Linux系统的CPU类型,并详细解析了CPU配置信息,包括处理器家族、特性支持等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

可以先用命令:cat /proc/cpuinfo 查看cpu类型

cat /proc/cpuinfo,可以看到如下行:

    model name : Intel(R) Core(TM)2 Duo CPU     T5750  @ 2.00GHz

因此, Processor type and features ---> Processor Family对应的CPU类型为:core 2/newer Xeon

    配置如下:

---------------------------------------------------------------------------------------------------------------   

Enable loadable module support ---> enabled [*]

Enable Loadable module support ---> Module versioning support ---> disabled

Processor type and features ---> Processor Family ---> Core 2/newer Xeon

Processor type and features ---> HPET Timer Support ---> disabled

Processor type and features ---> Preemtible Kernel (Low-Latency Desktop)  (PREEMPT=y)

Processor type and features ---> Interrupt pipeline ---> enabled [*] 

Power management and ACPI options ---> ACPI (Advanced Configuration and Power Interface) Support ---> enabled [*]

Power management and ACPI options ---> ACPI (Advanced Configuration and Power Interface) Support ---> Deprecated /proc/acpi files ---> disabled

Power management and ACPI options ---> ACPI (Advanced Configuration and Power Interface) Support ---> Deprecated power /proc/acpi directories ---> disabled

Power management and ACPI options ---> ACPI (Advanced Configuration and Power Interface) Support ---> Future power /sys interface ---> disabled

Power management and ACPI options ---> ACPI (Advanced Configuration and Power Interface) Support ---> Deprecated /proc/acpi/event support ---> disabled

Power management and ACPI options ---> ACPI (Advanced Configuration and Power Interface) Support ---> AC Adapter ---> disabled

Power management and ACPI options ---> ACPI (Advanced Configuration and Power Interface) Support ---> Battery ---> disabled

Power management and ACPI options ---> ACPI (Advanced Configuration and Power Interface) Support ---> Button ---> enabled[*]

Power management and ACPI options ---> ACPI (Advanced Configuration and Power Interface) Support ---> Video ---> module [M]

Power management and ACPI options ---> ACPI (Advanced Configuration and Power Interface) Support ---> Fan ---> disabled

Power management and ACPI options ---> ACPI (Advanced Configuration and Power Interface) Support ---> Dock ---> enabled [*]

Power management and ACPI options ---> ACPI (Advanced Configuration and Power Interface) Support ---> Processor ---> disabled

Power management and ACPI options ---> ACPI (Advanced Configuration and Power Interface) Support ---> Disable ACPI for systems before Jan 1st this year ---> 0

Power management and ACPI options ---> ACPI (Advanced Configuration and Power Interface) Support ---> Debug Statements ---> disabled

Power management and ACPI options ---> ACPI (Advanced Configuration and Power Interface) Support ---> PCI slot detection driver ---> disabled

Power management and ACPI options ---> ACPI (Advanced Configuration and Power Interface) Support ---> Container and Module Devices ---> disabled

Power management and ACPI options ---> ACPI (Advanced Configuration and Power Interface) Support ---> Smart Battery System ---> disabled

Power management and ACPI options ---> APM (Advanced Power Management) BIOS support ---> disabled

Power management and ACPI options ---> CPU Frequency scaling ---> disabled

If you are using an older RTAI patch you may get the following error:

include/linux/ipipe.h:76:2: error: #error "CONFIG_NR_CPUS is too large, please lower it."

To fix this disable sparse irq numbering (CONFIG_SPARSE_IRQ=n):

Processor type and features ---> Support sparse irq numbering ---> disabled

If you have a multi cores CPU or SMP system, don't choose a processor family which has no TSC (time stamp counter).

This means that for example you can not choose 586/K5/5x86/6x86/6x86MX as Processor family if you have a dual cores CPU.

In conclusion, choose the most suitable processor family for your machine.

NOTE: No need to disable High Memory Support for RTAI 3.7.1 and newer

NOTE: No need to disable Symmetric multi-processing support for the uniproccesor machine for RTAI 3.7.1 and newer.

But if you don't have a multi cores CPU or SMP system, you can disable it to improve the performance

NOTE: There was supposedly no need to disable Module Versioning Support for RTAI 3.7.1, but it seems to be needed for the latest RTAI (3.8.1 or magma).

I don't know if this is an RTAI problem or emc2, since I could run the RTAI latency test but not the emc2 stuff.

  NOTE: No need to turn off debugging if building packages with the ubuntu debian/rules sy

---------------------------------------------------------------------------------------------------------------  

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值