免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1129 | 回复: 0
打印 上一主题 下一主题

Solaris10 X86安装D-Link DFE-530TX 网卡驱动成功文档 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-10-17 10:17 |只看该作者 |倒序浏览

Solaris10 X86安装D-Link DFE-530TX 网卡驱动成功文档
刚到公司实习第4天~~把Solaris10 for X86装上了,昨天用了一天才把网卡装上~~在坛子里,网上看了很多文章,基本都是Solaris9 X86下安装成功的!这次把Solaris10 X86的也写下来了!呵呵~
废话不多说了~~开始吧(主要把不同的部分写一下)!
1、使用sys-unconfig命令还是不能找到网卡。
      发现solaris10 x86仍旧不兼容D-LINKD-LINK DFE-530TX
      与9相比以前那个驱动不能使了~~我在这里找到了一个,可以用,这可是我找了很久才找到的~
     大家可以到一下这个网址去找驱动很全的。
     
http://homepage2.nifty.com/mrym3/taiyodo/eng/
     
vfe-2.2.0.tar.gz
    注:在装之前一定要先确认你的网卡型号~~~~找到准确的驱动在装
        (我就是把网卡拔下来仔细看清楚型号,找到相应的驱动才装的)
2、安装D-LINK DFE-530TX驱动过程
    190K的文件我没有刻盘,那样太浪费了~~~10已经支持USB设备了(大家可以用U盘和移动硬盘),
    不过我用的软盘Copy文件到系统上的,呵呵
    下边是挂载命令:
    软盘:# mkdir /floppy
                # mount -F pcfs /dev/fd0a /floppy
               (如果mount不成功可先执行eject)
                 把安装文件copy到一个临时目录)
    U盘:如果插上U盘U盘灯不亮,请执行rmformat命令,这个东西类似Windows中的检查硬件改变操作, 它可以自动查出刚刚插上的U盘(极个别品牌U盘例外,依照以往    经验……爱国者的U盘最容易被识别)。
    OK,系统已经识别了U盘,接下来我们就要mount一下了,具体操作是:
    mount -F pcfs -o ro /dev/dsk/c2t0d0p0:c /mnt,不过你的U盘是不是c2t0d0p0这个设备,我这里可是说不好,你自己试验一下吧。
查看README.txt(这部很重要,因为每个网卡的驱动都有自己的安装步骤)
如果你以前装过其他驱动程序请先删除
# # rem_drv rh(rh为驱动名)
# sync
# init 0
#安装驱动程序:
gunzip -cd vfe-x.x.x.tar.gz | tar xvf -
     # cd /.../vfe-x.x.x(进入驱动目录)
1)# /usr/ccs/bin/make install
2)# ./adddrv.sh
3)# modload obj/vfe
4)# devfsadm -i vfe
5)# ifconfig vfe0 plumb
6)# ifconfig -a
lo0: flags=1000849; mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
rh0: flags=1000842; mtu 1500 index 2
        inet 0.0.0.0 netmask 0
        ether 0:40:5:15:88:dc
# ifconfig vfe0 192.168.8.77 netmask 255.255.255.0 up
3、测试正常
# ping 192.168.8.77
192.168.8.77 is alive
接下来就不用说了吧~~大家可以用sys-unconfig命令设置网卡IP地址等信息!
一样肯定有不好或不合适的地方请大家多包涵~~多指教



By blueant(转载请注明我的空间地址)
附录:驱动程序里的README.txt
***************************************************************************
CAUTION: There is NO WARRANTY for this software.
As this software is loaded into the kernel, it might cause the kernel to
panic or hang.
                                                Masayuki Murayama
                                                
KHF04453@nifty.ne.jp
***************************************************************************
1. Introduction
This is the VIA Rhine family NIC driver for Solaris.  Rh will work with
VT86C100 (Rhine I), DL10030 (Rhine I), VT6102 (Rhine II), VT6105 (Rhine
III), built-in Rhine II ethernet mac in VT8235 and VT8237 south bridges.
It is distributed under the BSD license.
2. Specification of the driver
File name of the driver:
        /kernel/drv/vfe
        /kernel/drv/sparcv9/vfe (for sparc 64bit kernel)
Special file name:
        /dev/vfeN (where N is a unit number, typcally 0 for first card)
        For example
                % ifconfig vfe0
Tested chips and cards
  VT6102(Rhine II rev 43) -- Planex communications Inc.(Japan) FNW-9702-T3
  VT6102(Rhine II rev 47)
  DL10030(Rhine I rev 6) --  Corega Inc.(Japan) FEtherII PCI TX
  VT6105(Rhine III rev 85) -- Corega Inc.(Japan) FEther PCI-TXA
This driver is ready for VT6105M (Rhine-III management adaptor) but not
tested.
3. Prepare for installation
(1) Install your PCI card and boot Solaris.
(2) Copy source and binary files.
        # gunzip -cd vfe-x.x.x.tar.gz | tar xf -
(3) Add hostname for the NIC card into the /etc/hosts file
(4) If you have installed rh driver, remove it and reboot the system.
        # rem_drv rh
        # sync
        # init 0
(5) Make links to correct binary directory and Makefile according to your
configuration.  i386 and gcc are default.
        % cd /.../vfe-x.x.x
        % rm obj Makefile
        % ln -s Makefile.${KARCH}_${COMPILER} Makefile
        % ln -s ${KARCH} obj
  where ${KARCH} is the result of `isainfo -n`, and ${COMPILER} is
"gcc" or "suncc" which you want to use to make the driver.
(6) Making binaries (only for sparc platform)
Rh driver is ready for 64bit and 32bit solaris8 10/00 sparc or
later. (But currently it is unstable on sparc platforms.)
This distribution does not include sparc binaries.  To make the binaries,
you need Sun C compiler or gcc version 3, and do the following operations.
        % /usr/ccs/bin/make
(7) Making binaries only for OpenSolaris users.
Rh driver likely work with GLD v3 in OpenSolaris, known as Nemo.
You can enjoy the new functions by recompiling vfe source code.
        % rm Makefile.config
        % ln -s Makefile.config_gld3 Makefile
        % /usr/ccs/bin/make
4. Testing
        # cd /.../vfe-x.x.x
        # /usr/ccs/bin/make install
        # ./adddrv.sh
        # /usr/ccs/bin/make uninstall (don`t do this for Solaris7)
        # modload obj/vfe
        # devfsadm -i vfe ( for solaris7, use drvconfig and reboot with -r option )
        # ifconfig vfeN plumb ( where N is unit number, typcally 0 for first card)
        # ifconfig -a        ( you will see an entry for vfe0, ensure ethernet address is correct)
        # ifconfig vfeN HOSTNAME
        # ifconfig vfeN      ( ensure IP address is correct)
        # ifconfig vfeN up   ( and then you can test with ping, telnet, ftp ...)
5. Installation
    After you ensure that the vfe driver is fully functional, install it.
(1) install the vfe driver into kernel directory
        # cd /.../vfe-x.x.x
        # /usr/ccs/bin/make install
       If you did not test vfe driver yet, execute the following commands:
            # ./adddrv.sh
            # devfsadm -i vfe ( for Solaris7 use drvconfig and reboot with -r option )
(2) Configure the network interface. Create and/or modify the following files:
        /etc/hostname.vfeN
    If you want to use vfe with dhcp, you also need to create a empty file
    below to get an assigned IP address automatically from a dhcp server
    at boot time.
        /etc/dhcp.vfe0
(3) Reboot the system.
        # init 6
6. Troubleshooting
Q. Following message is printed in the /var/adm/messages file
    NOTE: vfeN: link up but auto-negotiation failed.
A. This massage appears for Rhine I chips when the link partner does not
   have auto negotiation capability.
   Please disable auto negotiation capability for your NIC card by specifying
   the correct media mode in /kernel/drv/vfe.conf with the following syntax:
   vfeN-duplex=["full"|"half"] vfeN-speed=[100|10]; # where N is a unit number
  For example
        vfe0-duplex="full" vfe0-speed=100;   # full-duplex 100Mbps for vfe0
        vfe0-duplex="half" vfe0-speed=10;    # half-duplex 10Mbps for vfe0
Q. The driver cannot be unloaded because the device is busy, and the following
   message appears in /var/adm/messages file:
    NOTICE: vfeN: vfe_detach: buffer is busy
A. Wait for a little while until some modules in the kernel release receive
   buffers which were allocated by the vfe driver.
Q. The system does not boot after the driver is installed.
A. Uninstall the NIC card and reboot solaris. Then, unregister the driver:
     # rem_drv vfe
   Or boot solaris with -a option and use /etc/system.novfe instead of
   default [etc/system]. This inhibits loading the driver.
   /etc/system.novfe is automatically generated when executing 'make install'
   or 'make test'
Q. Solaris boots, but the network interface does not work.
A. Is the network interface running?
   Execute 'ifconfig -a'.  If you see an entry for vfeN, the driver is loaded
   and working correctly.
   Please check the configuration of the network interface.
   Is an ethernet cable connected properly?
   Please check if the network interface is receiving packets.
        % snoop -P -d vfeN
If Solaris panics while testing, please send me the following information:
  (1) /var/adm/messages
  (2) Output of prtconf -pv
  (3) Output of prtconf -vD
  (4) Output of adb
  Solaris core dump consists of unix.N and vmcore.N which are created in
   /var/crash/YOUR-HOST-NAME/ .
  Execute 'adb -k unix.N vmcore.N' and type the following subcommands.
   $c   (stack trace back will be printed)
   $


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/41327/showart_402163.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP