【求助】誰能教我安裝網路卡驅動...



贊助商連結


miya
2002-07-13, 08:53 AM
os: cle 1.o
網卡: FW-100TA
以下是所附之網路卡驅動程式檔案...
dp83815.c dp83815.h dp83815.o Makefile

Makefile的內容如下..

## Makefile -- Rules to compile and install dp83815 ethernet driver
##

## Check dp83815.c for available DEBUG_LEVEL values. Setting a non-zero
## value here will let the driver log additional debug messages corresponding
## to the indicated debug level

DEBUG_LEVEL=0x0

## Verify that the kernel version is correct by running, cat /proc/version
KERNEL_VER=`uname -r`

## INCLUDEDIR = /usr/src/linux
INCLUDEDIR = /usr/src/linux/include

SRCS=dp83815.c dp83815.h

DEBUG_FLAGS = -DDRV_DEBUG=$(DEBUG_LEVEL)

MACHINE_TYPE = `uname -m`

## Default rule, compile the driver
CFLAGS= -D__KERNEL__ -DMODULE $(DEBUG_FLAGS) -I$(INCLUDEDIR) -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -march=$(MACHINE_TYPE) -malign-functions=4

all: dp83815.o

dp83815.o : $(SRCS)
gcc -g $(CFLAGS) -c $< -o $@

## Install the compiled driver into the system's module pool
install: dp83815.o
cp dp83815.o /lib/modules/$(KERNEL_VER)/net

## Reload the Networking stack and driver
init:
sh /etc/rc.d/init.d/network stop
insmod dp83815.o
sh /etc/rc.d/init.d/network start

## Reload the Networking stack and driver
reload:
sh /etc/rc.d/init.d/network stop
rmmod dp83815
insmod dp83815
sh /etc/rc.d/init.d/network start

clean:
rm -f *.o *~ core
------------------------------------------------------------------
誰能教教我... 謝謝!!

贊助商連結


TroyLee
2002-07-13, 11:08 AM
先把它make起來後insmod dp83815.o
就會把驅動程式安裝上去ㄌ

miya
2002-07-13, 07:26 PM
如何make....
文件內容看不懂...

TroyLee
2002-07-14, 12:43 AM
直接make阿....
# make all
# make install
# insmod dp83815
這樣試試看

miya
2002-07-18, 12:39 AM
還是不會...不過還是謝謝你!!