Print Logo

Detailed Sparc Info w/ Openpromfs Module for Linux




<<  <   >  >>

You can retrieve detailed information about your Sun box by selecting the Openprom module in the General setup area of the Linux kernel:

<M> Openprom tree appears in /proc/openprom

The module should load automatically when needed under most circumstances, but we will load it manually in this example:

srv-44 / # insmod openpromfs
Using /lib/modules/2.4.20/kernel/fs/
openpromfs/openpromfs.o

To mount the openprom filesystem:

srv-44 / # mount -t openpromfs none /proc/openprom

You can view a lot of detailed info about your Sun box:

srv-44 / # cd /proc/openprom
srv-44 openprom # ls
#size-cells	       idprom
SUNW,UltraSPARC@1c,0   memory@0,0
aliases		       model
banner-name	       name
breakpoint-trap        openprom
chosen		       options
clock-frequency        packages
counter-timer@1f,3c00  reset-reason
device_type	       sbus@1f,0
energystar-v2	       virtual-memory
srv-44 openprom #
srv-44 openprom # cat name
'SUNW,Ultra-2'
srv-44 openprom # cat model
'SUNW,501-3132'
srv-44 openprom # cd aliases
srv-44 aliases # ls
cdrom  disk2  disk6	 name  tape0
disk   disk3  floppy	 net   tape1
disk0  disk4  keyboard	 scsi  ttya
disk1  disk5  keyboard!  tape  ttyb
srv-44 aliases # cat disk0
'/sbus/SUNW,fas@e,8800000/sd@0,0'
srv-44 aliases #





This article comes from NetAdminTools:
http://www.netadmintools.com/

The URL for this story is:
http://www.netadmintools.com/art208.html

Copyright 1997-2009 NetAdminTools.com. Read our Terms of Use.