diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2022-05-15 17:35:38 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2022-05-15 17:35:38 -0300 |
commit | a9f6a2b4548fa772c7b476cc7f5d85e1c6b4270d (patch) | |
tree | 0c8b74fa0216ffcfca2f36073c37b0ff0f5dde8a /research | |
parent | 9854f489e7abfa1891aa438c4a39c0ad10dcdd6a (diff) | |
download | blog-a9f6a2b4548fa772c7b476cc7f5d85e1c6b4270d.tar.gz blog-a9f6a2b4548fa772c7b476cc7f5d85e1c6b4270d.tar.bz2 |
Research: computing: tokens: programming the FST-01
Diffstat (limited to 'research')
-rw-r--r-- | research/computing/token.md | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/research/computing/token.md b/research/computing/token.md index 52ed01f..abfc9bc 100644 --- a/research/computing/token.md +++ b/research/computing/token.md @@ -45,6 +45,34 @@ Sobre tokens criptográficos USB. * [How does Gnuk protect against attacks to extract private keys? - FST-01 Q&A Forum](http://no-passwd.net/askbot/question/32/how-does-gnuk-protect-against-attacks-to-extract/). * [What types of risk are more likely? What's "best practice" against that? - FST-01 Q&A Forum](http://no-passwd.net/askbot/question/68/what-types-of-risk-are-more-likely-whats-best/). +### Programando o FST-01 + +Agradecimento ao `unixjazz` do projeto [DIYNuk](https://gitlab.com/unixjazz/DIYNuk) por fornecer estas instruções! + +Roteiro baseado no programador (STLink) ligado a um STM8 com os pinos soldados: + +1. Ligar ambas as pacas conforme [este diagrama dos + pinos](https://www.gniibe.org/memo/development/gnuk/hardware/stlinkv2-stm8s-discovery.html). +2. Configurar o ST-Link (programador) no PC. Instruções + [aqui](https://www.gniibe.org/FST-01/q_and_a/swd-debugger.html). +3. Compilar (mesmo procedimento para Gnuk e Neug (se diz Noisy com sotaque + japones)) conforme [estas instruções](https://www.gniibe.org/memo/development/gnuk/gnuk-building-for-stm32-part-of-stm8s-discovery-kit.html). + +Em geral, o procedimento e' o seguinte: + +1. Instalar o [ultimo NeuG do repo do Debian](https://salsa.debian.org/gnuk-team/gnuk/neug). +2. Instalar o GNU Toolchan for ARM (4.5 ou maior). +3. Instalar o OpenOCD (pacote do Debian). +4. Compilar o NeuG. +5. Configurar o ST-Link com as seguintes regras do udev (por exemplo em `/etc/udev/rules.d/10-stlink.rules`): + + ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0483", \ + ATTR{idProduct}=="3748", GROUP="tape", MODE="664", SYMLINK+="stlink" + +6. Plugar o ST-Link, rodar o OpenOCD e escrever o binario na flash do STM8 + conforme [este procedimento](https://www.gniibe.org/memo/development/gnuk/gnuk-installation-to-stm32-part-of-stm8s-discovery-kit.html) +7. Pronto! Agora basta [ler a serial](https://www.gniibe.org/FST-01/q_and_a/neug-standalone-device.html). + ## Safenet eToken E5110 No Debian, instale o [MUSCLE](https://pcsclite.alioth.debian.org/): |