<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">i’ve also thought about a bug in the libusb - but also an upgrade to the latest libusb did not help. The same (latest) libusb version on amd64 did work - and on arm it did not work.</div><div class=""><br class=""></div><div class="">So - yes - without the workaround i have two Gemalto sticks - one is working - the other one not.</div><div class=""><br class=""></div><div class="">I am using this sticks on a raspberry - running a customized raspbian (odoo PosBox Image)</div><div class=""><br class=""></div><div class=""><pre style="background-color:#2b2b2b;color:#a9b7c6;font-family:'Menlo';font-size:9,0pt;" class=""><span style="color:#6a8759;" class=""><a href="https://downloads.raspberrypi.org/raspbian_lite_latest" class="">https://downloads.raspberrypi.org/raspbian_lite_latest</a></span></pre><div class=""><br class=""></div></div><div class=""><br class=""></div><div class="">I’ve not tried an upgrade to the latest linux kernel - because i do not have a cross compile environment here - and i do not assume that it will have to do something with the bug.</div><div class=""><br class=""></div><div class="">Do you have a raspberry for testing ? I can send you these two sticks if you want.</div><div class=""><br class=""></div><div class="">br,</div><div class="">Wolfgang</div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">Am 22.05.2017 um 11:38 schrieb Ludovic Rousseau <<a href="mailto:ludovic.rousseau@gmail.com" class="">ludovic.rousseau@gmail.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote">2017-05-22 11:26 GMT+02:00 Wolfgang Pichler <span dir="ltr" class=""><<a href="mailto:wpichler@callino.at" target="_blank" class="">wpichler@callino.at</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Hi,</div></blockquote><div class=""><br class=""></div><div class="">Hello,<br class=""> <br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class=""><br class=""></div><div class="">i will try to collect this data.</div><div class=""><br class=""></div><div class="">An other thing i forgot to mention here - for me the bug only encountered on arm architecture (i have no idea why…) - the same lib versions on i386 / amd64 did worked.</div></div></blockquote><div class=""><br class=""></div><div class="">I suspect a bug in the USB hardware or USB Linux layer of your arm platform then.<br class=""> <br class=""></div><div class="">I just talked to a USB expert and the reader (USB device) has no idea of the reception buffer size. So the problem should not be in the reader (for this bug).<br class=""><br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">I found the problem by adding some debug lines - to see where it does not get the correct answer. At this point i recongnised that the lib request to ready 65535 bytes from the usb stack - which seemed to be too much ;-). So i simply used a fixed value - which will be enough for my needs (signing a 256 bytes hash). But as said - this is just a workaround for me - no bug fix.</div><div class=""><br class=""></div><div class="">The only difference i found between the two sticks is - that the one which worked announced on more speed entry than the other stick. The rest ist identically.</div></div></blockquote><div class=""><br class=""></div><div class="">Without your change you have a working reader and a non working one?<br class=""></div><div class=""><br class="">Using the same hardware and software platform?<br class=""> <br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">Here is the original thread for reference:</div><div class=""><a href="http://lists.alioth.debian.org/pipermail/pcsclite-muscle/Week-of-Mon-20170220/000823.html" target="_blank" class="">http://lists.alioth.debian.<wbr class="">org/pipermail/pcsclite-muscle/<wbr class="">Week-of-Mon-20170220/000823.<wbr class="">html</a></div><div class=""><br class=""></div><div class="">I forgot to answer - sorry.</div><div class=""><br class=""></div><div class="">The plattform is not a 2 byte int plattform. <br class=""></div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class=""> </div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class=""><br class=""></div><div class="">The bug must be somewhere, where it does calculate the read size…</div></div></blockquote><div class=""><br class=""></div><div class="">Try to upgrade to a recent Linux kernel.<br class=""></div><div class="">Are you using Linux?<br class=""><br class=""></div><div class="">Bye<br class=""><br class=""></div></div>-- <br class=""><div class="gmail_signature" data-smartmail="gmail_signature"> Dr. Ludovic Rousseau</div>
</div></div>
_______________________________________________<br class="">Pcsclite-muscle mailing list<br class=""><a href="mailto:Pcsclite-muscle@lists.alioth.debian.org" class="">Pcsclite-muscle@lists.alioth.debian.org</a><br class="">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle</div></blockquote></div><br class=""></div></body></html>