Nitrokey Update Tool is an application aiming to ease Nitrokey Storage firmware update process under Windows and macOS.
Ready to use packages and install instructions are available releases' page: https://github.com/Nitrokey/nitrokey-update-tool/releases/
To flash the Nitrokey Storage device please prepare:
- a .hex file with target firmware
- Windows or macOS PC
- Nitrokey Storage device with enabled update mode
After running the tool please:
- Select the firmware file location with
Select firmware file
button - Check whether device has been detected by observing
Device in update mode connected
- If both conditions are fulfilled,
Update firmware
button should be active - After pressing
Update firmware
the procedure would start.
Updating process should not be interrupted, otherwise the device might not work correctly or not power up at all. Please make sure your PC is connected to stable power supply.
Requirements:
- libusb 1.0
- C++11 compatible compiler
- CMake 3 (for building underlying
dfu-programmer
lib) - Qt 5
Please make sure you have downloaded the code with the submodules, eg.:
git clone https://github.com/Nitrokey/nitrokey-update-tool.git --recursive
Prerequisites for building on Ubuntu 17.10:
build-essential
- for building applicationscmake
- for compiling libnitrokeyqt5-default
- QT5 librarylibusb-1.0-0-dev
- library to communicate with USB devices
Before the actual Tool building, a dfu-programmer
library needs to be built. To do so, please execute (while being in the main directory):
mkdir -p 3rdparty/dfu-programmer/build
pushd 3rdparty/dfu-programmer/build
cmake ..
make
popd
This should result in a static object.
To compile the tool, please execute (while being in the main directory):
mkdir -p build && cd build
qmake .. && make
Similarly to Ubuntu instructions. libusb
library could be provided with brew.sh
.
Cross-compiling works similarly as with Nitrokey App (via MXE). See its README file for details.