LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-19-2004, 04:17 AM   #1
r52
LQ Newbie
 
Registered: Oct 2003
Posts: 6

Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
R40 ibm-acpi module short101 Linux - Laptop and Netbook 2 02-22-2005 05:49 AM
IBM r40, Mandrake 10 and acpi suspend zvono Linux - Laptop and Netbook 5 12-29-2004 11:49 AM
agere momem on ibm r40 axinomantia Linux - Laptop and Netbook 0 03-26-2004 05:05 AM
IBM ThinkPad R40 Sumit Rajan Linux - Laptop and Netbook 4 12-02-2003 12:30 PM
Redhat9 and IBM R40 starocean Linux - Laptop and Netbook 1 10-29-2003 08:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration