I am trying to build the driver for my admtec 8211 based wlan card (SMC2635W), but i am having some difficulties due to the removal of the kernel-source rpm. (an otherwise perfectly sensible choice.) I was just about to make my own exploded source three, when i came over this notice in the release notes:
""" An exploded source tree is not required to build kernel modules against the currently in-use kernel.
For example, to build the foo.ko module, create the following file (named Makefile) in the directory containing the foo.c file:
obj-m := foo.o
KDIR := /lib/modules/$(shell uname -r)/build PWD := $(shell pwd)
default: $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
Issue the make command to build the foo.ko module. """
Now, those drivers already has a makefile - and it is a bit more complicated. It does among other thing build a number of .c files into this module...
Can anybody help? The driver shall after what i heard be a part of the official kernel (first, the -mm series), but it isn't "ready" yet. When that is said, the driver has served me well, and is still rapidly improving.
The driver can be found here:
http://aluminum.sourmilk.net/adm8211/
If somebody can help me create a working makefile, i shall ofcource send the changes back so that it can be a part of the main distro of the driver (i would guess a separate fedora makefile would be the easiest...)
Kyrre
On Tue, 04 Jan 2005 17:27:44 +0100, Kyrre Ness Sjobak kyrre@solution-forge.net wrote:
If somebody can help me create a working makefile, i shall ofcource send the changes back so that it can be a part of the main distro of the driver (i would guess a separate fedora makefile would be the easiest...)
Uhm..... adm8211-20041227.tar.bz2 on my fc2 and fc3 system without a kernel-source(code) rpm installed works just fine. The make file in the 20041222 has the correct KDIR := /lib/modules/$(shell uname -r)/build PWD := $(shell pwd)
running make inside /tmp/adm8211/ and i get a adm8211.ko created. Seems to work just as one would expect. and make install tries to place the created module in /lib/modules/2.6.9-1.11_FC2/kernel/drivers/net/wireless/adm8211.ko on my fc2 system for example.
The 20041227 tarball has fixes for the 2.6.10 kernel and doesnt compile correctly on the lastest fc2 or fc3 2.6.9 kernel.. but it has nothing to do with the makefile.
-jef
On Tue, 4 Jan 2005 11:51:38 -0500, Jeff Spaleta jspaleta@gmail.com wrote:
Uhm..... adm8211-20041227.tar.bz2 on my fc2 and fc3 system without a kernel-source(code) rpm installed works just fine. The make file in the 20041222 has the correct
oops... that should read as adm8211-20041222.tar.bz2 in the first line. the 20041122 works on fc2 and fc3 2.6.9 kernels.
-jef
tir, 04.01.2005 kl. 17.53 skrev Jeff Spaleta:
On Tue, 4 Jan 2005 11:51:38 -0500, Jeff Spaleta jspaleta@gmail.com wrote:
Uhm..... adm8211-20041227.tar.bz2 on my fc2 and fc3 system without a kernel-source(code) rpm installed works just fine. The make file in the 20041222 has the correct
oops... that should read as adm8211-20041222.tar.bz2 in the first line. the 20041122 works on fc2 and fc3 2.6.9 kernels.
-jef
Oh! That was fast! Thanks a lot :)
I think i'll better mail the author of the driver - the doc says "2.6.9 minimum" - should be 2.6.10 minimum...
But ill guess ill just use the older version then.
BTW. anybody knows when the 2.6.10 kernel is due for fc?
devel@lists.stg.fedoraproject.org