會員 | 【求助】誰能教我安裝網路卡驅動... 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 ------------------------------------------------------------------ 誰能教教我... 謝謝!! |
回覆 |
會員 | 先把它make起來後insmod dp83815.o 就會把驅動程式安裝上去ㄌ |
回覆 |
會員 | 如何make.... 文件內容看不懂... |
回覆 |
會員 | 直接make阿.... # make all # make install # insmod dp83815 這樣試試看 |
回覆 |
會員 | 還是不會...不過還是謝謝你!! |
回覆 |
|
XML | RSS 2.0 | RSS |
本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。