LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-09-2003, 01:56 PM   #1
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
HOSTTYPE environment variable


This seems like a contradiction:

[slacker@bsslack /proc] $ echo $HOSTTYPE
i386

[slacker@bsslack /proc] $ uname -a
Linux bsslack 2.4.20 #2 Mon Mar 17 22:02:15 PST 2003 i686 unknown

[slacker@bsslack /proc] $ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 5
model name : Pentium II (Deschutes)
stepping : 3
cpu MHz : 400.919
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr
bogomips : 799.53

HOSTTYPE is set to i386. Shouldn't that be i686?
It's i686 on my AMD K6-II 350 machine with Red Hat on it.

Where does that get set? And, this is a default installation of slack 9.0. No kernel recompiles or anything like that. But that's probably what it needs, eh? Is the default for HOSTTYPE a least common denominator (sort of) set to i386?

Thanks.


Edit: dagnabit!! typo in title: [varable = variable] - can a moderator fix that?? thanks...

Last edited by itsjustme; 07-09-2003 at 02:05 PM.
 
Old 07-09-2003, 03:31 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I think it's not as much about discriminating
between CPU's as architectures ...

i386 in this case is eqivalent to "IBM PC
compatible" and as opposed to ARM or
PowerPC...

Cheers,
Tink
 
Old 07-09-2003, 03:54 PM   #3
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Original Poster
Rep: Reputation: 47
Yes, but, I have 2 other machines here with red hat that say i686 for HOSTTYPE and those machines are a P-III 866 and the AMD K6-II 350.

I would think, then, that the HOSTTYPE for the P-II 400 with slackware would be i686 also.
(not that I am yet aware of where that variable is actually used, yet.)


Last edited by itsjustme; 07-09-2003 at 03:55 PM.
 
Old 07-09-2003, 05:31 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by itsjustme
Yes, but, I have 2 other machines here with red hat that say i686 for HOSTTYPE and those machines are a P-III 866 and the AMD K6-II 350.
Well, RedHat is clearly lieing here.

K6 is NOT i686 compatible, but i586, so my
educated guess is that RH just uses HOSTTYPE
to express their own idea of what you've got
installed rather than anything that relates to
your actual hardware, maybe based on some
internal naming conventions for their distro's
RPM's ... I'd also guess that they'd say i686
on a box with a PIV or Athlon.

Just don't worry about the variable ;)

Cheers,
Tink
 
  


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
environment epona Linux - Newbie 3 02-13-2005 08:39 PM
environment variables in c++ s3b0 Programming 6 08-27-2004 09:19 AM
environment variables kakridge Linux - Newbie 1 07-14-2003 06:25 PM
3D Environment walterw Linux - General 0 02-07-2003 12:15 PM
Getting in and out and in again in the CHROOT environment? kRu_ZaDeR Linux From Scratch 8 01-13-2003 12:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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