LinuxQuestions.org
Help answer threads with 0 replies.
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 04-23-2006, 08:47 PM   #1
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Rep: Reputation: Disabled
Compile kernel for laptop


Note that this is not compile kernel ON laptop. I have a 2GHz desktop and a 450MHz laptop. Both run Slackware-current. I have been compiling kernels on/for the desktop for a good while & have a very nice configuration for my hardware. On the laptop i have been using the 2.6 series kernels provided by Slackware. These have worked very well & have allowed me to keep this old laptop going. However, a while ago I tried to compile a kernel on the laptop & it worked, but I slept twice before it finished! I don't want to go through that again! Recently I d/led linux-2.6.16.9 to my desktop, untarred it, copied in the config file from the laptop & ran 'make oldconfig', selecting the default configuration for new kernel options. Then I ran 'make menuconfig', selecting ext3 filesystem in the kernel so I wouldn't need an initrd. I then ran 'make' & 'make modules_install' & finally copied all components to the laptop. The laptop seems to work quite well with this kernel, but I am thinking of slimming it down. I don't need a large number of the modules that went along with that kernel. My question (FINALLY!) is: Am I running any risk, using a kernel on the hardware that it was not compiled on? I don't see any difference in doing this & using one of Pat's compiled kernels, but then there are a lot of things I don't see....
Regards,
Bill
 
Old 04-23-2006, 09:08 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Am I running any risk, using a kernel on the hardware that it was not compiled on? I don't see any difference in doing this & using one of Pat's compiled kernels, but then there are a lot of things I don't see....
That's pretty much what everyone with a binary distro does. And that is what you are doing really: you are creating a custom binary distro for your laptop. Enjoy.

The main thing I can foresee is having the kernel compiled with a different version of gcc to the one you compile future drivers with. Make sure the gcc on the laptop is the same as the gcc wot compiled the kernel and you should avoid this.

Last edited by Simon Bridge; 04-23-2006 at 09:10 PM.
 
  


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
How to restore out-of-box kernel settings if my kernel compile fails? brgr88 Slackware 8 04-18-2006 06:51 AM
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 02:37 PM
New laptop+first kernel compile=joy slackist LinuxQuestions.org Member Success Stories 0 10-12-2004 03:11 PM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM

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

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