% cd '#ec'; for(i in *){echo $i '=' `{cat $i}}
*bootscreen = 1024x768x16 r5g6b5 0xc0000000 67108864
*e820 = 1 0x0000000000000000 0x000000000009d000 2 0x000000000009d000
0x00000000000a0000 2 0x00000000000e0000 0x0000000000100000 1 0x0000000000100000
0x0000000010000000 2 0x0000000010000000 0x000000001000b000 1 0x000000001000b000
0x000000009e0af000 2 0x000000009e0af000 0x00000000acbff000 4 0x00000000acbff000
0x00000000acd7f000 3 0x00000000acd7f000 0x00000000acdff000 2 0x00000000acdff000
0x00000000ace00000 2 0x00000000ace00000 0x00000000ad000000 2 0x00000000ad000000
0x00000000ad800000 2 0x00000000ad800000 0x00000000b0000000 2 0x00000000f8000000
0x00000000fc000000 2 0x00000000fec00000 0x00000000fec01000 2 0x00000000fed08000
0x00000000fed09000 2 0x00000000fed10000 0x00000000fed18000 2 0x00000000fed18000
0x00000000fed19000 2 0x00000000fed19000 0x00000000fed1a000 2 0x00000000fed1c000
0x00000000fed20000 2 0x00000000fee00000 0x00000000fee01000 2 0x00000000ffa00000
0x0000000100000000 1 0x0000000100000000 0x000000024e000000
bootfile = /386/9pcf
cdboot = yes
monitor = ask
mouseport = ask
vgasize = ask

% cat '#'P/archctl
cpu P6 2295 pge
pge on
coherence mfence
cmpswap cmpswap486
arch _MP_
cache default wb
cache 0xc0000000 536870912 uc
cache 0xb0000000 268435456 uc
cache 0xae000000 33554432 uc
cache 0xad000000 16777216 uc
cache 0xace00000 2097152 uc
cache 0xe0000000 536870912 uc
cache 0xc0000000 67108864 wc

% cat '#'P/irqalloc
	  1 0 debugexc
	  3 0 debugpt
	  7 0 mathemu
	  8 0 doublefault
	  9 0 mathover
	 14 0 fault386
	 15 0 unexpected
	 16 0 matherror
	 19 0 simderror
	 50 18 clock
	 51 19 lapicerror
	 63 31 lapicspurious
	 65 11 ether0
	 73 1 kbd
	 81 6 floppy
	 89 10 hda
	 97 7 ehci
	105 11 xhci
	113 6 sdE (ahci)
	121 7 lpt
	129 12 kbdaux

% cat '#'P/ioalloc
       0 f dma
      20 21 i8259.0
      40 43 i8253
      60 60 i8042.data
      61 61 i8253.cntr2c
      64 64 i8042.cs
      70 71 rtc/nvr
      80 8f dma
      a0 a1 i8259.1
      d0 df dma
     2b0 2df vga
     378 37a lpt0
     3c0 3da vga
     3f0 3f5 floppy
     3f7 3f7 floppy
     fff fff dummy

% cat '#'c/config
# pcf - pc terminal with local disk
dev
	root
	cons
	arch
	pnp pci
	env
	pipe
	proc
	mnt
	srv
	shr
	dup
	rtc
	ssl
	tls
	cap
	kprof
	fs

	ether netif
	ip arp chandial ip ipv6 ipaux iproute netlog nullmedium pktmedium
	ptclbsum386 inferno

	draw screen vga vgax swcursor
	mouse mouse
	kbd
	vga

	sd
	floppy dma
	aoe
	lpt

	audio dma
	pccard
	i82365 cis
	uart
	usb

	segment
	vmx

link
	segdesc
	devpccard
	devi82365
	cputemp
	apm apmjump
	ether2000 ether8390
	ether2114x pci
	ether589 etherelnk3
	ether79c970 pci
	ether8003 ether8390
	ether8139 pci
	ether8169 pci ethermii
# should be obsoleted by igbe
# ether82543gc pci
	ether82557 pci
	ether82563 pci
	ether82598 pci
	ether83815 pci
	etherbcm pci
	etherdp83820 pci
	etherec2t ether8390
	etherelnk3 pci
	etherga620 pci
	etherigbe pci ethermii
	ethervgbe pci ethermii
	ethervt6102 pci ethermii
	ethervt6105m pci ethermii
	ethersink
	ethersmc devi82365 cis
	etheryuk pci
	etherwavelan wavelan devi82365 cis pci
	etheriwl pci wifi
	etherwpi pci wifi
	etherrt2860 pci wifi
	ethervirtio pci
	ethermedium
	pcmciamodem
	netdevmedium
	loopbackmedium
	usbuhci
	usbohci
	usbehci usbehcipc
	usbxhci pci

	audiosb16 dma
	audioac97 audioac97mix
	audiohda

misc
	archacpi mp apic squidboy ec
	archmp mp apic squidboy
	mtrr

	sdaoe
	sdide pci sdscsi
	sd53c8xx pci sdscsi
	sdmylex pci sdscsi
	sdiahci pci sdscsi led
	sdodin pci sdscsi led
	sdvirtio pci sdscsi
	sdmmc pci pmmc
	sdnvme pci
	sdloop

	uarti8250
	uartisa
	uartpci pci

	vga3dfx +cur
	vgaark2000pv +cur
	vgabt485 =cur
	vgaclgd542x +cur
	vgaclgd546x +cur
	vgact65545 +cur
	vgacyber938x +cur
	vgaet4000 +cur
	vgageode +cur
	vgahiqvideo +cur
	vgai81x +cur
	vgaigfx +cur
	vgamach64xx +cur
	vgamga2164w +cur
	vgamga4xx +cur
	vganeomagic +cur
	vganvidia +cur
	vgaradeon +cur
	vgargb524 =cur
	vgas3 +cur vgasavage
	vgat2r4 +cur
	vgatvp3020 =cur
	vgatvp3026 =cur
	vgavesa
	vgavmware +cur

ip
	tcp
	udp
	rudp
	ipifc
	icmp
	icmp6
	gre
	ipmux
	esp
	il

port
	int cpuserver = 0;

bootdir
	/$objtype/bin/paqfs
	/$objtype/bin/auth/factotum
	bootfs.paq
	boot

% cat '#'c/swap
2646765568 memory
4096 pagesize
65536 kernel
4351/581796 user
0/160000 swap
4667824/4719744/243133568 kernel malloc
2178624/4194368/218820212 kernel draw
192/65568/16777216 kernel secret

% cat '#'c/sysstat
	  0 13642 16428 209046 10166 0 0 25 100 0
	  1 14099 13330 56185 14874 0 0 0 100 0
	  2 5552 7733 11553 10956 0 0 0 100 0
	  3 7067 6808 63418 11129 0 0 0 100 0

% awk /^Plan 9/{p=1} /^init: starting/{exit} {if(p)print} '#'c/kmesg
Plan 9
126 holes free
0x0001a000 0x0009c000 532480
0x004ff000 0x0ffff000 263192576
263725056 bytes free
cpu0: 2295MHz GenuineIntel P6 (AX 000306D4 CX 77FAFBFF DX BFEBFBFF)
LAPIC: fee00000 0xe0000000
ELCR: 0EC0
cpu0: lapic clock at 100MHz
cpu1: 2295MHz GenuineIntel P6 (AX 000306D4 CX 77FAFBFF DX BFEBFBFF)
cpu2: 2295MHz GenuineIntel P6 (AX 000306D4 CX 77FAFBFF DX BFEBFBFF)
cpu3: 2295MHz GenuineIntel P6 (AX 000306D4 CX 77FAFBFF DX BFEBFBFF)
pcirouting: ignoring south bridge PCI.0.31.0 8086/9CC3
#l0: i218: 1000Mbps port 0xE1100000 irq 11: 54ee755d4010
#S/sdE: ahci: sata-II with 1 ports
#A0: hda mem e0023000 irq 10
#A0: codec #0, vendor 10ec0292, rev 00100001
usbehci: 0x8086 0x9ca6: port 0xe113d000 size 0x400 irq 7
usbxhci: 0x8086 0x9cb1: port 0xe1120000 size 0x10000 irq 11
2529M memory: 256M kernel data, 2272M user, 2897M swap
sdE0: LLBA 500,118,192 sectors
  SAMSUNG MZNTE256HMHP-000L7 EXT28L6Q S1KHNYAG607271 [newdrive]
i218: phy 1 wedged 08210000
i218: phy 2 wedged 08410000
i218: no phy

/dev/sdE0: SAMSUNG MZNTE256HMHP-000L7
/dev/sdE0/data
/dev/sdE0/esp dos
/dev/sdE0/linuxdata
/dev/sdE0/linuxdata1
/dev/sdUa6bf4: SanDisk Cruzer U 1.26
/dev/sdUa6bf4/data 9660
/dev/sdUa6bf4/dos dos
/dev/sdUa6bf4/esp dos
/shr/sdUa6bf4:
bootargs is (tcp, tls, il, local!device)[local!/dev/sdUa6bf4/data]
user[glenda]:


% pci -v
0.0.0: brg 06.00.00 8086/1604 0
	Intel Corporation Broadwell-U Host Bridge -OPI
0.2.0: vid 03.00.00 8086/1616 11 0:e0000004 16777216 2:c000000c 536870912
4:00003001 64
	Intel Corporation HD Graphics 5500
0.3.0: aud 04.03.00 8086/160c 11 0:e1130004 16384
	Intel Corporation Broadwell-U Audio Controller
0.20.0: usb 0c.03.30 8086/9cb1 11 0:e1120004 65536
	Intel Corporation Wildcat Point-LP USB xHCI Controller
0.22.0: ser 07.80.00 8086/9cba 11 0:e1139004 32
	Intel Corporation Wildcat Point-LP MEI Controller #1
0.25.0: net 02.00.00 8086/15a2 11 0:e1100000 131072 1:e113e000 4096 2:00003081 32
	Intel Corporation Ethernet Connection (3) I218-LM
0.27.0: aud 04.03.00 8086/9ca0 10 0:e1134004 16384
	Intel Corporation Wildcat Point-LP High Definition Audio Controller
0.28.0: brg 06.04.00 8086/9c92 9
	Intel Corporation Wildcat Point-LP PCI Express Root Port #2
0.28.1: brg 06.04.00 8086/9c94 10
	Intel Corporation Wildcat Point-LP PCI Express Root Port #3
0.29.0: usb 0c.03.20 8086/9ca6 7 0:e113d000 1024
	Intel Corporation Wildcat Point-LP USB EHCI Controller
0.31.0: brg 06.01.00 8086/9cc3 0
	Intel Corporation Wildcat Point-LP LPC Controller
0.31.2: disk 01.06.01 8086/9c83 6 0:000030a9 16 1:000030bd 16 2:000030a1 16
3:000030b9 16 4:00003061 32 5:e113c000 2048
	Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode]
0.31.3: smb 0c.05.00 8086/9ca2 10 0:e1138004 256 4:0000efa1 32
	Intel Corporation Wildcat Point-LP SMBus Controller
0.31.6: sigl 11.80.00 8086/9ca4 10 0:e113b004 4096
	Intel Corporation Wildcat Point-LP Thermal Management Controller
4.0.0: net 02.80.00 8086/095b 9 0:e1000004 8192
	Intel Corporation Wireless 7265

% aux/cpuid
vendor GenuineIntel
procmodel 000306d4 / 01100800
typefammod 0 06 036 4
features fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat
features pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe
features pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr
pdcm pcid sse4_1
features sse4_2 x2apic movbe popcnt tscdeadline aes xsave avx f16c rdrnd
features xsaveopt
extmodel 00000000 / 00000000
extfeatures nx pg1g tscp lm
extfeatures ahf64 lzcnt 3dnow!p
procname Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz
physbits 39
virtbits 48

% aux/icanhasmsi
0.2.0
0.3.0
0.20.0
0.22.0
0.25.0
0.27.0
0.28.0
0.28.1
0.31.2
0.31.6
4.0.0

% aux/pcmcia

% cat '#'u/usb/ctl
ep1.0 enabled control rw speed high maxpkt 64 pollival 0 samplesz 0 hz 0 hub 0
port 0 rootport 0 addr 0 busy
roothub csp 0x000009 ports 3 ehci
ep2.0 enabled control rw speed high maxpkt 64 pollival 0 samplesz 0 hz 0 hub 0
port 0 rootport 0 addr 0 busy
roothub csp 0x000009 ports 11 xhci
ep3.0 enabled control rw speed super maxpkt 512 pollival 0 samplesz 0 hz 0 hub 0
port 0 rootport 0 addr 0 busy
roothub csp 0x000009 ports 4 xhci
ep4.0 enabled control rw speed high maxpkt 64 pollival 0 samplesz 0 hz 0 hub 0
port 1 rootport 1 addr 1 busy
storage csp 0x500608 vid 0x0781 did 0x55a5 SanDisk 'Cruzer U' a6bf4 xhci
ep4.1 enabled bulk r speed high maxpkt 512 pollival 0 samplesz 0 hz 0 hub 0 port 1
rootport 1 addr 1 busy
ep4.2 enabled bulk w speed high maxpkt 512 pollival 0 samplesz 0 hz 0 hub 0 port 1
rootport 1 addr 1 busy
ep5.0 enabled control rw speed low maxpkt 8 pollival 0 samplesz 0 hz 0 hub 0 port
2 rootport 2 addr 2 busy
hid csp 0x020103 vid 0x046d did 0xc521 Logitech 'USB Receiver' 3cdce xhci
ep5.1 enabled interrupt r speed low maxpkt 8 pollival 10 samplesz 0 hz 0 hub 0
port 2 rootport 2 addr 2 busy
ep5.2 enabled interrupt r speed low maxpkt 8 pollival 10 samplesz 0 hz 0 hub 0
port 2 rootport 2 addr 2 busy
ep6.0 enabled control rw speed high maxpkt 64 pollival 0 samplesz 0 hz 0 hub 0
port 4 rootport 4 addr 3 idle
239 csp 0x0102ef vid 0x1199 did 0xa001 'Sierra Wireless Inc.' 'Sierra Wireless
EM7345 4G LTE' 10673 xhci
ep6.1 enabled interrupt r speed high maxpkt 64 pollival 8 samplesz 0 hz 0 hub 0
port 4 rootport 4 addr 3 idle
ep6.2 enabled bulk rw speed high maxpkt 512 pollival 0 samplesz 0 hz 0 hub 0 port
4 rootport 4 addr 3 idle
ep6.3 enabled interrupt r speed high maxpkt 64 pollival 8 samplesz 0 hz 0 hub 0
port 4 rootport 4 addr 3 idle
ep6.4 enabled bulk rw speed high maxpkt 512 pollival 0 samplesz 0 hz 0 hub 0 port
4 rootport 4 addr 3 idle
ep7.0 enabled control rw speed full maxpkt 8 pollival 0 samplesz 0 hz 0 hub 0 port
6 rootport 6 addr 4 idle
255 csp 0xff11ff vid 0x138a did 0x0017 none <nil> 8d214 xhci
ep7.1 enabled bulk rw speed full maxpkt 64 pollival 0 samplesz 0 hz 0 hub 0 port 6
rootport 6 addr 4 idle
ep7.2 enabled bulk r speed full maxpkt 64 pollival 0 samplesz 0 hz 0 hub 0 port 6
rootport 6 addr 4 idle
ep7.3 enabled interrupt r speed full maxpkt 8 pollival 4 samplesz 0 hz 0 hub 0
port 6 rootport 6 addr 4 idle
ep8.0 enabled control rw speed high maxpkt 64 pollival 0 samplesz 0 hz 0 hub 0
port 8 rootport 8 addr 5 idle
239 csp 0x0102ef vid 0x04f2 did 0xb45d 'Chicony Electronics Co.,Ltd.' 'Integrated
Camera' 2e92a xhci
ep8.1 enabled iso r speed high maxpkt 1024 pollival 10 samplesz 4 hz 44100 hub 0
port 8 rootport 8 addr 5 idle
ep8.3 enabled interrupt r speed high maxpkt 16 pollival 32 samplesz 0 hz 0 hub 0
port 8 rootport 8 addr 5 idle
ep9.0 enabled control rw speed high maxpkt 64 pollival 0 samplesz 0 hz 0 hub 0
port 1 rootport 1 addr 9 busy
hub csp 0x010009 ports 8 none <nil> ehci

% cat '#'S/sdctl
sdE ahci ahci port 0xe0022000: 64a ncq alp led clo am pmb slum pslum apts iss 3
ncs 31 np 1 ghc 80000002 isr 0 pi 8 , 3 ver 10300

% cat '#'S/sdE0/ctl
inquiry SAMSUNG MZNTE256HMHP-000L7
model SAMSUNG MZNTE256HMHP-000L7
serial S1KHNYAG607271
firm EXT28L6Q
wwn 5002538844584d30
flag lba llba smart ata8 sct
udma 6
reg task 50 cmd c017 serr 0 ci 0 is 0 sig 101 sstatus 133
cmd cr fr pod sud st
mode auto sataiii
geometry 500118192 512
alignment 512 0
missirq 0
part data 0 500118192
part esp 2048 1050624
part linuxdata 1050624 2050048
part linuxdata1 2050048 500117504

% cat '#'l0/ether0/addr
54ee755d4010
% cat '#'l0/ether0/stats
in: 0
link: 0
out: 0
crc errs: 0
overflows: 0
soft overflows: 0
framing errs: 0
buffer errs: 0
output errs: 0
prom: 0
mbps: 1000
addr: 54ee755d4010

% cat '#'l0/ether0/ifstats
lintr: 0 1
rintr: 0 1
tintr: 0 0
ixcs: 0 0 0
rdtr: 25
radv: 500
ctrl: 00100240
ctrlext: 014a1806
status: 00080600
txcw: 00000000
txdctl: 00040004
pba: 0006001a
speeds: 10:0 100:0 1000:0 ?:0
type: i218
eeprom: ee54 5d75 1040 0801 ffff 0024 0000 0000
	1000 ffff 10c3 2227 17aa 15a2 0000 0000
	0702 0000 c000 a505 3028 1600 0000 0c00
	2a64 0a40 0843 0113 15a2 baad 15a2 15a3
	baad 15a2 baad 15a2 0000 8080 4e00 0886
	0000 0000 0007 2000 00a0 0000 8e00 0000
	0100 4000 1535 4007 ffff ffff ffff ffff
	ffff ffff ffff ffff ffff 0200 ffff 301e

% cat '#'v/vgactl
type vesa
size 1024x768x16 r5g6b5
hwgc soft
hwaccel off
hwblank on
panning off
addr p 0xc0000000 v 0xe0400000 size 0x4000000
softscreen on

@{rfork n; aux/realemu; aux/vga -p}
vesa flag Ulinear|Hlinear|Fsnarf
vesa sig VESA 3.0
vesa oem Intel(R) HSW Mobile/Desktop Graphics Chipset Accelerated VGA BIOS 0.0
vesa vendor <nil>
vesa product <nil>
vesa rev <nil>
vesa cap 8-bit-dac
vesa mem 33488896
vesa dsp con 4
vesa dsp act 4
vesa mode 0x13a 1600x1200x8 m8 packed
vesa mode 0x14b 1600x1200x16 r5g6b5 direct
vesa mode 0x15a 1600x1200x32 x8r8g8b8 direct
vesa mode 0x107 1280x1024x8 m8 packed
vesa mode 0x11a 1280x1024x16 r5g6b5 direct
vesa mode 0x11b 1280x1024x32 x8r8g8b8 direct
vesa mode 0x105 1024x768x8 m8 packed
vesa mode 0x117 1024x768x16 r5g6b5 direct
vesa mode 0x118 1024x768x32 x8r8g8b8 direct
vesa mode 0x112 640x480x32 x8r8g8b8 direct
vesa mode 0x114 800x600x16 r5g6b5 direct
vesa mode 0x115 800x600x32 x8r8g8b8 direct
vesa mode 0x101 640x480x8 m8 packed
vesa mode 0x103 800x600x8 m8 packed
vesa mode 0x111 640x480x16 r5g6b5 direct
vesa mode 0x17d 2560x1440x8 m8 packed
vesa mode 0x17e 2560x1440x16 r5g6b5 direct
vesa mode 0x17f 2560x1440x32 x8r8g8b8 direct
edid mfr LGD
edid serialstr
edid name
edid product 1049
edid serial 0
edid version 1.3
edid mfrdate 2013.0
edid size (cm) 31x17
edid gamma 2.20
edid vert (Hz) 0-0
edid horz (Hz) 0-0
edid pclkmax 0
edid flags digital monochrome
edid 2560x1440@60Hz
		clock=237.8
		shb=2608 ehb=2640 ht=2720
		vrs=1442 vre=1445 vt=1457
		hsync=+ vsync=-

% xd -x1 '#'r/nvram
0000000 34 18 25 46 05 19 03 04 08 17 26 02 50 80 80 00
0000010 00 ff 00 ff 0e 74 02 ff ff 00 00 ff ff ff 00 ff
0000020 ff ff ff ff ff ff ff ff 00 00 00 00 00 00 10 74
0000030 ff ff 20 00 00 ff 00 00 00 00 00 00 00 00 00 00
0000040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000060 00 00 00 00 00 00 00 00 00 00 00 30 00 00 00 00
0000070 00 00 00 00 00 00 00 00 00 5a 00 00 49 53 b2 00
0000080 34 18 25 46 05 19 03 04 08 17 26 02 00 80 80 00
0000090 00 ff 00 ff 0e 74 02 ff ff 00 00 ff ff ff 00 ff
00000a0 ff ff ff ff ff ff ff ff 00 00 00 00 00 00 10 74
00000b0 ff ff 20 00 00 ff 00 00 00 00 00 00 00 00 00 00
00000c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000e0 00 00 00 00 00 00 00 00 00 00 00 30 00 00 00 00
00000f0 00 00 00 00 00 00 00 00 00 5a 00 00 49 53 b2 00
0000100
0000100

% cat '#'A/audiostat
bufsize 1024 buffered 0
codec 0 pin 20 inpin 18
aout 2 41d
aout 3 41d
beep 4 f00000
beep 5 f00000
aout 6 611
beep 7 f00000
ain 8 10051b ← asel 35
ain 9 10051b ← asel 34
beep 10 f00000
amix 11 20010b ← pin 24, pin 25, pin 26, pin 27, pin 29
amix 12 20010b ← aout 2, amix 11
amix 13 20010b ← aout 3, amix 11
beep 14 f00000
amix 15 20010a ← aout 2, aout 3
beep 16 f00000
beep 17 f00000
pin 18 in fix int N/A micin ?
pin 19 in nothing ext N/A lineout ?
pin 20 out fix int N/A speaker ? eapd ← amix 12, amix 13
pin 21 out jack ext left hpout black eapd ← amix 12, amix 13
pin 22 out nothing ext rear speaker black eapd ← amix 12, amix 13
beep 23 f00000
pin 24 inout nothing ext rear speaker black ← amix 12, amix 13
pin 25 in nothing ext rear speaker black
pin 26 in jack ext left micin black
pin 27 inout nothing ext rear speaker black ← amix 12, amix 13
beep 28 f00000
pin 29 in nothing ext N/A modemhandset purple
pin 30 out nothing ext rear speaker black ← aout 6
beep 31 f00000
beep 32 f00040
beep 33 f00000
asel 34 300101 ← pin 24, pin 25, pin 26, pin 27, pin 29, amix 11, pin 18, pin 19
asel 35 300101 ← pin 24, pin 25, pin 26, pin 27, pin 29, amix 11
beep 36 f00000
outpath aout 2 → amix 12 → pin 20
outamp aout 2
inpath pin 18 → asel 34 → ain 9
inamp ain 9

% cat '#'A/volume
master 100 100
recgain 0 0
speed 44100
delay 1764

% cat /mnt/apm/ctl