polhenarejos / pico-openpgp

Converting a Raspberry Pico into an OpenPGP CCID smart card.
https://www.picokeys.com
GNU General Public License v3.0
55 stars 8 forks source link

Version 1.12 on Waveshare RP2040-One is unresponsive #9

Closed Mihara closed 6 months ago

Mihara commented 6 months ago

So I flashed it, and it does get recognized, somewhat:

[277951.890078] usb 5-1.2: new full-speed USB device number 74 using xhci_hcd
[277952.028842] usb 5-1.2: config 1 interface 0 altsetting 0 endpoint 0x82 has an invalid bInterval 0, changing to 10
[277952.040403] usb 5-1.2: New USB device found, idVendor=feff, idProduct=fcfd, bcdDevice= 5.00
[277952.040410] usb 5-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[277952.040413] usb 5-1.2: Product: Pico Key
[277952.040414] usb 5-1.2: Manufacturer: Pol Henarejos
[277952.040416] usb 5-1.2: SerialNumber: DE6270431F752A27

However, it's not responding as an OpenPGP smart card, or indeed, a smart card of any kind:

$ opgpcard status
Error: No cards found
$ opensc-explorer
OpenSC Explorer version 0.23.0
No smart card readers found.

The sole (red) led on the board is flashing, but that's about all I'm getting from it.

There's something interesting happening as it's getting flashed:

[278310.013845] device offline error, dev sda, sector 260 op 0x1:(WRITE) flags 0x100000 phys_seg 1 prio class 2
[278310.013851] Buffer I/O error on dev sda1, logical block 259, lost async page write
[278310.022013] FAT-fs (sda1): unable to read boot sector to mark fs as dirty

I.e. it somehow goes to reboot before the PC thinks the write is completed, which strikes me as odd.

Any clues?

Mihara commented 6 months ago

Disregard that, I forgot to set vid:pid before flashing.