LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-29-2009, 03:19 PM   #1
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Rep: Reputation: 53
CPU Freq modules missing - Can I get them installed without recompiling?


Hello Everyone,

I am still using 12.1 and don't really see a need to upgrade at this point. But, back in November last year I downloaded and installed the 2.6.27.rc9 kernel because it had native support for my wireless and I could stop using ndiswrapper. So, I compiled this kernel from source (got it straight from kernel.org). Somehow, during the compile, I must have included the modules from 2.6.24 because I get some errors about modules from the boot messages. I have always just ignored them because they had no effect on the running of the OS. In fact, everything seems to run just fine from this older kernel (which isn't even a final release kernel), that I have just continued to use it right along.

However, now I am noticing just a little higher temperatures with this laptop, so I checked to make sure I had CPU freq running and I didn't. So, in trying to start it I find that I do not have any of the necessary modules (powernow-k8, cpu-freq-ondemand, etc.) as modprobing them delivers an error that they don't exist.

Everything is running so well, I would really rather not recompile if I don't have to, so I was wondering if it is possible to get these modules installed into this kernel without recompiling.

Thanks for any replies.

Bob
 
Old 05-01-2009, 02:53 AM   #2
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Original Poster
Rep: Reputation: 53
OK, this one obviously can't be answered. So, I would like to ask if anyone knows or has tried the 12.2 kernel (2.6.27.7) with 12.1. What I am trying to do is repair my install without reinstalling.

Thanks
Bob
 
Old 05-01-2009, 06:50 AM   #3
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Original Poster
Rep: Reputation: 53
Well, I installed the 2.6.27.7 kernel and it boots fine, but the /lib/modules directory for this kernel is non-existent. I always follow Alen Bob's directions for building a kernel, and according to the instructions, make install copies all the modules for this kernel that directory. I did it twice and they still never showed up in /lib/modules. The mouse freezes immediately when reaching the desktop, I am assuming becuase of this.

dmesg shows the error: FAILED TO OPEN /lib/modules/2.6.27.7-smp: no such directory

Anyone have any ideas where I have erred?

Thanks

Bob
 
Old 05-01-2009, 07:18 AM   #4
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
Did you try "make modules_install" ?
 
Old 05-01-2009, 08:10 AM   #5
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Original Poster
Rep: Reputation: 53
Thanks....you made me go back and study what I was entering and I was omitting the "_" between modules and install. That cured it. But it is strange, I am still getting the boot message that says using modules from 2.6.24, when I waded througth the swamp of choices in the configuration steps. But it really doesn't matter because I now have cpufreq working.

Whew!! what a trip just to get this working again. This kernel boots a little faster that the .27-rc9 I was using, but only minimal. Everything else seems about the same. But I have answered my own question: the 12.2 kernel works just fine with 12.1. I guess it is just the packages which are slightly newer that is the only difference between the two versions (at least on my install.)

Thanks for your help.



Bob

EDIT: How is that fglrx (the ATI driver) still works with this new kernel without running the setup again? I just booted into it and it is working. I thought I would have to build it again to get it to work with a new kernel. Never seen this before.

Last edited by BobNutfield; 05-01-2009 at 08:18 AM.
 
Old 05-01-2009, 08:27 AM   #6
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
You're welcome
Normally you can compile newer kernels in Slackware compiling them from source, but always keep the original version as well so that you can fall back and test things if something stops working later on.
 
Old 05-01-2009, 09:16 AM   #7
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
I was wondering... You said that during boot it still tells you it is using modules from 2.6.24 ...
Isn't it telling about /etc/rc.d/rc.modules-2.6.xxxxx ?
This might be a problem with the symbolic link /etc/rc.d/rc.modules -> /etc/rc.d/rc.modules-2.6.xxxxx
 
Old 05-01-2009, 10:06 AM   #8
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Original Poster
Rep: Reputation: 53
Hello, yes you are correct..that link is to 2.6.24. That may have been my problem all along, just didn't know it. How would I edit that file to direct it to 2.6.27? Would simply renaming it work?

Now that I look, there is no rc.modules for 2.6.27.7 at all.

Last edited by BobNutfield; 05-01-2009 at 10:11 AM.
 
Old 05-01-2009, 11:51 AM   #9
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
If you don't have a more recent version, you can use the 2.6.24 file. I checked here and there were no changes between the 2.6.27.7 & 2.6.29.2 versions (I do not have a 2.6.24 version at hand now...).

To change the link:
Code:
cd /etc/rc.d
rm rc.modules
cp rc.modules-2.6.24 rc.modules-2.6.27.7-smp
ln -s rc.modules-2.6.27.7-smp rc.modules
Just check the correct version numbers for the kernels...

There will be no practical effect, it just will stop saying that it is loading the modules for 2.6.24
 
Old 05-01-2009, 12:08 PM   #10
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Original Poster
Rep: Reputation: 53
Once again, that worked great. The error message is gone. And you were right, there was no appreciable change, but it is nice to have a clean boot. I don't do any heavy duty work with Slack, so I am content with 12.1 and this kernel. All is well!

Thanks again
Bob
 
  


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
CPU freq in Ubuntu 9.04 Pazau Linux - Software 7 04-29-2009 09:40 AM
CPU freq driver mrrao Linux - Hardware 1 02-14-2008 11:43 PM
how to compile missing modules in apache? installed from RPM parv Linux - Networking 2 02-12-2006 11:13 AM
how to control cpu freq ruh31 Debian 6 02-14-2005 09:58 AM
Lower CPU freq Adony Linux - Hardware 2 10-01-2004 09:23 AM

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

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