[Gnuk-users] Upgrading gnuk on a nitrokey start
Remy van Elst
relst at relst.nl
Wed Oct 12 18:07:44 UTC 2016
I did try to flash NeuG to the device, but that resulted in a blinking
green LED and nothing else. Here's the command for reference:
sudo stm32flash -w ../../neug/src/build/neug.bin -g 0x0 /dev/ttyUSB0
Output:
stm32flash 0.5
http://stm32flash.sourceforge.net/
Using Parser : Raw BINARY
Interface serial_posix: 57600 8E1
Version : 0x22
Option 1 : 0x00
Option 2 : 0x00
Device ID : 0x0410 (STM32F10xxx Medium-density)
- RAM : 20KiB (512b reserved by bootloader)
- Flash : 128KiB (size first sector: 4x1024)
- Option RAM : 16b
- System RAM : 2KiB
Write to memory
Erasing memory
Wrote address 0x08005c24 (100.00%) Done.
Starting execution at address 0x08000000... done.
https://raymii.org
On Wed, Oct 12, 2016 at 8:07 PM, Remy van Elst <relst at relst.nl> wrote:
> Hi Aidan,
>
> That flag seems to work, thanks! I did update the article for reference.
>
>
>
> https://raymii.org
>
> On Wed, Oct 12, 2016 at 2:18 AM, Aidan Thornton <makosoft at gmail.com>
> wrote:
>
>> On 11 Oct 2016 16:33, "Remy van Elst" <relst at relst.nl> wrote:
>> >
>> > Small update,
>> >
>> > I fried one Nitrokey when trying to solder on the ST Link headers.
>> Bummer.
>> >
>> > I hot-air desoldered an USB header from an old motherboard in the
>> e-waste bin and used the standard USB pinout, which suprisingly, worked. (
>> https://i.imgur.com/PQ7QG2B.png).
>> >
>> > The stm32flash tool was unable to remove the flash protection:
>> >
>> > $ sudo stm32flash -u /dev/ttyUSB0
>> > stm32flash 0.5
>>
>> stm32flash should work but you want the -k flag, -u is for removing write
>> protection not read protection. Don't forget to use -j to read-protect it
>> again after you're done flashing if you intend to put real keys on there.
>>
>> _______________________________________________
>> gnuk-users mailing list
>> gnuk-users at lists.alioth.debian.org
>> https://lists.alioth.debian.org/mailman/listinfo/gnuk-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/gnuk-users/attachments/20161012/7d3c1477/attachment.html>
More information about the gnuk-users
mailing list