lpcmanager

2fa14b7a29bd
Parents 15bfb9605ec7
Children 35fed58ca638
Fix backward compatibility problem on FW update.
--- a/HostFirmwareUpdater.py Thu Apr 15 14:59:47 2021 +0200
+++ b/HostFirmwareUpdater.py Mon Apr 19 15:16:43 2021 +0200
@@ -66,12 +66,14 @@
self._CreateFirmwareImageFileSizeFile()
self._CreateFirmwareImageFileSizeMD5File()
self._CreateFirmwareImageFileMD5File()
+
# start the update script
- product_name = GetLPCArch()
- if product_name == "MC10":
- status, textError = self.controller._connector.RunUpdateScriptMMC(self.updateType)
+ if GetLPCArch() == "MC9":
+ status, textError = self.controller._connector.RunUpdateScript(self.updateType)
else:
- status, textError = self.controller._connector.RunUpdateScript(self.updateType)
+ # since MC10 (som6) RunUpdateScript takes an additional parameter
+ status, textError = self.controller._connector.RunUpdateScript(self.updateType, "mmc")
+
if not status :
raise Exception(textError)
# The update script is now running: Feeding the update script with firmware image data