[Top] [All Lists]

Re: identifying sgi system type

To: Vince Weaver <>
Subject: Re: identifying sgi system type
From: "William J. Earl" <>
Date: Thu, 13 Jan 2000 15:19:22 -0800 (PST)
In-reply-to: <>
References: <> <>
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>