Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve update tool #25

Open
13 of 19 tasks
szszszsz opened this issue Feb 24, 2020 · 1 comment
Open
13 of 19 tasks

Improve update tool #25

szszszsz opened this issue Feb 24, 2020 · 1 comment
Milestone

Comments

@szszszsz
Copy link
Member

szszszsz commented Feb 24, 2020

Improve update tool so that it would :

  • detect if device is in bootloader stage and continue if possible;
  • suggest best solution for the given error (specifically lack of connection on regnual start);
  • inform user about required packages to be installed (pyusb, cffi);
  • do not allow to use CTRL+C without confirmation;
  • remove usage of infinite loops while waiting;
  • print the current version of the tool;
  • release it to pip repository for easy access, without Git usage;
  • add proper documentation.

Additional:

  • make it standalone without pip (no Git usage needed);
  • firmware download and verification (sha);
  • firmware download and verification (sha + signature);
  • simplify guide ;
  • default to single LED color (red; with CLI fallback perhaps; do not offer text UI fallback right now);
  • stop services from using the smart card during the update;
  • ask for factory reset; ideally do it in script if will not take much time;
  • add warning and to guide: close email clients and other smart card using applications;
  • warn user to do not do anything during the update or the device will;
    be bricked;
  • note to users: power cycle device at the end, on the success (?);
  • remove debug verbosity (switch).

Details: https://support.nitrokey.com/t/nitrokey-start-benotigte-linux-pakete-fur-fimwareupdate/2228/9
Connected: #24

@szszszsz szszszsz added this to the RTM.8 milestone Feb 24, 2020
szszszsz added a commit that referenced this issue Jun 4, 2020
Improve Python update tool:
Automatic download of the firmware on no path specified
Add and extend the log, with system journal included (Linux)
Check latest firmware version on the Github
Connect only to GNUK devices (not all CCIDs)
Extend text UI/guide

Connected #25
@szszszsz
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant