LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-19-2010, 01:06 PM   #1
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Rep: Reputation: 31
kernel compilation doubt


Hello,
i compiled one new kernel in my AMD athlon processor and installed in any external drive. after that if i insert that external drive in any intel processor mean whether the kernel which i compile will work or not?
 
Old 02-19-2010, 01:23 PM   #2
jiobo
Member
 
Registered: Nov 2008
Posts: 180

Rep: Reputation: 36
That depends. It could work if you compiled it for an Intel target processor compatible with the one you are using, like x86 or i386. It could work if you compiled the right modules either built into the kernel or loadable in the initrd. If you built all features of the kernel, then you would need an initrd due to the size limitations of the GRUB or LILO bootloader.

That depends. What kernel version did you build and what Intel processor are you using, and on what hardware. Give it a try. Post any errors or problems. Read the README in the kernel source directory.
 
Old 02-19-2010, 01:27 PM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
I believe the key element here, will be the kernel config option "CONFIG_X86_GENERIC" (exact spelling may differ) which compiles in code to allow the kernel to run on pretty much any x86 CPU, as opposed to *specifically* being compiled to run on only a select family of CPUs.

Without "x86 Generic", a kernel that is compiled *specifically* for one CPU family, will not necessarily run without problems, on a different CPU family.

Sasha
 
Old 02-19-2010, 01:30 PM   #4
JimBrewster
Member
 
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware-15.0; -current
Posts: 245

Rep: Reputation: 60
It depends on what processor it was compiled for. There is a set of configuration options for the processor. The default (I think) is i486, in which case it will run on any Intel or compatible more modern than an 80486. Other popular choices are i686 for Pentium II or ia64 for a 64-bit processor. Unless you selected something in those options it will probably work fine. Be aware that you will need drivers built into the kernel or the initrd for the filesystem on the target machine's root partition.
 
  


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
kernel doubt ramkernel Linux - Kernel 3 02-05-2010 01:17 AM
doubt related to kernel sathiyamoorthy Linux - Software 7 04-30-2008 07:40 AM
doubt regarding atomic_dec_and_lock kernel function rajesh_b Programming 1 11-28-2006 07:39 AM
Doubt on which architecture to choose for kernel compilation???? tuxfood Linux - Software 1 01-03-2006 10:30 AM
2.4.20 Kernel has a bug..no doubt bruce1271 Linux - Hardware 1 06-13-2003 02:31 PM

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

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