linux-mips
[Top] [All Lists]

Re: identifying sgi system type

To: Vince Weaver <weave@eng.umd.edu>
Subject: Re: identifying sgi system type
From: "William J. Earl" <wje@cthulhu.engr.sgi.com>
Date: Thu, 13 Jan 2000 15:19:22 -0800 (PST)
Cc: linux@cthulhu.engr.sgi.com
In-reply-to: <Pine.GSO.4.21.0001131258320.25401-100000@z.glue.umd.edu>
References: <Pine.GSO.4.21.0001121729110.15153-100000@z.glue.umd.edu> <Pine.GSO.4.21.0001131258320.25401-100000@z.glue.umd.edu>
Sender: owner-linuxmips@oss.sgi.com
Vince Weaver writes:
 > Hello again
 > 
 > I was trying to see if I could get this Indigo2 to display that it is an
 > Indigo2 under /proc/cpuinfo [instead of current behavior, which assumes
 > all SGI's are indy's].
 > 
 > I thought that maybe I could get the PROM to tell me this info, using code
 > like this
 > 
 >     #include <asm/sgialib.h>
 > 
 >     struct linux_sysid *mree;
 > 
 >     mree=prom_getsysid();
 >     printk("Vendor: %s     Prod: %s\n",mree->vend,mree->prod);
 > 
 > 
 > the vendor is returned as SGI, but the "prod" just returns the serial
 > number [which seems to be just the last few octets of the MAC address of
 > the ethernet card].  
 > 
 > Is it possible to figure out what system type it is from this info?  Is
 > there another way to find out sgi system type?  Or is this just not
 > possible?

      It is possible, but only with a database of serial numbers which
is not readily available.  The simple way is to have the kernel export
the value of the "sgi_guiness" variable somehow, presumably via /proc.


<Prev in Thread] Current Thread [Next in Thread>