gl-sergei / u2f-token

u2f token firmware for stm32f103 and efm32hg boards
GNU General Public License v3.0
348 stars 57 forks source link

Update the token with USB #34

Closed NewRedsquare closed 4 years ago

NewRedsquare commented 5 years ago

I don't know if it's hard to do, but when i update the token , i need to connect many wires to my st dongle and that's quite hard to do everytime. So i thought it could be a good idea to make an "updater" like reGnual ( gnuk project ) https://salsa.debian.org/gnuk-team/gnuk/gnuk/tree/master/regnual and described as :

How to run the script: :: $ cd tool $ ./upgrade_by_passwd.py ../regnual/regnual.bin ../src/build/gnuk.bin

Then, the script on your host PC invoke the steps described above, and you will get new version

gl-sergei commented 5 years ago

I would prefer to leave bootloader and software updates for other projects. There are some bootloaders available for STM32F103. https://mcuboot.com/ looks quite promising. Should you need to add new make target to support mcuboot (https://mcuboot.com/mcuboot/design.html) or any other bootloader, PRs are welcome!