要给两台pc装linux,同事选了AS5,开始安装……除了网卡一切顺利,记得windows下显示是Atheros L2的网卡,在找到相关驱动,下来驱动文件,按照readme操作,结果报错
make -C /lib/modules/2.6.18-164.el5PAE/build SUBDIRS=/work/l2-linux-v1.0.40.4/src modulesmake[1]: Entering directory `/usr/src/kernels/2.6.18-164.el5-PAE-i686' CC [M] /work/l2-linux-v1.0.40.4/src/at_main.oIn file included from /work/l2-linux-v1.0.40.4/src/at.h:30, from /work/l2-linux-v1.0.40.4/src/at_main.c:28:/work/l2-linux-v1.0.40.4/src/kcompat.h:1084: 错误:‘irq_handler_t’ 重定义include/linux/interrupt.h:67: 错误:‘irq_handler_t’ 的上一个声明在此make[2]: *** [/work/l2-linux-v1.0.40.4/src/at_main.o] 错误 1make[1]: *** [_module_/work/l2-linux-v1.0.40.4/src] 错误 2make[1]: Leaving directory `/usr/src/kernels/2.6.18-164.el5-PAE-i686'make: *** [default] 错误 2上网搜之,参考处理办法,注释掉1084行内容,终于编译成功
make -C /lib/modules/2.6.18-164.el5PAE/build SUBDIRS=/work/l2-linux-v1.0.40.4/src modulesmake[1]: Entering directory `/usr/src/kernels/2.6.18-164.el5-PAE-i686' CC [M] /work/l2-linux-v1.0.40.4/src/at_main.o CC [M] /work/l2-linux-v1.0.40.4/src/at_hw.o CC [M] /work/l2-linux-v1.0.40.4/src/at_param.o CC [M] /work/l2-linux-v1.0.40.4/src/at_ethtool.o CC [M] /work/l2-linux-v1.0.40.4/src/kcompat.o LD [M] /work/l2-linux-v1.0.40.4/src/atl2.o Building modules, stage 2. MODPOST CC /work/l2-linux-v1.0.40.4/src/atl2.mod.o LD [M] /work/l2-linux-v1.0.40.4/src/atl2.komake[1]: Leaving directory `/usr/src/kernels/2.6.18-164.el5-PAE-i686'gzip -c ../atl2.7 > atl2.7.gz# remove all old versions of the driverfind /lib/modules/2.6.18-164.el5PAE -name atl2.ko -exec rm -f {} \; || truefind /lib/modules/2.6.18-164.el5PAE -name atl2.ko.gz -exec rm -f {} \; || trueinstall -D -m 644 atl2.ko /lib/modules/2.6.18-164.el5PAE/kernel/drivers/net/atl2/atl2.ko/sbin/depmod -a || trueinstall -D -m 644 atl2.7.gz /usr/share/man/man7/atl2.7.gzman -c -P'cat > /dev/null' atl2 || true配置IP,联网测试……同样方法搞定第二台,回家吃饭……
阅读(1647) | 评论(0) | 转发(0) |