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

Re: uname -p/-i



Hi,

On Mon, 21 Oct 2002, James A Morrison wrote:

>  uname -p is supposed to return the processor of the machine.
>  uname -i is supposed to return the hardware platform.

I have an Ultra 5, still trying to get it dualbooting between
Solaris 9 and Woody from one IDE disk. As long as no one has a real
solution, I currently netboot Debian with parameter root=/dev/hda4 :)

> So, I would expect uname -i to return sun4u on my ultra 5, and uname -p
> to return a variation on UltraSparc.
>
> This is the actual output:
> jim@squirrel:~ $ uname -p
> sun4u
> jim@squirrel:~ $ uname -i
> TI UltraSparc IIi

I do not even get uname -i on Debian:

stn@cruithne:~$ uname -p
unknown
stn@cruithne:~$ uname -i
uname: invalid option -- i
Try `uname --help' for more information.
stn@cruithne:~$ uname -m
sparc64
stn@cruithne:~$ uname -a
Linux cruithne 2.4.18 #2 Thu Apr 11 14:37:17 EDT 2002 sparc64 unknown

FYI, Solaris 9 is also not very clear on this.

Taken from the Solaris 9 manpage, whose uname has the same options as
uname on Linux i386, the -i is for 'hardware implementation (platform)'
and -m is the 'machine hardware name'. Use of 'uname -m' is discouraged,
however, as well as 'arch -k' is. The uname manpage advises to use
uname -p instead.

On my Ultra5, Solaris 9:

bash-2.05$ uname -p
sparc
bash-2.05$ uname -i
SUNW,Ultra-5_10
bash-2.05$ uname -m
sun4u
bash-2.05$ arch -k
sun4u

The other uname options do what I expect, both under Linux and Solaris.

Pieter-Paul



Reply to: