Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-13-2006, 11:06 PM
|
#1
|
LQ Newbie
Registered: Apr 2002
Posts: 29
Rep:
|
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!
|
|
|
03-13-2006, 11:19 PM
|
#2
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
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.
|
|
|
03-13-2006, 11:29 PM
|
#3
|
LQ Newbie
Registered: Apr 2002
Posts: 29
Original Poster
Rep:
|
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?
|
|
|
03-13-2006, 11:35 PM
|
#4
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
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.
|
|
|
03-14-2006, 12:23 AM
|
#5
|
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852
|
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).
|
|
|
03-14-2006, 12:32 AM
|
#6
|
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852
|
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.
|
|
|
03-14-2006, 02:32 AM
|
#7
|
LQ Newbie
Registered: Apr 2002
Posts: 29
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 05:56 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|