О газотурбинных двигателях
ВТ (непрофильный форум) => Уголок SUNтехника, SF 4800 => Тема начата: случайность от 26 декабря 2019, 20:28:13
-
Обновление ПО сервера SUN Fire 4800
В моем сервер стоит очень уж старое ПО, и надо его обновить, самая последняя версия 5.21.1 Патч № 114528-02
Версии:
ScApp 5.21.1
Info 5.21.1
rtos V48 (not ECO released)
Понять бы что такое not ECO released
Просматривая прошивку я удивился что RTOS сделала не SUN а лицензирована. вот такой копирайт есть в прошивке Copyright 1984-1998 Wind River Systems, Inc.
-
Для обновления встроенного ПО сервера существует команда flashupdate
Эта команда предназначена для обновления прошивок системного контролера, процессорных плат, и модулей I/O
Синтаксис
flashupdate [-y|-n] -f url all | systemboards | scapp | rtos
flashupdate [-y|-n] -f url board [board . . . .]
flashupdate [-y|-n] -u
flashupdate [-y|-n] -c source_board destination_board [destination_board . . . .]
flashupdate -h
Опции и параметры
-h отображение справки по команде
-y не спрашивать для продолжения
-n не выполнять команду
-f указать URL к файлам прошивки
-с копирование прошивки из одной платы в другую
-u автоматическое обновление всех плат до наивысшей версии плат
all обновление прошивки текущего основного системного контролера, всех процессорных плат и модулей I/O и обновление системы реального времени (rtos) системного контроллера
systemboards все процессорные платы и модули I/O
scapp обновление основного системного контроллера. Если установлен резервный системный контроллер то обновление резервного истемного контроллера
rtos обновление операционной системы реального времени основного системного контроллера. Нсли устанволен резервный системный контроллер, то обновление резервного системного контроллера
URL используется адрес и путь к прошивке на FTP или HTTP сервере.
-
Итак я все же набрался смелости и решил попробовать обновиться. Просто такое настроение было. А то сколько можно смотреть? Прошивки есть. Сервер есть, что еще надо?
В итоге я прошил сервер, НО хочу сразу сказать. надо тщательно читать документацию. А не шашка наголо и в атаку. А то я не читая сразу ринулся в атаку. Но хорошо что все закончилось.
Что не получилось? не получилось залить прошивку с ftp сервера. Ни с находящегося в сети, на запущенного на локальной машине в виде WIN XP. Вечно что то не нравилось. Тогда решил попробовать закинуть прошивку на веб сервер. в качестве адреса сделал turbinium.com/upload/sun/ и вот тут уже получилось все отличненько. но тут меня ждал облом.
-
1. смотрим версии прошивок в сервере при помощи команды - showboard -p version -v
Component Segment Compatible In Date Time Build Version
--------- ------- ---------- -- ---- ---- ----- -------
SSC0/FP0 - - - - - - RTOS version: 47
SSC0/FP1 ScApp Reference 12 02/26/2008 13:20 1.0 5.20.9
SSC0/FP1 Ver - - 02/26/2008 13:20 1.0 5.20.9 Build_01
/N0/IB6/FP0 iPOST Yes 12 02/26/2008 13:16 1.0 5.20.9
/N0/IB6/FP0 Ver - - 02/26/2008 13:17 1.0 5.20.9 Build_01
/N0/IB8/FP0 iPOST Yes 12 02/26/2008 13:16 1.0 5.20.9
/N0/IB8/FP0 Ver - - 02/26/2008 13:17 1.0 5.20.9 Build_01
/N0/SB0/FP0 POST Yes 12 02/26/2008 13:13 1.0 5.20.9
/N0/SB0/FP0 OBP Yes 12 02/26/2008 13:11 1.0 5.20.9
/N0/SB0/FP0 Ver - - 02/26/2008 13:15 1.0 5.20.9 Build_01
/N0/SB0/FP1 POST Yes 12 02/26/2008 13:13 1.0 5.20.9
/N0/SB0/FP1 OBP Yes 12 02/26/2008 13:11 1.0 5.20.9
/N0/SB0/FP1 Ver - - 02/26/2008 13:15 1.0 5.20.9 Build_01
/N0/SB4/FP0 POST Yes 12 02/26/2008 13:13 1.0 5.20.9
/N0/SB4/FP0 OBP Yes 12 02/26/2008 13:11 1.0 5.20.9
/N0/SB4/FP0 Ver - - 02/26/2008 13:15 1.0 5.20.9 Build_01
/N0/SB4/FP1 POST Yes 12 02/26/2008 13:13 1.0 5.20.9
/N0/SB4/FP1 OBP Yes 12 02/26/2008 13:11 1.0 5.20.9
/N0/SB4/FP1 Ver - - 02/26/2008 13:15 1.0 5.20.9 Build_01
Как можно понять из лога что везде стоит прошивка 5.20.9 Версия RTOS 47
Надо прошивать.
-
2. смотрим что у нас в сервере с процессорами? вдруг кто то упер один. при помощиу команды - showboards -p cpu -v
Component Cpu Mask Description
--------- -------- -----------
/N0/SB0/P0 6.1 UltraSPARC-III+, 1200MHz, 8M ECache
/N0/SB0/P1 6.1 UltraSPARC-III+, 1200MHz, 8M ECache
/N0/SB0/P2 6.1 UltraSPARC-III+, 1200MHz, 8M ECache
/N0/SB0/P3 6.1 UltraSPARC-III+, 1200MHz, 8M ECache
/N0/SB4/P0 6.1 UltraSPARC-III+, 1200MHz, 8M ECache
/N0/SB4/P1 6.0 UltraSPARC-III+, 1200MHz, 8M ECache
/N0/SB4/P2 6.1 UltraSPARC-III+, 1200MHz, 8M ECache
/N0/SB4/P3 6.0 UltraSPARC-III+, 1200MHz, 8M ECache
Можно увидеть что два камешка постарее версия маски 6.0 Скорее всего жто процессора достаные из модулей Sun Blade 2000. Пересчитываем пальцем, 8 штук. не украли, Шутю
-
При помощи команды showboards смотрим статус плат. надо чтоб было все ок. not testet допускается я так понял, так как платы прошились.
Slot Pwr Component Type State Status Domain
---- --- -------------- ----- ------ ------
SSC0 On System Controller Main Passed -
SSC1 On Present Spare - -
ID0 On Sun Fire 4800 Centerplane - OK -
PS0 On A153 Power Supply - OK -
PS1 On A153 Power Supply - OK -
PS2 On A153 Power Supply - OK -
FT0 On Fan Tray Low Speed OK -
FT1 On Fan Tray Low Speed OK -
FT2 On Fan Tray Low Speed OK -
RP0 On Repeater Board - OK -
RP2 On Repeater Board - OK -
/N0/SB0 On CPU Board V2 Assigned Not tested A
/N0/SB4 On CPU Board V2 Assigned Not tested A
/N0/IB6 On PCI I/O Board Assigned Not tested A
/N0/IB8 On PCI I/O Board Assigned Not tested A
-
теперь можно прошиваться.
Я делал неправильно. Сначала надо шить резервный контроллер, потом основной. я начал с основного.
для прошивки используется вот такая командочка - flashupdate -f http://turbinium.com/upload/sun/ scapp rtos
файлы прошивки лежат по адресу http://turbinium.com/upload/sun/, и прошиваем в контроллере scapp и rtos
sf4800:SC>flashupdate -f http://turbinium.com/upload/sun/ scapp rtos
As part of this update, the system controller will automatically reboot.
RTOS will be upgraded automatically during the next boot.
ScApp will be upgraded automatically during the next boot.
Rebooting will interrupt any current operations.
This includes keyswitch changes, Solaris reboots
and all current connections.
Do you want to continue? [no] y
Waiting for critical processes to finish. This may take a while.
Critical processes have finished.
No boards can be updated.
Rebooting the SC to automatically complete the upgrade.
Rebooting. All network client connections closed. Reestablish any needed connections.
Dec 27 13:27:43 sf4800 Platform.SC: Stopping all services on this SC
Dec 27 13:27:44 sf4800 Platform.SC: All services on this SC have been stopped.
Software Reset...
@(#) SYSTEM CONTROLLER(SC) POST 47 2007/08/03 05:11
PSR = 0x044010e5
PCR = 0x04004000
Memory size = 32MB
обрезан лог загрузки системного контроллера
Системный контроллер успешно перегрузился и я увидел проблему почему тов доках на прошивку об этом не говориться, Хотя очевидная вещь, на плате системного контроллера перемычка J303 стоит в положении защиты от записи.
Flashupdate
ERROR: Flashprom is write protected!
Please install jumper J1303 on system controller.
Connecting to turbinium.com...
Connected to turbinium.com (195.208.1.105), port 80
Transferring sgsc.flash via HTTP: 6576290/6576290 = 100%
Validating ScApp flash image...
Updating flashprom sectors at address 0x36000000: 101/101 = 100%
ok
Copyright 2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Sun Fire System Firmware
RTOS version: 47
ScApp version: 5.21.1 Build_02
The RTOS revision is too old for this version of ScApp.
ScApp version 5.21.1 requires RTOS version 48 but RTOS version 47 is installed.
You will be prompted to enter a URL where ScApp and RTOS can be downloaded.
Enter URL : http://turbinium.com/upload/sun/
Rebooting the SC to automatically complete the upgrade.
Software Reset...
@(#) SYSTEM CONTROLLER(SC) POST 47 2007/08/03 05:11
PSR = 0x044010e5
дальше тоже самое в цикле
scapp в контроллер прошилось, а вот RTOS нет, так как стоит защита от записи, и системный контроллер ругался что в нес стоит старая вресия 47 а надо 48. Контроллер постоянно перегружался. Делать нечего, питание выкл, контроллер долой, и втыкаем перемычку J303, Контакты замкнуты значит защита от записи выключена. Контроллер на место, включаю сервер, не зная что меня ждет.
Контроллер разок сам перезагрузился и начался автоматически процесс прошивки
Flashupdate
Connecting to turbinium.com...
Connected to turbinium.com (195.208.1.105), port 80
Transferring sgrtos.flash via HTTP: 696128/696128 = 100%
Validating RTOS flash image...
Updating flashprom sectors at address 0x20000000: 11/11 = 100%
ok
Connecting to turbinium.com...
Connected to turbinium.com (195.208.1.105), port 80
Transferring sgsc.flash via HTTP: 6576290/6576290 = 100%
Validating ScApp flash image...
Updating flashprom sectors at address 0x36000000: 101/101 = 100%
ok
Software Reset...
@(#) SYSTEM CONTROLLER(SC) POST 48 2008/09/18 07:35
PSR = 0x044010e5
PCR = 0x04004000
Memory size = 32MB
В этот раз прошивка системного контроллера удалась. так что один стал новым,
-
после старта системы развалился failover так как версии прошивок системных контроллеров разные
Copyright 2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Sun Fire System Firmware
RTOS version: 48
ScApp version: 5.21.1 Build_02
SC POST diag level: min
The date is Friday, December 27, 2019, 1:47:57 PM PST.
sf4800 Platform.SC: Boot: ScApp 5.21.1, RTOS 48
sf4800 Platform.SC: SBBC Reset Reason(s): Power On Reset
sf4800 Platform.SC: Initializing the SC SRAM
sf4800 Platform.SC: Clock Source: 75MHz
sf4800 Platform.SC: Spare System Controller
sf4800 Platform.SC: Starting telnet server ...
sf4800 Platform.SC: SC Failover: enabled but not active.
System Controller 'sf4800':
Type 0 for Platform Shell
Input: sf4800 Platform.SC: SC Failover: This SC is running firmware version 5.21.1. The other SC is running older firmware version 5.20.9. Consider upgrading the other SC. Failover will run in compatibility mode.
sf4800 Platform.SC: SC Failover: the other SC has SC Failover disabled.
sf4800 Platform.SC: SC Failover: disabled
теперь можно прошить резервный системный контроллер. Для этого будет использована команда flashupdate -f http://turbinium.com/upload/sun/ scapp rtos
Важное дополнение, ключ all не работат с резервным системный контроллером
sf4800:sc> flashupdate -f http://turbinium.com/upload/sun scapp rtos
As part of this update, the system controller will automatically reboot.
RTOS will be upgraded automatically during the next boot.
ScApp will be upgraded automatically during the next boot.
Rebooting will interrupt any current operations.
This includes keyswitch changes, Solaris reboots
and all current connections.
Do you want to continue? [no] y
Waiting for critical processes to finish. This may take a while.
Critical processes have finished.
No boards can be updated.
Rebooting the SC to automatically complete the upgrade.
Rebooting. All network client connections closed. Reestablish any needed connections.
Software Reset...
.
.
.
POST Complete.
ERI Device Present
MAC address is 0:3:ba:7:ae:e7
Hostname: sf4800
Address: 192.168.1.7
Netmask: 255.255.255.0
Attached TCP/IP interface to eri unit 0
Attaching interface lo0...done
Gateway: 192.168.1.1
interrupt: 100 Mbps full duplex link up
Flashupdate
Connecting to turbinium.com...
Connected to turbinium.com (195.208.1.105), port 80
Transferring sgrtos.flash via HTTP: 696128/696128 = 100%
Validating RTOS flash image...
Updating flashprom sectors at address 0x20000000: 11/11 = 100%
ok
Connecting to turbinium.com...
Connected to turbinium.com (195.208.1.105), port 80
Transferring sgsc.flash via HTTP: 6576290/6576290 = 100%
Validating ScApp flash image...
Updating flashprom sectors at address 0x36000000: 101/101 = 100%
ok
Software Reset...
@(#) SYSTEM CONTROLLER(SC) POST 48 2008/09/18 07:35
PSR = 0x044010e5
PCR = 0x04004000
-
Ну все контроллеры прошиты. остались нетронутые только процессорные платы и модули I/O. для этого можно использовать параметр all. Перед этим сервер должен быть полностью включен при помощи команды poweron all
команда для обновления ПО вышлдяит так flashupdate -f http://turbinium.com/upload/sun/ all
sf4800:SC> flashupdate -f http://turbinium.com/upload/sun/ all
As part of this update, the system controller will automatically reboot.
RTOS will be upgraded automatically during the next boot.
ScApp will be upgraded automatically during the next boot.
After this update you must reboot each active domain that was upgraded.
Rebooting will interrupt any current operations.
This includes keyswitch changes, Solaris reboots
and all current connections.
Do you want to continue? [no] y
Waiting for critical processes to finish. This may take a while.
Critical processes have finished.
Retrieving: http://turbinium.com/upload/sun/sgcpu.flash
Validating ................... Done
Programming PROM /N0/SB0/FP0
Erasing .................. Done
Programming .................. Done
Verifying .................. Done
Programming PROM /N0/SB0/FP1
Erasing .................. Done
Programming .................. Done
Verifying .................. Done
Programming PROM /N0/SB4/FP0
Erasing .................. Done
Programming .................. Done
Verifying .................. Done
Programming PROM /N0/SB4/FP1
Erasing .................. Done
Programming .................. Done
Verifying .................. Done
Retrieving: http://turbinium.com/upload/sun/sgpci.flash
Validating ....... Done
Programming PROM /N0/IB6/FP0
Erasing ...... Done
Programming ...... Done
Verifying ...... Done
Programming PROM /N0/IB8/FP0
Erasing ...... Done
Programming ...... Done
Verifying ...... Done
Rebooting the SC to automatically complete the upgrade.
Rebooting. All network client connections closed. Reestablish any needed connections.
Dec 27 14:26:23 sf4800 Platform.SC: Stopping all services on this SC
Dec 27 14:26:23 sf4800 Platform.SC: All services on this SC have been stopped.
Software Reset...
@(#) SYSTEM CONTROLLER(SC) POST 48 2008/09/18 07:35
PSR = 0x044010e5
PCR = 0x04004000
Memory size = 32MB
.
.
.
Flashupdate
Connecting to turbinium.com...
Connected to turbinium.com (195.208.1.105), port 80
Transferring sgrtos.flash via HTTP: 696128/696128 = 100%
Validating RTOS flash image...
Updating flashprom sectors at address 0x20000000: 11/11 = 100%
ok
Connecting to turbinium.com...
Connected to turbinium.com (195.208.1.105), port 80
Transferring sgsc.flash via HTTP: 6576290/6576290 = 100%
Validating ScApp flash image...
Updating flashprom sectors at address 0x36000000: 101/101 = 100%
ok
Software Reset...
@(#) SYSTEM CONTROLLER(SC) POST 48 2008/09/18 07:35
PSR = 0x044010e5
PCR = 0x04004000
Memory size = 32MB
Проверяем что получилось
sf4800:SC> showboards -p version -v
Component Segment Compatible In Date Time Build Version
--------- ------- ---------- -- ---- ---- ----- -------
SSC0/FP0 - - - - - - RTOS version: 48
SSC0/FP1 ScApp Reference 12 11/20/2008 04:32 1.0 5.21.1
SSC0/FP1 Ver - - 11/20/2008 04:32 1.0 5.21.1 Build_02
/N0/IB6/FP0 iPOST Yes 12 11/20/2008 04:24 1.0 5.21.1
/N0/IB6/FP0 Ver - - 11/20/2008 04:27 1.0 5.21.1 Build_02
/N0/IB8/FP0 iPOST Yes 12 11/20/2008 04:24 1.0 5.21.1
/N0/IB8/FP0 Ver - - 11/20/2008 04:27 1.0 5.21.1 Build_02
/N0/SB0/FP0 POST Yes 12 11/20/2008 04:12 1.0 5.21.1
/N0/SB0/FP0 OBP Yes 12 11/20/2008 04:06 1.0 5.21.1
/N0/SB0/FP0 Ver - - 11/20/2008 04:19 1.0 5.21.1 Build_02
/N0/SB0/FP1 POST Yes 12 11/20/2008 04:12 1.0 5.21.1
/N0/SB0/FP1 OBP Yes 12 11/20/2008 04:06 1.0 5.21.1
/N0/SB0/FP1 Ver - - 11/20/2008 04:19 1.0 5.21.1 Build_02
/N0/SB4/FP0 POST Yes 12 11/20/2008 04:12 1.0 5.21.1
/N0/SB4/FP0 OBP Yes 12 11/20/2008 04:06 1.0 5.21.1
/N0/SB4/FP0 Ver - - 11/20/2008 04:19 1.0 5.21.1 Build_02
/N0/SB4/FP1 POST Yes 12 11/20/2008 04:12 1.0 5.21.1
/N0/SB4/FP1 OBP Yes 12 11/20/2008 04:06 1.0 5.21.1
/N0/SB4/FP1 Ver - - 11/20/2008 04:19 1.0 5.21.1 Build_02
Обновление ПО сервера успешно завершено. Установлена последняя версия.