LinuxQuestions.org
Visit Jeremy's Blog.
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 02-13-2006, 04:08 PM   #1
BerzinTehvs
Member
 
Registered: Mar 2005
Location: Latvia
Distribution: Slackware
Posts: 63

Rep: Reputation: 17
How to build kernel for another machine?


Hi!

can i get some info how to make the kernel for another machine? The both computers have identical Slack's, one is just so week that there is no reason to install the devel tools on it.
 
Old 02-13-2006, 04:15 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
What are the two processors?
 
Old 02-13-2006, 04:33 PM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I do this all the time, there is really nothing to it.

Find out what modules you need on the slower machine (using lsmod, lspci, etc), setup the kernel on the faster machine (probably want to backup your existing .config), compile, and then move it over.

Now, for the modules, you have a slight problem, as doing "make modules_install" would overwrite your existing modules (assuming the faster machine is running the same kernel that you are trying to compile.

The easiest thing to do would be to temporarily rename the current module directory to something else, do "make modules_install" tar up the newly created directory, and then put the old module directory back to it's proper name.

But if the other machine is really that slow, you might as well just not do any modules in the first place, and compile everything static into the kernel.
 
Old 02-13-2006, 05:57 PM   #4
bird603568
Member
 
Registered: Aug 2004
Distribution: Slackware current
Posts: 250

Rep: Reputation: 30
What about distcc?
 
Old 02-14-2006, 12:06 AM   #5
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I have experimented with distcc for kernel compiles before, and found it does little to help the situation.

Depending on the speed of the slower machine, the faster machine spends most of the time waiting for the slower machine to finish it's current task and send it a new one.

For instance, when trying it between a 133 Mhz machine and a 450 Mhz machine, the 133 Mhz machine was pounding way, while the 450 Mhz machine sat idle about 70% of the time.

The problem seems to be that the kernel is made up of many small files, rather than a few large files. So the faster machine can compile a single file almost at the same instant it arrives, while the slower machine has to grind through the one it is working on, copy the file back, and start all over again.

It also appeared that the faster machine was actually compiling files in less time than it took to actually send the file back and forth over the network.

All in all, using distcc to compile the kernel on the 133 Mhz machine took only slightly less time then it would have normally, so I just took the easy route, and compiled it on the faster machine in the first place.
 
  


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
New FAQ topic: Should I edit my kernel configuration?/Should I build a custom kernel? chort *BSD 10 09-10-2004 11:15 PM
Unable to build NVIDIA kernel module / determin kernel version Night Ink Fedora 2 05-31-2004 04:54 PM
Build on 1 machine, copy to another? dawizman Linux From Scratch 5 03-31-2004 05:16 PM
Machine build cxtech Slackware 3 03-02-2004 11:18 PM
How should I build a Linux machine? Elliott Linux - General 16 06-27-2003 10:04 PM

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

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