summaryrefslogtreecommitdiffstats
path: root/tools/updater.hpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-11-02 09:48:15 -0700
committerPatrick Venture <venture@google.com>2018-11-02 11:22:57 -0700
commit971899af77a9da487e7fa520f81e1b239aae767d (patch)
tree76aa928dabb1ab6b7a7aa010d94bb7fc56f11e4e /tools/updater.hpp
parent001aba13a0306bb29ef0dae8ebcb4b4d63abbcd7 (diff)
downloadphosphor-ipmi-flash-971899af77a9da487e7fa520f81e1b239aae767d.tar.gz
phosphor-ipmi-flash-971899af77a9da487e7fa520f81e1b239aae767d.zip
Revert original implementation in favor of blob-based approach
Revert original implementation of the in-band firmware update to pivot to using a blob-based implementation. Blob-based design is under review here: https://gerrit.openbmc-project.xyz/14444 Revert "tools: starting burn_my_bmc host utility" This reverts commit 7dc4670d4be4884e0c6486ca4f0e799116935096. Revert "phosphor-ipmi-flash: main: move to iana header" This reverts commit e39f2b3a9a19b8e788a7225a0d291716325b77ee. Revert "update clang-format" This reverts commit 1aedab2391cd883e95ebde0129fcaf88d7f16233. Revert "Build as c++17" This reverts commit 004fb909202e39b34cb72d31390facd525b04c9b. Revert "clang-format: always break template declarations" This reverts commit ff0ee70f0fb8e0c2173f826f4d96fbfced09ca14. Revert "clang-format-6.0 bump fixes" This reverts commit 8f378c927a5789f30ba625595153bc1422d511dc. Revert "flash-ipmi: implement flashAbort" This reverts commit 605f75f7c026b5c2f454de155f6f211b2c3b187f. Revert "flash-ipmi: implement flashDataVerify" This reverts commit 9c6baad43fe7d1db8e449766eed35865ce6a2e4b. Revert "flash-ipmi: implement flashVerifyCheck" This reverts commit 7fc66de0d5465f4d25033d6baf48b6489f843331. Revert "ipmi: start implementing flashVerifyCheck" This reverts commit fdc65b2524bee544d35a6e2cbeef4c2f68aeb8fd. Revert "flash-ipmi: implement flashHashFinish" This reverts commit d5f590f955a67715e7903a04c3a8028f1d4f2664. Revert "flash-ipmi: implement flashHashData" This reverts commit cbe51498953d7bd29f516cdfcdb654706b463d2e. Revert "flash-ipmi: implement flashStartHash" This reverts commit 6f17bd2220d723fd349077ccd96845a5652403e0. Revert "flash-ipmi: implement flashDataFinish" This reverts commit 57703664cd76c2744adf4c5fa504388909efa824. Revert "flash-ipmi: implement flashDataBlock" This reverts commit 3c086f2f649d1c4cc7926cbd9375a39dd23e6997. Revert "update copyright year" This reverts commit 514f648b76c1a855a356e5a4ca83fd5bf6c53b3f. Revert "flash-ipmi: implement flashStartTransfer" This reverts commit 8ec019fdc15cb021f2c7d4cefb85a8ccd3581159. Revert "ipmi: start implementing flashAbort" This reverts commit 5c251ca550f56722280dcf17b8c48832ace07142. Revert "ipmi: start implementing flashDataVerify" This reverts commit 1cb87d25f79cfb905611b81348fbccb362f5e29a. Revert "main: cleanup command handling" This reverts commit 9a5a79a0797294ba9f5c7b2ab79e4dcbacac0c44. Revert "test: rework ipmi validate test as table" This reverts commit 39b3a82609511e2d855a2182f22361cc1332bb25. Revert "ipmi: start implementing flashHashFinish" This reverts commit fbc7d191eb6d49ff93379e90f372960b799b25c4. Revert "ipmi: start implementing flashHashData" This reverts commit cfe66877a5d7cc64bcce5c8789ca164edf9f1c56. Revert "ipmi: start implementing flashStartHash" This reverts commit 8d9f7322f46afaab81e32d1999f5bc000f1ba9a6. Revert "ipmi: start implementing flashDataFinish" This reverts commit 2c1205db94647c196c154bae0e106933b9ff526e. Revert "ipmi: promote min length check to earlier" This reverts commit a53a7b35085ddd41ef3cc47b084d29a1f413e818. Revert "ipmi: start implementing flashDataBlock" This reverts commit 79e131fce6e308f7e0f96bc71b07a7f0ebeeffcd. Revert "ipmi: start implementing flashStartTransfer" This reverts commit 54c3b53c0d0c7991469ab1be97bdf4e3f301e8f5. Revert "add flash-ipmi header defining sub-commands" This reverts commit 3d1786bcd038e4d042d268737a9b874fd667bf84. Revert "main: start with no-op handler" This reverts commit accc91799d6a1de4726313b907e5dfa7555bf919. Change-Id: I1c4dc9dcd2bf7d110240a028a329fcb1e01a4e5b Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'tools/updater.hpp')
-rw-r--r--tools/updater.hpp53
1 files changed, 0 insertions, 53 deletions
diff --git a/tools/updater.hpp b/tools/updater.hpp
deleted file mode 100644
index 561e6c7..0000000
--- a/tools/updater.hpp
+++ /dev/null
@@ -1,53 +0,0 @@
-#pragma once
-
-#include "interface.hpp"
-#include "updatehelper.hpp"
-
-#include <fstream>
-#include <memory>
-#include <string>
-
-class UploadManager
-{
- public:
- UploadManager(std::ifstream&& image, std::ifstream&& hash,
- int32_t imageSize, int32_t hashSize,
- UpdateHelperInterface* helper, DataInterface* dintf) :
- imageStream(std::move(image)),
- hashStream(std::move(hash)), imageSize(imageSize), hashSize(hashSize),
- helper(helper), dintf(dintf)
- {
- }
-
- /**
- * Instantiate an UploadManager if the parameters check out.
- *
- * @param[in] image - path to the firmware image.
- * @param[in] hash - path to the image's hash.
- * @param[in] helper - pointer to an UpdateHelperInterface.
- * @param[in] dintf - pointer to the data interface to use.
- * @return UploadManager if valid or nullptr if invalid.
- */
- static std::unique_ptr<UploadManager>
- BuildUploadMgr(const std::string& image, const std::string& hash,
- UpdateHelperInterface* helper, DataInterface* dintf);
-
- /**
- * Try to update the BMC flash image over IPMI through BT.
- */
- void UpdateBMC();
-
- private:
- std::ifstream imageStream;
- std::ifstream hashStream;
- int32_t imageSize;
- int32_t hashSize;
- UpdateHelperInterface* helper;
- DataInterface* dintf;
-};
-
-// Main entry point for the update command.
-// Update uploads and verifies the image.
-// throws exception on errors.
-void UpdaterMain(const std::string& interface, const std::string& image,
- const std::string& signature);
OpenPOWER on IntegriCloud