Ich möchte einen Treiber für meine DLink DGE-528T Karte einbinden.
Ich muss den Treiber ja erst komlimieren:
Meine Make Datei sieht folgendermaßen aus:
Code: Alles auswählen
# Makefile for a basic kernel module
CC=gcc
MODCFLAGS := -O6 -Wall -DMODULE -D__KERNEL__ -DLINUX
NEW_INCLUDE_PATH=-I /lib/modules/2.4.26-1/kernel/drivers/net
dge528.o: dge528.c /usr/include/linux/version.h
$(CC) $(MODCFLAGS) $(NEW_INCLUDE_PATH) -c dge528.c
clean:
rm *.o -f
Mache ich da etwas falsch?
Habe den Treiber im root Verzeichnis, dann:
Code: Alles auswählen
make
Folgendes steht in der Readme zu dem Treiber:
Code: Alles auswählen
Linux 2.4.x
===========
This document contains instructions on installing Linux driver
and adjusting speed for D-Link DGE-528T Gigabit Ethernet Adapter
Installing Driver:
------------------
dge528.c -- DGE-528T Linux driver version 1.6
1. This driver supports D-Link DGE-528T Gigabit Ethernet Adapter
for Linux kernel 2.4.x.
2. Installation steps:
(1)Compiling dge528.c using 'Makefile'.
"make"
<NOTE>Please remember to ASSIGN "NEW_INCLUDE_PATH" in Makefile according to
linux kernel.
(2)Move dge528.o to the directory "/lib/modules/<kernel>/kernel/drivers/net".
"cp dge528.o /lib/modules/<kernel>/kernel/drivers/net"
where <kernel> represents the kernel version, say 2.4.18-3 in Red Hat 7.3
(3)Insert module by
"insmod dge528.o"
(4)Check driver status
"dmesg"
3. The media can be forced to one of the 5 modes as follows.
Cmd: "insmod dge528 media = SET_MEDIA"
For example:
"insmod dge528 media = 0x04" will force PHY to operate in
100Mpbs Half-duplex.
SET_MEDIA can be:
_10_Half = 0x01
_10_Full = 0x02
_100_Half = 0x04
_100_Full = 0x08
_1000_Full = 0x10
Force media type for multiple cards could be performed as:
"insmod dge528 media=0x04,0x10"
which force PHY to operate at 100Mbps half-duplex and 1000Mbps full-duplex.
<NOTE> If on Red Hat 7.2, please add two lines to include header files and
mark one line for timer structure as follows:
#include <linux/timer.h>
#include <linux/init.h>
..................
// typedef struct timer_list timer_t
Code: Alles auswählen
make: *** No rule to make target `/usr/include/linux/version.h', needed by `dge5
28.o'. Stop.
eis #
eis #