LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-30-2006, 05:43 AM   #1
Titanas25
Member
 
Registered: Mar 2006
Location: Greece
Distribution: FC5
Posts: 32

Rep: Reputation: 15
Question Where is my Kernel Path in Fedora Core 5?


Hello all!

i want to install a hostap driver for a prism 2.5 mini pci wireless card and at the readme file says that i have to edit the kernel path in makefile.

Kernels are store in usr/src... directories right? but i cannot find it in mine.
mine goes : usr/src/redhat & then one of the following folders: BUILD,RPMS,SOURCES,SPECS,SRPMS and they are all empty.
What is my KERNEL_PATH?

If i have an older Hostap driver do i have to remove it before installing the new one?

Need help!
 
Old 05-30-2006, 05:52 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What do you have in /boot ?
 
Old 05-30-2006, 06:01 AM   #3
Titanas25
Member
 
Registered: Mar 2006
Location: Greece
Distribution: FC5
Posts: 32

Original Poster
Rep: Reputation: 15
These are in boot folder.

config-2.6.15-1.2054_FC5
lost+found/
config-2.6.16-1.2080_FC5
System.map-2.6.15-1.2054_FC5
grub/
System.map-2.6.16-1.2080_FC5
initrd-2.6.15-1.2054_FC5.img
vmlinuz-2.6.15-1.2054_FC5
initrd-2.6.16-1.2080_FC5.img
vmlinuz-2.6.16-1.2080_FC5

This is the Kernel Path? i have 2.6.16-1.2080_FC5. which i use the vmlinuz... for the path? KERNEL_PATH : /boot/ ?

Last edited by Titanas25; 05-30-2006 at 07:09 AM.
 
Old 05-30-2006, 01:30 PM   #4
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 774
Blog Entries: 6

Rep: Reputation: 75
install kernel-devel
 
Old 05-31-2006, 04:41 AM   #5
Titanas25
Member
 
Registered: Mar 2006
Location: Greece
Distribution: FC5
Posts: 32

Original Poster
Rep: Reputation: 15
i installed kernel-devel:

yum install kernel-devel-2.6.16-1.2080_FC5.i686.rpm

and now what? Same files are in boot,nothing in usr/src/redhat...

Any ideas?
 
Old 05-31-2006, 04:50 AM   #6
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Well they should be in /usr/src/redhat/BUILD/<kernel-number> ...

Are you sure you installed the devel?

Code:
rpm -qa | grep kernel*
 
Old 05-31-2006, 05:17 AM   #7
Titanas25
Member
 
Registered: Mar 2006
Location: Greece
Distribution: FC5
Posts: 32

Original Poster
Rep: Reputation: 15
Well the procedure went fine no errors and it downloaded some files and updates.

rpm -qa | grep kernel*

kernel-2.6.15-1.2054_FC5
kernel-module-ntfs-2.6.15-1.2054_FC5-2.1.26-0.rr.10.0
kernel-2.6.16-1.2080_FC5
kernel-module-ntfs-2.6.16-1.2080_FC5-2.1.26-0.rr.10.5
kernel-devel-2.6.16-1.2128_FC5
kernel-2.6.16-1.2128_FC5

I installed kernel and devel rpms of 2.6.16-1.2128_FC5. A folder that didnt exist is created at /usr/src/kernels/2.6.16-1.2128_FC5 and also at lib/modules/2.6.16-1.2128_FC5.

So my KERNEL_PATH now is lib/modules/2.6.16-1.2128_FC5/build ?

Something else also that is weird is that when i write: uname -a

i get: 2.6.16-1.2080_FC5 2006 i686 i386 GNU/Linux

Why 2080 and not 2128???

Last edited by Titanas25; 05-31-2006 at 10:18 AM.
 
Old 05-31-2006, 10:39 AM   #8
Titanas25
Member
 
Registered: Mar 2006
Location: Greece
Distribution: FC5
Posts: 32

Original Poster
Rep: Reputation: 15
Then reboot idiot :P (i was referring to myself)

[root@monaco kernels]# uname -a
Linux monaco.uni.lux 2.6.16-1.2128_FC5 #1 Tue May 30 21:56:41 EDT 2006 i686 i686 i386 GNU/Linux

Everything looks fine now.
For KERNEL_PATH i put now /lib/modules/2.6.16-1.2128_FC5/build where build is a file ? or /usr/src/kernels/2.6.16-1.2128_FC5-i686 ?

Then i get the following ERROR when i try to make the driver...

I put KERNEL_PATH ?= /lib/modules/2.6.16-1.2128_FC5/build <---in makefile
At the Hostap folder i run: make and i get the following error:

[root@monaco hostap-driver-0.3.10]# make
make -C /lib/modules/2.6.16-1.2128_FC5/build SUBDIRS=/root/Desktop/Prism 2.5/Hostap 0.3.x/hostap-driver-0.3.10/driver/modules \
MODVERDIR=/root/Desktop/Prism 2.5/Hostap 0.3.x/hostap-driver-0.3.10/driver/modules modules
make[1]: Entering directory `/usr/src/kernels/2.6.16-1.2128_FC5-i686'
make[1]: *** No rule to make target `2.5/Hostap'. Stop.
make[1]: Leaving directory `/usr/src/kernels/2.6.16-1.2128_FC5-i686'
make: *** [2.6] Error 2

What am i doing wrong? Is it something in the makefile i need to change?

Last edited by Titanas25; 06-01-2006 at 04:26 AM.
 
Old 06-01-2006, 05:25 AM   #9
Titanas25
Member
 
Registered: Mar 2006
Location: Greece
Distribution: FC5
Posts: 32

Original Poster
Rep: Reputation: 15
Quote:
=/root/Desktop/Prism 2.5/Hostap 0.3.x/hostap-driver-0.3.10/driver/modules
The problem was in here Prism 2.5 must be written with no gaps

The problem is that later make initialises but iam being told that the driver is included in my kernel version (which i already know) and the procedure stops.

I did some modifications to the driver though i want this one to be installed and not use the one already intergrated in the kernel... any help on that ?what do i do?
 
Old 06-01-2006, 05:55 AM   #10
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 774
Blog Entries: 6

Rep: Reputation: 75
simply rename it nogaps

Code:
mv /root/Desktop/Prism 2.5/ /root/Desktop/Prism
Code:
mv /root/Desktop/Prism/Hostap 0.3.x/ /root/Desktop/Prism/Hostap/
then recompile
 
Old 06-01-2006, 06:25 AM   #11
Titanas25
Member
 
Registered: Mar 2006
Location: Greece
Distribution: FC5
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks routers i guess this is also a fast way to do it

Do you know also how i can install this driver? I get a msg that its included in the kernel when i run make.

I did a small modification to the driver and i want to work with mine not with the one of the kernel. How do i install it though?
 
Old 06-01-2006, 06:58 AM   #12
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 774
Blog Entries: 6

Rep: Reputation: 75
why not use latest driver instead u attempting install old one

hostap-driver-0.4.9.tar.gz
hostap-utils-0.4.7.tar.gz
hostapd-0.4.9.tar.gz

available in thier site

http://hostap.epitest.fi/
 
Old 06-02-2006, 05:43 AM   #13
Titanas25
Member
 
Registered: Mar 2006
Location: Greece
Distribution: FC5
Posts: 32

Original Poster
Rep: Reputation: 15
Quote:
why not use latest driver instead u attempting install old one

[root@monaco hostap-driver-0.4.9]# make
make -C /lib/modules/2.6.16-1.2129_FC5/build SUBDIRS=/root/Desktop/Prism2.5/Host ap0.4.x/hostap-driver-0.4.9/driver/modules \
MODVERDIR=/root/Desktop/Prism2.5/Hostap0.4.x/hostap-driver-0.4.9/driver/ modules modules
make[1]: Entering directory `/usr/src/kernels/2.6.16-1.2129_FC5-i686'
CC [M] /root/Desktop/Prism2.5/Hostap0.4.x/hostap-driver-0.4.9/driver/modules/ hostap.o
/root/Desktop/Prism2.5/Hostap0.4.x/hostap-driver-0.4.9/driver/modules/hostap.c:4 5:2: error: #error Host AP driver was added into Linux 2.6.14.
/root/Desktop/Prism2.5/Hostap0.4.x/hostap-driver-0.4.9/driver/modules/hostap.c:4 6:2: error: #error The version used in the kernel tree should be used instead of this
/root/Desktop/Prism2.5/Hostap0.4.x/hostap-driver-0.4.9/driver/modules/hostap.c:4 7:2: error: #error external release which is only maintained for old kernel vers ions.
make[2]: *** [/root/Desktop/Prism2.5/Hostap0.4.x/hostap-driver-0.4.9/driver/modu les/hostap.o] Error 1
make[1]: *** [_module_/root/Desktop/Prism2.5/Hostap0.4.x/hostap-driver-0.4.9/dri ver/modules] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.16-1.2129_FC5-i686'
make: *** [2.6] Error 2

It doesnt install it!!!grrrr Propably coz its included in the kernel . How can i install this one over the kernel one ?
 
  


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
Fedora Core 5 Kernel Nader1 Linux - Software 2 03-27-2006 10:57 AM
kernel for fedora core 3 scripttron75 Linux - Software 3 10-21-2005 05:25 PM
2.6.* Kernel for Fedora Core 1 blufire Fedora 3 11-01-2004 08:57 AM
What is the kernel path fore fedora core 2 nandish Linux - Newbie 3 05-28-2004 08:24 AM
Fedora Core 1 with 2.6.x kernel Memzback Fedora 14 05-18-2004 01:12 PM


All times are GMT -5. The time now is 01:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration