Results 1 to 9 of 9

Thread: Where is my Kernel Path in Fedora Core 5?

  1. #1

    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?

    Also the driver (hostap_pci.o) for pci cards is the same for mini pci right?

    Need help!

  2. #2
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760
    No your kernel will reside in /boot/

    Your kernel modules are in /lib/modules IIRC

  3. #3
    Ok thanks!These are in boot... The kernel im using is 2.6.16-1.2080_FC5... which one i set as path: system.map , vmlinuz , initrd ??? I guess i dont use the kernel modules as path as there is no kernel file inside.

    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

    KERNEL_PATH : /boot/?

  4. #4
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760
    Being at work when I posted earlier, I couldnt check it out myself, since I can't download.

    Now I am looking at this and this is your kernel source you are looking at which you would give it /usr/src/linux...... (kernel number goes in there). That would require your kernel sources, headers, and the developer tools.

    BTW -- have you tried just using the default setting? Unless we are looking at two different drivers, the docs read that no makefile mods should be needed, and a make is sufficient most of the time.

  5. #5
    i installed 2.6.16-1.2128_FC5.i686.rpm kernel & devel and a new folder is created at /usr/src/kernels/2.6.16-1.2128_FC5.i686 and also at /lib/modules/2.6.16-1.2128_FC5.

    The problem is that when i do uname -a i get my old kernel 2.6.16.-1.2128_FC5. Why is there since i installed the new one?

    The hostap driver mentions this in README:

    PCI cards based on Prism2.5/3 hostap_pci.o
    -----------------------------

    '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' (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' (as root). You can
    probe PCI bus for Prism2.5/3 PCI cards and initialize the devices by loading
    the module ('modprobe hostap_pci').

    This is also valid for mini pci cards also right?Coz my prism2.5 is mini pci.

  6. #6
    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 ?

    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 titanas; 05-31-2006 at 03:32 PM.

  7. #7
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811
    Quote Originally Posted by titanas
    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 ?
    isn't it allready there?
    > ls -l /lib/modules/`uname -r`/build
    lrwxrwxrwx 1 root root 31 2006-05-31 18:24 /lib/modules/2.6.16.19/build -> /usr/src/kernel/linux-2.6.16.19/
    Don't worry Ma'am. We're university students, - We know what We're doing.
    'Ruiat coelum, fiat voluntas tua.'
    Datalogi - en livsstil; Intet liv, ingen stil.

  8. #8
    ls -l /lib/modules/`uname -r`/build
    lrwxrwxrwx 1 root root 47 May 31 15:16 /lib/modules/2.6.16-1.2128_FC5/build -> ../../../usr/src/kernels/2.6.16-1.2128_FC5-i686

    So i went to my makefile and i put at KERNEL_PATH ?= /lib/modules/2.6.16-1.2128_FC5/build .

    [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

    As you can see its beeing redirected to /usr/src/kernels/2.6.16-1.2128_FC5-i686 but there doesnt find something.. Do i have to copy a file in there or something that is missing?

  9. #9
    =/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?

Similar Threads

  1. Fedora Core 10
    By kupertini in forum Redhat / Fedora
    Replies: 1
    Last Post: 10-16-2008, 01:30 AM
  2. Fedora Core 5-T1 DVD
    By GhostDawg in forum Linux - General Topics
    Replies: 2
    Last Post: 11-29-2005, 02:31 PM
  3. Fedora Core 4 Available
    By trickster in forum General Chat
    Replies: 14
    Last Post: 09-27-2005, 05:24 AM
  4. Fedora Core 2
    By in forum Linux - General Topics
    Replies: 49
    Last Post: 06-12-2004, 11:57 AM
  5. Fedora Core 2 is here
    By babbing in forum Redhat / Fedora
    Replies: 3
    Last Post: 05-31-2004, 06:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •