第一次装网卡驱动还请多指点

重复贴和参考价值不大的帖子,版主维护
回复
gogo00007
帖子: 31
注册时间: 2008-08-13 22:56
送出感谢: 0
接收感谢: 0

第一次装网卡驱动还请多指点

#1

帖子 gogo00007 » 2008-12-10 21:15

第一次装网卡驱动,见笑咯
我在(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
回复

回到 “归档贴”