[Bug 1596662] Re: pcscd fails to read CAC card data, errors out

2017-09-21 Thread Mario Limonciello
Just to add clarity to this issue:

The ID's in the old FW release are not supported by CCID and have been removed 
in git:
https://github.com/LudovicRousseau/CCID/commit/e6a7548623f35d428f9f410f4b885fd04e34070a
https://github.com/LudovicRousseau/CCID/commit/2f68054ce81aa10ec60adf9a92c66dca64bdd415

After performing a FW upgrade new device ID's will be created which are 
compliant.
If you're seeing the old ID's you'll have to upgrade the FW (which there 
unfortunately isn't currently a way to do this on Linux).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1596662

Title:
  pcscd fails to read CAC card data, errors out

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1596662] Re: pcscd fails to read CAC card data, errors out

2017-09-21 Thread Mario Limonciello
** Changed in: pcsc-lite (Ubuntu)
   Status: Confirmed => Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1596662

Title:
  pcscd fails to read CAC card data, errors out

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1596662] Re: pcscd fails to read CAC card data, errors out

2016-09-06 Thread carloslp
I was able to upgrade the firmware of the reader from a virtual machine
running windows with virt-manager/qemu.

But I don't recommend this method of upgrade.

You have to attach the broadcom usb device to the machine, then execute
the dell control vault2 firmware upgrade.

The thing is that once it starts the USB device will disappear, and it
will appear again with a 0a5c:5831 ID. You have to be quick to reatach
this new usb device (in live) on the machine so the upadate can
continue. And it will disappear again and appear again. Like 8 times. If
you fail to be quick in attaching the device the updater will abort and
will tell you to reboot.

If the device don't completes the update it will be unusable. It will
not identify itself as a smart card reader and will have the 0a5c:5831
ID.

You can however retry the update.

Once the upgrade completes the USB ID will change to 0a5c:5832 and it
will identify itself as a smart card reader.

Another important thing is that you have to enable the TPM and set it to
disable. And also attach the TPM as a passthrough device on the qemu/kvm
machine for it to work.


I finally was able to upgrade the firmware correctly using this dirty method.

So, meanwhile I achieved to upgrade the firmware from a windows virtual
machine, I don't recommend it.

I think in the end is simple and less risky to run the upgrade from
windows directly.

Its a shame that dell or broadcom don't provide a  way of updating this
firmware without requiring windows.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1596662

Title:
  pcscd fails to read CAC card data, errors out

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1596662] Re: pcscd fails to read CAC card data, errors out

2016-09-06 Thread carloslp
@zlacelle.. what you are missing is an updated libccid. You need version
1.25 which is still unreleased. What I did was rebuilt the libccid 1.24
package after applying manually this patch
https://alioth.debian.org/plugins/scmgit/cgi-
bin/gitweb.cgi?p=pcsclite/CCID.git;a=commitdiff;h=7211ce71b1bb0866efc2dad6eba7058743f7eed7

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1596662

Title:
  pcscd fails to read CAC card data, errors out

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1596662] Re: pcscd fails to read CAC card data, errors out

2016-08-24 Thread Zach La Celle
I'm confirming that the info from @nunojpg seems to hold for my reader
as well.  It updated from 0a5c:5800 to 0a5c:5832, using the Dell
ControlVault2 update you listed above.

This firmware seems to work correctly (although now my security devices
in the browser aren't working, but that's another matter):

 debuglog.c:289:DebugLogSetLevel() debug level=debug
0012 debuglog.c:310:DebugLogSetCategory() Debug options: APDU
^[[36m0006^[[0m ^[[34mpcscdaemon.c:357:main() Force colored logs^[[0m
^[[36m0312^[[0m configfile.l:358:DBGetReaderList() Parsing conf file: 
/usr/local/etc/reader.conf.d
^[[36m0019^[[0m ^[[34mpcscdaemon.c:672:main() pcsc-lite 1.8.17 daemon 
ready.^[[0m
^[[36m2333^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for 
VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
^[[36m0041^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for 
VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
^[[36m0035^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for 
VID: 0x0A5C, PID: 0x5832, path: /dev/bus/usb/001/007
^[[36m0033^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for 
VID: 0x0A5C, PID: 0x5832, path: /dev/bus/usb/001/007
^[[36m0030^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for 
VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
^[[36m0035^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for 
VID: 0x1BCF, PID: 0x2B91, path: /dev/bus/usb/001/008
^[[36m0030^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for 
VID: 0x1BCF, PID: 0x2B91, path: /dev/bus/usb/001/008
^[[36m0032^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for 
VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
^[[36m0032^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for 
VID: 0x413C, PID: 0x2513, path: /dev/bus/usb/001/002
^[[36m0033^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for 
VID: 0x0C45, PID: 0x0133, path: /dev/bus/usb/001/004
^[[36m0033^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for 
VID: 0x0C45, PID: 0x0133, path: /dev/bus/usb/001/004
^[[36m0030^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for 
VID: 0x413C, PID: 0x2513, path: /dev/bus/usb/001/002
^[[36m0034^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for 
VID: 0x045E, PID: 0x0040, path: /dev/bus/usb/001/006
^[[36m0032^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for 
VID: 0x413C, PID: 0x2513, path: /dev/bus/usb/001/002
^[[36m0030^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for 
VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
^[[36m0033^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for 
VID: 0x8087, PID: 0x0A2B, path: /dev/bus/usb/001/003
^[[36m0031^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for 
VID: 0x8087, PID: 0x0A2B, path: /dev/bus/usb/001/003
^[[36m0031^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for 
VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
^[[36m0031^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for 
VID: 0x413C, PID: 0x2513, path: /dev/bus/usb/001/005
^[[36m0044^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for 
VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/002/001
^[[36m17434070^[[0m winscard_msg_srv.c:251:ProcessEventsServer() Common channel 
packet arrival
^[[36m0047^[[0m winscard_msg_srv.c:263:ProcessEventsServer() 
ProcessCommonChannelRequest detects: 7
^[[36m0002^[[0m pcscdaemon.c:132:SVCServiceRunLoop() A new context thread 
creation is requested: 7
^[[36m0086^[[0m winscard_svc.c:329:ContextThread() Authorized PC/SC client
^[[36m0004^[[0m winscard_svc.c:333:ContextThread() Thread is started: 
dwClientID=7, threadContext @0x2497890
^[[36m0020^[[0m winscard_svc.c:351:ContextThread() Received command: 
CMD_VERSION from client 7
^[[36m0003^[[0m winscard_svc.c:363:ContextThread() Client is protocol 
version 4:3
^[[36m0001^[[0m winscard_svc.c:383:ContextThread() CMD_VERSION rv=0x0 for 
client 7
^[[36m0113^[[0m winscard_svc.c:351:ContextThread() Received command: 
ESTABLISH_CONTEXT from client 7
^[[36m0022^[[0m winscard.c:213:SCardEstablishContext() Establishing 
Context: 0x7A22B4A6
^[[36m0002^[[0m winscard_svc.c:444:ContextThread() ESTABLISH_CONTEXT rv=0x0 
for client 7
^[[36m0181^[[0m winscard_svc.c:351:ContextThread() Received command: 
CMD_GET_READERS_STATE from client 7
^[[36m0151^[[0m winscard_svc.c:351:ContextThread() Received command: 
CMD_GET_READERS_STATE from client 7
^[[36m1811^[[0m winscard_svc.c:351:ContextThread() Received command: 
CMD_GET_READERS_STATE from client 7
^[[36m01001014^[[0m winscard_svc.c:351:ContextThread() Received command: 
CMD_GET_READERS_STATE from client 7
^[[36m01000993^[[0m winscard_svc.c:351:ContextThread() Received command: 
CMD_GET_READERS_STATE from client 7


[Bug 1596662] Re: pcscd fails to read CAC card data, errors out

2016-08-24 Thread Ludovic Rousseau
It looks like the problem is now fixed. A new bug may be created about
the kernel warnings.

I wrote about the firmware upgrade at
https://ludovicrousseau.blogspot.fr/2016/08/broadcom-ccid-readers.html

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1596662

Title:
  pcscd fails to read CAC card data, errors out

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1596662] Re: pcscd fails to read CAC card data, errors out

2016-08-18 Thread nunojpg
My reader 0a5c:5800 was today automatically "converted" to a 0a5c:5832
via a Broadcom firmware upgrade, made available by Dell, and delivered
trough Windows 10 update.

0a5c:5832 is supported by Ludovic Rousseau CCID driver.

I am not aware it the firmware upgrade can be applied without Windows.

It seems to work fine, but I do get a huge amount of this warnings when
I'm reading a card:

kernel: xhci_hcd :00:14.0: WARN Event TRB for slot 6 ep 4 with no
TDs queued?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1596662

Title:
  pcscd fails to read CAC card data, errors out

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1596662] Re: pcscd fails to read CAC card data, errors out

2016-07-11 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: pcsc-lite (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1596662

Title:
  pcscd fails to read CAC card data, errors out

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1596662] Re: pcscd fails to read CAC card data, errors out

2016-07-11 Thread alberto fiaschi
may it be similar to the following poblema http://www.natisbad.org/E4300/?
The link propose a patch to remove a sequence of NULL

Quote:
 After some debugging at opensc level, it seems that the reader returns (via 
openct) some APDU with leading NULL bytes (more precisely, 252 of those NULL 
bytes). I wrote a small temporary fix (below) for opensc package but the 
problem should probably be corrected at a lower level level.

Index: opensc-0.11.4/src/libopensc/apdu.c
===
--- opensc-0.11.4.orig/src/libopensc/apdu.c 2008-12-26 09:37:55.0 
+0100
+++ opensc-0.11.4/src/libopensc/apdu.c  2008-12-26 09:41:36.0 +0100
@@ -455,6 +455,25 @@
return SC_ERROR_NOT_SUPPORTED;
}
 
+#define BROADCOM_E4300_BUG_APDU_DROP 252
+   if (apdu->resplen >= BROADCOM_E4300_BUG_APDU_DROP) {
+   int i, allzero=1;
+   u8 *tmp = apdu->resp;
+
+   for (i=0; i < BROADCOM_E4300_BUG_APDU_DROP; 
i++) {
+   if (tmp[i] != 0) {
+   allzero = 0;
+   break;
+   }
+   }
+
+   if (allzero) {
+   memmove(tmp, tmp + 
BROADCOM_E4300_BUG_APDU_DROP,
+   apdu->resplen - 
BROADCOM_E4300_BUG_APDU_DROP);
+   apdu->resplen -= 
BROADCOM_E4300_BUG_APDU_DROP;
+   }
+   }
+
/* if the command already returned some data 
 * append the new data to the end of the buffer
 */

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1596662

Title:
  pcscd fails to read CAC card data, errors out

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1596662] Re: pcscd fails to read CAC card data, errors out

2016-07-03 Thread Ludovic Rousseau
I moved the reader in the "Unsupported or partly supported CCID readers" list
https://pcsclite.alioth.debian.org/ccid/unsupported.html#0x0A5C0x5800

I have no solution for now.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1596662

Title:
  pcscd fails to read CAC card data, errors out

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1596662] Re: pcscd fails to read CAC card data, errors out

2016-06-28 Thread Ludovic Rousseau
The problem is:
0003 APDU: 00 C0 00 00 BA 
0002 ifdhandler.c:1295:IFDHTransmitToICC() 
usb:0a5c/5800:libudev:1:/dev/bus/usb/001/007 (lun: 0)
0002 commands.c:1740:CmdXfrBlockTPDU_T0() T=0: 5 bytes
0003 -> 00 6F 05 00 00 00 00 17 00 00 00 00 C0 00 00 BA 
00014454 <- 00 80 BC 00 00 00 00 17 00 00 00 A0 00 00 00 79 03 02 40 70 50 
72 47 67 00 ED CB C7 00 ED CB C7 21 21 A0 00 00 00 79 01 02 00 01 00 00 00 00 
00 00 00 A0 00 00 00 79 01 02 01 01 00 00 00 00 00 00 
0013 commands.c:1551:CCID_Receive() Can't read all data (54 out of 188 
expected)
0003 SW: 
0002 ifdwrapper.c:548:IFDTransmit() Card not transacted: 612
0001 winscard.c:1643:SCardTransmit() Card not transacted: 0x80100016

Maybe you can find a BIOS upgrade or something similar on the Dell
and/or Broadcom website.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1596662

Title:
  pcscd fails to read CAC card data, errors out

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1596662] Re: pcscd fails to read CAC card data, errors out

2016-06-28 Thread Zach La Celle
** Attachment added: "verbose log"
   
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+attachment/4691606/+files/log.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1596662

Title:
  pcscd fails to read CAC card data, errors out

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1596662] Re: pcscd fails to read CAC card data, errors out

2016-06-28 Thread Zach La Celle
The versions I were using before (from the Trusty repositories) are
pcscd 1.8.10 and libccid 1.4.15.

I've installed PCSC version 1.8.17 and libccid 1.4.24:

$ /usr/local/sbin/pcscd --version
pcsc-lite version 1.8.17.
Copyright (C) 1999-2002 by David Corcoran .
Copyright (C) 2001-2015 by Ludovic Rousseau .
Copyright (C) 2003-2004 by Damien Sauveron .
Report bugs to .
Enabled features: Linux x86_64-pc-linux-gnu serial usb libudev 
usbdropdir=/usr/local/lib/pcsc/drivers ipcdir=/var/run/pcscd 
configdir=/usr/local/etc/reader.conf.d

Both configurations cause the same errors, where it seems that it fails
to read the card.  I've attached the lsusb of the broadcom device, as
well as the complete log.


** Attachment added: "lsusb of broadcom device"
   
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+attachment/4691605/+files/lsusb.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1596662

Title:
  pcscd fails to read CAC card data, errors out

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1596662] Re: pcscd fails to read CAC card data, errors out

2016-06-28 Thread Zach La Celle
** Attachment added: "lsusb of broadcom device"
   
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+attachment/4691607/+files/lsusb.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1596662

Title:
  pcscd fails to read CAC card data, errors out

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1596662] Re: pcscd fails to read CAC card data, errors out

2016-06-27 Thread Ludovic Rousseau
Please follow
https://pcsclite.alioth.debian.org/ccid.html#CCID_compliant

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1596662

Title:
  pcscd fails to read CAC card data, errors out

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs