linux 设备驱动开发问题
您好! 做PCI linux 设备驱动中断控制部分发生如下的错误:
i686/include/linux/irq.h:21,
from
/usr/src/kernels/2.6.11-1.1369_FC4-i686/include/asm/hardirq.h:6,
from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/hardirq.h:6,
from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/interrupt.h:11,
from pci.c:21:
/usr/src/kernels/2.6.11-1.1369_FC4-i686/include/asm/irq.h:16:25: error: irq_vectors.h: 没有那个文件或目录
In file included from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/asm/hardirq.h:6,
from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/hardirq.h:6,
from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/interrupt.h:11,
from pci.c:21:
/usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/irq.h: 在顶层:
/usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/irq.h:72: 错误:‘NR_IRQS’ 未声明 (不在函数内)
In file included from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/irq.h:74,
from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/asm/hardirq.h:6,
from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/hardirq.h:6,
from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/interrupt.h:11,
from pci.c:21:
/usr/src/kernels/2.6.11-1.1369_FC4-i686/include/asm/hw_irq.h:28: 错误:‘NR_IRQ_VECTORS
程序是根据LINUX设备驱动程序第三版做的,我的内核是2.6.11-1.1369_FC4 !是不是 内核不匹配呢! 有经验的高人您遇到过这个问题吗?您是如何解决的!希望您可以帮助我!谢谢您!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
老问题了,建议重新编译内核或是安装这个内核的开发版。