Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


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

Rep: Reputation: 49
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- 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-

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, 01:25 AM   #2
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, 01:27 AM   #3
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 if could help then
I'll appreciate it....

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

Original Poster
Rep: Reputation: 49
Thanks Guys. I will try it and will let you know how did it went.
Old 08-26-2005, 05:56 AM   #5
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.


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 05:44 PM
Compiling a new kernel for an old machine digitalwiz Slackware 5 08-04-2004 03:24 PM
Compiling kernel for remote machine mr_mandrill Slackware 4 10-12-2002 07:18 AM
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 > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration