红联Linux门户
Linux帮助

求助!红旗linux 网卡驱动安装(ULI M5263)

发布时间:2007-09-04 11:56:16来源:红联作者:yangyue
您好!
问:我们单位最近将电脑操作系统更换为 "红旗 LINUX 5.0 ",部分电脑使用uli m1689 的10/100M 集成网卡,需要手动安装网卡驱动,我们从ULI网站上下载了相应的驱动文件(一个.c的c源码文件与两个配置文件Kconfig, Makefile).我每当如何使用这些文件来安装网卡驱动呢?
:time:1 能给个详细步揍 吗?谢..................................
------------------------------------------------------------------------------------
ULi M5263 10/100M Ethernet Controller Driver for kernel 2.6.x
------------------------------------------------------------------------------------

Copyright (c) 2004-2005, ULi Electronics Inc.


------------------
CONTENTS
------------------
1. ULi M5263 10/100M Ethernet Controller Core
2. File Signature
3. Installation Guide
4. Revision History
5. Disclaimer


1. ULi M5263 10/100M Ethernet Controller Core
=============================================
You can use command
/sbin/lspci -n
or
cat /proc/pci | grep 5263
to determine whether ULi M5263 Ethernet controller exists in your
system. If yes, simply follow the steps below to install the driver.

This driver is dedicated to support ULi M5263 10/100M Ethernet
Controller under Linux platform.

Any improper use of this module, such as combining it with different
hardware and/or software environment, may produce unpredicable results.
The author of the driver and its property owner do not have
responsibility for any property lose or damage.


2. File Signature
====================
/driver/uli526x.c source codec c file
readme.txt this file
====================
/sample/Kconfig.in configuration sample file
/sample/Makefile.in sample makefile

3.Installation Guide
====================
To install the driver, you should reconfigure and recompile your Linux
kernel as follows:

Make sure your kernel version number is 2.6.x.

Copy uli526x.c to /usr/src/linux-2.6.x/drivers/net/tulip/, and modify the
following file in this directory. (Make a backup of them.)

1.Kconfig.in
add the following lines to Kconfig.in file.(refer to the Kconfig.in file we provide to you)

config ULI526X
tristate "ULi M526x controller support"
depends on NET_TULIP && PCI
select CRC32
---help---
This driver is for ULi M5261/M5263 10/100M Ethernet Controller
(<http://www.uli.com.tw/>).

To compile this driver as a module, choose M here.

2.Makefile
add the following lines to Makefile.(refer to the Makefile we provide to you)

obj-$(CONFIG_ULI526X) += uli526x.o
------------------------------------
Install as a kernel module
------------------------------------

Step 1:
Change directory to /usr/src/linux-2.6.x
Use the command "make menuconfig" or "make xconfig", and make
sure "ULi M526x controller support" is set as module.

Example:
Select "Device Drivers"
Select "Networking support"
Select "Ethernet (10 or 100Mbit)"
Select "Tulip family network device support"
Unselect "DECchip Tulip (dc2114x) PCI support"
Select "ULi M526x controller support" as "m"

Step 2:
Select "Loadable module support", and unselect "Set version information
on all module symbols"

Before exit, save your configration.


Step 3:
make modules
make modules_install

Step 4:
rmmod tulip
modprobe uli526x

Then, you can bind any protocol into M5263 driver and use it.

------------------------------------------
Install as a part of linux kernel
------------------------------------------

Step 1:
Change directory to /usr/src/linux-2.6.x
Use the command "make menuconfig" or "make xconfig", and make
sure "ULi M526x controller support" is set as kernel.

Example:
Select "Device Drivers"
Select "Networking support"
Select "Ethernet (10 or 100Mbit)"
Select "Tulip family network device support"
Unselect "DECchip Tulip (dc2114x) PCI support"
Select "ULi M526x controller support" as "y"


Step 2:
Select "Loadable module support", and unselect "Set version information
on all module symbols"

Before exit, save your configration.


Step 3:
make
cp arch/i386/boot/bzImage /boot

Step 4:
If you use grub to boot your linux, then
1) Modify the file /etc/grub.conf by adding
title 2.6.x
root (hd0,2)
kernel /boot/bzImage ro root=/dev/hd1
The disk partition where your linux resides in,
for example: /dev/hda1
2) Reboot and select the kernel 2.6.x

Then, you can bind any protocol into M5263 driver and use it.


4. Revision History
===================
V0.90 - First release.
V0.91 - Change the all ali string to uli string and add the support to ethtool
V0.92 - Change the timeout length for UDP test
V0.93 - Change the tx queue count for UDP test,add non-srom solution

5. Disclaimer
=============
Product names used in this file are for identification purposes only
and may be trademarks of their respective owners.

No part of this file may be copied or reproduced without written
consent from ULi Electronics.

ULi Electronics makes no warranty for the use of its products and
assumes no responsibility for any errors which may appear in this file
nor does it make a commitment to update the information contained
herein.

ULi Electronics retains the right to make changes to these
specifications at any time, without notice.
文章评论

共有 1 条评论

  1. jack200788 于 2010-06-12 16:30:10发表:

    :0wl;l1