LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-07-2009, 07:27 PM   #1
potuz
Member
 
Registered: Jul 2009
Distribution: Gentoo, CLFS.
Posts: 40

Rep: Reputation: 16
compiling coretemp=recompile kernel?


Hi there, I have my last kernel source tree that I built (plus whatever action did the NVidia installer on that three when I installed the nvidia module)

I forgot to compile coretemp as a module, do I need to recompile the whole kernel or is there any safe way of compiling just that module?

Now that I'm asking this, is there any module for which the above question would be answered by "you can just compile that module"?


Edit: actually what I meant to ask, if I'm forced to recompile the kernel to add coretemp, can I just move the nvidia module and relink? or should I rerun the installer. I'm assuming that just moving and running ldconfig should be fine right?

Cheers,

R.

Last edited by potuz; 08-07-2009 at 07:30 PM.
 
Old 08-08-2009, 05:01 PM   #2
mcolangelo
LQ Newbie
 
Registered: Jun 2009
Location: USA, WI
Distribution: Gentoo
Posts: 25

Rep: Reputation: 17
lol, I hate when I forget to include a module. Happens almost every time too.

Not sure if this is "proper" but I always just go back into menuconfig, add whatever I forgot then do a make modules; make modules_install. I'm pretty sure it skips everything that's already compiled making it run much faster.

You'll have to re-run the nvidia installer again though because of the way it's linked or installed (at least I always have to).
The whole process seems to be much faster then a normal re-compile and I've never had any problems doing it this way.


Another approach would be running make modules SUBDIRS=drivers/hwmon then copying drivers/hwmon/coretemp.ko to your modules directory should also work and even better wouldn't require your nvidia drivers to be re-installed
 
Old 08-08-2009, 08:26 PM   #3
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Rep: Reputation: 34
Quote:
Originally Posted by mcolangelo View Post
lol, I hate when I forget to include a module. Happens almost every time too.

Not sure if this is "proper" but I always just go back into menuconfig, add whatever I forgot then do a make modules; make modules_install. I'm pretty sure it skips everything that's already compiled making it run much faster.

You'll have to re-run the nvidia installer again though because of the way it's linked or installed (at least I always have to).
The whole process seems to be much faster then a normal re-compile and I've never had any problems doing it this way.


Another approach would be running make modules SUBDIRS=drivers/hwmon then copying drivers/hwmon/coretemp.ko to your modules directory should also work and even better wouldn't require your nvidia drivers to be re-installed
Making the kernel again has almost no effect on compile time, this is because nothing in the core of the kernel has changed so make won't overwrite data if it doesn't have to. since you are only adding modules or subtracting modules it only will build the modules anyways.
 
Old 08-09-2009, 01:58 AM   #4
potuz
Member
 
Registered: Jul 2009
Distribution: Gentoo, CLFS.
Posts: 40

Original Poster
Rep: Reputation: 16
Thanks, I had already compiled coretemp, but then it turned out I needed another module from hwmon in 2.6.30 to check my fan speeds

R.
 
  


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
Why didn't the kernel devs include modules for coretemp in 2.6.21.5? trist007 Linux - Newbie 1 04-10-2009 12:53 PM
coretemp module not in .config (2.6.27.9) mk27 Linux - Kernel 0 12-20-2008 11:18 PM
coretemp temperatures accurate ? CPU overheat ? H_TeXMeX_H Linux - Hardware 9 11-18-2008 03:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 02:28 AM.

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