xenomai3.0.7驱动RTDM编译失败

weixin_50649413 2023-10-25 14:38:55

使用的是Ubuntu16.04,64位系统。内核版本:linux-4.9.90  xenomai 版本:xenomai-3.0.7。

代码如下:

#include <linux/kernel.h>
#include <linux/module.h>
#include <rtdm/driver.h>
#include <ltnux/init.h>
#include <linux/pci.h>
#include <rtdm/udd.h>
#include <cobalt/kernel/intr.h>
#include <alchemy/task.h>
#define CLOCK RES 1e-9 //clock resolution is 1 ns by default
#define LOOP PERIOD 1e7 //Expressed in ticks

MODULE_LICENSE("GPL");

static int year = 2014:

static int hello_i(void)
{
    printk("HELLO KERNEL, IT'S  %d!\n", year);
    return 0:

}

static void hello_e(void)
{
    printk(“BYE KERNEL, IT'S  %d!\n", year);
}
module_init(hello_i);
module_exit(hello_e);

 

Makefile如下:

 编译报错内容如下:

请问一下各位大佬这是什么问题呢?在Ubuntu14.04,32位系统。内核版本:linux-3.18.20  xenomai 版本:xenomai-2.6.5的时候,没有遇到过这样的问题,驱动部分添加RTDM也能正常编译过

...全文
312 回复 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

131

社区成员

发帖
与我相关
我的任务
社区描述
Xenomai中文社区。 Upstream - xenomai.org Mirror - gitee.com/Xenomai CSDN - bbs.csdn.net/forums/Xenomai
社区管理员
  • Xenomai
  • legonext
  • Cajb
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧