当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 1 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 第一次装网卡驱动还请多指点
帖子发表于 : 2008-12-10 21:15 

注册: 2008-08-13 22:56
帖子: 31
送出感谢: 0 次
接收感谢: 0 次
第一次装网卡驱动,见笑咯
我在(3)处不是很明白,是直接跳过的
然后一直到(7),MAKE时出错误提示,no argument。。。
还请大家多多给意见
还有后面测试和安装的步骤似乎相同,有什么区别呢?


***************************************************************************

Tested chips and cards
bcm4401 on GREEN HOUSE GH-WL100BB

3. Preparing for installation

(1) Install your PCI card and boot Solaris.

(2) Copy source and binary files.
# gunzip -cd bfe-x.x.x.tar.gz | tar xf -

(3) Add hostname for the NIC card into the /etc/hosts file

(4) If you have installed bcf driver, remove it and reboot the system.
# rem_drv bcf
# sync
# init 0

(5) Make links to correct binary directory and Makefile according to your
configuration. i386 and gcc are default.

% cd /.../bfe-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 binary of the driver.

(6) Making binaries (only for sparc platform)
Bcf driver is ready for 64bit and 32bit solaris8 10/00 sparc or
later. (But currently it isn't tested 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.
Bcf driver likely work with GLD v3 in OpenSolaris, known as Nemo.
You can enjoy the new functions by recompiling bfe source code.

% rm Makefile.config
% ln -s Makefile.config_gld3 Makefile
% /usr/ccs/bin/make


4. Testing
Testing before installation is strongly recommended.

# cd /.../bfe-x.x.x
# /usr/ccs/bin/make install
# ./adddrv.sh
# /usr/ccs/bin/make uninstall (for Solaris7, do not execute this )
# modload obj/bfe
# devfsadm -i bfe ( for solaris7, use drvconfig and reboot with -r option )
# ifconfig bfeN plumb ( where N is unit number, typcally 0 for first card)
# ifconfig -a ( you will see an entry for bfe0, ensure ethernet address is correct)
# ifconfig bfeN HOSTNAME
# ifconfig bfeN ( ensure IP address is correct)
# ifconfig bfeN up ( and then you can test with ping, telnet, ftp ...)

5. Installation
After you ensure that the bfe driver is fully functional, install it.

(1) install the bfe driver into kernel directory
# cd /.../bfe-x.x.x
# /usr/ccs/bin/make install

If you did not test bfe driver yet, execute the following commands:
# ./adddrv.sh
# devfsadm -i bfe ( for Solaris7 use drvconfig and reboot with -r option )

(2) Configure the network interface. Create and/or modify the following files:
/etc/hostname.bfeN

If you want to use bfe 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.bfeN

(3) Reboot the system.
# init 6


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 1 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 4 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译