LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-03-2003, 09:57 PM   #1
bigredgiant1
Member
 
Registered: Aug 2003
Distribution: Redhat since 5.2, Gentoo
Posts: 43

Rep: Reputation: 15
Source dir?


I am running Redhat 9. Where is the root directory of my kernel source? I've installed the kernel source rpm. Thanks
 
Old 09-03-2003, 10:11 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
In /usr/src
 
Old 09-03-2003, 10:13 PM   #3
bigredgiant1
Member
 
Registered: Aug 2003
Distribution: Redhat since 5.2, Gentoo
Posts: 43

Original Poster
Rep: Reputation: 15
[root@vic pcmcia-cs-3.2.4]# ls
BUGS config.mk doc MAINTAINERS README
cardmgr config.new etc Makefile README-2.4
CHANGES Configure flash man rules.mk
clients COPYING include modules SUPPORTED.CARDS
config.in debug-tools LICENSE PCMCIA-HOWTO wireless
[root@vic pcmcia-cs-3.2.4]# ./Configure

-------- Linux PCMCIA Configuration Script --------

The default responses for each question are correct for most users.
Consult the PCMCIA-HOWTO for additional info about each option.

Linux kernel source directory [/usr/src/linux]: /usr/src
Linux source tree '/usr/src' is incomplete or missing!
See the HOWTO for a list of FTP sites for current kernel sources.

Configuration failed.
 
Old 09-03-2003, 10:21 PM   #4
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Are you trying to compile the kernel in that last post?
 
Old 09-03-2003, 10:24 PM   #5
bigredgiant1
Member
 
Registered: Aug 2003
Distribution: Redhat since 5.2, Gentoo
Posts: 43

Original Poster
Rep: Reputation: 15
No I'm trying to add PCMCIA support so that I can get my wireless card working. The driver for my card is located at:

http://hostap.epitest.fi/

thanks.
 
Old 09-03-2003, 10:26 PM   #6
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
well the root directory to the source directory is in /usr/src, but the root directory to the source itself is in /usr/src/linux
check::
ls -alc /usr/src
to see a couple things ::
1) if you have the source installed
2) if the source directory is called or has a symlink to /usr/src/linux
 
Old 09-03-2003, 10:38 PM   #7
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
I believe this is all you have to do to install the driver once the Makefile is edit with the path to your kernel source.

'Makefile' includes commands for compiling and installing Host AP
driver for systems using Prism2.5/3-based PCI cards. These cards do not
use pcmcia-cs package. Edit KERNEL_PATH in Makefile to match your
system. Run 'make pci' (this compiles the sources; this step can be
run as non-root user). After the compilation has finished, you can
install hostap_pci.o by running 'make install_pci' (as root). You can
probe PCI bus for Prism2.5/3 PCI cards and initialize the devices by loading
the module ('modprobe hostap_pci').
 
Old 09-04-2003, 05:39 AM   #8
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
Did you install the kernel-source i386.rpm or the kernel src.rpm? The former would be correct while the latter is not what you want.
 
Old 09-04-2003, 10:38 AM   #9
bigredgiant1
Member
 
Registered: Aug 2003
Distribution: Redhat since 5.2, Gentoo
Posts: 43

Original Poster
Rep: Reputation: 15
Ok here's what I did that worked. I installed the kernel src.rpm, and I found, that on redhat 9, that created a file in the following directory:

/usr/src/redhat/SOURCES

The file it created was a tarball of all the kernel source files, I untared it, and then symlinked that directory it created to /usr/src/linux, using this command:

ln -s /usr/src/redhat/SOURCES/kernel-2.4.20 /usr/src/linux

Then whenever I used /usr/src/linux as the root directory of the kernel source, every script ran fine. Now my wireless card is working.
 
Old 09-04-2003, 12:14 PM   #10
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
Exclamation

That doesn't give you the same source which Red Hat's kernel is built from.

Instead, you install the kernel-source i386.rpm which puts the complete patched and configured kernel source tree into /usr/src/linux-2.4, and you can create a link from /usr/src/linux to /usr/src/linux-2.4 if you need to.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
X Server Help / Source Dir opiea Linux - Software 0 11-28-2005 08:27 AM
How I Can I Install All Source Packages In A Dir? HGeneAnthony Linux - General 1 06-26-2005 10:38 AM
error:cannot create source dir HELP! manas_shukla Linux - Newbie 1 01-20-2005 12:12 AM
Kernel Source Dir. Jack458 Linux - Software 5 08-19-2003 10:14 PM
source dir for kernel under mandrake 8.2 deezay Linux - General 4 04-08-2002 07:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:45 PM.

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