LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-10-2004, 03:59 PM   #1
Fenster
Member
 
Registered: Jul 2004
Location: Ireland
Distribution: Fedora Core 2
Posts: 70

Rep: Reputation: Disabled
Quick question: Compiling a kernel to be used on another machine


I understand the process to compile and install a kernel on a machine, but if I installed want to tar the kernel, put it on another machine (my desktop to my laptop in this case) and then install it there, what steps do I instead take?

Nothing I've Googled or searched for here has covered that as everything written that I've found has the assumption that the kernel will be use on the machine in question.

Cheers!
 
Old 10-10-2004, 04:01 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Just unpack the kernel source somewhere on the maching you want to compile on. Setup the configuration for the machine you want the kernel to run on. Do all the steps but any kind of make install or make modules_install to build the kernel. Tar.bz2 your working directory, transphere it over, and finish up the process on the laptop.
 
Old 07-15-2006, 05:44 PM   #3
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
FWIW I kind of do what jtshaw recommends, but a little different.

On the pc that I want the new kernel, I just extract the new kernel download file on the older/slower pc, I then run my make oldconfig, and then my 'make xconfig' (assuming your in X'), tweak it up, and hit save.

Then I just copy the '.config' file only over to a faster pc....and copy my new kernel download file, extract it there on the faster pc, put the new '.config' in my extracted source folder, run make.

After make is done, I just gzip up the newly made kernel, transfer it back to the slow pc, and extract it into my source folder on the slow pc, then go into it...and do the 'make modules_install' part.

I find that gzip is less stressful on my old pc's.

If your pc is old like mine:

from one folder up above your newly made kernel source on the faster pc if your in console, out of x goes faster, just do: 'tar -zcvf new-source-folder.tar.gz new-source-folder/' and then on the slow folder you just do 'tar -zxvf new-source-folder.tar.gz

don't use absolute paths is the key, and it goes much faster.

good luck.
 
  


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
Compiling kernel of different machine kushalkoolwal Debian 4 08-26-2005 05:56 AM
Quick rant about kernel compiling :{ Danielallan Slackware 19 08-08-2004 06:07 PM
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 - Distributions > Fedora

All times are GMT -5. The time now is 07:37 PM.

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