Fedora Linux Support Community & Resources Center
Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > Archived > gmane.linux.redhat.fedora.general

gmane.linux.redhat.fedora.general gmane.linux.redhat.fedora.general newsgroup archive.

 
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2005-02-02, 03:59 PM CST
Stuart Lamble
Guest
 
Posts: n/a
Kernel ARCH i586 i686 - need clarification

Hello All

Please help me understand something here.

When I execute rpmbuild -bp --target=ARCH kernel-2.6.spec, what should I be
substituting for the ARCH bit.

I have a P2 machine. I also have a P4 machine.

Is there any difference between using i586 or i686?

Please help clarify, thanks in advance, Stuart.

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

  #2  
Old 2005-02-02, 03:59 PM CST
Matthew Miller
Guest
 
Posts: n/a
Re: Kernel ARCH i586 i686 - need clarification

On Wed, Jan 05, 2005 at 07:09:03PM +0200, Stuart Lamble wrote:
> When I execute rpmbuild -bp --target=ARCH kernel-2.6.spec, what should I be
> substituting for the ARCH bit.
> I have a P2 machine. I also have a P4 machine.
> Is there any difference between using i586 or i686?


Both of these are i686. Only original Pentium (and Pentium MMX) are i586.
Pentium Pro and onward are i686.

--
Matthew Miller mattdm@mattdm.org <http://www.mattdm.org/>
Boston University Linux ------> <http://linux.bu.edu/>

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

  #3  
Old 2005-02-02, 03:59 PM CST
Felix Miata
Guest
 
Posts: n/a
Re: Kernel ARCH i586 i686 - need clarification

Matthew Miller wrote:

> On Wed, Jan 05, 2005 at 07:09:03PM +0200, Stuart Lamble wrote:


> > When I execute rpmbuild -bp --target=ARCH kernel-2.6.spec, what should I be
> > substituting for the ARCH bit.
> > I have a P2 machine. I also have a P4 machine.
> > Is there any difference between using i586 or i686?


> Both of these are i686. Only original Pentium (and Pentium MMX) are i586.
> Pentium Pro and onward are i686.


Your "only" is inappropriate. K6 & K6/2 are also i586. See also
https://bugzilla.mozilla.org/show_bug.cgi?id=233815
--
"The message of the cross is foolishness to those who are perishing,
but to us who are being saved, it is the power of God."
1 Corinthians 1:18 NIV

Team OS/2 ** Reg. Linux User #211409

Felix Miata *** http://members.ij.net/mrmazda/

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

  #4  
Old 2005-02-02, 04:03 PM CST
Nifty Hat Mitch
Guest
 
Posts: n/a
Re: Kernel ARCH i586 i686 - need clarification

On Thu, Jan 06, 2005 at 03:42:02AM -0500, Felix Miata wrote:
> Matthew Miller wrote:
> > On Wed, Jan 05, 2005 at 07:09:03PM +0200, Stuart Lamble wrote:

>
> > > When I execute rpmbuild -bp --target=ARCH kernel-2.6.spec, what should I be
> > > substituting for the ARCH bit.
> > > I have a P2 machine. I also have a P4 machine.
> > > Is there any difference between using i586 or i686?

>
> > Both of these are i686. Only original Pentium (and Pentium MMX) are i586.
> > Pentium Pro and onward are i686.

>
> Your "only" is inappropriate. K6 & K6/2 are also i586. See also
> https://bugzilla.mozilla.org/show_bug.cgi?id=233815
> --


The simple answer is to see what the install tool selected for you
in the past and build another one just like the other one (see uname).
For most of us "uname -m" returns the answer we need.

The more interesting answer will be found in the source for the kernel
and in the flags passed to the compiler.

In this case --target=ARCH is a Makefile thing and you have to look
under a lot of rocks to sort it out. Try some things and keep notes.
I have found the README files full of clues but not answers.

The compiler flags are interesting. From the gcc man page.

"While picking a specific cpu-type will schedule things appropri-
ately for that particular chip, the compiler will not generate any
code that does not run on the i386 without the -march=cpu-type
option being used. i586 is equivalent to pentium and i686 is
equivalent to pentiumpro. k6 and athlon are the AMD chips as
opposed to the Intel ones."

Lots more gcc special flags to pay attention to. In this case
it can be important to see how the makefile is passing the flag.

The kernel Makefile(s) will link different object files and call the
compiler with different flags depending on what you specify. Contrary
to common expectations the kernel does not do very many things that
justify fancy flags. With the exception of bcopy() and bzero() most
code is simple integer or pointer arithmetic stuff common to all
processors. The exceptions are often hand coded assembler and often
this code is tested for and the fast path is hooked up at boot time
so it is a don't care for us mortals.

For the geeks out there instruction scheduling and optimizations can
also be done in the assembler. Those that want to go fast need to
look at all the layers (same for those doing debugging). Depends
on the development tool set being used.

The above bugzilla involves Firefox... Unlike the kernel, FANCY
compile time and register use optimizations can yield very big
measures of improvement for user space applications where 90+%
of the time is spent.

In a large package like the kernel each .o, .ko .a and a.out need not
be generated with exactly the same flags.


--
T o m M i t c h e l l
spam unwanted email.
SPAM, good eats, and a trademark of Hormel Foods.

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

  #5  
Old 2005-02-02, 04:04 PM CST
Matthew Miller
Guest
 
Posts: n/a
Re: Kernel ARCH i586 i686 - need clarification

On Thu, Jan 06, 2005 at 03:42:02AM -0500, Felix Miata wrote:
> > Both of these are i686. Only original Pentium (and Pentium MMX) are i586.
> > Pentium Pro and onward are i686.

> Your "only" is inappropriate. K6 & K6/2 are also i586. See also
> https://bugzilla.mozilla.org/show_bug.cgi?id=233815


"Of Intel processors, only original Pentium...."

or

"Only original Pentium (and Pentium MMX, and various clones)...."

better?




--
Matthew Miller mattdm@mattdm.org <http://www.mattdm.org/>
Boston University Linux ------> <http://linux.bu.edu/>

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

  #6  
Old 2005-02-02, 04:08 PM CST
Jeff Ratliff
Guest
 
Posts: n/a
Re: Kernel ARCH i586 i686 - need clarification

On Sat, Jan 08, 2005 at 04:40:06PM -0500, Matthew Miller wrote:
> On Thu, Jan 06, 2005 at 03:42:02AM -0500, Felix Miata wrote:
> > > Both of these are i686. Only original Pentium (and Pentium MMX) are i586.
> > > Pentium Pro and onward are i686.

> > Your "only" is inappropriate. K6 & K6/2 are also i586. See also
> > https://bugzilla.mozilla.org/show_bug.cgi?id=233815

>
> "Of Intel processors, only original Pentium...."
>
> or
>
> "Only original Pentium (and Pentium MMX, and various clones)...."
>
> better?
>

Just to be obsessive, the AMD K6-3 is also an i586. (Or at least that's
what my system says.) My K6-3 system has always run i586 kernels.

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
yum offering i586 kernel to i686 FC6 host marko Software 6 2007-01-24 09:25 AM CST
Re: FC3: kernel-i586 vs. i686 Erich Noll gmane.linux.redhat.fedora.general 1 2005-02-02 04:12 PM CST
FC3: kernel-i586 vs. i686 Erich Noll gmane.linux.redhat.fedora.general 3 2005-02-02 04:12 PM CST
FW: Kernel ARCH i586 i686 - need clarification Stuart Lamble gmane.linux.redhat.fedora.general 1 2005-02-02 03:59 PM CST
what means i586 and i686 in kernel names ?? copter General Support 2 2004-07-02 04:27 AM CDT

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 07:55 PM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
Hosting provided by ThePlanet



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Translations supported by vBET