Open MaxBaex opened 5 months ago
self.elf_file = ELFFile(in_stream, sys.stdout)
second parameter sys.stdout needs to be removed as script fails with TypeError: init() takes 2 positional arguments but 3 were given
Use http://elm-chan.org/fsw/ff/doc/findfirst.html to find all .bin images. Then loop through all .bin images and
Match the hardware version in each image.
Search for the *.bin image with the "newest/highest software version" File name doesn't matter except for the file-ending.
Compare software version from newest *.bin file to the currently running version. Flash if the uSD image contains a different version.
No role-back protection and no Signature (authenticity) checking right know.
in the update file and compare to running software version before flashing. As described here: https://github.com/larus-breeze/doc_larus/blob/master/documentation/can_details/definitions.md#manufacturer-and-hardware-versions