OBP 学习(二)
设备树跟solaris操作系统的设备的物理命名方式相同
http://blog.chinaunix.net/photo/26090_070628163723.jpg
http://blog.chinaunix.net/photo/26090_070628163742.jpg
显示设备树,单纯show-devs显示整个机器的设备树:show-devs
思考:这个和在正常模式下使用命令eeprom 返回的结果有何差异?
root@Ultra5
# eeprom
tpe-link-test?=true
scsi-initiator-id=7
keyboard-click?=false
keymap: data not available.
ttyb-rts-dtr-off=false
ttyb-ignore-cd=true
ttya-rts-dtr-off=false
ttya-ignore-cd=true
ttyb-mode=9600,8,n,1,-
ttya-mode=9600,8,n,1,-
pcia-probe-list=1,2,3,4
pcib-probe-list=1,2,3
mfg-mode=off
diag-level=max
#power-cycles=1318
system-board-serial#: data not available.
system-board-date: data not available.
fcode-debug?=false
output-device=screen
input-device=keyboard
load-base=16384
boot-command=boot
auto-boot?=true
watchdog-reboot?=false
diag-file: data not available.
diag-device=net
boot-file: data not available.
boot-device=disk:a disk net
local-mac-address?=false
ansi-terminal?=true
screen-#columns=80
screen-#rows=34
silent-mode?=false
use-nvramrc?=false
nvramrc: data not available.
security-mode=none
security-password: data not available.
security-#badlogins=0
oem-logo: data not available.
oem-logo?=false
oem-banner: data not available.
oem-banner?=false
hardware-revision: data not available.
last-hardware-update: data not available.
diag-switch?=false
在init 3 状态下也可以设置openboot参数,效果等同。
EP.
bash-3.00# eeprom boot-device
boot-device=/pci@1f,0/pci@1,1/ide@3/disk@0,0:a
disk:a disk net
NOTE:
All changes are permanent. There is no reset command to be
run.
OK模式下的三个组合键:
如果stop-D同时按下,固件将进入诊断模式,进行更广泛的硬件自检,并把结果输出到控制台A,把NVRAM变量diag-switch?设成true:
如果stop-N同时按下,系统将使用省缺参数,忽略NVRAM中的设置;
如果stop-A同时按下,系统将进入ok状态,而不自动引导操作系统,即使auto-boot?变量为true。
如何禁用stop + A
修改/etc/default/kbd文件的的参数KEYBOARD_ABORT=disable并运行kbd -i命令在操作系统状态下禁用stop-A。
(from SA-239:
As a system administrator, you might want to disable the abort key
sequence on a system to prevent possible corruption of a file system or to
provide tighter security.
To disable the abort key sequence, edit the /etc/default/kbd file. Inside
the file, the statement KEYBOARD_ABORT=disable is commented out.
Remove the comment from in front of the value, save the file, and execute
the command kbd -i. When you have completed these steps, the system
allows Stop-A key sequence only during the boot process.
You can also configure the system to change the keyboard abort sequence
to an alternate keystroke. Review the man page for the kbd command for
more information.)
kbd参数-i
The -i option reads and processesdefaultvaluesforthe
keyclick and keyboard abort settings from the
/etc/default/kbd keyboard default file. Only keyboardsthat
support a clicker respond to the -c option. To turn clicking
on by default, add or changethevalueofthe KEYCLICK
variable in the /etc/default/kbd file to:
KEYCLICK=on
Next, run the command kbd -i to changethesetting.Valid
settings for the KEYCLICK variable are on and off; all other
values are ignored. If the KEYCLICK variable isnotspeci-
fied in the default file, the setting is unchanged.
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/26090/showart_330440.html
页:
[1]