2021-11-18 14:41:04 +08:00
|
|
|
# UpdateToolOpenSK
|
2021-11-18 14:47:18 +08:00
|
|
|
OpenSK's firmware update tool on all platforms.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Hardware
|
|
|
|
|
* [Nordic nRF52840-dongle](https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52840-Dongle)
|
2021-12-20 15:07:42 +08:00
|
|
|
* [Feitian OpenSK Dongle](https://feitiantech.github.io/OpenSK_USB/hardware/)
|
2021-11-18 14:47:18 +08:00
|
|
|
|
|
|
|
|
# Support three functions
|
|
|
|
|
-------------------------------------------------------------
|
2021-12-20 15:07:42 +08:00
|
|
|
1. Erase
|
2021-11-18 14:47:18 +08:00
|
|
|
you must switch device to bootload mode.
|
|
|
|
|
|
2021-12-20 15:07:42 +08:00
|
|
|
2. Update
|
2021-11-18 14:47:18 +08:00
|
|
|
you must switch device to bootload mode.And the package name of nrf52840_dongle_dfu_dfu.zip is located on same level directory.
|
|
|
|
|
|
|
|
|
|
|
2021-12-20 15:07:42 +08:00
|
|
|
3. Inject cert
|
2021-11-18 14:47:18 +08:00
|
|
|
The certificate and private key are stored in crypto_data folder on same level directory.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
-------------------------------------------------------------
|
|
|
|
|
```shell
|
2021-12-20 15:07:42 +08:00
|
|
|
1. Please check your envrionment and python >= 3.8 .
|
2021-11-18 14:47:18 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```shell
|
2021-12-20 15:07:42 +08:00
|
|
|
2. Install python qt library
|
2021-11-18 14:47:18 +08:00
|
|
|
pip3(or pip) install pyside2
|
|
|
|
|
pip3(or pip) install PyQt5
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```shell
|
2021-12-20 15:07:42 +08:00
|
|
|
3. Install nordic tool and fido2 python modules
|
2021-11-18 14:47:18 +08:00
|
|
|
pip3(or pip) install nrfutil
|
|
|
|
|
pip3(or pip) install fido2
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Build and Run
|
2021-11-18 15:36:47 +08:00
|
|
|
You can package signal executable file with pyinstaller command.
|
|
|
|
|
Or directly run command in terminal.
|
|
|
|
|
```shell
|
2021-11-18 14:47:18 +08:00
|
|
|
python3 main.py
|
2021-11-18 15:36:47 +08:00
|
|
|
```
|
2022-05-24 15:04:39 +08:00
|
|
|
## Package
|
|
|
|
|
You can run shell in Linux and Mac
|
|
|
|
|
```shell
|
|
|
|
|
sh build.sh
|
|
|
|
|
```
|