D
Deleted User
Guest
What if you set it up so that you put the script and the otp.bin file in the same folder it uses the otp.bin and then places the fw.img in the folder with the otp.bin and the script
Oh, yeah, that's a good idea! I'll just have the user put the otp.bin on the desktop (for ultimate simplicity), and have the keys be read from there.
you are right, script to download latest ghithub is better instead of providing a fixed release and having to update the VM manually.
I don't know linux, so I can't help you with the commands, but there are probably a way to ask input from the user.
Another way is like tunip3 said. You could ask the user to dump its OTP (it will be useful in the future anyway, why not doing it?).
So, step 1 : get your keys ! launch HBL OTP dumper, put otp.bin somewhere in your script's folder. a place where both Fix94 and Dimok branch (and maybe future branch) can use it at the same time.
step 2 : retrieve git repository
step 3 : when launching the compilation, copy the otp.bin from the "user's place" into the correct branch's folder so the user will not have to edit the .py file, right?
it's easier to make your script copy the bin to the correct folder, so the user always keep its single file at the same place, outside the git sources.
Now the only thing left to do is figure out how to read hex from a file and copy it into another file as text... sounds complicated.