LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-19-2006, 02:52 AM   #1
beowolfganz
LQ Newbie
 
Registered: Apr 2006
Location: South Florida
Distribution: Fedora Core 5
Posts: 7

Rep: Reputation: 0
Question fc5 will not make a driver


I am working o trying to get thye driver for the built-in wifi card on my laptop installed with no luck. laptop is a toshiba with a built in atheros wifi card. The problem appears to be that when I try to use the 'make' command, fc5 is unable to find kernel build files in the directory below:
/lib/modules/2.6.15-1.2054_fc5/build
I checked the directory and found that when I get the kernel directory, build is in white letters highlighted in red in my terminal
also noted that I istalled (or at least thought I did) the 2.6.16 kernel via RPMs but can find no sign of either RPM files or that it installed
when I checked the build file through the gui it was a broken link
I can probably get my card working if van fix the broken link but I am not sure how and any help given is most appreciated
 
Old 04-19-2006, 03:27 AM   #2
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
You'll need kernel sources installed.
I do not know what package manager FC uses. All that you need to do is, locate the kernel source package which shall be on one of the CDs. package should be named kernel-source-2.6.15-1****.src.rpm or something similar. Once you've installed the sources, try running make again. If it gives you an error like '...... version.h not found', change to kernel source directory which shall invariably be /usr/src/linux unless you made some changes and, run the command 'make prepare'. After 'make prepare finishes', change to wifi driver source directory and run make....

The link /lib/modules/2.6.15-1.2054_fc5/build is a symlink which points to the kernel sources usually installed to /usr/src/linux-<kernel-version>. /usr/src/linux also is a symlink to /usr/src/linux-<kernel-version>

Last edited by kevkim55; 04-19-2006 at 03:30 AM.
 
Old 04-19-2006, 03:29 AM   #3
beowolfganz
LQ Newbie
 
Registered: Apr 2006
Location: South Florida
Distribution: Fedora Core 5
Posts: 7

Original Poster
Rep: Reputation: 0
additional info for my query: looked to see what build should look like by booting my desktop to fc3 and found that build and also source should be matching folders, but in vfc5 they appear to be nothing more than broken links...also noted not able to locate the makefile commd
 
Old 04-19-2006, 04:06 AM   #4
beowolfganz
LQ Newbie
 
Registered: Apr 2006
Location: South Florida
Distribution: Fedora Core 5
Posts: 7

Original Poster
Rep: Reputation: 0
can only find 2 rpm files on the CDs that resemble what was described, and fedora says nope already installed
went to location you mention 9/usr/src/kernels) and found the one I downloaded, 2.6.16-1.2088_FC5.i686
that let me do make prepare but the regular make command is still not working
 
Old 04-19-2006, 10:20 AM   #5
lebabyg
Member
 
Registered: Mar 2006
Location: UK
Distribution: Ubuntu Feisty
Posts: 272

Rep: Reputation: 30
Have you got the kernel-devel package installed?? To check type rpm -qa | grep kernel. If this doesn't list a kernel-devel package that matches the kernel version you are running, type as root.
yum list available kernel-devel uname -r
and then yum install (wotever it produces.). This might fix your problem.
Regards,
Graham

(this is of course presuming that you have configured yum, for notes on how to go here http://stanton-finley.net/fedora_cor...ion_notes.html)
 
Old 04-19-2006, 05:02 PM   #6
beowolfganz
LQ Newbie
 
Registered: Apr 2006
Location: South Florida
Distribution: Fedora Core 5
Posts: 7

Original Poster
Rep: Reputation: 0
nope, make stil looks for the old kernel, which does not appear to have the devel rpm file, and the ones trhat show up with the GREP command are for the newer kernel:
kernel-2.6.16-1.2088_FC5
kernel-devel-2.6.16-1.2088_FC5
the yum is properly cofugured and yum install worked fine on the development tools byut make still gives error as follows:
can't find kernel build files in /lib/modules/2.6.15-1.2054_FC5/build
it then asks me to give the path using KBUILD=<path> argument to make
what am I missing here?
 
Old 04-20-2006, 05:13 AM   #7
lebabyg
Member
 
Registered: Mar 2006
Location: UK
Distribution: Ubuntu Feisty
Posts: 272

Rep: Reputation: 30
MMMM thats a bit mental?? What kernel are you working in?? It looks like you're working in the old one (try by typing uname -r). If this shows up the old one, you have 2 options. You can download the kernel-devel for that kernel directly or you can take the easier route and boot into the new kernel. What you want to do is edit /etc/grub.conf. (gedit /etc/grub.conf) and edit the line
hiddenmenu -> with
#hiddenmenu
This will allow you to see all your boot options on startup, if this shows up the newer kernel, boot into that, and go from there. This should sort everything out for you.
Regards,
Graham
 
Old 04-20-2006, 06:33 AM   #8
LiNuXkOlOnIe
Member
 
Registered: Dec 2005
Location: North germany
Distribution: Linux Mint
Posts: 46

Rep: Reputation: 16
Fedora 5 User

Hi there,
you should try to use 'yum install kernel-src'.
If this works then you have a dir '/usr/src/redhat/SOURCES' where the kernel is installed. I do a copy of the inside of the archive linux-2.6.16.tar.bz2 to /usr/src/.

An 'yum install kernel-devel' is helpful too.

cu
 
Old 04-23-2006, 04:24 AM   #9
beowolfganz
LQ Newbie
 
Registered: Apr 2006
Location: South Florida
Distribution: Fedora Core 5
Posts: 7

Original Poster
Rep: Reputation: 0
will try that but I think first I need to reload linux and then redownload the kernel as the new one is not showing up in the boot menu when I do the hiddenmenu command listed above. I am working on locating both the kernel and the development tools as RPMs and have not yet`found a site that`has both for FC5. Also found that uname only found the old kernel.
 
Old 05-02-2006, 05:06 PM   #10
beowolfganz
LQ Newbie
 
Registered: Apr 2006
Location: South Florida
Distribution: Fedora Core 5
Posts: 7

Original Poster
Rep: Reputation: 0
ok, so I reloadedf Linux and upgraded all including the kernel (it is now 2.6.16) but found thatI still have no kernel-devel tools to install driver with...any further thoughts?
 
Old 05-03-2006, 01:48 AM   #11
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
You can download kernel sources for FC from kernel.org and install them.

If uname is still giving you the old kernel name, then bviously you are booting into the older kernel. Check your bootloader config file. Possibly the default entry is pointing to the older kernel. You would have to modify this file to boot the new kernel you have installed. Another possibility is that bootloader config file is pointing at a symlink /boot/vmlinuz or /vmlinuz which is still linked to the older kernel. Look under /boot and make sure the links are correct and you indeed have the new kernel installed.
 
Old 05-08-2006, 08:44 AM   #12
lebabyg
Member
 
Registered: Mar 2006
Location: UK
Distribution: Ubuntu Feisty
Posts: 272

Rep: Reputation: 30
gedit /etc/grub.conf
Edit the line
hiddenmenu <to>
#hiddenmenu

This will allow you to use the new kernel. You really have made a bit of a pickle for yourself. If this doesn't work, i'd suggest sacking off FC5 and goin back to FC4.
regards
Graham
 
Old 05-08-2006, 11:27 PM   #13
beowolfganz
LQ Newbie
 
Registered: Apr 2006
Location: South Florida
Distribution: Fedora Core 5
Posts: 7

Original Poster
Rep: Reputation: 0
ok time for a littlw clarification:
1> I can access nd boot into new kernel in fc5
2> even after downloading kernel devel rpm from redhat (is 2.6.16, but the rest is -1.2069 I believe) I still am unable to compile a driver

is there anyother way to do this besides using make? and why didn't redhat include the kernel-devel rpm in the latest release of FC?
 
Old 05-10-2006, 02:40 AM   #14
lebabyg
Member
 
Registered: Mar 2006
Location: UK
Distribution: Ubuntu Feisty
Posts: 272

Rep: Reputation: 30
What does rpm -grep | kernel yield?? Does this show that a kernel-devel package is installed for the the kernel named in uname -r?? If not then that is your problem. You must be doing something totally wrong, or i have misunderstood the problem. As far as i am totally aware, there is no way to install without the development package. You said in an earlier post that you have a kernel and a kernel-devel package installed for kernel-2.6.16-1.2088_FC5. Why not boot into this kernel and try make again. This incidently is newer that 2.6.16-1.2069 that you mention above. Fedora will not install an older package if a newer one is available. Alternatively you could edit the symbolic link in /lib/modules/2.6.15-1.2054_FC5/build to point to the newer kernel-devel packages. DON'T DO THIS UNLESS YOU HAVE BACKED UP, as this could screw things up for you cos your mixing up package versions, so procede at own risk. I would suggest downloading FC4 and using that, its older but more stable than FC5 at the mo. Regards,
Graham
 
  


Reply



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
FC5: can't make non-contiguous selections (control-click) with mouse Kropotkin Fedora 0 04-08-2006 07:17 PM
FC5 Noob Questions about nVidia Driver Issues cubdukat Fedora 15 03-30-2006 08:38 AM
Need a Lexmark X6150 driver for FC5 LinuxCountryGirl Linux - General 2 03-29-2006 09:25 AM
Boot failure after upgrading FC5 TR3 to FC5 Official Release fsb1284 Fedora 3 03-25-2006 09:12 AM
Problem installing nvidia driver on FC5 waggy401 Fedora 14 03-23-2006 09:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 08:49 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