8139driver_in)linux2.4.x
所属分类:Linux/Unix编程
开发工具:Unix_Linux
文件大小:23KB
下载次数:18
上传日期:2005-03-12 10:06:22
上 传 者:
kaks
说明: 8139driver_in)linux2.4.x
文件列表:
8139driver_in)linux2.4.x (0, 2005-03-11)
8139driver_in)linux2.4.x\kernel-2.4.18 (0, 2005-03-11)
8139driver_in)linux2.4.x\kernel-2.4.18\8139TOO.C (86107, 2001-11-21)
8139driver_in)linux2.4.x\kernel-2.4.18\Makefile (328, 2002-06-26)
Document date: 11/8/2002
*******************************************************************************
** Compiling and Installing the driver **
*******************************************************************************
To compile and install the driver, follow the procedures:
1)login as user or the root.
#mount /mnt/floppy
#cd /mnt/floppy/linux2.4.x
#cp * /root or #mcopy * /root
#cd /root/kernel-2.4.18
the kernel-2.4.18 folder includes following files:
8139too.c
Makefile
readme.txt
2) "make" the driver
# make
or
#make clean; make
Hopefully, the make utility will be in your path and will run. Also hopefully
gcc, ld, and any other utilities needed will be in your path.
If and when the make completes, there should be an 8139too.o file in the same
directory.
3) Install the driver
Once you have the driver compiled, you have to switch yourself to user "root".
At the same directory and command prompt, type:
#insmod 8139too.o
This should install the driver module into the kernel. Dependent on what other
ethernet NICs are installed, the NIC will be assigned the desigation eth0, eth1, eth2, etc. Using this designation, you can open the interface using
the "ifconfig" command (man ifconfig), then you are on the way. For example,
#ifconfig eth0 222.88.88.2
4) Special Notice
1.The default include files of the linux gcc compiler is typically under
the /usr/include directory. However,since the driver is not a application but
a kernel module, it is better to have the kernel source installed on your
system to compile the driver, which is typically
/usr/src/linux-2.4.18-3/include, where the Makefile directs the include path.
This is especially true under Red Hat 7.0,becuase its kernel is version 2.4.2.
if you are using Red Hat 8.0, you have to change the include file as
/usr/src/linux-2.4/include in Makefile,and you have to make sure the /usr/src/linux exists with kernel source codes installed there.
近期下载者:
相关文件:
收藏者: