DEVICE OVERVIEW

por | 26 agosto, 2008

Devices are referenced in 3 ways.

1. Physical – /devices

subject to change:
[ssybl1:/devices]# ls -ltr
total 20
drwxr-xr-x 3 root sys 512 Aug 22 13:16 pci@780
drwxr-xr-x 3 root sys 512 Aug 22 13:16 pci@7c0
drwxr-xr-x 2 root sys 512 Aug 22 13:16 iscsi
drwxr-xr-x 2 root sys 512 Aug 22 13:16 options
drwxr-xr-x 2 root sys 512 Aug 22 13:16 scsi_vhci
drwxr-xr-x 2 root sys 512 Aug 22 13:16 ebus@800
drwxr-xr-x 3 root sys 512 Aug 22 13:16 virtual-devices@100
drwxr-xr-x 2 root sys 3072 Aug 26 10:32 pseudo
crw-rw-rw- 1 root sys 189, 0 Aug 26 12:21 scsi_vhci:devctl
crw------- 1 root sys 2, 0 Aug 26 12:21 pseudo:devctl
crw------- 1 root sys 241, 509 Aug 26 12:21 pci@7c0:reg
crw------- 1 root sys 241, 508 Aug 26 12:21 pci@7c0:intr
crw------- 1 root sys 241, 511 Aug 26 12:21 pci@7c0:devctl
crw------- 1 root sys 241, 253 Aug 26 12:21 pci@780:reg
crw------- 1 root sys 241, 252 Aug 26 12:21 pci@780:intr
crw------- 1 root sys 241, 255 Aug 26 12:21 pci@780:devctl
crw------- 1 root sys 92, 0 Aug 26 12:21 iscsi:devctl
crw------- 1 root sys 126, 0 Aug 26 12:21 ebus@800:devctl

keyboard, mouse are – c – in crw——- 1
character devices

2. Logical – /dev – ( format, prtconf, sysdef, etc. )

[ssybl1:/dev]# ls -ltr /dev
total 464
lrwxrwxrwx 1 root root 6 Aug 22 12:22 stderr -> ./fd/2
lrwxrwxrwx 1 root root 6 Aug 22 12:22 stdin -> ./fd/0
lrwxrwxrwx 1 root root 6 Aug 22 12:22 stdout -> ./fd/1
lrwxrwxrwx 1 root other 30 Aug 22 12:23 allkmem -> ../devices/pseudo/mm@0:allkmem
lrwxrwxrwx 1 root other 27 Aug 22 12:23 arp -> ../devices/pseudo/arp@0:arp
lrwxrwxrwx 1 root other 31 Aug 22 12:23 conslog -> ../devices/pseudo/log@0:conslog
lrwxrwxrwx 1 root other 30 Aug 22 12:23 console -> ../devices/pseudo/cn@0:console
lrwxrwxrwx 1 root other 29 Aug 22 12:23 eri -> ../devices/pseudo/clone@0:eri
lrwxrwxrwx 1 root other 29 Aug 22 12:23 hme -> ../devices/pseudo/clone@0:hme

devfsadm, devfsadmd – administration command for /dev

3. /etc/path_to_list – contains current hardware instances

Note: devfsadm may be used to update hardware

Tools to enumerated connected hardware:

1. prtconf ( how much memory are in the system )

# prtconf
System Configuration: Sun Microsystems sun4v
Memory size: 3968 Megabytes
System Peripherals (Software Nodes):

SUNW,Sun-Blade-T6300
scsi_vhci, instance #0
packages (driver not attached)
SUNW,builtin-drivers (driver not attached)
deblocker (driver not attached)
disk-label (driver not attached)
terminal-emulator (driver not attached)
dropins (driver not attached)
SUNW,asr (driver not attached)
kbd-translator (driver not attached)
obp-tftp (driver not attached)
ufs-file-system (driver not attached)
chosen (driver not attached)
openprom (driver not attached)
client-services (driver not attached)
options, instance #0
aliases (driver not attached)
memory (driver not attached)
virtual-memory (driver not attached)
virtual-devices, instance #0
flashprom (driver not attached)
channel-devices, instance #0
virtual-channel, instance #0
virtual-channel-client, instance #1
virtual-channel, instance #2
console, instance #0
rtc (driver not attached)
fma, instance #0
sunvts, instance #1
sunmc, instance #2
explorer, instance #3
led, instance #4
flashupdate, instance #5
ncp, instance #0
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
pci, instance #0
pci, instance #0
pci, instance #1
network, instance #0
network, instance #1
pci, instance #2
pci, instance #3
pci, instance #4
SUNW,emlxs, instance #0
fp (driver not attached)
disk (driver not attached)
fp, instance #2
ssd, instance #0
SUNW,emlxs, instance #1
fp (driver not attached)
disk (driver not attached)
fp, instance #0
ssd, instance #1
ebus, instance #0
serial, instance #0
pci, instance #1
pci, instance #5
pci, instance #6
pci, instance #0
usb, instance #0
usb, instance #1
usb, instance #0
pci, instance #7
scsi, instance #0
tape (driver not attached)
disk (driver not attached)
sd, instance #1
pci, instance #8
pci, instance #9
os-io (driver not attached)
iscsi, instance #0
pseudo, instance #0

(driver not attached) system free


Tools to enumerate connected hardware:

1. prtconf – dumps memory and device configuration
2. sysdef – returns loadable modules, kernel parameters, hardware, etc.
3. dmesg – returns devices that were attached at last system boot

### Drivers ###

Drivers are installed via standard Solaris packages

i.e. pkgadd -d driver_package_name – to install driver

/kernel/drv – contains drivers that apply


[ssybl1:/kernel/drv]# ls -ltr
total 306
-rw-r--r-- 1 root sys 3526 Dec 15 2004 jfca.conf
-rw-r--r-- 1 root sys 184 Jan 4 2005 fcip.conf
-rw-r--r-- 1 root sys 184 Jan 4 2005 fcsm.conf
-rw-r--r-- 1 root sys 182 Jan 4 2005 fcp.conf
-rw-r--r-- 1 root sys 178 Jan 21 2005 bl.conf
-rw-r--r-- 1 root sys 164 Jan 21 2005 consms.conf
-rw-r--r-- 1 root sys 129 Jan 21 2005 cn.conf
-rw-r--r-- 1 root sys 184 Jan 21 2005 cpuid.conf
-rw-r--r-- 1 root sys 190 Jan 21 2005 systrace.conf
-rw-r--r-- 1 root sys 195 Jan 21 2005 lockstat.conf
-rw-r--r-- 1 root sys 139 Jan 21 2005 conskbd.conf
-rw-r--r-- 1 root sys 188 Jan 21 2005 profile.conf
-rw-r--r-- 1 root sys 131 Jan 21 2005 ip6.conf
-rw-r--r-- 1 root sys 135 Jan 21 2005 icmp6.conf
-rw-r--r-- 1 root sys 135 Jan 21 2005 clone.conf
-rw-r--r-- 1 root sys 135 Jan 21 2005 iwscn.conf
-rw-r--r-- 1 root sys 544 Jan 21 2005 kmdb.conf
-rw-r--r-- 1 root sys 180 Jan 21 2005 sdt.conf
-rw-r--r-- 1 root sys 537 Jan 21 2005 pseudo.conf
-rw-r--r-- 1 root sys 180 Jan 21 2005 fbt.conf
-rw-r--r-- 1 root sys 193 Jan 21 2005 cryptoadm.conf
-rw-r--r-- 1 root sys 162 Jan 21 2005 lofi.conf
-rw-r--r-- 1 root sys 162 Jan 21 2005 poll.conf
-rw-r--r-- 1 root sys 129 Jan 21 2005 mm.conf
-rw-r--r-- 1 root sys 752 Jan 21 2005 fasttrap.conf
-rw-r--r-- 1 root sys 131 Jan 21 2005 ptc.conf
-rw-r--r-- 1 root sys 133 Jan 21 2005 ptsl.conf
-rw-r--r-- 1 root sys 200 Jan 21 2005 ramdisk.conf
-rw-r--r-- 1 root sys 164 Jan 21 2005 devinfo.conf
-rw-r--r-- 1 root sys 129 Jan 21 2005 sy.conf
-rw-r--r-- 1 root sys 121 Jan 21 2005 llc1.conf
-rw-r--r-- 1 root sys 131 Jan 21 2005 sad.conf
-rw-r--r-- 1 root sys 165 Jan 21 2005 keysock.conf
-rw-r--r-- 1 root sys 159 Jan 21 2005 random.conf
-rw-r--r-- 1 root sys 167 Jan 21 2005 ipsecesp.conf
-rw-r--r-- 1 root sys 159 Jan 21 2005 rts.conf
-rw-r--r-- 1 root sys 131 Jan 21 2005 tcp.conf
-rw-r--r-- 1 root sys 133 Jan 21 2005 tcp6.conf
-rw-r--r-- 1 root sys 199 Jan 21 2005 sysevent.conf
-rw-r--r-- 1 root sys 159 Jan 21 2005 sysmsg.conf
-rw-r--r-- 1 root sys 131 Jan 21 2005 arp.conf
-rw-r--r-- 1 root sys 133 Jan 21 2005 udp6.conf
-rw-r--r-- 1 root sys 129 Jan 21 2005 wc.conf
-rw-r--r-- 1 root sys 190 Jan 21 2005 sctp6.conf
-rw-r--r-- 1 root sys 188 Jan 21 2005 sctp.conf
-rw-r--r-- 1 root sys 240 Jan 21 2005 ippctl.conf
-rw-r--r-- 1 root sys 1810 Jan 21 2005 bofi.conf
-rw-r--r-- 1 root sys 182 Jan 21 2005 vni.conf
-rw-r--r-- 1 root sys 133 Jan 21 2005 icmp.conf
-rw-r--r-- 1 root sys 165 Jan 21 2005 ipsecah.conf
-rw-r--r-- 1 root sys 159 Jan 21 2005 spdsock.conf
-rw-r--r-- 1 root sys 883 Jan 21 2005 options.conf
-rw-r--r-- 1 root sys 1610 Jan 21 2005 audiocs.conf
-rw-r--r-- 1 root sys 141 Jan 21 2005 openeepr.conf
-rw-r--r-- 1 root sys 1446 Jan 21 2005 audioens.conf
-rw-r--r-- 1 root sys 186 Jan 21 2005 crypto.conf
-rw-r--r-- 1 root sys 1628 Jan 21 2005 audiots.conf
-rw-r--r-- 1 root sys 130 Jan 21 2005 tl.conf
-rw-r--r-- 1 root sys 129 Jan 21 2005 ip.conf
-rw-r--r-- 1 root sys 194 Jan 21 2005 rpcib.conf
-rw-r--r-- 1 root sys 131 Jan 21 2005 udp.conf
-rw-r--r-- 1 root sys 185 Jan 21 2005 uhci.conf
-rw-r--r-- 1 root sys 375 Jan 21 2005 dad.conf
-rw-r--r-- 1 root sys 153 Jan 21 2005 nca.conf
-rw-r--r-- 1 root sys 2336 Jan 21 2005 ecpp.conf
-rw-r--r-- 1 root sys 878 Jan 21 2005 usb_ac.conf
-rw-r--r-- 1 root sys 186 Jan 21 2005 dtrace.conf
-rw-r--r-- 1 root sys 185 Jan 21 2005 ohci.conf
-rw-r--r-- 1 root sys 305 Jan 21 2005 md.conf
-rw-r--r-- 1 root sys 242 Jan 21 2005 tavor.conf
-rw-r--r-- 1 root sys 193 Jan 21 2005 daplt.conf
-rw-r--r-- 1 root sys 171 May 18 2006 zfs.conf
-rw-r--r-- 1 root sys 182 Dec 21 2006 aggr.conf
-rw-r--r-- 1 root sys 202 Dec 21 2006 kssl.conf
-rw-r--r-- 1 root sys 1740 Dec 21 2006 audio1575.conf
-rw-r--r-- 1 root sys 904 Dec 21 2006 ses.conf
-rw-r--r-- 1 root sys 460 Dec 21 2006 ehci.conf
-rw-r--r-- 1 root sys 2775 Jan 16 2007 fp.conf
-rw-r--r-- 1 root sys 172 Jun 20 2007 dca.conf
-rw-r--r-- 1 root sys 182 Jun 20 2007 rds.conf
-rw-r--r-- 1 root sys 188 Aug 8 2007 physmem.conf
-rw-r--r-- 1 root sys 615 Dec 7 2007 iscsi.conf
-rw-r--r-- 1 root sys 8632 Dec 20 2007 qlc.conf
-rw-r--r-- 1 root sys 8358 Jan 16 2008 emlxs.conf
-rw-r--r-- 1 root sys 381 Feb 14 2008 dld.conf
-rw-r--r-- 1 root sys 951 Feb 28 2008 uata.conf
-rw-r--r-- 1 root sys 3260 Feb 28 2008 st.conf
-rw-r--r-- 1 root sys 2914 Feb 28 2008 sgen.conf
-rw-r--r-- 1 root sys 1155 Feb 28 2008 sd.conf
-rw-r--r-- 1 root sys 950 Feb 28 2008 scsi_vhci.conf
-rw-r--r-- 1 root sys 131 Feb 28 2008 log.conf
-rw-r--r-- 1 root sys 1867 Feb 28 2008 ib.conf
-rw-r--r-- 1 root sys 3410 Feb 28 2008 e1000g.conf
-rw-r--r-- 1 root sys 1021 Feb 28 2008 mpt.conf
-rw-r--r-- 1 root sys 248 Feb 28 2008 ssd.conf
-rw-r--r-- 1 root sys 5741 Feb 28 2008 scsa2usb.conf
-rw-r--r-- 1 root sys 4436 Feb 29 16:31 igb.conf
-rw-r--r-- 1 root sys 184 Feb 29 16:33 sdp.conf
-rw-r--r-- 1 root sys 195 Feb 29 16:39 sdpib.conf
-rw-r--r-- 1 root sys 2537 Mar 11 21:18 rdsib.conf
-rw-r--r-- 1 root sys 214 Mar 11 21:18 px_pci.conf
-rw-r--r-- 1 root sys 215 Mar 11 21:18 pxb_plx.conf
drwxr-xr-x 2 root sys 2048 Aug 22 13:06 sparcv9