LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 05-12-2011, 04:12 PM   #1
Hidden Windshield
Member
 
Registered: Jul 2010
Distribution: Fedora
Posts: 68

Rep: Reputation: 27
Compiling kernel on a different machine


I have this old Pentium PC with 32MB RAM that I use for testing (read "breaking stuff, then fixing it"). The problem is that it takes a very long time to compile a new kernel for it (we're talking over a week here). So, I want to actually do the compile step on another computer; specifically, an AMD Athlon (not exactly cutting edge, either).

Do I have to set some compiler options or something to make the kernel work on the Pentium? Anything at all I have to do beyond running "make" and letting it go?

I plan on running the "make menuconfig" step on the Pentium before I tar the source up and ftp it to the AMD, if that makes any difference.
 
Old 05-12-2011, 08:21 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
I would think all you would have to do is use -march=pentium
 
Old 05-12-2011, 08:24 PM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
You don't really need to run menuconfig on the Pentium, you can just as easily set all the options to match the Pentium from the Athlon. Just set the processor type to Pentium, select all of the appropriate hardware, and go.

If you are building modules as well, make sure you collect all of those before moving the kernel over to the Pentium.
 
1 members found this post helpful.
Old 05-13-2011, 10:58 PM   #4
Hidden Windshield
Member
 
Registered: Jul 2010
Distribution: Fedora
Posts: 68

Original Poster
Rep: Reputation: 27
Thanks for everyone's help. I set the processor type to Pentium, compiled, and moved the kernel and modules over (actually, I tarred the whole thing up, moved it back over, and ran "make modules_install"). Worked like a charm!
 
  


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
need help compiling kernel for different machine bioe007 Linux - Kernel 3 05-13-2007 11:39 PM
Compiling kernel of different machine kushalkoolwal Debian 4 08-26-2005 05:56 AM
Compiling a new kernel for an old machine digitalwiz Slackware 5 08-04-2004 03:24 PM
Compiling kernel on another machine? davebarnes Linux - Newbie 3 09-20-2002 01:21 AM
Kernel Compiling for another machine... NMX Linux - Software 0 02-07-2002 10:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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