FedoraThis forum is for the discussion of the Fedora Project.
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.
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.
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
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>
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
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
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
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?
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
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/.
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.
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?
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.
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
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?
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.