Red Hat This forum is for the discussion of Red Hat Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-03-2003, 09:57 PM
|
#1
|
Member
Registered: Aug 2003
Distribution: Redhat since 5.2, Gentoo
Posts: 43
Rep:
|
Source dir?
I am running Redhat 9. Where is the root directory of my kernel source? I've installed the kernel source rpm. Thanks
|
|
|
09-03-2003, 10:11 PM
|
#2
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
In /usr/src
|
|
|
09-03-2003, 10:13 PM
|
#3
|
Member
Registered: Aug 2003
Distribution: Redhat since 5.2, Gentoo
Posts: 43
Original Poster
Rep:
|
[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.
|
|
|
09-03-2003, 10:21 PM
|
#4
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
Are you trying to compile the kernel in that last post?
|
|
|
09-03-2003, 10:24 PM
|
#5
|
Member
Registered: Aug 2003
Distribution: Redhat since 5.2, Gentoo
Posts: 43
Original Poster
Rep:
|
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.
|
|
|
09-03-2003, 10:26 PM
|
#6
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
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
|
|
|
09-03-2003, 10:38 PM
|
#7
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
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').
|
|
|
09-04-2003, 05:39 AM
|
#8
|
Senior Member
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084
Rep:
|
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.
|
|
|
09-04-2003, 10:38 AM
|
#9
|
Member
Registered: Aug 2003
Distribution: Redhat since 5.2, Gentoo
Posts: 43
Original Poster
Rep:
|
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.
|
|
|
09-04-2003, 12:14 PM
|
#10
|
Senior Member
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 02:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|