History log of /openbmc/phosphor-ipmi-flash/tools/ (Results 76 – 100 of 163)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
84778b8d26-Jun-2019 Patrick Venture <venture@google.com>

tools: remove phosphor-ipmi-blobs dependency

The host tool depended on the BMC header: firmware_handler.hpp because
it defined the flags. This header depends on phosphor-ipmi-blobs,
therefore the h

tools: remove phosphor-ipmi-blobs dependency

The host tool depended on the BMC header: firmware_handler.hpp because
it defined the flags. This header depends on phosphor-ipmi-blobs,
therefore the host-tool depends on this. Move the flags into a separate
common header file and snip this dependency.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Id2ad33a1611c02605a1ed5c695429d0451eb98d4

show more ...


/openbmc/phosphor-ipmi-flash/bmc/firmware_handler.cpp
/openbmc/phosphor-ipmi-flash/bmc/firmware_handler.hpp
/openbmc/phosphor-ipmi-flash/bmc/main.cpp
/openbmc/phosphor-ipmi-flash/bmc/pci_handler.cpp
/openbmc/phosphor-ipmi-flash/bmc/pci_handler.hpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_canhandle_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_close_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_commit_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_createhandler_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_handler_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_sessionstat_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_stat_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_state_notyetstarted_tarball_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_state_notyetstarted_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_state_updatecompleted_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_state_updatepending_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_state_updatestarted_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_state_uploadinprogress_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_state_verificationcompleted_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_state_verificationpending_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_state_verificationstarted_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_unittest.hpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_write_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_writemeta_unittest.cpp
/openbmc/phosphor-ipmi-flash/configure.ac
/openbmc/phosphor-ipmi-flash/data.hpp
/openbmc/phosphor-ipmi-flash/flags.hpp
Makefile.am
bt.hpp
handler.cpp
interface.hpp
lpc.cpp
lpc.hpp
p2a.cpp
p2a.hpp
test/Makefile.am
test/data_interface_mock.hpp
test/tools_updater_unittest.cpp
updater.cpp
f0c71df226-Jun-2019 Patrick Venture <venture@google.com>

move bmc code into bmc folder

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I2407359461a1a2f0e733ff8cd0cb1744b6304c32


/openbmc/phosphor-ipmi-flash/Makefile.am
/openbmc/phosphor-ipmi-flash/bmc/Makefile.am
/openbmc/phosphor-ipmi-flash/bmc/data_handler.hpp
/openbmc/phosphor-ipmi-flash/bmc/file_handler.cpp
/openbmc/phosphor-ipmi-flash/bmc/file_handler.hpp
/openbmc/phosphor-ipmi-flash/bmc/firmware_handler.cpp
/openbmc/phosphor-ipmi-flash/bmc/firmware_handler.hpp
/openbmc/phosphor-ipmi-flash/bmc/image_handler.hpp
/openbmc/phosphor-ipmi-flash/bmc/lpc_aspeed.cpp
/openbmc/phosphor-ipmi-flash/bmc/lpc_aspeed.hpp
/openbmc/phosphor-ipmi-flash/bmc/lpc_handler.cpp
/openbmc/phosphor-ipmi-flash/bmc/lpc_handler.hpp
/openbmc/phosphor-ipmi-flash/bmc/lpc_nuvoton.cpp
/openbmc/phosphor-ipmi-flash/bmc/lpc_nuvoton.hpp
/openbmc/phosphor-ipmi-flash/bmc/main.cpp
/openbmc/phosphor-ipmi-flash/bmc/mapper_errors.hpp
/openbmc/phosphor-ipmi-flash/bmc/pci_handler.cpp
/openbmc/phosphor-ipmi-flash/bmc/pci_handler.hpp
/openbmc/phosphor-ipmi-flash/bmc/prepare_systemd.cpp
/openbmc/phosphor-ipmi-flash/bmc/prepare_systemd.hpp
/openbmc/phosphor-ipmi-flash/bmc/test/Makefile.am
/openbmc/phosphor-ipmi-flash/bmc/test/crc_mock.hpp
/openbmc/phosphor-ipmi-flash/bmc/test/data_mock.hpp
/openbmc/phosphor-ipmi-flash/bmc/test/file_handler_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_canhandle_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_close_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_commit_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_createhandler_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_handler_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_sessionstat_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_stat_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_state_notyetstarted_tarball_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_state_notyetstarted_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_state_updatecompleted_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_state_updatepending_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_state_updatestarted_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_state_uploadinprogress_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_state_verificationcompleted_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_state_verificationpending_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_state_verificationstarted_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_unittest.hpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_write_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/firmware_writemeta_unittest.cpp
/openbmc/phosphor-ipmi-flash/bmc/test/image_mock.hpp
/openbmc/phosphor-ipmi-flash/bmc/test/triggerable_mock.hpp
/openbmc/phosphor-ipmi-flash/bmc/test/window_mapper_mock.hpp
/openbmc/phosphor-ipmi-flash/bmc/update_systemd.cpp
/openbmc/phosphor-ipmi-flash/bmc/update_systemd.hpp
/openbmc/phosphor-ipmi-flash/bmc/verify_systemd.cpp
/openbmc/phosphor-ipmi-flash/bmc/verify_systemd.hpp
/openbmc/phosphor-ipmi-flash/bmc/window_hw_interface.hpp
/openbmc/phosphor-ipmi-flash/configure.ac
Makefile.am
test/Makefile.am
7c79b25224-Jun-2019 Patrick Venture <venture@google.com>

tools: implement lpc support

Tested: Verified this works for a Nuvoton BMC.

EXTRA_OECONF_append_xxx = " \
--enable-static-layout \
--enable-lpc-bridge \
--enable-nuvoton-lpc \
--enable-rebo

tools: implement lpc support

Tested: Verified this works for a Nuvoton BMC.

EXTRA_OECONF_append_xxx = " \
--enable-static-layout \
--enable-lpc-bridge \
--enable-nuvoton-lpc \
--enable-reboot-update \
MAPPED_ADDRESS=0xc0008000 \
"

/tmp/phosphor_ipmi_flash_tool \
--command update \
--interface ipmilpc \
--image image-bmc \
--sig image-bmc.sig \
--type static \
--address 0xfedc1000 \
--length 0x1000
Sending over the firmware image.
trying to open blob
sending writeMeta
caught exception
EFBIG returned!
sending writeMeta
writemeta sent
Sending over the hash file.
trying to open blob
sending writeMeta
caught exception
EFBIG returned!
sending writeMeta
writemeta sent
Opening the verification file
Committing to /flash/verify to trigger service
Calling stat on /flash/verify session to check status
other
success
Returned success
succeeded
Opening the update file
Committing to /flash/update to trigger service
Calling stat on /flash/update session to check status
running
Opening the cleanup blob
Exception received: blob exception received: Received IPMI_CC: 255

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: If866303e95e9b6a19dc8b20a99bb89fd66f95eeb

show more ...

9f937c4521-Jun-2019 Patrick Venture <venture@google.com>

tools: add support for ubi tarball from host

Add a parameter that specifies the layout type, static or ubitar.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I86c09d8ffeb55ba789279d

tools: add support for ubi tarball from host

Add a parameter that specifies the layout type, static or ubitar.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I86c09d8ffeb55ba789279d2568b579a44b3923d7

show more ...

de73c3b720-Jun-2019 Patrick Venture <venture@google.com>

tools: bugfix: add missing close after failure

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Id873c41997e2617d1fa3db5767112c23d77c487c

01123b2a20-Jun-2019 Patrick Venture <venture@google.com>

tools: split out the update handler

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I367ea961c98ec822d3200d101c4f5977d77e7402

03db87e420-Jun-2019 Patrick Venture <venture@google.com>

tools: specify parameter size limits for LPC

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ic7049ffc2a3c4e7dad3356e11f48f6e5ed8eeca1

5f2fcc4e20-Jun-2019 Patrick Venture <venture@google.com>

tools: add cleanup blob on failure

If the update process fails, call the cleanup blob and try to cleanup
artifacts automatically.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ib57

tools: add cleanup blob on failure

If the update process fails, call the cleanup blob and try to cleanup
artifacts automatically.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ib57e5cc7f13b73e2d7371116058469a4d4bfd0c4

show more ...

8104a52519-Jun-2019 Patrick Venture <venture@google.com>

tool: LPC data handler needs an address and length

The host needs to have memory set aside for this purpose, and this
enables the caller to provide those values.

Signed-off-by: Patrick Venture <ven

tool: LPC data handler needs an address and length

The host needs to have memory set aside for this purpose, and this
enables the caller to provide those values.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: If40ec3b08bd1932cba91d3f770c7fde6f280463d

show more ...

1f09d41419-Jun-2019 Patrick Venture <venture@google.com>

tool: continue the unit-tests of the host tool

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I51349fc103af2a55f1b83830bf8e74407fc15b9e

380832cc19-Jun-2019 Patrick Venture <venture@google.com>

test: cleanup by moving tool tests into subfolder

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I15b3514d095d9fc770a1b0fe125eb48d96ada2c8


/openbmc/phosphor-ipmi-flash/Makefile.am
/openbmc/phosphor-ipmi-flash/cleanup/Makefile.am
/openbmc/phosphor-ipmi-flash/cleanup/cleanup.cpp
/openbmc/phosphor-ipmi-flash/cleanup/cleanup.hpp
/openbmc/phosphor-ipmi-flash/cleanup/fs.cpp
/openbmc/phosphor-ipmi-flash/cleanup/fs.hpp
/openbmc/phosphor-ipmi-flash/cleanup/main.cpp
/openbmc/phosphor-ipmi-flash/cleanup/test/Makefile.am
/openbmc/phosphor-ipmi-flash/cleanup/test/cleanup_handler_unittest.cpp
/openbmc/phosphor-ipmi-flash/cleanup/test/filesystem_mock.hpp
/openbmc/phosphor-ipmi-flash/configure.ac
/openbmc/phosphor-ipmi-flash/firmware_handler.cpp
/openbmc/phosphor-ipmi-flash/firmware_handler.hpp
/openbmc/phosphor-ipmi-flash/ipmi_flash.md
/openbmc/phosphor-ipmi-flash/main.cpp
/openbmc/phosphor-ipmi-flash/test/Makefile.am
/openbmc/phosphor-ipmi-flash/test/firmware_state_notyetstarted_tarball_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_state_notyetstarted_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_state_updatecompleted_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_state_updatepending_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_state_updatestarted_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_state_uploadinprogress_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_state_verificationcompleted_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_state_verificationpending_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_state_verificationstarted_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_unittest.hpp
Makefile.am
test/Makefile.am
test/data_interface_mock.hpp
test/internal_sys_mock.hpp
test/io_mock.hpp
test/tools_bt_unittest.cpp
test/tools_lpc_unittest.cpp
test/tools_updater_unittest.cpp
test/updater_mock.hpp
/openbmc/phosphor-ipmi-flash/util.cpp
/openbmc/phosphor-ipmi-flash/util.hpp
f6ea2e8312-Jun-2019 Patrick Venture <venture@google.com>

tools: update status debug message

Update the verification commit status debug message to not specify that
it's the verification blob specifically as this method is used for both
verification and up

tools: update status debug message

Update the verification commit status debug message to not specify that
it's the verification blob specifically as this method is used for both
verification and update.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I0ee89a5e8f7eae2533ab89db12032b33d1c25ec1

show more ...

14713bec05-Jun-2019 Patrick Venture <venture@google.com>

tools: open and commit() on updateBlobId

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Id4d531e2ea2d755aa310261966254419d78dccdb


/openbmc/phosphor-ipmi-flash/firmware_handler.cpp
/openbmc/phosphor-ipmi-flash/firmware_handler.hpp
/openbmc/phosphor-ipmi-flash/main.cpp
/openbmc/phosphor-ipmi-flash/status.hpp
/openbmc/phosphor-ipmi-flash/test/firmware_canhandle_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_close_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_commit_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_createhandler_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_delete_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_handler_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_open_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_sessionstat_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_stat_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_state_updatecompleted_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_state_updatepending_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_state_updatestarted_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_state_verificationcompleted_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_state_verificationpending_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_unittest.hpp
/openbmc/phosphor-ipmi-flash/test/firmware_write_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_writemeta_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/triggerable_mock.hpp
updater.cpp
updater.hpp
/openbmc/phosphor-ipmi-flash/update_systemd.cpp
/openbmc/phosphor-ipmi-flash/update_systemd.hpp
/openbmc/phosphor-ipmi-flash/verify_systemd.cpp
/openbmc/phosphor-ipmi-flash/verify_systemd.hpp
da66fd8403-Jun-2019 Patrick Venture <venture@google.com>

merge Verification and Update statuses

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ibb9c1c9f9cb7e9cda18f4e8dddb31d57a12f0d90

c674474c28-May-2019 Patrick Venture <venture@google.com>

tools: updater: cppcheck fixups

The scope of the variable 'commandAttempts' can be reduced.
The scope of the variable 'attempts' can be reduced.
The scope of the variable 'exitLoop' can be reduced.

tools: updater: cppcheck fixups

The scope of the variable 'commandAttempts' can be reduced.
The scope of the variable 'attempts' can be reduced.
The scope of the variable 'exitLoop' can be reduced.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ib2e258c1af7110ff4568695b8f1ea877a9ffef99

show more ...

6352804620-May-2019 Patrick Venture <venture@google.com>

tools: scope of the variable 'bytesRead' can be reduced.

(style) The scope of the variable 'bytesRead' can be reduced.
[tools/bt.cpp:21]
[tools/p2a.cpp:111]

Signed-off-by: Patrick Venture <venture@

tools: scope of the variable 'bytesRead' can be reduced.

(style) The scope of the variable 'bytesRead' can be reduced.
[tools/bt.cpp:21]
[tools/p2a.cpp:111]

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I6b96247a02cd35d073b424501bb161e80aedf3b4

show more ...

1d5a31c920-May-2019 Patrick Venture <venture@google.com>

bmc: move away from blobs namespace

The blobs namespace is really owned by phosphor-ipmi-blobs. Move all
phosphor-ipmi-flash objects into ipmi_flash namespace.

Signed-off-by: Patrick Venture <vent

bmc: move away from blobs namespace

The blobs namespace is really owned by phosphor-ipmi-blobs. Move all
phosphor-ipmi-flash objects into ipmi_flash namespace.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I51b721ad4f3cdc4cc43846c942967ed2e5f16589

show more ...


/openbmc/phosphor-ipmi-flash/Makefile.am
/openbmc/phosphor-ipmi-flash/data_handler.hpp
/openbmc/phosphor-ipmi-flash/file_handler.cpp
/openbmc/phosphor-ipmi-flash/file_handler.hpp
/openbmc/phosphor-ipmi-flash/firmware_handler.cpp
/openbmc/phosphor-ipmi-flash/firmware_handler.hpp
/openbmc/phosphor-ipmi-flash/image_handler.hpp
/openbmc/phosphor-ipmi-flash/lpc_aspeed.cpp
/openbmc/phosphor-ipmi-flash/lpc_aspeed.hpp
/openbmc/phosphor-ipmi-flash/lpc_handler.cpp
/openbmc/phosphor-ipmi-flash/lpc_handler.hpp
/openbmc/phosphor-ipmi-flash/lpc_nuvoton.cpp
/openbmc/phosphor-ipmi-flash/lpc_nuvoton.hpp
/openbmc/phosphor-ipmi-flash/main.cpp
/openbmc/phosphor-ipmi-flash/pci_handler.cpp
/openbmc/phosphor-ipmi-flash/pci_handler.hpp
/openbmc/phosphor-ipmi-flash/status.hpp
/openbmc/phosphor-ipmi-flash/test/data_interface_mock.hpp
/openbmc/phosphor-ipmi-flash/test/data_mock.hpp
/openbmc/phosphor-ipmi-flash/test/file_handler_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_canhandle_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_close_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_commit_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_createhandler_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_delete_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_handler_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_open_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_sessionstat_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_stat_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_unittest.hpp
/openbmc/phosphor-ipmi-flash/test/firmware_write_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/firmware_writemeta_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/image_mock.hpp
/openbmc/phosphor-ipmi-flash/test/tools_updater_unittest.cpp
/openbmc/phosphor-ipmi-flash/test/verification_mock.hpp
/openbmc/phosphor-ipmi-flash/test/window_mapper_mock.hpp
bt.hpp
interface.hpp
lpc.hpp
p2a.cpp
p2a.hpp
updater.cpp
/openbmc/phosphor-ipmi-flash/util.cpp
/openbmc/phosphor-ipmi-flash/util.hpp
/openbmc/phosphor-ipmi-flash/verify.hpp
/openbmc/phosphor-ipmi-flash/verify_systemd.cpp
/openbmc/phosphor-ipmi-flash/verify_systemd.hpp
/openbmc/phosphor-ipmi-flash/window_hw_interface.hpp
3ecb350317-May-2019 Patrick Venture <venture@google.com>

bmc: enable configuration of all verification

Enable verification configuration beyond the result file check. This
patchset allows a developer to provide their own verification mechanisms
by implem

bmc: enable configuration of all verification

Enable verification configuration beyond the result file check. This
patchset allows a developer to provide their own verification mechanisms
by implementing an interface and adding configuration to enable using
their custom version.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Iba5d4be75bb49d9c4ab84be8578f0306c15b5be9

show more ...

7dad86fd17-May-2019 Patrick Venture <venture@google.com>

util: create util object for bmc and tool

Create a common util object for the BMC library and host tool. Place in
blobs namespace favoring BMC.

Signed-off-by: Patrick Venture <venture@google.com>

util: create util object for bmc and tool

Create a common util object for the BMC library and host tool. Place in
blobs namespace favoring BMC.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I036fd65d924c65fcfa71aba5cd76275a2941ff14

show more ...

55646dec16-May-2019 Patrick Venture <venture@google.com>

tools: add update handler

Add an UpdateHandler to handle each step of the update process.

This code was already in place but is now handled via an UpdateHandler
object.

Tested: Not yet tested.
Sig

tools: add update handler

Add an UpdateHandler to handle each step of the update process.

This code was already in place but is now handled via an UpdateHandler
object.

Tested: Not yet tested.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I36cd1b94d8e2c0788d09805d935738d86e6e33de

show more ...

bc841be916-May-2019 Patrick Venture <venture@google.com>

tools: drop extraneous return statemen

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I2a12b61b63ec1e0d54fffae07431c145b988ad7f

d61b0ff815-May-2019 Patrick Venture <venture@google.com>

tools: implement firmware verification polling

The verification process is asynchronous, therefore poll the BMC
firmware state.

Tested: Verified it behaves as intended, before moving it into a
sub-

tools: implement firmware verification polling

The verification process is asynchronous, therefore poll the BMC
firmware state.

Tested: Verified it behaves as intended, before moving it into a
sub-routine:

Opening the verification file
Committing to verification file to trigger verification service
Calling stat on verification session to check status
stat received:
blob_state: 0x206
size: 0x0
metadata(1): 0x3
other
stat received:
blob_state: 0x206
size: 0x0
metadata(1): 0x0
running
stat received:
blob_state: 0x206
size: 0x0
metadata(1): 0x0
running
stat received:
blob_state: 0x206
size: 0x0
metadata(1): 0x1
success
stat received:
blob_state: 0x206
size: 0x0
metadata(1): 0x1
success

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I3cb13d1a966c2c833fd4fee5654332f34e80355a

show more ...

7dcca5dd15-May-2019 Patrick Venture <venture@google.com>

tools: trigger verification

Trigger verification via committing to the verify blob id.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ia3722ff144ba268cd554bac0fda06f0c426edd88

213f2db615-May-2019 Patrick Venture <venture@google.com>

tools: io: fix printf portability

The printfs were using actual sizes instead of leveraging %z to deal
with std::size_t.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I7ac731b0458d

tools: io: fix printf portability

The printfs were using actual sizes instead of leveraging %z to deal
with std::size_t.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I7ac731b0458d9501762651bdc9d796f7a6ada620

show more ...

46e6949115-May-2019 Patrick Venture <venture@google.com>

bugfix: tools: use pci member

Tool worked by declaring its own pci utility object instead of using the
one provided. There are not yet unit-tests associated with the
P2aDataHandler that would have

bugfix: tools: use pci member

Tool worked by declaring its own pci utility object instead of using the
one provided. There are not yet unit-tests associated with the
P2aDataHandler that would have caught this.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I62cdeb17d298f1db51d8f513c59bfd299fc2884a

show more ...

1234567