在SOLARIS上安装驱动遇到的问题。
从网上下了个程序用于产生毫秒延时,但是需要自己把程序安装成驱动。原文是这样说的:
X Compile with cc -O -c ft.c
X
X Written for a Sys V.3 system, but should work on others.
X
X For Sys V.3:
X
X Make a new kernel according to the instructions and then:
X mknod /dev/ft c 28 0
X
X modules/ft/config:
X character(28)
X prefix = ft
X functions = open, close, read
X
X Edit systems/system.std and add ft.
X Copy ft.o to modules/ft/config
编译是编译完了,但是看了上面的还是不懂怎么装。我是按照SOLARIS上有关驱动的文档来装的:先是拷贝到/usr/kernel/drv目录下,然后执行 add_drv ft,但是执行结果是:
devfsadm: driver failed to attach: ft
Warning: Driver (ft) successfully added to system but failed to attach
还请各位老大帮忙看看应该怎么装。多谢乐。