Compare commits

...

4 Commits

Author SHA1 Message Date
2519f799fd Default acknowledgement button to yes 2022-07-30 13:29:09 +02:00
32f563a28d Add chopstx update for ST-Dongle 2022-07-30 13:15:50 +02:00
7b471948b4 How to reflash st-link 2022-07-30 12:55:04 +02:00
d2363c8ad8 Add DTS token 2022-07-30 12:40:24 +02:00
4 changed files with 20 additions and 2 deletions

View File

@@ -46,6 +46,23 @@ stm32f1x lock 0
reset halt
```
How to reflash the ST-LINK
==========================
To reflash the ST-LINK, connect the device to a programmer as before while keeping pins 7 and 8 shorted. While the LED is blinking, run openocd. Once its running (i.e. it doesnt show any errors), you can unshort the pins.
Then use the following to unlock and reflash.
```
reset halt
stm32f1x unlock 0
reset halt
stm32f1x mass_erase 0
flash write_bank 0 ./build/gnuk.bin 0
stm32f1x lock 0
reset halt
```
***Note: That reprograming will wipe the flash memory and you will lose all key's that was on the device.***
Testing Gnuk
============
Type following command to see if GnuPG detects the Gnuk token.

Submodule chopstx updated: e12a7e0bb3...a8e9074faf

2
src/configure vendored
View File

@@ -44,7 +44,7 @@ pinpad=no
certdo=no
hid_card_change=no
factory_reset=yes
ackbtn_support=no
ackbtn_support=yes
flash_override=""
kdf_do=${kdf_do:-optional}
# For emulation

View File

@@ -31,6 +31,7 @@ USB_PRODUCT_LIST=[
{ 'vendor' : 0x234b, 'product' : 0x0000 }, # FSIJ Gnuk Token
{ 'vendor' : 0x20a0, 'product' : 0x4211 }, # Nitrokey Start
{ 'vendor' : 0x1209, 'product' : 0x2440 }, # GnuPG e.V.
{ 'vendor' : 0x1337, 'product' : 0x0010 }, # DTS Gnuk Token
]
# USB class, subclass, protocol