| File: | 106_openboot.txt |
|---|---|
| Last Modified: | 2000/03/15 03:14:31 |
| Document Title: | Sun OpenBoot Prom |
128.1 General --
Sun computers use a boot monitor program called "OpenBoot". From
the boot monitor we can perform certain hardware tests, issue
boot instructions, and set many parameters stored in non-volitile
RAM on the CPU board. Some of these setting must be adjusted
for particular situations.
128.2 Getting to the boot monitor --
The best way is to cause an orderly system shutdown with
one of these commands, shown in order of preference:
shutdown -yi 0
init 0
halt
If this is not possible then then it can be forced by:
From the tty console send a RS-232 "Break" signal.
From a Sun Framebuffer/keyboard press the STOP key
and the 'a' key at the same time.
In general this methode is BAD and has the same risks to
the filesystem as just turning off the power.
If you accidently sends a break or STOP-a, you can safely
return to the running OS state with this command:
ok> go
If you issue ANY other commands first then go may not work.
128.3 Restore default NVRAM settings --
ok> set-defaults
128.4 Set boot device --
ok> setenv boot-device disk
Other options include:
disk0 main SCSI controller target 0
disk1 main SCSI controller target 1
disk2 main SCSI controller target 2
disk3 main SCSI controller target 3
disk is same as disk3
[if disk is not main SCSI controller ]
ok> nvalias disk /sbus@1,f8000000/dma@3,81000/esp@3,80000/sd@3,0
128.5 Other good open boot commands to know --
devalias - Display all device aliases
devalias - Create or change a device alias
show-devs - Display the names of all devices
show-disks
diag-switch? true - extended POST diags
nvunalias - This will unset an alias - you must
then reset for it to take affect.
128.6 ttya console with framebuffer and keyboard attached --
ok> setenv output-device ttya
ok> setenv input-device ttya
128.7 Show SCSI devices --
ok> probe-scsi
ok> probe-scsi-all
it may be necesaary to set auto-boot?=false and then reset
before probe-scsi will work
Syntax: setenv auto-boot? false
128.8 Show fiber chanel devices
ok> probe-fcal-all
it may be necesaary to set auto-boot?=false and then reset
before probe-scsi will work
Syntax: setenv auto-boot? false
ok> show-disks
a) /sbus@3,0/SUNW,fas@3,8800000/sd
b) /sbus@2,0/SUNW,soc@d,10000/SUNW,pln@b0000000,87300d/SUNW,ssd
c) /sbus@2,0/SUNW,soc@d,10000/SUNW,pln@a0000000,8a1abd/SUNW,ssd
q) NO SELECTION
Enter Selection, q to quit: c
ok> nvalias ra001 ^Y@3,0:a
128.8 Booting --
ok> boot # Normal boot
ok> boot -v # Normal boot, verbose output
ok> boot -s # boot single user
ok> boot -r # boot and reconfigure devices
# necessary when new devices are added
ok> boot -a # ask for configuration info
# if /etc/system file was damaged try:
# /etc/system.orig or /dev/null
ok> boot -d # disable the rc scripts, just ask for password and dump
# to a shell
Back