PDA

View Full Version : Where is my Kernel Path in Fedora Core 5?!?!?



Titanas
30th May 2006, 02:53 PM
Does anyone know where is the Kernel path of Fedora core 5 ? My kernel is 2.6.16-1.2080_FC5 .
I want to install a hostap driver but i have to add my kernel path to the makefile. I cannot find it.

At /usr/src/redhat there are BUILD, RPMS, SOURCES, SPECS, SRPMS folders but are empty.

At /boot ther are :
lost+found/
config-2.6.16-1.2080_FC5
grub/
System.map-2.6.16-1.2080_FC5
initrd-2.6.16-1.2080_FC5.img
vmlinuz-2.6.16-1.2080_FC5

And at /lib/modules/2.6.16-1.2080_FC5/ all the modules...

Can anyone tell me what my KERNEL_PATH is? If not above where?

tashirosgt
30th May 2006, 03:55 PM
If the driver needs the kernel sources then you must obtain them and get them in the /usr/src/redhat directory, whose folders are now empty. The kernel sources do not come with the Fedora Core 5 installation cds. Some drivers need only the kernel headers, not the complete sources. What does hostap need?

Titanas
30th May 2006, 04:00 PM
In order to install the driver (make,makeinstall) i will first have to edit KERNEL_PATH in makefile . To declare my kernels path so that the driver uses it.

Noone has installed a hostap driver before? If someone has let me know what he put for KERNEL_PATH.

How do i get kernel headers? i make a path to them?

markkuk
30th May 2006, 10:52 PM
The symbolic link to kernel headers is always /lib/modules/`uname -r`/build. Use the link instead of the real path. You must install the kernel-devel package.

Titanas
31st May 2006, 10:26 AM
So you are telling me to put as Kernel Path : /lib/modules/2.6.16-1.2080_FC5/build
I have installed kernel devel package ...yum install kernel-devel-2.6.16-1.2080_FC5.i686.rpm
Though should i find it somewhere? It must be in what folder?

markkuk
31st May 2006, 11:29 AM
So you are telling me to put as Kernel Path : /lib/modules/2.6.16-1.2080_FC5/build
Yes.


I have installed kernel devel package ...yum install kernel-devel-2.6.16-1.2080_FC5.i686.rpm
Though should i find it somewhere? It must be in what folder?
"rpm -ql kernel-devel" will list the files installed by the package.

Titanas
31st May 2006, 02:38 PM
I run rpm -ql kernel-devel and no package list appeared. So i went to http://people.redhat.com/davej/kernels/Fedora/FC5/RPMS.kernel/ and downloaded kernel & kernel-devel 2.6.16-1.2128.i686.rpm installed them and guess what! The command above worked.

A new folder is created at /usr/src/kernels/2.6.16-1.2128_FC5-i686 . So for KERNEL_PATH i put now /lib/modules/2.6.16-1.2128_FC5/build ?

Something else ...when i do uname -a i get this:
2.6.16-1.2080_FC5 #1 Tue Mar 28 03:38:34 EST 2006 i686 i686 i386 GNU/Linux

I installed both kernel & devel rpm 2.6.16-1.2128_FC5 but my systems kernel is still 2.6.16-1.2080_FC5 ????

Titanas
31st May 2006, 03:33 PM
Then reboot idiot :P (that 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 ?

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?

markkuk
31st May 2006, 05:21 PM
You have a space in the directory name "Prism 2.5", change the file and directory names so that there aren't any spaces in them.

Titanas
1st June 2006, 09:35 AM
You have a space in the directory name "Prism 2.5", change the file and directory names so that there aren't any spaces in them

Damn!Thanks mark for your observation ! I had no idea that make minds the gaps in dirs. Ok make initialized but i get now the following error. Can you interprate this also please? :confused:

make -C /lib/modules/2.6.16-1.2128_FC5/build SUBDIRS=/root/Desktop/Prism2.5/Host ap0.3.x/hostap-driver-0.3.10/driver/modules \
MODVERDIR=/root/Desktop/Prism2.5/Hostap0.3.x/hostap-driver-0.3.10/driver /modules modules
make[1]: Entering directory `/usr/src/kernels/2.6.16-1.2128_FC5-i686'
CC [M] /root/Desktop/Prism2.5/Hostap0.3.x/hostap-driver-0.3.10/driver/modules /hostap.o
CC [M] /root/Desktop/Prism2.5/Hostap0.3.x/hostap-driver-0.3.10/driver/modules/hostap_crypt_wep.o
CC [M] /root/Desktop/Prism2.5/Hostap0.3.x/hostap-driver-0.3.10/driver/modules/hostap_crypt_tkip.o
CC [M] /root/Desktop/Prism2.5/Hostap0.3.x/hostap-driver-0.3.10/driver/modules/hostap_crypt_ccmp.o
CC [M] /root/Desktop/Prism2.5/Hostap0.3.x/hostap-driver-0.3.10/driver/modules/hostap_cs.o
/root/Desktop/Prism2.5/Hostap0.3.x/hostap-driver-0.3.10/driver/modules/hostap_cs.c: In function ‘prism2_attach’:
/root/Desktop/Prism2.5/Hostap0.3.x/hostap-driver-0.3.10/driver/modules/hostap_cs.c:535: warning: implicit declaration of function ‘pcmcia_register_client’
/root/Desktop/Prism2.5/Hostap0.3.x/hostap-driver-0.3.10/driver/modules/hostap_cs.c: In function ‘prism2_detach’:
/root/Desktop/Prism2.5/Hostap0.3.x/hostap-driver-0.3.10/driver/modules/hostap_cs.c:565: warning: implicit declaration of function ‘pcmcia_deregister_client’
/root/Desktop/Prism2.5/Hostap0.3.x/hostap-driver-0.3.10/driver/modules/hostap_cs.c: At top level:
/root/Desktop/Prism2.5/Hostap0.3.x/hostap-driver-0.3.10/driver/modules/hostap_cs.c:914: error: unknown field ‘attach’ specified in initializer
/root/Desktop/Prism2.5/Hostap0.3.x/hostap-driver-0.3.10/driver/modules/hostap_cs.c:914: warning: excess elements in struct initializer
/root/Desktop/Prism2.5/Hostap0.3.x/hostap-driver-0.3.10/driver/modules/hostap_cs.c:914: warning: (near initialization for ‘hostap_driver’)
/root/Desktop/Prism2.5/Hostap0.3.x/hostap-driver-0.3.10/driver/modules/hostap_cs.c:915: error: unknown field ‘detach’ specified in initializer
/root/Desktop/Prism2.5/Hostap0.3.x/hostap-driver-0.3.10/driver/modules/hostap_cs.c:915: warning: excess elements in struct initializer
/root/Desktop/Prism2.5/Hostap0.3.x/hostap-driver-0.3.10/driver/modules/hostap_cs.c:915: warning: (near initialization for ‘hostap_driver’)
make[2]: *** [/root/Desktop/Prism2.5/Hostap0.3.x/hostap-driver-0.3.10/driver/modules/hostap_cs.o] Error 1
make[1]: *** [_module_/root/Desktop/Prism2.5/Hostap0.3.x/hostap-driver-0.3.10/driver/modules] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.16-1.2128_FC5-i686'
make: *** [2.6] Error 2

I dont understand y this is happening...

markkuk
1st June 2006, 10:05 AM
I should have asked this before, but why are you trying to compile an old version of hostap instead of using the current version already in Fedora kernels? Haven't you seen this note on the Host AP site (http://hostap.epitest.fi/):
Host AP driver was added into the main kernel tree in Linux v2.6.14. The version in the kernel tree should be used instead of this external hostap-driver package. The external releases are only for older kernel versions and all the future development will be in the main kernel tree.

Titanas
1st June 2006, 10:16 AM
Yes i got this msg when trying to install the Hostap 0.4.9 version.

I did some changes to the driver so i would like to compile ti and install it in my kernel so that these changes take effect. I want to work with this driver and not the one in the kernel. I guess the kernel Hostap is intergrated so i cannot do the same modifications there.

There must be a way to install an external driver even if its included in the Kernel. How do i do it though?

And another problem when i try to install the kernel source i get this:
""Cannot install source packages"" and then "" no packages were given for installation""
Ive downloaded a million of types and from different platform but i continue getting this msg...

If anybody knows drop me a hint plz