First, download the driver source code.
Second, make a file directory, for example, /driver/, and copy the driver source code to here, write the Makefile like:
obj-m:=*.o
Third, go to the linux kernel directory exist, e.g, /usr/src/kernels/2.6.18-8.el5-i686/
Forth, run the command make SUBDIRS=/driver/ modules
And there will be a file like *.ko in the /driver/ directory.
Finally, use the command rmmod to uninstall the old driver and insmod to install the new driver.
阅读(1982) | 评论(2) | 转发(0) |