Ich hab's gerade mal mit tir2000-0.6.0-mh.tar.bz2 versucht. On Tue, 19 Mar 2002 09:46:42 +0100, you wrote: Zunächst einmal gehe ich davon aus, das du die Quellen von 2.4.10 installiert hast (Paket kernel-source).
# kernel version. The setting shown is from my system (stock RedHat 6.1). KERNEL_VERSION = 2.2.12-20 # ------> habs hier schon mit 2.4.10-4GB und
Da *muss* 2.4.10-4GB stehen.
INCLUDES = -I/usr/src/linux/include
Das solltest du für 2.4.X tunlichst ändern in INCLUDE= -I/lib/module/$(KERNEL_VERSION)/build/include Dann spielst du folgenden Patch ein: ------------------------ schnipp ------------------------------------ --- tir2000.c.old Tue Sep 4 22:33:04 2001 +++ tir2000.c Wed Mar 20 03:08:12 2002 @@ -139,8 +139,8 @@ #define TIR_PRINT(FORMAT, ARGS...) \ - printk (KERN_NOTICE DRV_NAME ":%s:%d: " FORMAT, \ - pci ? "pci" : "isa", cardnum, ## ARGS) + printk (KERN_NOTICE DRV_NAME ":%s:%d: " FORMAT , \ + pci ? "pci" : "isa", cardnum , ## ARGS) #define TIR_PRINT_SHORT(FORMAT, ARGS...) \ printk (FORMAT, ## ARGS) @@ -149,7 +149,7 @@ #define TIR_DEBUG(LEVEL, FORMAT, ARGS...) \ { if (debug >= (LEVEL)) \ printk (KERN_DEBUG DRV_NAME ":%s:%d: " FORMAT, \ - pci ? "pci" : "isa", cardnum, ## ARGS); } + pci ? "pci" : "isa" , cardnum , ## ARGS); } #define TIR_DEBUG_SHORT(LEVEL, FORMAT, ARGS...) \ { if (debug >= (LEVEL)) printk (FORMAT, ## ARGS); } #else ------------------------- schnapp ---------------------------------- Und schon sollte es anstandslos funktionieren.
recated, use linux/slab.h instead. tir2000.c:114: warning: `struct device' declared inside parameter list tir2000.c:114: warning: its scope is only this definition or declaration,
Da scheinen mir Treiber und Kernel-Header nicht zusammen zu passen.