LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 08-24-2005, 07:00 PM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 48
Compiling kernel of different machine


I am pretty much familiar with the Debian Kernel compilation procedure(usig make-kpkg).

I have 2 machines. One is very fast(Intel based) and other is very slow(AMD based). On my fast machine the kernel compiles in just 35 minutes and on my slow machine it takes hours to compile the kernel.

I have heard that I can compile the kernel on my fast machine and then transfer it on the slow machine, but I don't know what stuff I will have to transfer to my old machine once I build my kernel on the fast machine.

After I give the command on my fast machine:

#fakeroot make-kpkg --revision=.1.0 kernel_image

I have a .deb package called kernel_image-2.6.8.1_custom.1.0_i386.deb under my /usr/src directory.

Do I have to just copy this package on my old machine and then give the command

dpkg -i kernel_image-2.6.8.1_custom.1.0_i386.deb

and make necessary changes in the grub.conf file? Or do I have to copy some /lib/modules/<kernel-version> directory?

Kindly let me know if I am missing anything.

Thank you once again.
 
Old 08-25-2005, 02:25 AM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
You can just copy over and install the kernel package on the other box. The modules directory will be created during the install.
 
Old 08-25-2005, 02:27 AM   #3
grexk
LQ Newbie
 
Registered: Mar 2005
Posts: 15

Rep: Reputation: 0
You have just to install the kernel in your slow machine. Then reboot the machine if it works then it's complete. But the major draw back is that you have to repeat compiling if something goes wrong. KERNEL PANIC....
You should also know the filesystem of your slow machine and include it in your kernel not as a module...One of my problem now is loading filesystem module...so if could help then
I'll appreciate it....

Just play around...
 
Old 08-25-2005, 12:50 PM   #4
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
Thanks Guys. I will try it and will let you know how did it went.
 
Old 08-26-2005, 06:56 AM   #5
basileus
Member
 
Registered: Nov 2004
Location: Turku, Finland
Distribution: Debian, Ubuntu, Gentoo
Posts: 388

Rep: Reputation: 30
I've compiled several kernels on fast computer for slower ones and I've never encountered any problems. Just configure the kernel for your slow computer, compile it, copy it, and do the mentioned "dpkg -i kernel_image ..." and you should be fine.
 
  


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
Quick question: Compiling a kernel to be used on another machine Fenster Fedora 2 07-15-2006 06:44 PM
Compiling a new kernel for an old machine digitalwiz Slackware 5 08-04-2004 04:24 PM
Compiling kernel for remote machine mr_mandrill Slackware 4 10-12-2002 08:18 AM
Compiling kernel on another machine? davebarnes Linux - Newbie 3 09-20-2002 02:21 AM
Kernel Compiling for another machine... NMX Linux - Software 0 02-07-2002 11:55 AM


All times are GMT -5. The time now is 08:47 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration