[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How do I tell...



On Monday 23 May 2005 14:33, David Goodenough wrote:
> when I am logged on to a Mips system running linux, whether it is a mips or
> a mipsel machine?  The machine I have is already installed with a Debian
> Linux build (or at least it started as a Debian Linux build), but I did not
> build it so I do not know exactly how it was configured.
>
Have you looked at /proc/cpuinfo? On my Indy, (mips, rather than mipsel), I 
get the following:

$ cat /proc/cpuinfo
system type             : SGI Indy
processor               : 0
cpu model               : R4600 V2.0  FPU V2.0
BogoMIPS                : 132.71
byteorder               : big endian
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 48
extra interrupt vector  : no
hardware watchpoint     : no
VCED exceptions         : not available
VCEI exceptions         : not available

I would guess that a mipsel system would have byteorder: little endian.
-- 
Simon Farnsworth

Attachment: pgp_LiaVsPr1E.pgp
Description: PGP signature


Reply to: