LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 08-31-2006, 07:40 AM   #1
DJNolz83
Member
 
Registered: Aug 2006
Distribution: Ubuntu
Posts: 91

Rep: Reputation: 15
Building modules into a kernel


This is going to sound really silly to a lot of people out there, but I am having one hell of a time trying to recompile my new kernel adn get it to work properly. I have upgraded to the latest kernel, and am able to boot to it. (yay!)
Problem is, that there are two modules that I need/want to have loaded that wont load. These are madwifi, and nvidia.
I have the latest downloads for both of these packages, and have had nil success in getting either of them to load.
I have tried running the nvidia installer package, but to no avail. The readme available on the website has been of little else help (except to say that it tells me to run the installer when X has been shutdown, which I have been doing!)
I have tried adding the madwifi module into the new, running kernel, but once again, to no avail. the README that tagged along with this package told me that the best way to do this was to run "make" form the madwifi directory. nup, still wont do it - even when I specify where i built the new kernel (/usr/local/src).
I want to build both of these modules into the new kernel so that the whole process is automated. (makes sense, right?)
What I want to know is how do you build modules into a kernel and have them activate at boot time? (like I said, I know this sounds really silly, and its probably so obvious that I just dont know how ot do it. I am that kind of guy!)

Just so you know:
updated from 2.6.12-22mdk to 2.6.17.11 (with grsecurity patching)
running madriva powerpack 2006.0
latest version of madwifi: madwifi-0.9.2
latest version of nvidia driver: NVIDIA-Linux-x86-1.0-8762-pkg1

Any help would be great!
Thanks in Advance!
 
Old 08-31-2006, 10:42 PM   #2
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
Both of those problems are from not finding your kernel source in the standard dir. To make sure your system plays nice with others, find the kernel version with 'uname -r', then create some simlinks:
/lib/modules/<version>/source -> /usr/src/linux-<version> -> your kernel source directory.

regards,
...drkstr
 
Old 09-11-2006, 11:03 PM   #3
DJNolz83
Member
 
Registered: Aug 2006
Distribution: Ubuntu
Posts: 91

Original Poster
Rep: Reputation: 15
I have decided to scrap what I have done so far and try building again.
This time, instead of building the new kernel in /usr/local/src where I tried building it again, I have decided to build it in a more "acceptable" or "conventionable" place, so that this way, it would actually pick up the problem packages from before (madwifi and nvidia).

Is there any hints as to where the *best* place to build a new kernel is?
Failing that, is there anywhere where I can move/install these modules to that would allow them to be picked up by the new kernel?

drkstr:
I tried creating simlinks as you mentioned, but it didnt work
 
Old 09-13-2006, 01:35 PM   #4
kobbee
LQ Newbie
 
Registered: Sep 2006
Posts: 10

Rep: Reputation: 0
i'm using fc5 and it doesnt recognize the command restorecon. how do i fix this?
 
Old 09-13-2006, 06:11 PM   #5
zuber2k3
LQ Newbie
 
Registered: Sep 2006
Posts: 1

Rep: Reputation: 0
Hi all member.... i am zuber, new member to this group..
can anyone help me finding the tutorial or material on how to recompile kernel and adding modules to kernel
 
  


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
compile not building any kernel/acore modules ... WhiteNoise Slackware 4 12-11-2005 01:37 AM
Problem building RH9 kernel modules dominicporter Red Hat 1 09-25-2005 01:53 PM
Building new kernel modules? raid517 Linux - Software 2 05-26-2005 04:07 AM
problem building modules david_deng Linux - Newbie 2 09-22-2004 02:12 AM
Building modules for the kernel... Nichole_knc Slackware 3 04-13-2004 09:28 AM


All times are GMT -5. The time now is 08:22 PM.

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