如何给AM335X的Linux 内核 打 xenomai 补丁

如题所述

将内核源文件夹根目录下 .config文件的几个标志位作如下设置:
CONFIG_HPET_TIMER=n
CONFIG_HPET_EMULATE_RTC=n
CONFIG_SPARSE_IRQ=n
当出现"per_cpu__irq_stack_union" undeclared error,将CONFIG_CC_STACKPROTECTOR设置为n

> I have a xenomai kernel running!
>
> I have tested using the testsuit latency ./run program. initially I
> got this message
>
> Xenomai: incompatible feature set.
> (required="sep tsc", present= "sep", missing="tsc")
方法1. To fix this, you need to select a x86 CPU supporting a timestamp counter
when configuring your kernel, since by default, the configure script
assumes --enable-x86-tsc.

方法2:The problem is that the TSC feature must be enabled in kernel-space if
you want to enable it in user-space. So, you have two choices:
- either you enable the TSC in kernel-space by selecting the processor
in kernel configuration which fits your processor (as suggested in
Xenomai FAQ);
- either you disable usage of TSC in user-space by passing --disable-tsc
to configure.
温馨提示:答案为网友推荐,仅供参考