LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 785|回复: 3

请教:关于在LINUX AS4 上配置Marvell 网卡遇到的

[复制链接]
发表于 2006-3-14 17:18:55 | 显示全部楼层 |阅读模式
之前作了一个LN
ln /usr/src/kernels/2.6.9-5.EL-i686 /usr/src/linux

然后运行安装程序,以下是操作步骤:

[root@pfs1 DriverInstall]# ls
install.log  install.sh  README  sk98lin.4  sk98lin.tar.bz2
[root@pfs1 DriverInstall]# ./install.sh
  
Installation script for sk98lin driver.
Version 7.06 (Aug-20-2004)
(C)Copyright 2003-2004 Marvell(R).
====================================================
Add to your trouble-report the logfile install.log
which is located in the  DriverInstall directory.
====================================================


1) user installation    3) generate patch
2) expert installation  4) exit
Choose your favorite installation method: 1

Please read this carfully!

This script will automatically compile and load the sk98lin
driver on your host system. Before performing both compilation
and loading, it is necessary to shutdown any device using the
sk98lin kernel module and to unload the old sk98lin kernel
module. This script will do this automatically per default.
If you want to shutdown and unload the old sk98lin kernel module
manually, run the script in the EXPERT mode.

Please plug a card into your machine. Without a card we aren't
able to check the full driver functionality.

Do you want proceed? (y/N) y

Create tmp dir (/tmp/Sk98IXIlOQIEMiRENcOUhnPSP)                                                                  [   OK   ]
Check user id (0)                                                                                                [   OK   ]
Check kernel version (2.6.9-5.ELsmp)                                                                             [   OK   ]
Check kernel symbol file (/proc/kallsyms)                                                                        [   OK   ]
Check kernel type (SMP)                                                                                          [   OK   ]
Check number of CPUs (2)                                                                                         [   OK   ]
Check architecture (found)                                                                                       [   OK   ]
Set architecture (i386)                                                                                          [   OK   ]
Check compiler (/usr/bin/gcc)                                                                                    [   OK   ]
Check mcmodel flags (32bit)                                                                                      [   OK   ]
Check module support (/sbin/insmod)                                                                              [   OK   ]
Check make (/usr/bin/make)                                                                                       [   OK   ]
Check archive file (sk98lin)                                                                                     [   OK   ]
Check kernel gcc version (3.4.3) (Kernel:3.4.3 == gcc:3.4.3)                                                     [   OK   ]
Check sk98lin driver availability (not loaded)                                                                   [   OK   ]
Check kernel header files (/usr/src/linux)                                                                       [   OK   ]
Check the mem address space (highmem)                                                                            [   OK   ]
Unpack the sources (done)                                                                                        [   OK   ]
Check sources for .config file (/usr/src/linux/.config)                                                          [   OK   ]
Copy and check .config file (done)                                                                               [   OK   ]
Execute: make oldconfig (done)                                                                                   [   OK   ]
Check kernel header version (Kernel:2.6.9-5.ELsmp == Header:2.6.9-5.ELsmp)                                       [   OK   ]
Check kernel functions (Changed: nothing)                                                                        [   OK   ]
Compile the kernel (error)                                                                                       [ failed ]

An error has occurred during the compile proces which prevented
the installation from completing.                              
Take a look at the log file install.log for more informations.  
Installation of sk98lin driver module failed.
[root@pfs1 DriverInstall]#
 楼主| 发表于 2006-3-14 17:45:58 | 显示全部楼层
[root@pfs1 DriverInstall]# uname -a
Linux pfs1.super.com 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686 i686 i386 GNU/Linux
说明我当前用的是这个kernal:2.6.9-5.ELsmp

所以我又重新作ln

[root@pfs1 src]# pwd
/usr/src
[root@pfs1 src]# ls
kernels linux redhat
[root@pfs1 src]#rm -rf linux
[root@pfs1 src]# ls
kernels redhat
[root@pfs1 src]# cd k*
[root@pfs1 kernels]# pwd
/usr/src/kernels
[root@pfs1 kernels]# ls
2.6.9-5.EL-hugemem-i686 2.6.9-5.EL-i686 2.6.9-5.EL-smp-i686
[root@pfs1 src]#ln /usr/src/kernels/2.6.9-5.EL-smp-i686 /usr/src/linux
[root@pfs1 src]# pwd
/usr/src
[root@pfs1 src]# ls
kernels linux redhat


然后,我再运行安装程序,错误依旧阿~~
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-14 17:48:25 | 显示全部楼层
检查log文件如下:

[root@pfs1 DriverInstall]# vi install.log

+++ Install mode: User
+++ Driver version: 7.06 (Aug-20-2004)
+++ Kernel version 2.6.9-5.ELsmp
+++ smp_count=1
+++ cpu_number=2
+++ kernel_machine=i686
+++ Architecture: i386
+++ Unpack the sources
+++ ====================================
+++ tar xfv sk98lin.tar
2.4/
2.4/h/
2.4/h/skdrv1st.h
2.4/h/skdrv2nd.h
2.4/Makefile
2.4/skdim.c
2.4/skproc.c
2.4/skge.c
2.4/sky2.c
2.4/skethtool.c
2.6/
2.6/h/
2.6/h/skdrv1st.h
2.6/h/skdrv2nd.h
2.6/Makefile
2.6/skdim.c
2.6/skproc.c
2.6/skge.c
2.6/sky2.c
2.6/skethtool.c
common/
common/h/
common/h/skgesirq.h
common/h/skgetwsi.h
common/h/xmac_ii.h
common/h/sktypes.h
common/h/skvpd.h
common/h/skaddr.h
common/h/skcsum.h
common/h/skgehw.h
common/h/skdebug.h
common/h/lm80.h
common/h/skrlmt.h
common/h/sky2le.h
common/h/sktwsi.h
common/h/skqueue.h
common/h/skversion.h
common/h/skerror.h
common/h/skgeinit.h
common/h/sktimer.h
common/h/skgedrv.h
common/h/skgepnm2.h
common/h/skgepnmi.h
common/h/skgehwt.h
common/skgesirq.c
common/skvpd.c
common/skaddr.c
common/skcsum.c
common/sklm80.c
common/skxmac2.c
common/sk98lin.htm
common/sk98lin.txt
common/skrlmt.c
common/sky2le.c
common/sktwsi.c
common/skqueue.c
common/sk98lin.4
common/skgeinit.c
common/sktimer.c
common/skgepnmi.c
common/skgehwt.c
common/skgemib.c
misc/
misc/Kconfig
misc/Configure.help

+++ Compile the driver
+++ ====================================
make: Entering directory `/usr/src/kernels/2.6.9-5.EL-smp-i686'
CC [M] /tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.o
CC [M] /tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/sky2.o
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c: In function `sk98lin_init_device':
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c:398: error: structure has no member named `last_stats'
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c:539: error: structure has no member named `last_stats'
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c: At top level:
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c:1010: warning: `MODULE_PARM_' is deprecated (declared at include/linux/module.h:552)
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c:1011: warning: `MODULE_PARM_' is deprecated (declared at include/linux/module.h:552)
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c:1012: warning: `MODULE_PARM_' is deprecated (declared at include/linux/module.h:552)
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c:1013: warning: `MODULE_PARM_' is deprecated (declared at include/linux/module.h:552)
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c:1014: warning: `MODULE_PARM_' is deprecated (declared at include/linux/module.h:552)
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c:1015: warning: `MODULE_PARM_' is deprecated (declared at include/linux/module.h:552)
[root@pfs1 DriverInstall]# vi install.log

+++ Install mode: User
+++ Driver version: 7.06 (Aug-20-2004)
+++ Kernel version 2.6.9-5.ELsmp
+++ smp_count=1
+++ cpu_number=2
+++ kernel_machine=i686
+++ Architecture: i386
+++ Unpack the sources
+++ ====================================
+++ tar xfv sk98lin.tar
2.4/
2.4/h/
2.4/h/skdrv1st.h
2.4/h/skdrv2nd.h
2.4/Makefile
2.4/skdim.c
2.4/skproc.c
2.4/skge.c
2.4/sky2.c
2.4/skethtool.c
2.6/
2.6/h/
2.6/h/skdrv1st.h
2.6/h/skdrv2nd.h
2.6/Makefile
2.6/skdim.c
2.6/skproc.c
2.6/skge.c
2.6/sky2.c
2.6/skethtool.c
common/
common/h/
common/h/skgesirq.h
common/h/skgetwsi.h
common/h/xmac_ii.h
common/h/sktypes.h

/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c:1011: warning: `MODULE_PARM_' is deprecated (declared at include/linux/module.h:552)
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c:1012: warning: `MODULE_PARM_' is deprecated (declared at include/linux/module.h:552)
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c:1013: warning: `MODULE_PARM_' is deprecated (declared at include/linux/module.h:552)
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c:1014: warning: `MODULE_PARM_' is deprecated (declared at include/linux/module.h:552)
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c:1015: warning: `MODULE_PARM_' is deprecated (declared at include/linux/module.h:552)
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c:1016: warning: `MODULE_PARM_' is deprecated (declared at include/linux/module.h:552)
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c:1017: warning: `MODULE_PARM_' is deprecated (declared at include/linux/module.h:552)
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c:1018: warning: `MODULE_PARM_' is deprecated (declared at include/linux/module.h:552)
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c:1019: warning: `MODULE_PARM_' is deprecated (declared at include/linux/module.h:552)
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c:1020: warning: `MODULE_PARM_' is deprecated (declared at include/linux/module.h:552)
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c:1021: warning: `MODULE_PARM_' is deprecated (declared at include/linux/module.h:552)
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c:1022: warning: `MODULE_PARM_' is deprecated (declared at include/linux/module.h:552)
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c:1023: warning: `MODULE_PARM_' is deprecated (declared at include/linux/module.h:552)
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c:1024: warning: `MODULE_PARM_' is deprecated (declared at include/linux/module.h:552)
/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.c:1025: warning: `MODULE_PARM_' is deprecated (declared at include/linux/module.h:552)
make[1]: *** [/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all/skge.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [_module_/tmp/Sk98IkOgCfFmIPmImFUnFhSLD/all] Error 2
make: Leaving directory `/usr/src/kernels/2.6.9-5.EL-smp-i686'
+++ Compiler error
~


大侠梦帮忙分析分析阿~~谢谢~
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-15 09:34:07 | 显示全部楼层
up一下,版主们呢??帮忙啊~
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表