openboot.docx

上传人:b****6 文档编号:7118619 上传时间:2023-01-19 格式:DOCX 页数:9 大小:20.21KB
下载 相关 举报
openboot.docx_第1页
第1页 / 共9页
openboot.docx_第2页
第2页 / 共9页
openboot.docx_第3页
第3页 / 共9页
openboot.docx_第4页
第4页 / 共9页
openboot.docx_第5页
第5页 / 共9页
点击查看更多>>
下载资源
资源描述

openboot.docx

《openboot.docx》由会员分享,可在线阅读,更多相关《openboot.docx(9页珍藏版)》请在冰豆网上搜索。

openboot.docx

openbootOpenBootPROM介绍所有Sun机器都一个用于基本硬件测试和初始化的固件,还有一个提供多种重要功能的用户程序。

基本元素Sun系统的基本硬件元素包括:

BootPROM芯片,它永久的固定在主板中。

非易失性随机访问内存(non-volatilerandomaccessmemory(NVRAM))芯片,包含主机的基本信息。

BootPROM内容bootPROM有以下功能:

加点自检(Power-onself-tests(POST))系统重起始开始执行。

检测基本CPU板因机器型号不同而不同。

设备驱动有一些小型设备驱动程序,使得启动的初始化过程中可以与不同的外围设备相通讯用户操作界面NVRAM内容除了永久性存在地以太网地址、主机ID、时钟外,还保存着可以修改的系统的配置参数。

BasicBootPROMCommandsokbannerokbootokhelpokprintenvoksetenvokset-defaultsokprobe-scsiokprobe-scsi-allokprobe-ideokresetTheOpenBootbannerCommandThebannercommandlistsseveralpiecesofusefulinformationaboutthesystemsuchasmodel,amountofmemory,andhostid.YoucanalsousethebannercommandtoidentifyyoursystemsPROMversionnumber.ThreebootPROMlevelsarediscussedinthismodule.okbannerSunUltraSPARC60UPA/PCI(2XUltraSPARC-II296MHz),KeyboardPresentOpenBoot3.11,256MBmemoryinstalled,Serial#3159808.Ethernetaddress8:

0:

22:

1a:

e7:

3f,HostID:

72303700.okboot命令和参数您可以在boot命令后键入一个或多个参数。

这些参数传递改操作系统内核,将影响整个启动过程。

命令格式okbootdevice_name-options参数a交互式启动系统。

提示输入根设备和交换设备以及一些重要的系统文件r启动时系统将重新查找所有的设备,在/devices和/dev目录下重新生成文件,更新/etc/path_to_inst文件。

s系统启动后停留在S运行级别。

可以用来系统错误排除。

v详细地显示出系统的启动信息。

有时可以用来系统的错误排除。

printenv命令printenv命令显示NVRAM的参数以及参数的缺省值。

查看缺省启动设备您可以使用printenv显示缺省启动设备。

okprintenvParameterNameValueDefaultValuetpe-link-test?

Truetrueoutput-devicettyascreeninput-devicettyakeyboardsbus-probe-listf0123f0123keyboard-click?

Falsefalsediag-filediag-devicenetnetboot-fileboot-devicediskdiskauto-boot?

truetrueMore,q?

q您可以在系统的输出中查看缺省启动设备,参数是boot-device。

您也可以输入printenvboot-device,这样只显示启动设备的值。

重新定义PROMBoot值使用setenv命令可以重新定义PROM的值。

下面的例子中把auto-boot?

变为false,然后reset命令使系统重新启动,使变化生效。

okprintenvauto-boot?

auto-boot?

truetrueokoksetenvauto-boot?

falseauto-boot?

=falseokreset重置缺省值使用set-defaults命令将所有的参数重新设置为缺省的值。

okset-defaults_注意set-defaults命令只对有缺省值的参数生效。

_影响系统启动和自检的按键有:

stop如果在系统加电自检时按下Stop键,就取消POST(加电自检)诊断,然后停留在OK状态。

Stop+d在系统自检时同时按下stop和d键,系统将自动转到诊断模式,诊断模式下系统将更完全地进行自检。

Stop+n如果由于NVRAM的设置不正确而导致系统无法正确启动时,可以在系统加电自检时同时按下stop和n键。

它的作用是将NVRAM的参数值设为默认值。

Stop+a同时按下stop和a键将中断操作系统的运行,退到OK状态。

警告:

尽量不要在操作系统运行时按stop+a,这将导致操作系统停止并且导致数据的丢失。

在万不得以的时候,在按下stop+a后,键入sync命令用以将内存的数据同步到硬盘中。

探测系统总线将外围设备(如光驱、硬盘)与主板连接在一起的I/O总线有SCSI(smallcomputersysteminterface)总线和IDE(integrateddriveelectronics)总线。

在OpenBoot3.x系统中使用probe-命令在OpenBoot3.x的系统中,使用probe-命令时,您会看到一个警告。

如果您在操作系统运行状态下,用stop-a将系统强行暂停,或使用halt退出操作系统。

这样的状态下使用probe-命令会造成机器挂起。

因此,您必须先运行reset-all命令。

请先设置auto-boot?

为false后再运行reset-all,系统将重新自检,停留在OK状态下,然后可以运行这个命令。

显示连接在SCSI总线上的设备probe-scsi命令将鉴别连接在SCSI控制器上的设备。

okprobe-scsiTarget3Unit0DiskSEAGATEST1480SUN0424626600190016Copyright(c)AllRightsReservedTarget6Unit0RemovableReadOnlydeviceSONYCD-ROMokprobe-scsi-all显示连接在PCI总线上的IDE设备okprobe-ideDevice0(PrimaryMaster)ATAModel:

ST34342ADevice1(PrimarySlave)NotPresentDevice2(SecondaryMaster)removableATAPIModel:

CDR-8240BDevice3(SecondarySlave)RemovableATAPIModelyyyyyyyyyyyyyyy可以使用devalias命令查看设备别名的物理地址,这样就可以知道启动设备的物理设备了。

okdevaliasscreen/SUNW,ffb1e,0mydisk/pci1f,0/pci1,1/ide3/disk0,0net/pci1f,0/pci1,1/network1,1cdrom/pci1f,0/pci1,1/ide3/cdrom2,0:

fdisk/pci1f,0/pci1,1/ide3/disk0,0disk3/pci1f,0/pci1,1/ide3/disk3,0disk2/pci1f,0/pci1,1/ide3/disk2,0disk1/pci1f,0/pci1,1/ide3/disk1,0disk0/pci1f,0/pci1,1/ide3/disk0,0ide/pci1f,0/pci1,1/ide3floppy/pci1f,0/pci1,1/ebus1/fdthreettyb/pci1f,0/pci1,1/ebus1/se:

attya/pci1f,0/pci1,1/ebus1/se:

bkeyboard!

/pci1f,0/pci1,1/ebus1/su14,3083f8keyboard/pci1f,0/pci1,1/ebus1/su14,3083f8mouse/pci1f,0/pci1,1/ebus1/su14,3062f8设备别名在左列。

设备物理地址在右列。

如果操作系统挂起了(没有响应),并且您也不能远程登录,那您没有别的选择了,只有强行中断操作系统。

中断挂起的系统如果系统挂起了,可以尝试下列步骤:

1.用Stop-a中断操作系统。

如果成功,系统会停留在PROM状态。

如果是使用字符终端作为系统控制台,则按Break键。

2.用sync命令将内存的内容同步到磁盘,减少数据的丢失。

结束后系统会自动重起。

在ok提示符下键入sync命令。

oksync注意您也可以用Stop-a强行中断操作系统,然后键入go恢复操作系统运行。

不建议使用此功能。

TN105-SunOpenBootProm105.1General105.2Gettingtothebootmonitor105.3RestoredefaultNVRAMsettings105.4Setbootdevice105.5Othergoodopenbootcommandstoknow105.6ttyaconsolewithframebufferandkeyboardattached105.7ShowSCSIdevices105.8Showfiberchanneldevices105.9Booting105.10LOMlite105.11Keyboardinterruptsequence(RS-232BREAKSignal)105.1GeneralSuncomputersuseabootmonitorprogramcalledOpenBoot.Fromthebootmonitorwecanperformcertainhardwaretests,issuebootinstructions,andsetmanyparametersstoredinnonvolatileRAMontheCPUboard.Someofthesesettingmustbeadjustedforparticularsituations.Fulldocumentationisavailableat:

http:

/:

80/ab2/coll.216.2/Ab2CollView105.2GettingtothebootmonitorThebestwayistocauseanorderlysystemshutdownwithoneofthesecommands,showninorderofpreference:

shutdown-yi0init0haltIfthisisnotpossiblethenitcanbeforcedby:

FromthettyconsolesendaRS-232BREAKsignal.(serialconsolesdefaultto9600,8,N,1)FromaSunFramebuffer/keyboardpresstheSTOPkeyandtheakeyatthesametime.IngeneralthismethodisBADandhasthesameriskstothefilesystemasjustturningoffthepower.IfyouaccidentlysendsabreakorSTOP-a,youcansafelyreturntotherunningOSstatewiththiscommand:

okgoIfyouissueANYothercommandsfirstthengomaynotwork.105.3RestoredefaultNVRAMsettingsokset-defaults105.4Setbootdeviceoksetenvboot-devicediskOtheroptionsinclude:

disk0mainSCSIcontrollertarget0disk1mainSCSIcontrollertarget1disk2mainSCSIcontrollertarget2disk3mainSCSIcontrollertarget3diskissameasdisk3ifdiskisnotmainSCSIcontrolleroknvaliasdisk/sbus1,f8000000/dma3,81000/esp3,80000/sd3,0Systemmaytake30secondsduringPOSTtoshowanyresponse.Settingdiag-switch?

truewillcausethePOSTtoprintdetailsandsystemwillshowaresponseimmediatelybutPOSTmaytake2minutes.Withdiag-switch?

truethebootdeviceissetbydiag-device105.5Othergoodopenbootcommandstoknowreset-resetsystem(likepowercycle)devalias-Displayalldevicealiasesdevalias-Createorchangeadevicealiasshow-devs-Displaythenamesofalldevicesshow-disksdiag-switch?

true-extendedPOSTdiagsnvunalias-Thiswillunsetanalias-youmustthenresetforittotakeaffect.setenvdiag-switch?

true-turnondiagnosticmessages(willbootfromdiagbootdevicealso.)105.6ttyaconsolewithframebufferandkeyboardattachedoksetenvoutput-devicettyaoksetenvinput-devicettya105.7ShowSCSIdevicesokprobe-scsiokprobe-scsi-allitmaybenecessarytosetauto-boot?

=falseandthenresetbeforeprobe-scsiwillworkSyntax:

setenvauto-boot?

false105.8Showfiberchanneldevicesokprobe-fcal-allitmaybenecessarytosetauto-boot?

=falseandthenresetbeforeprobe-scsiwillworkSyntax:

setenvauto-boot?

falseokshow-disksa)/sbus3,0/SUNW,fas3,8800000/sdb)/sbus2,0/SUNW,socd,10000/SUNW,plnb0000000,87300d/SUNW,ssdc)/sbus2,0/SUNW,socd,10000/SUNW,plna0000000,8a1abd/SUNW,ssdq)NOSELECTIONEnterSelection,qtoquit:

coknvaliasra001Y3,0:

a105.9Bootingokboot#Normalbootokboot-v#Normalboot,verboseoutputokboot-s#bootsingleuserokboot-r#bootandreconfigureddevices#necessarywhennewdevicesareaddedokboot-a#askforconfigurationinfo#if/etc/systemfilewasdamagedtry:

#/etc/system.origor/dev/null105.10LOMliteSomesystemssupportLightsOutManagement.LOMliteisamonitorprogramavailableonthesystemconsolewhenthesystemispoweredoffandprovideseventmonitoringtherunningOS.LOMliteisdocumentedintheLOMliteUsersGuide806-2038-10andintheNetrat1UserandAdministrationGuide.SummaryofcommonLOMcommands#.TogettoLOMfromwhentheconsoleisusedbythebootmonitorortheOSconsoleTogetreturntheconsoletoitoriginalstate.environmentDisplaystatusofsystemfaultonTurnfaultlightonfaultoffTurnfaultlightoffresetResetsystempoweronTurnpoweronpoweroffTurnpoweroffshowShowallavailableinfoFromSolarisLOMcanbeconfiguredusinglomctl.Thereisaconfigurationfile/etc/lom.conf.BydefaultsystemswithLOMrunawatchdogprocess:

tsdogstartedby/etc/init.d/tsaldog./etc/init.d/lomlitedstartsdaemonthatreportsanystatechangestosyslogd.Seealsolomctl(1M),lominfo(1M),lomprog(1M),lom(7d),tsdog(1M),tsctl(1M),tsstate(1M),andtsunlock(1M)manpages.TheLOMsoftwareforSolarisisnotincludedinthestandarddistribution.ToreinstallorderCD:

X6972A.105.11Keyboardinterruptsequence(RS-232BREAKSignal)BydefaultconsolesattachedviatheserialportinterruptthesystemandbringupthebootmonitorwhenanRS-232Breakisreceived.ABREAKconditionthatoriginatesfromanerroneouselectricalsignalcannotbedistinguishedfromonedeliberatelysentbytheattachedterminalorterminalserver.TheCisco2511terminalforexampletypicallysendsaBREAKwhenitispowercycled,causingtheattachedSunstostopandgothebootmonitorprompt.Itmayalsobecausedbyunpluggingorplugginginaserialcable.WhiletheSuncanberestartedbytypinggoitmaybebettertopreventtheproblem.Solaris8providesasolution.Forafullexplanationseethemanpageonkbd.Forageneraldiscussionoftheproblem:

http:

/ForCiscosdiscussionoftheproblem:

http:

/Foralistofterminalserversthatdoanddonthavetheproblem:

http:

/Foradevicethatpreventsit:

http:

/

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 工作范文 > 行政公文

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1