LinuxQuestions.org
Register a domain and help support LQ
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 11-18-2006, 01:46 AM   #16
oldjoe
Member
 
Registered: Nov 2006
Location: Woodstock, IL
Distribution: Fedora Core 6 2.6.18-2868
Posts: 78

Original Poster
Rep: Reputation: 15
tried two things


The first thing I did was disable freshrpms by changing the 1 to a 0 for enabled in the freshrpms.repo file. Then I typed:
yum update kernel-devel and I got this:

[root@localhost ~]# yum update kernel-devel
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
livna 100% |=========================| 1.1 kB 00:00
vlc-contrib 100% |=========================| 951 B 00:00
core 100% |=========================| 1.1 kB 00:00
vlc 100% |=========================| 951 B 00:00
http://mirror.linux.duke.edu/pub/fed...ta/repomd.xml: [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
Trying other mirror.
updates 100% |=========================| 1.2 kB 00:00
vlc-source 100% |=========================| 951 B 00:00
vic-devel 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Excluding Packages from Livna for Fedora Core 6 - i386 - Base
Finished
Could not find update match for kernel-devel
No Packages marked for Update/Obsoletion

Still I have a problem. Then I took PatrickNew's advice an typed in what he said and I got this:

[root@localhost ndiswrapper-1.28]# make KBUILD=/usr/src/kernels/$2.6.18-1.2849.fc6
make -C driver
make[1]: Entering directory `/root/ndiswrapper-1.28/driver'
Can't find kernel build files in /usr/src/kernels/.6.18-1.2849.fc6;
give the path to kernel build directory with
KBUILD=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/root/ndiswrapper-1.28/driver'
make: *** [all] Error 2

What is wrong with my system? I definitely messed something up by doing an update install from the installation disks. Any suggestions?
 
Old 11-18-2006, 02:21 AM   #17
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
the output says "/usr/src/kernels/.6.18-1.2849.fc6" is where it looked for the code. You seem to have used the command
make KBUILD=/usr/src/kernels/$2.6.18-1.2849.fc6

where you personally plugged in the output of uname -r, but you forgot to remove the $. that total hand typed command should be

make KBUILD=/usr/src/kernels/2.6.18-1.2849.fc6
 
Old 11-18-2006, 11:32 AM   #18
oldjoe
Member
 
Registered: Nov 2006
Location: Woodstock, IL
Distribution: Fedora Core 6 2.6.18-2868
Posts: 78

Original Poster
Rep: Reputation: 15
I typed it in correctly this time and got this:

[root@localhost ndiswrapper-1.28]# make KBUILD=/usr/src/kernels/2.6.18-2849.fc6
make -C driver
make[1]: Entering directory `/root/ndiswrapper-1.28/driver'
Can't find kernel build files in /usr/src/kernels/2.6.18-2849.fc6;
give the path to kernel build directory with
KBUILD=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/root/ndiswrapper-1.28/driver'
make: *** [all] Error 2

Am I- supposed to have two kernels at the same time? Cause I still see a folder in the kernels folder for 2.6.18-1.2798.fc6-i686

Last edited by oldjoe; 11-18-2006 at 11:35 AM.
 
Old 11-18-2006, 01:29 PM   #19
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
try it with /usr/src/kernels maybe it will be looking for that folder.
 
Old 11-18-2006, 02:09 PM   #20
oldjoe
Member
 
Registered: Nov 2006
Location: Woodstock, IL
Distribution: Fedora Core 6 2.6.18-2868
Posts: 78

Original Poster
Rep: Reputation: 15
Tried that and this is what I got.


[root@localhost ndiswrapper-1.28]# make KBUILD=/usr/src/kernels
make -C driver
make[1]: Entering directory `/root/ndiswrapper-1.28/driver'
Can't find kernel build files in /usr/src/kernels;
give the path to kernel build directory with
KBUILD=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/root/ndiswrapper-1.28/driver'
make: *** [all] Error 2

Then I searched around and found one of the two folders inside the kernels folder is 2.6.18-1.2849.fc6-i686. So, I then typed and got this:
[root@localhost ndiswrapper-1.28]# make KBUILD=usr/src/kernels/2.6.18-1.2849.fc6-i686
make -C driver
make[1]: Entering directory `/root/ndiswrapper-1.28/driver'
Can't find kernel build files in usr/src/kernels/2.6.18-1.2849.fc6-i686;
give the path to kernel build directory with
KBUILD=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/root/ndiswrapper-1.28/driver'
make: *** [all] Error 2


Is is saying that I don't have the kernel build files. If I don't have them, why when I type 'yum update kernel-devel' do I get this?:

[root@localhost ~]# yum update kernel-devel
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
livna 100% |=========================| 1.1 kB 00:00
vlc-contrib 100% |=========================| 951 B 00:00
core 100% |=========================| 1.1 kB 00:00
vlc 100% |=========================| 951 B 00:00
updates 100% |=========================| 1.2 kB 00:00
vlc-source 100% |=========================| 951 B 00:00
vic-devel 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 1.4 MB 00:07
################################################## 4443/4443
Excluding Packages from Livna for Fedora Core 6 - i386 - Base
Finished
Could not find update match for kernel-devel
No Packages marked for Update/Obsoletion

Do I need to download the kernel build files from the internet, before I run the yum update kernel-devel? I thought it would be included in the livna repo.

Last edited by oldjoe; 11-18-2006 at 02:36 PM.
 
Old 11-18-2006, 02:36 PM   #21
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
try opening up your file manager and moving to /usr/src/kernels and see what's there
 
Old 11-18-2006, 02:40 PM   #22
oldjoe
Member
 
Registered: Nov 2006
Location: Woodstock, IL
Distribution: Fedora Core 6 2.6.18-2868
Posts: 78

Original Poster
Rep: Reputation: 15
Inside /usr/src/kernels, there are two folders for two kernel versions. The names of the folders are:
2.6.18-1.2798.fc6-i686 and
2.6.18-1.2489.fc6-i686
 
Old 11-18-2006, 04:25 PM   #23
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
you don't have the kernel headers for your current kernel. You tried yum update kernel-devel to no avail. Try yum install kernel-devel .
 
Old 11-18-2006, 09:08 PM   #24
oldjoe
Member
 
Registered: Nov 2006
Location: Woodstock, IL
Distribution: Fedora Core 6 2.6.18-2868
Posts: 78

Original Poster
Rep: Reputation: 15
It seems as if I am having a conflict with having both kernels. Or, at least when I type in yum install kernel-devel, it wants to install the kernel headers for the old version (2.6.18-1.2798), because this is what I got:

[root@localhost ~]# yum install kernel-devel
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages from Livna for Fedora Core 6 - i386 - Base
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package kernel-devel.i586 0:2.6.18-1.2798.fc6 set to be installed
--> Running transaction check
--> Populating transaction set with selected packages. Please wait.
---> Package kernel-devel.i686 0:2.6.18-1.2798.fc6 set to be erased
--> Running transaction check

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
kernel-devel i586 2.6.18-1.2798.fc6 core 4.6 M
Removing:
kernel-devel i686 2.6.18-1.2798.fc6 installed 14 M

Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 1 Package(s)

Total download size: 4.6 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test


Transaction Check Error: package kernel-devel-2.6.18-1.2849.fc6 (which is newer than kernel-devel-2.6.18-1.2798.fc6) is already installed
package kernel-devel-2.6.18-1.2798.fc6 is already installed


Any suggestions?
 
Old 11-18-2006, 10:31 PM   #25
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
I'll admit, I'm lost. yum is telling you that this package is installed, but it doesn't seem to actually be on your computer. Maybe try yum remove kernel-devel and then yum install kernel devel. Trouble is that yum might try to remove things that depend on kernel devel.
 
Old 11-19-2006, 12:22 AM   #26
oldjoe
Member
 
Registered: Nov 2006
Location: Woodstock, IL
Distribution: Fedora Core 6 2.6.18-2868
Posts: 78

Original Poster
Rep: Reputation: 15
some progress at last! I had removed the kernel-devel with the yum remove kernel-devel command and then installed with yum install kernel-devel and it installed it correctly. Then I used the make KBUIILD=/usr/src/kernels/2.6.18-1.2849.fc6-i686 and it worked. This was my output:

[root@localhost ndiswrapper-1.28]# make KBUILD=/usr/src/kernels/2.6.18-1.2849.fc6-i686
make -C driver
make[1]: Entering directory `/root/ndiswrapper-1.28/driver'
make -C /usr/src/kernels/2.6.18-1.2849.fc6-i686 SUBDIRS=/root/ndiswrapper-1.28/driver
make[2]: Entering directory `/usr/src/kernels/2.6.18-1.2849.fc6-i686'
LD /root/ndiswrapper-1.28/driver/built-in.o
CC [M] /root/ndiswrapper-1.28/driver/crt.o
CC [M] /root/ndiswrapper-1.28/driver/hal.o
CC [M] /root/ndiswrapper-1.28/driver/iw_ndis.o
CC [M] /root/ndiswrapper-1.28/driver/loader.o
CC [M] /root/ndiswrapper-1.28/driver/ndis.o
CC [M] /root/ndiswrapper-1.28/driver/ntoskernel.o
CC [M] /root/ndiswrapper-1.28/driver/ntoskernel_io.o
CC [M] /root/ndiswrapper-1.28/driver/pe_linker.o
CC [M] /root/ndiswrapper-1.28/driver/pnp.o
CC [M] /root/ndiswrapper-1.28/driver/proc.o
CC [M] /root/ndiswrapper-1.28/driver/rtl.o
CC [M] /root/ndiswrapper-1.28/driver/wrapmem.o
CC [M] /root/ndiswrapper-1.28/driver/wrapndis.o
CC [M] /root/ndiswrapper-1.28/driver/wrapper.o
CC [M] /root/ndiswrapper-1.28/driver/usb.o
CC [M] /root/ndiswrapper-1.28/driver/divdi3.o
LD [M] /root/ndiswrapper-1.28/driver/ndiswrapper.o
Building modules, stage 2.
MODPOST
CC /root/ndiswrapper-1.28/driver/ndiswrapper.mod.o
LD [M] /root/ndiswrapper-1.28/driver/ndiswrapper.ko
make[2]: Leaving directory `/usr/src/kernels/2.6.18-1.2849.fc6-i686'


*** WARNING: This kernel seems to use 4K stack size option (CONFIG_4KSTACKS); many Windows drivers will not work with this option enabled. Disable CONFIG_4KSTACKS option, recompile and install kernel


make[1]: Leaving directory `/root/ndiswrapper-1.28/driver'
make -C utils
make[1]: Entering directory `/root/ndiswrapper-1.28/utils'
gcc -g -Wall -I../driver -o loadndisdriver loadndisdriver.c
make[1]: Leaving directory `/root/ndiswrapper-1.28/utils'

Now, I am not sure if I need to disable the 4K stack size (and I am not quite sure how to, though I think there is a link to download (http://www.linuxant.com/driverloader...downloads.php))
But I am not sure what the next step is. Do I try to load the module? The instructions say before I load the module type in 'depmod -a' and if there is no error, continue. Well, of course, I get an error:

[root@localhost ndiswrapper-1.28]# depmod -a
WARNING: Can't read module /lib/modules/2.6.18-1.2849.fc6/weak-updates/nvidia/nvidia.ko: No such file or directory

Do I need to get this file or directory, or whatever it is looking for?
 
Old 11-19-2006, 12:41 AM   #27
poweredbydodge
Member
 
Registered: Oct 2006
Location: Buffalo, NY
Distribution: Servers: Scientific Linux 5.x // Desktops: Fedora Core (latest)
Posts: 110

Rep: Reputation: 15
before this fella does anything, it is CRITICAL that he has a MATCHING kernel and kernel-devel (headers) installed.

i mean we can putz around all day about ways of making this or that work, but if anyone is not running matching kernel and kernel-devel packages, then they're in for deep doo-doo down the road -- when trying to install other programs, and generally making their life more difficult.

first thing I would do is install the latest kernel and kernel devel. i wish we could attach stuff, as i'd just attach them... but here's a link.

kernel -->
ftp://rpmfind.net/linux/fedora/core/...9.fc6.i686.rpm

kernel-devel -->
http://hany.sk/mirror/fedora/core/up...9.fc6.i686.rpm

download them both into one directory -- wherever -- doesn't matter, just put them in the same spot.

lets say - for sake of giving instructions - that spot is /opt/kern_files

then you'll do this after downloading...

DO ALL AS ROOT!

1-
chmod 777 /opt/kern_files/*.rpm

2-
rpm -ivh /opt/kern_files/*.rpm

... if that works without any error messages, cool, reboot, and then do the whole reinstall of ndiswrapper.

... if it gives you an error like "package conflicts" or "already installed", then do this...

3-
rpm -ivh --force /opt/kern_files/*.rpm

... it will work that way for sure. then reboot, and reinstall ndiswrapper.
 
Old 11-19-2006, 12:52 AM   #28
oldjoe
Member
 
Registered: Nov 2006
Location: Woodstock, IL
Distribution: Fedora Core 6 2.6.18-2868
Posts: 78

Original Poster
Rep: Reputation: 15
I am ready to do all of this to get this working. I tried both links and the first one does not work. The second one does. I appreciate the help.

P.S. Is there a way to check to see if I have the matching kernel and kernel headers before I do this?

Last edited by oldjoe; 11-19-2006 at 12:54 AM.
 
Old 11-19-2006, 01:03 PM   #29
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
actually, after all you've gone through you do have matching kernel and kernel devel. Where is complains that you are missing the nvidia module, it's just that. All you are missing is an nvidia module. Do you use an nvidia graphics card? It's not an error, its a warning. The difference is that everything else worked, it didn't stop. Only that nvidia module is missing.

As for the 4k, it's specific to the card (well, driver) I think so google around with your card name and see what folks have to say.
 
Old 11-19-2006, 04:50 PM   #30
oldjoe
Member
 
Registered: Nov 2006
Location: Woodstock, IL
Distribution: Fedora Core 6 2.6.18-2868
Posts: 78

Original Poster
Rep: Reputation: 15
Yes, I am using a nvidia card. Since it is a warning, I can continue with the compiling the module for ndiswrapper, correct? If I want to get rid of the warning, do you know how I could get the nvidia module with out messing up my current functionality with my graphics card?
 
  


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
Yum update error natewlew Fedora 9 08-16-2008 12:22 AM
yum update error vegetassj2 Linux - Software 4 09-07-2006 01:01 PM
Yum Update Error in FC4 egrim Fedora 2 04-22-2006 11:05 AM
Yum Update error fcoutel Red Hat 1 12-30-2004 10:22 AM
Error message using yum update Seventh_Warrior Fedora 7 06-23-2004 12:47 PM


All times are GMT -5. The time now is 04:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration