Welcome to Rolland Town which Record fire's life.
« »
2008年07月20日代码生活

248 views

Sun OBP(OpenBootPROM) 升级实录

  OBP一般来说不需要升级,也是Sun不推荐的升级。实际上OBP就类似一般PC机的BIOS,只是设置什么的实际上比BIOS复杂很多。

  下面是整个升级过程,以及用到的命令,返回的结果。第一步当然是上传文件到服务器,这里就不说了。

==============================黄金分割线开始==============================

root@TEST # ls
802-3233-25.ps                   copyright
817-6957-10.pdf                  flash-update-SunFire880
Install.info                     unix.flash-update.README
LEGAL_LICENSE.TXT                unix.flash-update.SunFire880.sh
README.121685-03
root@TEST # cp -p flash-update-SunFire880 /flash-update-SunFire880
root@TEST # chmod 755 /flash-update-SunFire880
root@TEST # sync
root@TEST # sync
root@TEST # init 0
root@TEST # svc.startd: The system is coming down.  Please wait.
svc.startd: 94 system services are now being stopped.
Feb 29 14:49:23 TEST rpc.metad: Terminated
Feb 29 14:49:23 TEST syslogd: going down on signal 15
svc.startd: The system is down.
syncing file systems… done
Program terminated
{0} ok boot disk /flash-update-SunFire880

SC Alert: Host System has Reset
Probing system devices
Probing memory
Probing I/O buses
Probing system devices
Probing memory
Probing I/O buses

Sun Fire V880, No Keyboard
Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
OpenBoot 4.22.19, 4096 MB memory installed, Serial #76467844.
Ethernet address 0:14:4f:8e:ce:84, Host ID: 848ece84.

Rebooting with command: boot disk /flash-update-SunFire880           
Boot device: /pci@1f,700000/scsi@2/disk@0,0  File and args: /flash-update-SunFire880
-

Standalone Flash PROM Update Utility, Rev. 3.0
                        Ultra(tm) 1
                        Ultra(tm) 2
                        Ultra(tm) 5/10
                        Ultra(tm) 30
                        Ultra(tm) 60 / E220R / Netra T1120/1125
                        Ultra(tm) 80 / E420R / Netra T1400/1405
                        Ultra(tm) Enterprise(tm) 250
                        Ultra(tm) Enterprise(tm) 450
                        Sun Blade(tm) 100
                        Sun Blade(tm) 1000
                        Sun Blade(tm) 1500
                        Sun Blade(tm) 1500 (Silver)
                        Sun Blade(tm) 2500
                        Sun Blade(tm) 2500 (Silver)
                        Sun Fire ™ 280R
                        Sun Fire ™ 480R / Sun Fire V490
                        Sun Fire ™ 880 / Sun Fire V890
                        Netra(tm) T4
                        Sun Fire ™ V125
                        Sun Fire ™ V210/V240,Netra 240
                        Sun Fire ™ V215/V245
                        Sun Fire ™ V880, Netra 440
                        Sun Fire ™ V445
                        Sun Ultra(tm) 25/45 Workstation

This utility allows you to interactively update the firmware
revisions in specific system Flash PROM components.

Type h for help, q to quit, Return or Enter to continue:

Every precaution should be taken to prevent the loss of system
power during the Flash PROM programming process!

Type h for help, q to quit, Return or Enter to continue:

       Firmware Release(s)                Firmware Release(s)
 Currently Existing in the System      Available for Installation  /  Install?
———————————- ——————————————-
OBP 4.22.19 2006/09/06 23:42       OBP 4.22.33 2007/06/18 12:42         no
                                   POST 4.22.33 2007/06/18 13:04        no

Type sa if you wish to select all available firmware releases for
installation.  Type h for help, quit to exit, or cont to continue: sa

       Firmware Release(s)                Firmware Release(s)
 Currently Existing in the System      Available for Installation  /  Install?
———————————- ——————————————-
OBP 4.22.19 2006
/09/06 23:42       OBP 4.22.33 2007/06/18 12:42         YES
                                   POST 4.22.33 2007/06/18 13:04        YES

Type sa if you wish to select all available firmware releases for
installation.  Type h for help, quit to exit, or cont to continue: cont

The Flash programming process is about to begin.

Type h for help, q to quit, Return or Enter to continue:

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.

Programming was successful.

SC Alert: Host System has Reset

Configuring system memory & CPU(s)

Probing system devices
Probing memory
Probing I/O buses
Probing system devices
Probing memory
Probing I/O buses

Sun Fire V880, No Keyboard
Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
OpenBoot 4.22.33, 4096 MB memory installed, Serial #76467844.
Ethernet address 0:14:4f:8e:ce:84, Host ID: 848ece84.

                                                                     
{1} ok boot
Boot device: /pci@1f,700000/scsi@2/disk@0,0:a  File and args:
sc>
sc>
sc>
sc> console
Enter #. to return to ALOM.
Hardware watchdog enabled
Hostname: TEST
/dev/rdsk/c1t0d0s4 is clean

TEST console login: root
Password:
Last login: Fri Feb 29 13:39:03 on console
Feb 29 14:54:48 TEST login: ROOT LOGIN /dev/console
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
You have new mail.
Sourcing //.profile-EIS…..
root@TEST #
root@TEST #
root@TEST #
root@TEST #
root@TEST # TERM=vt100;export TERM
root@TEST # vi vfstab

~

~
:q!
root@TEST # vi /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c1t0d0s1       -       -       swap    -       no      -
/dev/dsk/c1t0d0s0       /dev/rdsk/c1t0d0s0      /       ufs     1       no
-
/dev/dsk/c1t0d0s3       /dev/rdsk/c1t0d0s3      /var    ufs     1       no
-
/dev/dsk/c1t0d0s4       /dev/rdsk/c1t0d0s4      /export/home    ufs     2
yes     -
/devices        -       /devices        devfs   -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
objfs   -       /system/object  objfs   -       no      -
swap    -       /tmp    tmpfs   -       yes     -
~
~
~
~
~
~
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c1t0d0s1       -       -       swap    -       no      -
/dev/dsk/c1t0d0s0       /dev/rdsk/c1t0d0s0      /       ufs     1       no
-
/dev/dsk/c1t0d0s3       /dev/rdsk/c1t0d0s3      /var    ufs     1       no
-
/dev/dsk/c1t0d0s4       /dev/rdsk/c1t0d0s4      /export/home    ufs     2
yes     -
/devices        -       /devices        devfs   -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
/dev/dsk/c1t0d0s4       /dev/rdsk/c1t0d0s4      /export/home    ufs     2
yes     -
/dev/dsk/c1t0d0s4       /dev/rdsk/c1t0d0s4      /export/home    ufs     2

/dev/md/dsk//dev/rdsk/c1t0d0s4  /export/home  &nb
sp; ufs     2       yes     -

/dev/md/dsk/d/dev/rdsk/c1t0d0s4 /export/home    ufs     2       yes     -
/dev/md/dsk/d/dev/rdsk/c1t0d0s4 /export//export/home    ufs     2       yes
/dev/md/dsk/d10 /dev/md/rdsk//export/home       ufs     2       yes     -

/dev/md/dsk/d10 /dev/md/rdsk/d10/export/home    ufs     2       yes     -
/dev/md/dsk/d10 /dev/md/rdsk/d10/export/home    ufs     ufs     2       yes
"/etc/vfstab" 14 lines, 535 characters
root@TEST # vi /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c1t0d0s1       -       -       swap    -       no      -
/dev/dsk/c1t0d0s0       /dev/rdsk/c1t0d0s0      /       ufs     1       no
-
/dev/dsk/c1t0d0s3       /dev/rdsk/c1t0d0s3      /var    ufs     1       no
-
/dev/dsk/c1t0d0s4       /dev/rdsk/c1t0d0s4      /export/home    ufs     2
yes     -
/dev/md/dsk/d10 /dev/md/rdsk/d10        /export/home    ufs     2       yes
-
/devices        -       /devices        devfs   -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
objfs   -       /system/object  objfs   -       no      -
swap    -       /tmp    tmpfs   -       yes     -
~
~
~
~
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c1t0d0s1       -       -       swap    -       no      -
/dev/dsk/c1t0d0s0       /dev/rdsk/c1t0d0s0      /       ufs     1       no
-
/dev/dsk/c1t0d0s3       /dev/rdsk/c1t0d0s3      /var    ufs     1       no
-
/dev/dsk/c1t0d0s4       /dev/rdsk/c1t0d0s4      /export/home    ufs     2
yes     -
/dev/md/dsk/d10 /dev/md/rdsk/d10        /export/home    ufs     2       yes
-
/devices        -       /devices        devfs   -       no      -
/dev/dsk/c1t0d0s4       /dev/rdsk/c1t0d0s4      /export/home    ufs     2
yes     -
/dev/md/dsk/d10 /dev/md/rdsk/d10        /t/home ufs     2       yes     -
"/etc/vfstab" 14 lines, 535 characters
"/etc/vfstab" 14 lines, 528 characters
root@TEST # mount /data
root@TEST # df -k
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/dsk/c1t0d0s0    15127779 3957334 11019168    27%    /
/devices                   0       0       0     0%    /devices
ctfs                       0       0       0     0%    /system/contract
proc                       0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
swap                 11665296    1384 11663912     1%    /etc/svc/volatile
objfs                      0  &
nbsp;    0       0     0%    /system/object
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
                     15127779 3957334 11019168    27%    /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
                     15127779 3957334 11019168    27%    /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd                         0       0       0     0%    /dev/fd
/dev/dsk/c1t0d0s3    15127779  805304 14171198     6%    /var
swap                 11663960      48 11663912     1%    /tmp
swap                 11663960      48 11663912     1%    /var/run
/dev/dsk/c1t0d0s4    31969629 1602751 30047182     6%    /export/home
/vol/dev/dsk/c0t0d0/eis-dvd
                     5835488 5835488       0   100%    /cdrom/eis-dvd
/dev/md/dsk/d10      210656460   65553 208484343     1%    /data
root@TEST #
root@TEST #
root@TEST #
root@TEST # ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
ce0: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 2
        inet 95.6.13.80 netmask ffffff00 broadcast 95.6.13.255
        ether 0:14:4f:8e:ce:84
root@TEST # netstat 0rn
netstat: extra arguments
usage: netstat [-anv] [-f address_family]
       netstat [-n] [-f address_family] [-P protocol] [-g | -p | -s [interval [count]]]
       netstat -m [-v] [interval [count]]
       netstat -i [-I interface] [-an] [-f address_family] [interval [count]]
       netstat -r [-anv] [-f address_family|filter]
       netstat -M [-ns] [-f address_family]
       netstat -D [-I interface] [-f address_family]
root@TEST # netstat -rn

Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface
——————– ——————– —– —– ———- ———
default              95.6.13.254          UG        1          0          
95.6.13.0            95.6.13.80           U         1          0 ce0      
224.0.0.0            95.6.13.80           U         1          0 ce0      
127.0.0.1            127.0.0.1            UH        5        108 lo0      
root@TEST #
root@TEST #
root@TEST #
root@TEST # ^C     
root@TEST #
root@TEST # pwd
/
root@TEST # exit

TEST console login: #>
Password:
Login incorrect
TEST console login: root
Password:
Last login: Fri Feb 29 14:54:47 on console
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
You have new mail.
Sourcing //.profile-EIS…..
root@TEST # sc>
sc>
sc> showsrc
Invalid command.  Type ‘help’ for list of commands.
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]
dumpconfig [-t] -s <IPaddr> -f <pathname>
showlogs [-b lines|-e lines] [-g lines] [-v]
setlocator [on|off]
showlocator
showenvironment
setfru -c <Customer data>
showfru  [-g lines] [-s|-d] [FRU]
showplatform [-v]
showsc [-v] [param]
shownetwork [-v]
setsc [-r [y]] [param] [value]
ssh-keygen {-l|-r} -t {rsa|dsa}
restartssh [-y]
setupsc
showdate
setdate [[mmdd]HHMM | mmddHHMM[cc]yy][.SS]
resetsc [-y]
restoreconfig [-t] [-x] [-y] -s <IPaddr> -f <pathname>
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> showsc
Advanced Lights Out Manager v1.6.3

parameter                value
———                —–
if_network               true
if_modem                 false
if_connection            telnet
if_emailalerts           false
sys_autorestart          xir
sys_bootrestart          none
sys_bootfailrecovery     none
sys_maxbootfail          3
sys_xirtimeout           900
sys_boottimeout          900
sys_wdttimeout           60
netsc_tpelinktest        true
netsc_dhcp               false
netsc_ipaddr         &
nbsp;   192.168.1.11
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             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:14:4f:8e:ce:8d
sys_hostname             TEST
sys_enetaddr             00:14:4f:8e:ce:84
sc> showlocator
Locator led is OFF
sc> consol
Invalid command.  Type ‘help’ for list of commands.
sc> exit
Invalid command.  Type ‘help’ for list of commands.
sc>
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]
dumpconfig [-t] -s <IPaddr> -f <pathname>
showlogs [-b lines|-e lines] [-g lines] [-v]
setlocator [on|off]
showlocator
showenvironment
setfru -c <Customer data>
showfru  [-g lines] [-s|-d] [FRU]
showplatform [-v]
showsc [-v] [param]
shownetwork [-v]
setsc [-r [y]] [param] [value]
ssh-keygen {-l|-r} -t {rsa|dsa}
restartssh [-y]
setupsc
showdate
setdate [[mmdd]HHMM | mmddHHMM[cc]yy][.SS]
resetsc [-y]
restoreconfig [-t] [-x] [-y] -s <IPaddr> -f <pathname>
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> consol -f
Invalid command.  Type ‘help’ for list of commands.
sc> console -f
Enter #. to return to ALOM.

root@TEST # exit
==============================黄金分割线结束==============================

  最后,感谢Sun成办的两位年青的工程师大力协助。

  再次再次强调,别像刷BIOS一样随便升级OBP。升级顺利完成倒不说了,关键是如果升级后导致硬件无法识别就很麻烦。延伸阅读——“Sun OBP命令总结”(自己Google吧)

版权声明 »

可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明
本文url:http://netfire.name/archives/20080720/303.html

日志信息 »

该日志于2008-07-20 20:05由 NetFire 发表在代码生活分类下, 评论已关闭。

AdSense »

1条评论

  1. Estyle 说:

    韩哥,帮忙把给我的链接改到www.estyle.com.cn上嘛!
    拜托拜托拜托拜托拜托拜托拜托拜托!

    NetFire 于 2008-7-27 14:05:32 回复

    好的,没问题

抱歉,评论被关闭

返回顶部