Re: Gemalto (was Gemplus) GemPC Key SmartCard Reader not working in debian stretch

Sébastien Chaumat <[email protected]> Tue, 23 May 2017 21:21:40 +0000
Newsgroups gmane.comp.lib.muscle
Message-ID <CAKm-UmYtZUk9Gndnkyx29EDdjD_ouxBCqRW+8ccfAFvs6O+gJQ@mail.gmail.com>
--===============4106789342571253919==
Content-Type: multipart/alternative; boundary="94eb2c05a98872f1ef055037930c"

--94eb2c05a98872f1ef055037930c
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi,

 This workaround did not work for me :/
S=C3=A9bastien

Le lun. 22 mai 2017 =C3=A0 10:18, Wolfgang Pichler <[email protected]> a
=C3=A9crit :

> Hi,
>
> i did had the same bug - it seems that some Gemalto Sticks (not all) have
> a problem in the firmware intitalize procedure. Because of this problem y=
ou
> get a too big usb read bytes request - which will then fail=E2=80=A6
>
> Attached a workaround for this problem - which does work for me.
>
> But as stated - this is a workaround - not a real bug fix.
>
> br,
> Wolfgang
>
> Am 22.05.2017 um 09:40 schrieb Ludovic Rousseau <
> [email protected]>:
>
> 2017-05-21 22:50 GMT+02:00 S=C3=A9bastien Chaumat <[email protected]>:
>
>> Just compiled with ./configure --enable-zlp and tested : same result :/
>> (see log2 attached)
>> Any way to check that the patch is correctly applied ?
>>
>
> Your log contains the expected activation indicator:
> 00001403 ccid.c:80:ccid_open_hack_pre() ZLP fixup
>
> But in your case the fix is not enough.
>
> Try to change the timeout value at ccid_usb.c line 835 [1] from 10 to 100=
.
> https://anonscm.debian.org/cgit/pcsclite/CCID.git/tree/src/ccid_usb.c#n83=
5
>
> (BTW I can't believe I decided to send my report today...without knowing
>> about the release of 1.4.27 and the above)
>>
>
> :-)
>
> --
>  Dr. Ludovic Rousseau
> _______________________________________________
> Pcsclite-muscle mailing list
> [email protected]
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
>
>
> _______________________________________________
> Pcsclite-muscle mailing list
> [email protected]
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle

--94eb2c05a98872f1ef055037930c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<div><br></div><div>=C2=A0This workaround did not work =
for me :/</div><div>S=C3=A9bastien<br><br><div class=3D"gmail_quote"><div d=
ir=3D"ltr">Le=C2=A0lun. 22 mai 2017 =C3=A0=C2=A010:18, Wolfgang Pichler &lt=
;<a href=3D"mailto:[email protected]">[email protected]</a>&gt; a =C3=
=A9crit=C2=A0:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0=
 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style=3D"word-w=
rap:break-word">Hi,<div><br></div><div>i did had the same bug - it seems th=
at some Gemalto Sticks (not all) have a problem in the firmware intitalize =
procedure. Because of this problem you get a too big usb read bytes request=
 - which will then fail=E2=80=A6</div><div><br></div><div>Attached a workar=
ound for this problem - which does work for me.</div><div><br></div><div>Bu=
t as stated - this is a workaround - not a real bug fix.</div><div><br></di=
v><div>br,</div><div>Wolfgang</div><div></div></div><div style=3D"word-wrap=
:break-word"><div><br><div><blockquote type=3D"cite"><div>Am 22.05.2017 um =
09:40 schrieb Ludovic Rousseau &lt;<a href=3D"mailto:ludovic.rousseau@gmail=
.com" target=3D"_blank">[email protected]</a>&gt;:</div><br class=
=3D"m_375784869135032390Apple-interchange-newline"><div><div dir=3D"ltr"><d=
iv class=3D"gmail_extra"><div class=3D"gmail_quote">2017-05-21 22:50 GMT+02=
:00 S=C3=A9bastien Chaumat <span dir=3D"ltr">&lt;<a href=3D"mailto:euidzero=
@gmail.com" target=3D"_blank">[email protected]</a>&gt;</span>:<br><blockq=
uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1p=
x solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">Just compiled w=
ith ./configure --enable-zlp and tested : same result :/=C2=A0<div>(see log=
2 attached)<br><div>Any way to check that the patch is correctly applied ?<=
/div></div></div></blockquote><div><br></div><div>Your log contains the exp=
ected activation indicator:<br>00001403 ccid.c:80:ccid_open_hack_pre() ZLP =
fixup<br><br></div><div>But in your case the fix is not enough.<br><br></di=
v><div>Try to change the timeout value at ccid_usb.c line 835 [1] from 10 t=
o 100.<br><a href=3D"https://anonscm.debian.org/cgit/pcsclite/CCID.git/tree=
/src/ccid_usb.c#n835" target=3D"_blank">https://anonscm.debian.org/cgit/pcs=
clite/CCID.git/tree/src/ccid_usb.c#n835</a><br></div><div><br></div><blockq=
uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1p=
x solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div><div><div>=
(BTW I can&#39;t believe I decided to send my report today...without knowin=
g about the release of 1.4.27 and the above)<br></div></div></div></div></b=
lockquote><div><br>:-)<br clear=3D"all"></div></div><br>-- <br><div class=
=3D"m_375784869135032390gmail_signature">=C2=A0Dr. Ludovic Rousseau</div>
</div></div>
_______________________________________________<br>Pcsclite-muscle mailing =
list<br><a href=3D"mailto:[email protected]" target=
=3D"_blank">[email protected]</a><br><a href=3D"http:=
//lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle" target=
=3D"_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclit=
e-muscle</a></div></blockquote></div><br></div></div>______________________=
_________________________<br>
Pcsclite-muscle mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank=
">[email protected]</a><br>
<a href=3D"http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite=
-muscle" rel=3D"noreferrer" target=3D"_blank">http://lists.alioth.debian.or=
g/cgi-bin/mailman/listinfo/pcsclite-muscle</a></blockquote></div></div></di=
v>

--94eb2c05a98872f1ef055037930c--


--===============4106789342571253919==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Pcsclite-muscle mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
--===============4106789342571253919==--