Solaris 学习笔记1
--OBP and ALOM
串口连接到V240的Serial MNG,插上电源
ALOM BOOTMON v1.5.4
ALOM Build Release: 008
Reset register: e0000000 EHRS ESRS LLRS
ALOM POST 1.0
Dual Port Memory Test, PASSED.
TTY External - Internal Loopback Test
TTY External - Internal Loopback Test, PASSED.
TTYC - Internal Loopback Test
TTYC - Internal Loopback Test, PASSED.
TTYD - Internal Loopback Test
TTYD - Internal Loopback Test, PASSED.
Memory Data Lines Test
Memory Data Lines Test, PASSED.
Memory Address Lines Test
Slide address bits to test open address lines
Test for shorted address lines
Memory Address Lines Test, PASSED.
Memory Parity Test
Memory Parity Test, PASSED.
Boot Sector FLASH CRC Test
Boot Sector FLASH CRC Test, PASSED.
Return to Boot Monitor for Handshake
ALOM POST 1.0
Status = 00007fff
Returned from Boot Monitor and Handshake
Clearing Memory Cells
Memory Clean Complete
Loading the runtime image...
SC Alert: SC System booted.
Sun(tm) Advanced Lights Out Manager 1.5.4 (v240)
Full VxDiag Tests
BASIC TOD TEST
Read the TOD Clock: FRI NOV 13 07:15:10 2009
Wait, 1 - 3 seconds
Read the TOD Clock: FRI NOV 13 07:15:12 2009
BASIC TOD TEST, PASSED
ETHERNET CPU LOOPBACK TEST
50 BYTE PACKET - a 0 in field of 1's.
50 BYTE PACKET - a 1 in field of 0's.
900 BYTE PACKET - pseudo-random data.
ETHERNET CPU LOOPBACK TEST, PASSED
Full VxDiag Tests - PASSED
Status summary - Status = 7FFF
VxDiag - - PASSED
POST - - PASSED
LOOPBACK - - PASSED
I2C - - PASSED
EPROM - - PASSED
FRU PROM - - PASSED
ETHERNET - - PASSED
MAIN CRC - - PASSED
BOOT CRC - - PASSED
TTYD - - PASSED
TTYC - - PASSED
MEMORY - - PASSED
MPC850 - - PASSED
Please login:
Serial line login timeout, returns to console stream.
Enter #. to return to ALOM.
Copyright 2004 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Sun(tm) Advanced Lights Out Manager 1.5.4 (v240)
Please login:
Please login: admin
Please Enter password: ********
sc> help
Available commands
------------------
poweron [-c] {FRU}
poweroff [-y] [-f]
removefru [-y] {FRU}
reset [-y] [-x] [-c]
break [-y] [-c]
bootmode [normal|reset_nvram|diag|skip_diag|bootscript="string"]
console [-f]
consolehistory [-b lines|-e lines] [-g lines] [-v] [boot|run]
showlogs [-b lines|-e lines] [-g lines] [-v]
setlocator [on|off]
showlocator
showenvironment
showfru
showplatform [-v]
showsc [-v] [param]
shownetwork [-v]
setsc [param] [value]
setupsc
showdate
setdate [[mmdd]HHMM | mmddHHMM[cc]yy][.SS]
resetsc [-y]
flashupdate [-s IPaddr -f pathname] [-v]
setdefaults [-y] [-a]
useradd <username>
userdel [-y] <username>
usershow [username]
userpassword <username>
userperm <username> [c][u][a][r]
password
showusers [-g lines]
logout
help [command]
sc> console
Enter #. to return to ALOM.
sc>
sc> poweron (电源开始风扇转动)
SC Alert: Host System has Reset
sc>
sc>
sc>
sc>
sc> console
Enter #. to return to ALOM.
Done
0>Init Memory....Done
0>PLL Reset....Done
0>Init Memory....Done
0>Test Memory....Done
0>IO-Bridge Tests....Done
0>INFO:
0> POST Passed all devices.
0>
0>POST: Return to OBP.
Configuring system memory & CPU(s)
Probing system devices
Probing memory
Probing I/O buses
Sun Fire V240, No Keyboard
Copyright 2005 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.18.10, 4096 MB memory installed, Serial #55809845.
Ethernet address 0:3:ba:53:97:35,
Host ID: 83539735.
Running diagnostic script obdiag/normal
Testing /pci@1e,600000/ide@d
Testing /pci@1e,600000/isa@7/rtc@0,70
Testing /pci@1c,600000/scsi@2
Testing /pci@1c,600000/scsi@2,1
Testing /pci@1e,600000/isa@7/serial@0,2e8
Testing /pci@1e,600000/isa@7/serial@0,3f8
Probing system devices
Probing memory
Probing I/O buses
Sun Fire V240, No Keyboard
Copyright 2005 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.18.10, 4096 MB memory installed, Serial #55809845.
Ethernet address 0:3:ba:53:97:35, Host ID: 83539735.
Rebooting with command: boot
Boot device: disk File and args:
SunOS Release 5.10 Version Generic_127127-11 64-bit
Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
.(按下键盘ctl+break键)
\
SC Alert: SC Request to send Break to host.
Type 'go' to resume
ok ?
f0015824
Stack Underflow
ok help
Enter 'help command-name' or 'help category-name' for more help
(Use ONLY the first word of a category description)
Examples: help select -or- help line
Main categories are:
Breakpoints (debugging)
Repeated loops
Defining new commands
Numeric output
Radix (number base conversions)
Arithmetic
Memory access
Line editor
System and boot configuration parameters
Select I/O devices
eject devices
Power on reset
Diag (diagnostic routines)
Resume execution
File download and boot
nvramrc (making new commands permanent)
ok
ok
ok help Breakpoints
go Begin or continue execution
.bp Show all current breakpoints
+bp ( adr -- ) Add a breakpoint at the given address
-bp ( adr -- ) Remove the breakpoint at the given address
--bp Remove the most recently set breakpoint
bpoff Remove all breakpoints
step Single-step one instruction
steps ( n -- ) Do n step's
hop Like step; doesn't descend into subroutines
hops ( n -- ) Do n hop's
skip Skip over the current instruction
till ( adr -- ) Execute until the given address ( like '+bp go' )
return Execute until the end of this subroutine
returnl Execute until the end of this leaf subroutine
finish-loop Execute until the end of this loop
.instruction Show address and opcode for last encountered breakpoint
.breakpoint Executed after every encountered breakpoint
Default behavior is .instruction
Examples:
' .registers is .breakpoint
' .instruction is .breakpoint
ok
ok
ok help Repeated
begin ( -- ) Start a loop
until ( flag -- ) Repeat 'begin' loop until flag is true
Examples:
begin 4000 c@ 55 = until
begin 0 2005 c! key? until
do ( end+1 start -- ) Start a counted loop
loop ( -- ) End a 'do' loop
+loop ( n -- ) End a 'do' loop
i (-- n ) Place on the stack the current 'do' loop index
Examples:
7 0 do i . loop - prints 0 1 2 3 4 5 6
7 0 do i . 3 +loop - prints 0 3 6
ok
ok
ok help defining
: <name> Begin creation of a new command called 'name'
Examples:
: mycalc ( n1 -- n2 ) 10000 * 11 + ;
: target ( -- addr ) 26 mycalc ;
; End creation of a new ':' command
' <name> ( -- acf ) Place on the stack the compilation address of 'name'
words Show the names of all commands
see name Decompile or disassemble the command 'name'
ok
ok
ok help Numeric
. ( n -- ) Show the number in the current base
.d ( n -- ) Show the number in base 10
.h ( n -- ) Show the number in base 16
.s ( ?? -- ?? ) Show the stack without altering it
showstack Show stack contents before each 'ok' prompt
ok
ok
ok help Rdix
No help available for rdix
ok help Radix
decimal Subsequent numeric I/O is performed in base 10
hex Subsequent numeric I/O is performed in base 16
d# <number> Interpret number in base 10 and place on the stack
Example:
( in base 16 ) d# 12 . - prints out 'c'
h# <number> Interpret number in base 16 and place on the stack
Example:
( in base 10 ) h# 12 . - prints out '18'
ok help Arithmetic
+ ( n1 n2 -- n3 ) Add n1+n2 and place on the stack
- ( n1 n2 -- n3 ) Subtract n1-n2 and place on the stack
* ( n1 n2 -- n3 ) Multiply n1*n2 and place on the stack
/ ( n1 n2 -- n3 ) Divide n1/n2 truncated and place on the stack
mod ( n1 n2 -- n3 ) Place on the stack remainder of n1/n2
lshift ( n1 count -- n2 ) Left shift n1 by count places
rshift ( n1 count -- n2 ) Right shift n1 by count places
ok
ok
ok help Memory
dump ( addr length -- ) Display memory at addr for length bytes
fill ( addr length byte -- ) Fill memory starting at addr with byte
move ( src dest length -- ) Copy length bytes from src to dest address
map? ( vaddr -- ) Show memory map information for the virtual address
x? ( addr -- ) Display the 64-bit number from location addr
l? ( addr -- ) Display the 32-bit number from location addr
w? ( addr -- ) Display the 16-bit number from location addr
c? ( addr -- ) Display the 8-bit number from location addr
x@ ( addr -- n ) Place on the stack the 64-bit data at location addr
l@ ( addr -- n ) Place on the stack the 32-bit data at location addr
w@ ( addr -- n ) Place on the stack the 16-bit data at location addr
c@ ( addr -- n ) Place on the stack the 8-bit data at location addr
x! ( n addr -- ) Store the 64-bit value n at location addr
l! ( n addr -- ) Store the 32-bit value n at location addr
w! ( n addr -- ) Store the 16-bit value n at location addr
c! ( n addr -- ) Store the 8-bit value n at location addr
ok
ok
ok help line
^P Recall previous line
^N Recall subsequent line
^A Beginning of line
^E End of line
^B Backward one character
ESC-B Backward one word
^F Forward one character
ESC-F Forward one word
^D Erase this character
ESC-D Erase here to end of this word
^K Erase here to end of line
^H Erase previous character ( also backspace, delete )
ESC-H , ^W Erase previous word
^U Erase entire line
^R Retype line
^L Display command history
^` , ^SPACE Commmand completion
^} , ^? Show possible completions
^Q Enter next character as-is
ok
ok
ok
ok help system
devalias - Display all device aliases
devalias <name> <value> - Create or change a device alias
printenv Show all configuration parameters
numbers are shown in decimal
setenv <name> <value> Change a configuration parameter
changes are permanent but only take effect after a reset
Examples:
setenv input-device ttya - use ttya input next time
setenv screen-#rows 0x1e - use 30 rows of display ( hex 1e )
setenv boot-device net - specify network as boot device
setenv auto-boot? false - disable automatic boot
setenv auto-boot-on-error? false - disable automatic boot only on
system/hardware error
set-defaults Revert to factory configuration
See also: nvramrc
ok
ok help eject
eject <device> Eject <device> from drive
floppy eject the floppy
cdrom eject the cdrom
ok
ok
ok help select
input Select input source ( ttya or ttyb or keyboard )
Examples:
ttya input - use ttya for subsequent input
keyboard input - use Sun keyboard for subsequent input
output Select output source ( ttya or ttyb or screen )
Examples:
screen output - use Sun screen for subsequent output
io Select input and output ( ttya or ttyb)
Examples:
ttya io - use ttya for subsequent input and output
ok
ok
ok help diag
test <device-specifier> Run selftest method for specified device
Examples:
test floppy - test floppy disk drive
test net - test net
test scsi - test scsi
test-all Execute test for all devices with selftest method
post Invoke platform POST (will cause a reset)
Syntax: post [ <diag-level> [ <verbosity> ] ]
watch-clock Show ticks of real-time clock
watch-net Monitor network broadcast packets
watch-net-all Monitor broadcast packets on all net interfaces
probe-scsi Show attached SCSI devices
probe-scsi-all Show attached SCSI devices for all host adapters
ok
ok
ok help resume
go Start or continue execution of program
ok
ok
ok help nvramrc
nvedit Start nvramrc line editor using a temporary edit buffer
use-nvramrc? If this variable is true , Contents of nvramrc
is executed automatically. Set using setenv command
nvrun Execute the contents of nvedit edit buffer
nvstore Save the contents of the nvedit buffer into NVRAM
nvrecover Recover nvramrc after a set-defaults
nvalias <name> <path> Edit nvramrc to include devalias called 'name'
nvunalias <name> Edit nvramrc to remove devalias called 'name'
ok
ok
ok help file
boot <specifier> ( -- ) boot kernel ( default ) or other file
Examples:
boot - boot kernel from default device.
Factory default is to boot
from DISK if present, otherwise from NET.
boot net - boot kernel from network
boot cdrom - boot kernel from CD-ROM
boot disk1:h - boot from disk1 partition h
boot tape - boot default file from tape
boot disk myunix -as - boot myunix from disk with flags "-as"
dload <filename> ( addr -- ) debug load of file over network at address
Examples:
4000 dload /export/root/foo/test
?go - if executable program, execute it
or if Forth program, compile it
ok
ok
ok
ok help power
reset-all
reset machine, ( simulates power cycling )
power-off Power Off
ok
ok
ok printenv
Variable Name Value Default Value
asr-policy normal normal
test-args
diag-passes 1 1
local-mac-address? true true
fcode-debug? false false
scsi-initiator-id 7 7
oem-logo 02 00 00 02 0a 50 04 03 ... No default
oem-logo? false false
oem-banner No default
oem-banner? false false
ansi-terminal? true true
screen-#columns 80 80
screen-#rows 34 34
ttyb-rts-dtr-off false false
ttyb-ignore-cd true true
ttya-rts-dtr-off false false
ttya-ignore-cd true true
ttyb-mode 9600,8,n,1,- 9600,8,n,1,-
ttya-mode 9600,8,n,1,- 9600,8,n,1,-
output-device ttya ttya
input-device ttya ttya
auto-boot-on-error? true false
error-reset-recovery sync sync
load-base 16384 16384
auto-boot? true true
network-boot-arguments
boot-command boot boot
diag-file
diag-device net net
boot-file
boot-device disk net disk net
use-nvramrc? false false
nvramrc
security-mode none No default
security-password No default
security-#badlogins 0 No default
verbosity normal normal
diag-trigger error-reset power-on-res ... error-reset power-on-res ...
service-mode? false false
diag-script normal normal
diag-level min max
diag-switch? false false
ok
ok
sc> poweron
SC Alert: Host System has Reset
sc> console
Enter #. to return to ALOM.
Done
0>Init Memory....Done
0>PLL Reset....Done
0>Init Memory....Done
0>Test Memory....Done
0>IO-Bridge Tests....Done
0>INFO:
0> POST Passed all devices.
0>
0>POST: Return to OBP.
Configuring system memory & CPU(s)
Probing system devices
Probing memory
Probing I/O buses
Sun Fire V240, No Keyboard
Copyright 2005 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.18.10, 4096 MB memory installed, Serial #55809845.
Ethernet address 0:3:ba:53:97:35, Host ID: 83539735.
Running diagnostic script obdiag/normal
Testing /pci@1e,600000/ide@d
Testing /pci@1e,600000/isa@7/rtc@0,70
Testing /pci@1c,600000/scsi@2
Testing /pci@1c,600000/scsi@2,1
Testing /pci@1e,600000/isa@7/serial@0,2e8
Testing /pci@1e,600000/isa@7/serial@0,3f8
Probing system devices
Probing memory
Probing I/O buses
Sun Fire V240, No Keyboard
Copyright 2005 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.18.10, 4096 MB memory installed, Serial #55809845.
Ethernet address 0:3:ba:53:97:35, Host ID: 83539735.
Rebooting with command: boot
Boot device: disk File and args:
SunOS Release 5.10 Version Generic_127127-11 64-bit
Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Hardware watchdog enabled
Hostname: v240
/dev/rdsk/c1t0d0s3 is clean
v240 console login: Nov 13 19:10:12 v240 sendmail[328]: My unqualified host name (v240) unknown; sleeping for retry
Nov 13 19:10:12 v240 sendmail[329]: My unqualified host name (v240) unknown; sleeping for retry
Nov 13 19:10:14 v240 gdm[363]: gdm_slave_xioerror_handler: Fatal X error - Restarting :0
Nov 13 19:10:17 v240 gdm[410]: gdm_slave_xioerror_handler: Fatal X error - Restarting :0
Nov 13 19:11:12 v240 sendmail[329]: unable to qualify my own domain name (v240) -- using short name
Nov 13 19:11:12 v240 sendmail[328]: unable to qualify my own domain name (v240) -- using short name
v240 console login:
v240 console login:
v240 console login: root
Password:
Last login: Fri Nov 13 16:54:57 from 192.168.1.103
Nov 13 19:11:32 v240 login: ROOT LOGIN /dev/console
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
#
#