fb-openbmc-qemu-0.6.3
amithash
tagged this
23 Aug 17:41
Summary: This adds firmware upgrade script to support ORv3 Delta PSU. Test Plan: Check current firmware version ``` root@bmc-oob:~# rackmoncli data --dev-addr 224 --reg-addr 48 Device Address: 0xe0 Device Type: orv3_psu CRC Errors: 0 timeouts: 0 Misc Errors: 0 Baudrate: 19200 Mode: active PSU FW Revision<0x0030> : "31322041" ``` Perform firmware upgrade: ``` root@bmc-oob:~# psu-update-delta-orv3.py --addr 224 ./V3_DFLASH_REV_01_00_01_04.dflash statusfile None Send get seed Got seed: 0e8dbde8 Send key Send key successful. Erasing flash... Erase successful Sending <128 byte segment @ 0x00000000> [0.08%] Sending chunk 1 of 1211... Sending <52224 byte segment @ 0x00000400> [33.77%] Sending chunk 409 of 1211... Sending <256 byte segment @ 0x0000d300> [33.94%] Sending chunk 411 of 1211... Sending <102144 byte segment @ 0x000c0000> [99.83%] Sending chunk 1209 of 1211... Sending <256 byte segment @ 0x000e6f00> [100.00%] Sending chunk 1211 of 1211... Verifying program... Verify of flash successful! Activating Image... Activate successful! ``` Check firmware version is updated: ``` root@bmc-oob:~# rackmoncli data --dev-addr 224 --reg-addr 48 Device Address: 0xe0 Device Type: orv3_psu CRC Errors: 0 timeouts: 0 Misc Errors: 0 Baudrate: 19200 Mode: active PSU FW Revision<0x0030> : "31252035" ``` Reviewed By: GoldenBug fbshipit-source-id: 2defa23faffec89c4bceceb4f8ccb5dd32b5b92b