I have inserted and configured the OpenPGP card es described here:
$ cat guru/OpenPGP.txt
https://puri.sm/posts/openpgp-in-your-pocket/
(includes video about inserting the card)
https://source.puri.sm/angus.ainslie/ttxs-firmware/-/blob/purism/PURISM.md
install and get the software:
sudo apt install stm32flash git
git clone https://source.puri.sm/angus.ainslie/ttxs-firmware
cd ttxs-firmware
Upgrade the smart card reader firmware:
./scripts/stm_reflash.sh
And set up the smart card:
./scripts/smartcard_setup.sh
When I now run the test pcsc_scan
it only says:
purism@pureos:~$ pcsc_scan
Using reader plug'n play mechanism
Scanning present readers...
Waiting for the first reader... |
UPDATE:
When I now run the flash of the firmware again, it says:
+ sleep 1
+ sudo stm32flash -w /tmp/tmp.DQD29pKyIC/ttxs.bin /dev/ttymxc2
stm32flash 0.5
http://stm32flash.sourceforge.net/
Using Parser : Raw BINARY
Interface serial_posix: 57600 8E1
Failed to read ACK byte
...
In addition: I have here the low level dialog of the flash tool with the card captured with strace
:
openat(AT_FDCWD, "/dev/ttymxc2", O_RDWR|O_NOCTTY|O_NONBLOCK) = 5
fcntl(5, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_CUR, l_start=0, l_len=0}) = 0
fcntl(5, F_SETFL, O_RDONLY) = 0
ioctl(5, TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(5, TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(5, TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(5, TCFLSH, TCIFLUSH) = 0
ioctl(5, TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(5, SNDCTL_TMR_START or TCSETS, {B57600 -opost -isig -icanon -echo ...}) = 0
ioctl(5, TCGETS, {B57600 -opost -isig -icanon -echo ...}) = 0
ioctl(5, TCGETS, {B57600 -opost -isig -icanon -echo ...}) = 0
write(1, "Interface serial_posix: 57600 8E"..., 34) = 34
ioctl(5, TCFLSH, TCIFLUSH) = 0
write(5, "\177", 1) = 1
read(5, "y", 1) = 1
write(5, "\1\376", 2) = 2
read(5, "y", 1) = 1
read(5, "\0", 3) = 1
read(5, "\0", 2) = 1
read(5, "\0", 1) = 1
read(5, "", 1) = 0
write(2, "Failed to read ACK byte\n", 24) = 24
close(4) = 0