aboutsummaryrefslogblamecommitdiff
path: root/projects/hsm/cryptech_probe
blob: ccee40ac32002e3780178d000c793c75ed2744f9 (plain) (tree)
generated by cgit v1.2.3 (git 2.25.1) at 2025-03-14 01:10:10 +0000
n class="p">: # Somebody updated other part of this script without updating this part :( sys.exit("Don't know which component to select from firmware tarball, sorry") try: size = tar.getmember(name).size except KeyError: sys.exit("Expected component {} missing from firmware tarball {}".format(name, args.firmware_tarball.name)) src = tar.extractfile(name) print "Uploading {} from {}".format(name, args.firmware_tarball.name) print "Initializing serial port and synchronizing with HSM, this may take a few seconds" dst = serial.Serial(args.device, 921600, timeout = 2) send_file(src, size, args, dst) dst.close() if __name__ == "__main__": try: main() except KeyboardInterrupt: pass