简体   繁体   English

在FreeBSD内核中添加新设备

[英]Adding a new device to FreeBSD kernel

I have customized a device driver. 我已自定义设备驱动程序。 How can I add a new device to FreeBSD kernel? 如何向FreeBSD内核添加新设备? When I add that device I get this error while building the kernel: 当我添加该设备时,在构建内核时出现此错误:

config: Error: device "foo" is unknown
config: 1 errors
*** Error code 1
1 error
*** Error code 2
1 error

KLD is the recommended way to add a custom driver to the FreeBSD kernel. 建议使用KLD将自定义驱动程序添加到FreeBSD内核。 You can find some helpful documentation here . 您可以在此处找到一些有用的文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM