LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Compile i686 Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/compile-i686-kernel-438046/)

seelk 04-23-2006 12:29 PM

Compile i686 Kernel
 
Is there an option I need to pass/set in order to compile a i686 kernel??

sundialsvcs 04-23-2006 02:30 PM

There is an entire section of processor-type selections in the configuration menu.

Select the type that is closest to the processor-type that you run.

cs-cam 04-23-2006 06:38 PM

What are you trying to gain from compiling your own kernel though? I don't think you'll beat the -beyond kernel in [extra], iphitus has made something really nice there :)

seelk 04-23-2006 08:11 PM

I build my own kernels mainly for learning purposes. What's the difference between the -beyond kernel and regular kernels?

cs-cam 04-23-2006 08:59 PM

http://iphitus.loudas.com/beyond.php

It's in the Arch repos if you decide to try it.

nx5000 04-24-2006 03:56 AM

I know nothing of AMD but still.. you seem to have a "Athlon XP 2800+" ?
Don't you need a k7 kernel then? Otherwise you might face slowness or crash maybe?
As said, you choose it during the kernel config: K7 and then it adds -march=athlon to compilation. See arch/i386/Makefile.cpu

sundialsvcs 04-24-2006 09:29 AM

I generally disagree with the notion that there is no benefit to compiling your own kernels. If you know how to do it, do so. If you don't, learn sometime.

Why? Because frankly there is a _lot_ of junk in any "canned" kernel. There has to be: the distributor has no way to know what hardware it might be running on. So there might be many dozens of modules that are trolled-through but never used; in-memory tables built in anticipation of capacity that your machine doesn't have. It's much more than just a consideration of processor-type.

One good reason to do it might simply be to dispel the mystery of it; or, the fear of it. You need to see the kernel for what it is... a memory-resident device-control program.

cs-cam 04-24-2006 05:03 PM

Quote:

Because frankly there is a _lot_ of junk in any "canned" kernel.
True, there certainly is however when I've built my own for a fair while and then gone back to the package to find no loss in performance then I'll stick with the easier route ;) Makes sense to it's a hell of a lot quicker.
Quote:

If you know how to do it, do so. If you don't, learn sometime
...
One good reason to do it might simply be to dispel the mystery of it; or, the fear of it.
I'll agree with both of those though, it's always nice to know how to do something :)

nx5000 04-25-2006 03:45 AM

That's the difference with windows:
if you don't need ppp,isdn,drivers for all eth cards, for video card,..
just remove them and recompile!
The kernel provided by distro is meant to run on every machine for every configuration so it includes all.

win32sux 05-05-2006 09:34 AM

would i be asking for trouble by compiling my kernel with -march=athlon (i have an athlon cpu) - considering that most of the slackware packages are compiled using -march=i486 and -mcpu=i686?? :study:

GlennsPref 05-06-2006 07:04 AM

win32sux, To get a faster responce, You should post a new thread with your question.

btw, That is called hijacking a thread, and when ppl log on to this forum, they won't see your question, (edit) no offence, :)

Kind regards, Glenn

(edit) But yes I do and it won't hurt if you do, until you change your cpu to something other that an Athlon.

You should leave i386 compatability enabled just in case

win32sux 05-06-2006 07:13 AM

Quote:

Originally Posted by GlennsPref
win32sux, To get a faster responce, You should post a new thread with your question.

btw, That is called hijacking a thread, and when ppl log on to this forum, they won't see your question

Kind regards, Glenn

i know what thread hijacking is, thank you, and this is NOT thread hijacking... -march=athlon kernel optimization indeed became a part of this discussion ever since this post was made by nx5000:
Quote:

Originally Posted by nx5000
I know nothing of AMD but still.. you seem to have a "Athlon XP 2800+" ?
Don't you need a k7 kernel then? Otherwise you might face slowness or crash maybe?
As said, you choose it during the kernel config: K7 and then it adds -march=athlon to compilation. See arch/i386/Makefile.cpu


nx5000 05-09-2006 02:44 AM

Quote:

Originally Posted by win32sux
would i be asking for trouble by compiling my kernel with -march=athlon (i have an athlon cpu) - considering that most of the slackware packages are compiled using -march=i486 and -mcpu=i686?? :study:

Well from the kernel configuration:


Select this for an AMD Athlon K7-family processor. Enables use of some extended instructions, and passes appropriate optimization flags to GCC.

-march=athlon will be activated if you select processor familly ATHLON-K7.

As I said I don't know much about amd and how 686-optimized code could run faster than athlon-optimized code on an athlon.
Seems logical to me that you choose athlon-xp (and then have -march=athlon). Maybe there is something on google about 686 optimization on athlon?

I would say=> try it :)
But I'm not sure you will really see a difference...
:twocents:

milanc 05-11-2006 03:59 PM

I think it's easier to do "make config" in your kernel source directory, or, even better, install libncurses-dev (I don't know the exact name of the package) and do "make menuconfig". You'll have plenty of configuration options, and once everything is ready do "make && make install"
In fact, I've never tried mixing a few gcc options into the recent makefiles or into the command line...
PS: I've posted a few other things in the "how many times have you compiled your kernel" poll...


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