免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1595 | 回复: 0
打印 上一主题 下一主题

Netra240升级ALOM及OBP全过程--ZT [复制链接]

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-09-06 11:06 |只看该作者 |倒序浏览
转自:
http://bbs.chinaunix.net/viewthread.php?tid=803374&extra=page%3D1


Netra240现在的ALOM版本为1.5.3,升级后为1.5.5;OBP版本为4.13.2,升级后为4.22.11;
将ALOM升级文件ALOM_1[1].5.5_fw.tar.gz和OBP升级文件121683-01.jar放在/var/tmp目录下
# cd /var/tmp
# ls
ALOM_1[1].5.5_fw.tar.gz        121683-01.jar
------------------------------开始升级ALOM------------------------------
netra240_sc> showsc
Advanced Lights Out Manager v1.5.3
parameter                value
---------                -----
if_network               true
if_modem                 false
if_emailalerts           false
sys_autorestart          xir
sys_bootrestart          none
sys_bootfailrecovery     none
sys_maxbootfail          3
sys_xirtimeout           900
sys_boottimeout          120
sys_wdttimeout           60
netsc_tpelinktest        true
netsc_dhcp               false
netsc_ipaddr             192.168.1.100
netsc_ipnetmask          255.255.255.0
netsc_ipgateway          192.168.1.1
mgt_mailhost            
mgt_mailalert                                          
sc_customerinfo         
sc_escapechars           #.
sc_powerondelay          true
sc_powerstatememory      true
sc_clipasswdecho         true
sc_cliprompt             netra240_sc
sc_clitimeout            0
sc_clieventlevel         2
sc_backupuserdata        true
sys_eventlevel           2
ser_baudrate             9600
ser_parity               none
ser_stopbits             1
ser_data                 8
netsc_enetaddr           00:03:ba:d1:06:74
sys_hostname             netra240_1
sys_enetaddr             00:03:ba:d1:06:6b
netra240_sc> console
Enter #. to return to ALOM.
# uname -i
SUNW,Netra-240
# uname -m
sun4u
# cd /usr/platform/SUNW,Netra-240/lib
# ls
abi                  libc_psr.so.1        librsc.so.1
adb                  libmd5_psr.so.1      mdb
cfgadm               libprtdiag_psr.so.1  picl
fs                   librsc.so            sparcv9
# mkdir images
# cd images
# cp /var/tmp/ALOM_1\[1\].5.5_fw.tar.gz .
# ls
ALOM_1[1].5.5_fw.tar.gz
# gunzip ALOM_1\[1\].5.5_fw.tar.gz
# ls
ALOM_1[1].5.5_fw.tar
# tar xvf ALOM_1\[1\].5.5_fw.tar
x README, 6250 bytes, 13 tape blocks
x copyright, 93 bytes, 1 tape blocks
x alombootfw, 161807 bytes, 317 tape blocks
x alommainfw, 5015567 bytes, 9797 tape blocks
# ls
ALOM_1[1].5.5_fw.tar  alommainfw            README
alombootfw            copyright
# /usr/platform/SUNW,Netra-240/sbin/scadm download boot alombootfw
scadm: download rejected
-----------------------------此时钥匙是在锁定状态,故写被拒绝,将钥匙打回到正常状态-----------------------------
Aug  1 23:44:23 netra240_1: NOTICE: keyswitch change event - state = NORMAL
# /usr/platform/SUNW,Netra-240/sbin/scadm download boot alombootfw
Copying self to RAM...Done.
Jumping to RAM.
Waiting for boot protocol message...
Got OBP:bootinit msg, dat2 = 00000001
AMD flash ROM
Receiving segment 00000000
Got S7/S8/S9 record
wait_time wait_count wait_avg proc_time proc_count proc_avg
015e76a1  00000801   00002bc9 00177ba4  00000801   000002ef
idle_time idle_count idle_avg temp_time temp_count temp_avg
00198fd9  00000801   00000331 000feb8b  00000800   000001fd
Sending Tamale:bootok
Verifying buffered image...
Download Verified - Programming Flash...
Segment 00000000 erased and programmed
Flash Programming Complete. Resetting.
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: CRITICAL ALARM is set
SC Alert: SC System booted.
[SC Status 7fff - OK] Enter #. to return to ALOM.
Aug  1 23:45:13 netra240_1 rmclomv: SC unretrieved msg AUG 01 15:45:08 2006 UTC [CRITICAL ALARM is set]
Aug  1 23:45:13 netra240_1 rmclomv: SC unretrieved msg AUG 01 15:45:08 2006 UTC [SC System booted.]
------------------------------升级引导监视映像(bootmon)完成,时间很快,不到一分钟------------------------------
# /usr/platform/SUNW,Netra-240/sbin/scadm download alommainfw
Copying self to RAM...Done.
Jumping to RAM.
Waiting for boot protocol message...
Got OBP:bootinit msg, dat2 = 00000002
AMD flash ROM
Receiving segment 00000001
Receiving segment 00000002
Receiving segment 00000003
Receiving segment 00000004
Receiving segment 00000005
Receiving segment 00000006
Receiving segment 00000007
Receiving segment 00000008
Receiving segment 00000009
Receiving segment 0000000a
Receiving segment 0000000b
Receiving segment 0000000c
Receiving segment 0000000d
Receiving segment 0000000e
Receiving segment 0000000f
Receiving segment 00000010
Receiving segment 00000011
Receiving segment 00000012
Receiving segment 00000013
Receiving segment 00000014
Receiving segment 00000015
Receiving segment 00000016
Receiving segment 00000017
Receiving segment 00000018
Receiving segment 00000019
Receiving segment 0000001a
Receiving segment 0000001b
Receiving segment 0000001c
Receiving segment 0000001d
Receiving segment 0000001e
Receiving segment 0000001f
Got S7/S8/S9 record
wait_time wait_count wait_avg proc_time proc_count proc_avg
2a6b8269  0000f801   00002bc9 02d68dab  0000f801   000002ed
idle_time idle_count idle_avg temp_time temp_count temp_avg
0316e9a7  0000f801   00000330 01ed95a4  0000f800   000001fd
Sending Tamale:bootok
Verifying buffered image...
Download Verified - Programming Flash...
Segment 00000001 erased and programmed
Segment 00000002 erased and programmed
Segment 00000003 erased and programmed
Segment 00000004 erased and programmed
Segment 00000005 erased and programmed
Segment 00000006 erased and programmed
Segment 00000007 erased and programmed
Segment 00000008 erased and programmed
Segment 00000009 erased and programmed
Segment 0000000a erased and programmed
Segment 0000000b erased and programmed
Segment 0000000c erased and programmed
Segment 0000000d erased and programmed
Segment 0000000e erased and programmed
Segment 0000000f erased and programmed
Segment 00000010 erased and programmed
Segment 00000011 erased and programmed
Segment 00000012 erased and programmed
Segment 00000013 erased and programmed
Segment 00000014 erased and programmed
Segment 00000015 erased and programmed
Segment 00000016 erased and programmed
Segment 00000017 erased and programmed
Segment 00000018 erased and programmed
Segment 00000019 erased and programmed
Segment 0000001a erased and programmed
Segment 0000001b erased and programmed
Segment 0000001c erased and programmed
Segment 0000001d erased and programmed
Segment 0000001e erased and programmed
Segment 0000001f erased and programmed
Flash Programming Complete. Resetting.
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: CRITICAL ALARM is set
SC Alert: SC System booted.
[SC Status 7fff - OK] Enter #. to return to ALOM.
Aug  1 23:57:58 netra240_1 rmclomv: SC unretrieved msg AUG 01 15:57:52 2006 UTC [CRITICAL ALARM is set]
Aug  1 23:57:58 netra240_1 rmclomv: SC unretrieved msg AUG 01 15:57:52 2006 UTC [SC System booted.]
------------------------------升级主映像完成,时间较长,大约10分钟左右------------------------------
# ls
ALOM_1[1].5.5_fw.tar  alommainfw            README
alombootfw            copyright
#
Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Sun(tm) Advanced Lights Out Manager 1.5.5 (netra240_1)
Please login:admin  
Please Enter password: ********
netra240_sc> showsc
Advanced Lights Out Manager v1.5.5
parameter                value
---------                -----
if_network               true
if_modem                 false
if_emailalerts           false
sys_autorestart          xir
sys_bootrestart          none
sys_bootfailrecovery     none
sys_maxbootfail          3
sys_xirtimeout           900
sys_boottimeout          120
sys_wdttimeout           60
netsc_tpelinktest        true
netsc_dhcp               false
netsc_ipaddr             192.168.1.100
netsc_ipnetmask          255.255.255.0
netsc_ipgateway          192.168.1.1
mgt_mailhost            
mgt_mailalert                                          
sc_customerinfo         
sc_escapechars           #.
sc_powerondelay          true
sc_powerstatememory      true
sc_clipasswdecho         true
sc_cliprompt             netra240_sc
sc_clitimeout            0
sc_clieventlevel         2
sc_backupuserdata        true
sys_eventlevel           2
ser_baudrate             9600
ser_parity               none
ser_stopbits             1
ser_data                 8
netsc_enetaddr           00:03:ba:d1:06:74
sys_hostname             netra240_1
sys_enetaddr             00:03:ba:d1:06:6b
------------------------------ALOM参数值无任何变化------------------------------
# ls
ALOM_1[1].5.5_fw.tar  alommainfw            README
alombootfw            copyright
# cd ..
# pwd
/usr/platform/SUNW,Netra-240/lib
# rm -rf images
------------------------------至此,升级ALOM完成------------------------------
------------------------------升级OBP------------------------------
# cd /var/tmp
# jar xvf 121683-01.jar
extracted: 121683-01/flash-update-SunFire240-latest
extracted: 121683-01/unix.flash-update.SunFire240.sh
extracted: 121683-01/802-3233-25.ps
extracted: 121683-01/817-6957-10.pdf
extracted: 121683-01/Install.info
extracted: 121683-01/README.121683-01
extracted: 121683-01/copyright
extracted: 121683-01/unix.flash-update.README
extracted: 121683-01/Install.info~
extracted: 121683-01/unix.flash-update.README~
extracted: 121683-01/LEGAL_LICENSE.TXT
extracted: META-INF/manifest.mf
extracted: META-INF/es-signature.sf
extracted: META-INF/es-signature.rsa
# ls
121683-01        121683-01.jar         
ALOM_1[1].5.5_fw.tar.gz
# cd 121683-01
# ls -la
total 15126
drwxr-xr-x   2 root     other        512 Aug  2 00:02 .
drwxr-xr-x   6 root     other        512 Aug  2 00:02 ..
-rw-r--r--   1 root     other    3159237 Aug  2 00:02 802-3233-25.ps
-rw-r--r--   1 root     other     132830 Aug  2 00:02 817-6957-10.pdf
-rw-r--r--   1 root     other         59 Aug  2 00:02 copyright
-rw-r--r--   1 root     other    2532420 Aug  2 00:02 flash-update-SunFire240-latest
-rw-r--r--   1 root     other      13655 Aug  2 00:02 Install.info
-rw-r--r--   1 root     other      13646 Aug  2 00:02 Install.info~
-rw-r--r--   1 root     other      13272 Aug  2 00:02 LEGAL_LICENSE.TXT
-rw-r--r--   1 root     other      15145 Aug  2 00:02 README.121683-01
-rw-r--r--   1 root     other       3620 Aug  2 00:02 unix.flash-update.README
-rw-r--r--   1 root     other       3612 Aug  2 00:02 unix.flash-update.README~
-rw-r--r--   1 root     other    1795537 Aug  2 00:02 unix.flash-update.SunFire240.sh
# ./unix.flash-update.SunFire240.sh
bash: ./unix.flash-update.SunFire240.sh: Permission denied
# chmod 755 unix.flash-update.SunFire240.sh
------------------------------一定要chmod,不然升级脚本不能运行------------------------------
# ./unix.flash-update.SunFire240.sh
Flash Update 2.4: Program and system initialization in progress...
Current System Flash PROM Revision:
-----------------------------------
OBP 4.13.2 2004/03/29 10:11 Sun Fire V210/V240,Netra 240
Available System Flash PROM Revision:
-------------------------------------
OBP 4.22.11 2006/06/12 14:45
NOTE: The system will be rebooted (reset) after the firmware has been updated.
However, if an error occurs then the system will NOT be rebooted.
Do you wish to update the firmware in the system Flash PROM? yes/no : yes
Erasing the top half of the Flash PROM.
Programming OBP into the top half of the Flash PROM.
Verifying OBP in the top half of the Flash PROM.
Erasing the bottom half of the Flash PROM.
Programming OBP into the bottom half of Flash PROM.
Verifying OBP in the bottom half of the Flash PROM.
Erasing the top half of the Flash PROM.
Programming POST into the top half of Flash PROM.
Verifying POST in the top half of the Flash PROM.
The system's Flash PROM firmware has been updated.
Please wait while the system is rebooted...
Shutdown started.    Wed Aug  2 00:04:20 CST 2006
Changing to init state 6 - please wait
Broadcast Message from root (console) on netra240_1 Wed Aug  2 00:04:21...
THE SYSTEM netra240_1  IS BEING SHUT DOWN NOW ! ! !
Log off now or risk your files being damaged
#
INIT: New run level: 6
The system is coming down.  Please wait.
System services are now being stopped.
Print services stopped.
Aug  2 00:04:31 netra240_1 syslogd: going down on signal 15
The system is down.
syncing file systems... done
rebooting...
SC Alert: CRITICAL ALARM is set
SC Alert: Host System has Reset
SC Alert: CRITICAL ALARM is set
Configuring system memory & CPU(s)
Probing system devices
Probing memory
NOTICE: Initializing security keystore
Probing I/O buses
Netra 240, No Keyboard
Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
OpenBoot 4.22.11, 4096 MB memory installed, Serial #64030315.
Ethernet address 0:3:ba:d1:6:6b, Host ID: 83d1066b.
                                                                     
NOTICE: Updating OpenBoot NVRAM diagnostic configuration variables..
diag-script =  normal
diag-trigger =          error-reset power-on-reset
diag-level =            max
verbosity =             normal
service-mode? =         false
auto-boot-on-error? =   true
error-reset-recovery =  sync
Rebooting with command: boot
Boot device: disk  File and args:
SunOS Release 5.8 Version Generic_117350-27 64-bit
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
------------------------------升级很快,完成后系统自动重新启动------------------------------
# /usr/platform/sun4u/sbin/prtdiag -v
System Configuration: Sun Microsystems  sun4u Netra 240
System clock frequency: 160 MHZ
Memory size: 4GB        
==================================== CPUs ====================================
                      E$          CPU     CPU       Temperature         Fan
       CPU  Freq      Size        Impl.   Mask     Die    Ambient   Speed   Unit
       ---  --------  ----------  ------  ----  --------  --------  -----   ----
     MB/P0  1280 MHz  1MB         US-IIIi  2.4       -        -   
     MB/P1  1280 MHz  1MB         US-IIIi  2.4       -        -   
================================= IO Devices =================================
     Bus   Freq
Brd  Type  MHz   Slot        Name                          Model
---  ----  ----  ----------  ----------------------------  --------------------
0   pci    66           MB  pci108e,1648 (network)                           
0   pci    66           MB  pci108e,1648 (network)                           
0   pci    33           MB  isa/su (serial)                                 
0   pci    33           MB  isa/su (serial)                                 
0   pci    33           MB  pci10b9,5229 (ide)                              
0   pci    66           MB  scsi-pci1000,21 (scsi-2)                        
0   pci    66           MB  scsi-pci1000,21 (scsi-2)                        
0   pci    66           MB  pci108e,1648 (network)                           
0   pci    66           MB  pci108e,1648 (network)                           
0   pci    33            7  isa/rmc-comm-rmc_comm (seria+                    
============================ Memory Configuration ============================
Segment Table:
-----------------------------------------------------------------------
Base Address       Size       Interleave Factor  Contains
-----------------------------------------------------------------------
0x0                2GB               2           BankIDs 0,1
0x1000000000       2GB               2           BankIDs 16,17
Bank Table:
-----------------------------------------------------------
           Physical Location
ID       ControllerID  GroupID   Size       Interleave Way
-----------------------------------------------------------
0        0             0         1GB             0,1
1        0             0         1GB            
16       1             0         1GB             0,1
17       1             0         1GB            
Memory Module Groups:
--------------------------------------------------
ControllerID   GroupID  Labels
--------------------------------------------------
0              0        MB/P0/B0/D0,MB/P0/B0/D1
Memory Module Groups:
--------------------------------------------------
ControllerID   GroupID  Labels
--------------------------------------------------
1              0        MB/P1/B0/D0,MB/P1/B0/D1
============================ Environmental Status ============================
Fan Speeds:
-----------------------------------------
Location       Sensor      Status   Speed
-----------------------------------------
MB/P0/F0       RS          okay     4560 rpm         
MB/P0/F1       RS          okay     4354 rpm         
F2             RS          okay     4720 rpm         
PS0            FF_FAN      okay         
PS1            FF_FAN      okay         
---------------------------------
Keyswitch:
---------------------------------
Location       Keyswitch   State
---------------------------------
--------------------------------------------------
Led State:
--------------------------------------------------
Location   Led                   State       Color
--------------------------------------------------
MB         ACT                   on          green           
MB         SERVICE               off         amber           
MB         LOCATE                off         white           
PS0        ACT                   on          green           
PS0        SERVICE               off         amber           
PS0        OK2RM                 off         blue            
PS1        ACT                   on          green           
PS1        SERVICE               off         amber           
PS1        OK2RM                 off         blue            
HDD0       SERVICE               off         amber           
HDD0       OK2RM                 off         blue            
HDD1       SERVICE               off         amber           
HDD1       OK2RM                 off         blue            
-------------------------------------------------------------------
Temperature sensors:
-------------------------------------------------------------------
Location       Sensor      Temperature  Lo LoWarn HiWarn  Hi Status
-------------------------------------------------------------------
MB             T_ENC           26C     -9C   -7C   57C   60C okay
MB/P0          T_CORE          63C     -     -    110C  115C okay
MB/P1          T_CORE          60C     -     -    110C  115C okay
PS0            FF_OT           -       -     -     -     -   okay
PS1            FF_OT           -       -     -     -     -   okay
------------------------------------------------------------------------
Voltage sensors:
------------------------------------------------------------------------
Location   Sensor        Voltage  Lo     LoWarn  HiWarn   Hi    Status
------------------------------------------------------------------------
MB         V_VTT          1.31V       -     1.17V   1.43V     -   okay
MB         V_GBE_+2V5     2.51V       -     2.25V   2.75V     -   okay
MB         V_GBE_CORE     1.21V       -     1.08V   1.32V     -   okay
MB         V_VCCTM        2.54V       -     2.25V   2.75V     -   okay
MB         V_+2V5         2.62V       -     2.34V   2.86V     -   okay
MB         V_+1V5         1.51V       -     1.35V   1.65V     -   okay
MB/BAT     V_BAT          3.00V       -     2.70V     -       -   okay
MB/P0      V_CORE         1.45V       -     1.26V   1.54V     -   okay
MB/P1      V_CORE         1.46V       -     1.26V   1.54V     -   okay
PS0        FF_UV            -         -       -       -       -   okay
PS0        FF_OV            -         -       -       -       -   okay
PS0        P_PWR            -         -       -       -       -   okay
PS1        FF_UV            -         -       -       -       -   okay
PS1        FF_OV            -         -       -       -       -   okay
PS1        P_PWR            -         -       -       -       -   okay
----------------------------------------------------------------------
Current sensors:
----------------------------------------------------------------------
Location   Sensor      Current    Lo     LoWarn  HiWarn   Hi    Status
----------------------------------------------------------------------
MB         FF_SCSI      -         -       -       -       -   okay
PS0        FF_OC        -         -       -       -       -   okay
PS1        FF_OC        -         -       -       -       -   okay
======== FRU Status =========
-------------------------
Fru Operational Status:
-------------------------
Location        Status   
-------------------------
MB/SC           okay
PS0             okay
HDD0            present
HDD1            present
PS1             okay
================================ HW Revisions ================================
ASIC Revisions:
---------------
pci: Rev 4
pci: Rev 4
pci: Rev 4
pci: Rev 4
System PROM revisions:
----------------------
OBP 4.22.11 2006/06/12 14:45 Sun Fire V210/V240,Netra 210/240
OBDIAG 4.22.11 2006/06/12 14:57  
------------------------------至此,升级OBP完成------------------------------
# cd /var/tmp
# ls
121683-01        121683-01.jar         
ALOM_1[1].5.5_fw.tar.gz
# rm 121683-01.jar
# rm -rf 121683-01
P.S.
升OBP有两种方法,这里采用的是较简单的方法,即在OS里直接运行升级脚本,还有一种方法是在ok状态下使用boot命令升级,比较麻烦,没有采用。
升ALOM也有两种方法,一种是这里采用的OS里运行scadm命令的方法,还有就是在sc下运行flashupdate命令升级。
升级过程中并没有碰到传说中的机器掉电等灾难性事件,运气较好

只要胆大心细,升级并不困难。


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/524/showart_165775.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP