Chinaunix首页 | 论坛 | 博客
  • 博客访问: 247432
  • 博文数量: 44
  • 博客积分: 1795
  • 博客等级: 上尉
  • 技术积分: 465
  • 用 户 组: 普通用户
  • 注册时间: 2006-07-04 12:02
文章分类

全部博文(44)

文章存档

2015年(1)

2011年(1)

2009年(7)

2008年(2)

2007年(7)

2006年(26)

我的朋友

分类:

2007-07-13 13:44:29

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.

阅读(995) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~