Hi,
I sent v3 of firmware update command. I addressed all remarks from v2 review. Details can be found in the changelog below.
The code can be also found in github: https://github.com/MarvellEmbeddedProcessors/edk2-open-platform/commits/opp-...
Any comments or remarks would be welcome.
Best regards, Marcin
Changelog: v2 -> v3
* Rename header structure to MV_FIRMWARE_IMAGE_HEADER * Add STATIC attribute where possible * Improve flash probe (add comments, use UINT32, SPI_ID_SIZE define and SwapBytes32) * Use CalculateSum32() instead of custom implementation * Improve prints when parsing image path * Sort HiiGuid in Marvell.dec * Improve help in .uni file
v1 -> v2
* Remove executing external shell commands from commandline - now only local files can be burnt to flash * Add MARVELL_SPI_FLASH_PROTOCOL and MARVELL_SPI_MASTER_PROTOCOL usage * In order to be standalone command, enable detecting and configuring SPI flash * Style cleanup and new comments
Jan Dąbroś (2): Applications/FirmwareUpdate: Add 'fupdate' comand to shell Platforms/Marvell: Enable 'fupdate' command on Armada70x0 platform
Applications/FirmwareUpdate/FUpdate.c | 413 ++++++++++++++++++++++++++ Applications/FirmwareUpdate/FUpdate.inf | 75 +++++ Applications/FirmwareUpdate/FUpdate.uni | Bin 0 -> 5146 bytes Platforms/Marvell/Armada/Armada.dsc.inc | 1 + Platforms/Marvell/Include/Protocol/SpiFlash.h | 2 + Platforms/Marvell/Marvell.dec | 1 + 6 files changed, 492 insertions(+) create mode 100644 Applications/FirmwareUpdate/FUpdate.c create mode 100644 Applications/FirmwareUpdate/FUpdate.inf create mode 100644 Applications/FirmwareUpdate/FUpdate.uni