Redhat 9 + ibm R40 + madwifi
Hi, im a complete linux newbie, and really need some help. I want to get my laptop wireless card working in linux, the card is an ibm triband wireless mini pci card. Ive tried following a tutorial here at madwifiwiki.thewebhost.de/wiki/SuSE90ProfessionalThinkpadR40IBMTriBandMiniPCICard but its for SuSe not redhat 9. And it didnt go according to plan. Ive decompressed the tgz file to a folder. Apparently in order to build the driver i need to edit the makefile.inc. Ive tried editing this file but....
# $Id: Makefile.inc,v 1.14 2003/07/31 17:48:47 sam Exp $
#
DESTDIR=
#
# Define this to build the HAL from source code
#
#HAL_SRC= true
#
#
# Define these for cross-compilation; e.g.
#
#TOOLPREFIX= /export/tools/bin/mips-linux-
#TARGET_OPTS= -g -O -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap
#
CC= ${TOOLPREFIX}gcc
LD= ${TOOLPREFIX}ld
STRIP= ${TOOLPREFIX}strip
OBJCOPY= ${TOOLPREFIX}objcopy
TARGET_OPTS= -g -O
#
NM= nm
AWK= awk
#
#
# Path to the Linux kernel, include files, and where to install the modules.
#
VERSION= $(shell uname -r)
KERNEL_PATH= /lib/modules/${VERSION}/build
LINUX= ${KERNEL_PATH}/include
MODULE_PATH= /lib/modules/${VERSION}/net
#
# A numeric version of the running system's version string, suitable
# for doing if checks in make files.
#
LINUX_VERSION= $(shell uname -r | \
awk '{ split($$0,a,"."); print a[1]*100+a[2]; }')
#
# Path to the HAL source code.
#
HAL= ${DEPTH}/hal
#
# Path to the HAL build area.
#
ATH_HAL=${DEPTH}/ath_hal
#
# Path to the 802.11 include files
#
WLAN= ${DEPTH}/wlan
#
# Path to the device driver.
#
DRIVER= ${DEPTH}/driver
#
# Basic build components.
#
COPTS= -Wall ${TARGET_OPTS}
INCS= -include ${DEPTH}/include/compat.h -I${DEPTH}/include
CLEANFILES= .depend
include ${KERNEL_PATH}/.config
ifdef CONFIG_SMP
COPTS+= -D__SMP__ -DSMP
endif
ifndef CONFIG_FRAME_POINTER
COPTS+= -fomit-frame-pointer
endif
ifdef CONFIG_MODVERSIONS
MODOPTS=-DMODVERSIONS -include $(KERNEL_PATH)/include/linux/modversions.h
GENKSYMS= /sbin/genksyms
ifdef CONFIG_SMP
GENKSYMS+= -p smp_
endif
endif
#
# 2.4, 2.5, 2.6 handling.
# Wish we had proper conditionals to use here..
#
ifneq (${LINUX_VERSION}, 204)
KMODSUF= ko
INCS+= -I${KERNEL_PATH}/include/asm/mach-default
MODOPTS+= -DKBUILD_BASENAME=${KMODNAME} -DKBUILD_MODNAME=${KMODNAME}
CLEANFILES+= *.mod.c
else
KMODSUF= o
endif
thats the file but which bits do i add to, and how do i find out where my kernel source is? Ive definetly installed it as i did a complete install. I tried the make command even though i hadnt touched this file in the end and got this...
I got this error message ...
Makefile.inc:98: /lib/modules/2.4.20-8/build/.config: No such file or directory
make: *** No rule to make target '/lib/modules/2.4.20-8/build/.config'. Stop.
Any help would be MUCH appreciated thanks,
Rich
|