LinuxQuestions.org
Help answer threads with 0 replies.
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 03-13-2006, 11:06 PM   #1
toolkit
LQ Newbie
 
Registered: Apr 2002
Posts: 29

Rep: Reputation: 15
Compile kernel on different PC


Hi,

I have a problem. Now I am running on Slackware 10.1
on my Compaq Presario 725AP. Kernel is 2.4.29,
while it has ACPI, it does not have advance
features such as PowerNow! management. As a result
this machine will shutdown when under relatively
heavy load.

How can I can compile the latest 2.6 kernel
(which has the PowerNow feature) if this machine
cannot even handle heavy workload?
I am thinking of compiling it on different
machine and then copy the files across. Anyone
has the steps to do it?

Thanks!
 
Old 03-13-2006, 11:19 PM   #2
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Compile as you would compile on your laptop. Remember to change processor type and acpi configuration which are suitable for your laptop. There's a sticky kernel compilation guide.
 
Old 03-13-2006, 11:29 PM   #3
toolkit
LQ Newbie
 
Registered: Apr 2002
Posts: 29

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Alien_Hominid
Compile as you would compile on your laptop. Remember to change processor type and acpi configuration which are suitable for your laptop. There's a sticky kernel compilation guide.
Thanks for the quick reply. The kernel I believe
I can copy across to my laptop. But what about
the steps for the modules? Do a manual create
of the directories in the lib directory?
 
Old 03-13-2006, 11:35 PM   #4
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Modules reside im /lib/modules/kernel-version directory. Another suggestion, use same gcc in both computers if you can. As well, you can compile this kernel without lots of modules and recompile including modules when you get it transferred.

Last edited by Alien_Hominid; 03-13-2006 at 11:36 PM.
 
Old 03-14-2006, 12:23 AM   #5
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
When I do a compile for a different machine, I just do a "make modules_install" like normal, and then tar up the contents of the /lib/modules/kernel-version directory. Then I copy over the binary kernel and tar file, and install them accordingly.

That does require you to be running a different kernel on the donor machine then you are compiling for the recipient computer though (or at least temporarily renaming your actual module directory).
 
Old 03-14-2006, 12:32 AM   #6
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Also, this is getting away from the question at hand a bit, but looking up the 725AP, it says it is a 1.3 GHz machine.

I don't mean to sound elitist here, but when I compile on one machine to copy to another, I do it because the target machine is <200 Mhz, when a kernel compile would take 2 hours plus.

On a 1.3 GHz machine, you are talking about 20 minutes, at maximum. In the time it took to post this question and wait for answers, you could have compiled the kernel on the machine itself 4 times over by now.

I understand what you are saying about the PowerNow part, but certainly you can just plug the machine into AC power, or disable any CPU scaling in the BIOS.

If you REALLY can't overide it, then install the 2.6 kernel packages from /testing, and once the machine is running on 2.6 and you have control over the CPU, you can compile a new kernel as you see fit from the machine itself.

Last edited by MS3FGX; 03-14-2006 at 12:38 AM.
 
Old 03-14-2006, 02:32 AM   #7
toolkit
LQ Newbie
 
Registered: Apr 2002
Posts: 29

Original Poster
Rep: Reputation: 15
MS3FGX, thanks for your informative reply.

The problem with this machine is that it
cannot handle heavy load due to heat issues.
I have tried compiling and after about
2 minutes it will shutdown automatically as
the whole machine will get pretty hot.

Using the kernel from /testing will not
help as the ACPI options are not enabled.
 
  


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
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 02:37 PM
Kernel-source, alsa-driver and kernel compile jasone Linux - General 13 05-26-2005 12:15 AM
compile a new kernel with setting default to current kernel mrpc_cambodia Red Hat 6 07-06-2004 11:32 AM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM

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

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