Re: [opensc-devel] [patch 0/3] [RFC] Adding an 'in system' SmartCard interface

2010-05-27 Thread Juergen Beisert
Jean-Michel Pouré - GOOZE wrote: > On Wed, 2010-05-26 at 22:17 +0200, Andreas Jellinghaus wrote: > > do you have some card and app for testing? > > I contacted you and suggested that you ask for a free Feitian PKI card > and reader for testing: > http://www.gooze.eu/feitian-pki-free-software-develo

Re: [opensc-devel] [patch 0/3] [RFC] Adding an 'in system' SmartCard interface

2010-05-27 Thread Juergen Beisert
Hi Andreas, Andreas Jellinghaus wrote: > the code looks good to me. very clean, nice! Thanks. > what is missing are some small issues: > * license: LGPL-2.1+? or 3-BSD? or some other license? In my next version I replaced the license information by a link to the 'LGPL-2.1' file. Okay? > * the

Re: [opensc-devel] [patch 3/3] Add i.MX card reader support

2010-05-25 Thread Juergen Beisert
iver for 'in system' i.MX SmartCard interface > > + * > > + * License: GNU LESSER GENERAL PUBLIC LICENSE > > + * Copyright (C) 2010 Juergen Beisert > > + */ > > + > > You may want to specify a LGPL license version. 2.1 or 3.0 or (at your > option) any late

Re: [opensc-devel] [patch 3/3] Add i.MX card reader support

2010-05-25 Thread Juergen Beisert
Peter Stuge wrote: > Juergen Beisert wrote: > > The i.MX SmartCard interface > > Why imxsim since it's a generic interface? Sorry, don't have much to > say about the patchset otherwise. The API between userland and the kernel should be generic. The userland driver

[opensc-devel] [patch 0/3] [RFC] Adding an 'in system' SmartCard interface

2010-05-25 Thread Juergen Beisert
Hi list, here is my current OpenCT driver for an 'in system' SmartCard interface, based on a Freescale i.MX25 CPU and Linux 2.6.33. This CPU embedds an Smart/SIMcard controller which is able to control up to two physical interfaces. The hardware can control provided main clock to the attached card

[opensc-devel] [patch 1/3] Add file ops for a device class that does not need special device node handling

2010-05-25 Thread Juergen Beisert
This kind of devices may do not need special or common handling when they communicate with their hardware kernel drivers. Most functions are dead here, to be able to detect if they are used by accident. Signed-off-by: Juergen Beisert --- src/ifd/Makefile.am |2 - src/ifd/device.c

[opensc-devel] [patch 3/3] Add i.MX card reader support

2010-05-25 Thread Juergen Beisert
The i.MX SmartCard interface is part of the SoC, its a 'in system' interface. It only depends on the existence of a i.MX specific kernel driver. Signed-off-by: Juergen Beisert --- src/ifd/Makefile.am |2 src/ifd/ifd-imx.c | 828 +++

[opensc-devel] [patch 2/3] Keep ATR protocol information

2010-05-25 Thread Juergen Beisert
To calculate BWI and CWI we must unambiguously detect the parameter for the requested protocol. This is intended for 'in system' interfaces to SmartCards where the controlling firmware is part of the main system running in userland. Signed-off-by: Juergen Beisert --- src/ifd/at

Re: [opensc-devel] Built-in SmartCard reader

2010-05-20 Thread Juergen Beisert
Jim Rees wrote: > Juergen Beisert wrote: > > > Jim Rees wrote: > > >> You might want to add pinpad support. > > The external card reader device uses a local processor to run its own > firmware. But my case is a little bit different than with an external

Re: [opensc-devel] Built-in SmartCard reader

2010-05-20 Thread Juergen Beisert
Ludovic Rousseau wrote: > 2010/5/20 Juergen Beisert : > > Andreas Jellinghaus wrote: > >> I think > >> - read data > >> - write data > >> - warm reset > >> - hard reset > >> - get card status (card / no card / card removed and added

Re: [opensc-devel] Built-in SmartCard reader

2010-05-20 Thread Juergen Beisert
Hi Andreas, Andreas Jellinghaus wrote: > Am Mittwoch 19 Mai 2010, um 15:32:22 schrieb Juergen Beisert: > > I don't know if this is the correct list to ask this question. If not, > > please give me a pointer. > > muscle list has even more experts on writing drivers I

Re: [opensc-devel] Built-in SmartCard reader

2010-05-20 Thread Juergen Beisert
Hi Andreas, Andreas Jellinghaus wrote: > Thinking about it for a few more minutes, I have a much better > advice: implement a serial port. That was also an idea of Alax Cox. But this implies to emulate the whole reader in kernel land (the kernel driver must be the 'firmware' of this device). Th

Re: [opensc-devel] Built-in SmartCard reader

2010-05-20 Thread Juergen Beisert
Martin Paljak wrote: > On May 19, 2010, at 19:35 , Juergen Beisert wrote: > > The list gets longer: > > > > Jim Rees wrote: > >> You might want to add pinpad support. Also think about how you want to > >> handle multiple readers or multiple slots pe

Re: [opensc-devel] Built-in SmartCard reader

2010-05-19 Thread Juergen Beisert
te named entries in a per hardware feature. So, only entries exists the hardware really supports. A userland application (or openct/PCSC adaption driver) would be able to detect hardware's features by scanning the sysfs entries. Regards, Juergen -- Pengutronix e.K.

Re: [opensc-devel] Built-in SmartCard reader

2010-05-19 Thread Juergen Beisert
Martin Paljak wrote: > On May 19, 2010, at 18:15 , Juergen Beisert wrote: > > Martin Paljak wrote: > >> On May 19, 2010, at 16:32 , Juergen Beisert wrote: > >>> I don't know if this is the correct list to ask this question. If not, > >>> please

Re: [opensc-devel] Built-in SmartCard reader

2010-05-19 Thread Juergen Beisert
Martin Paljak wrote: > On May 19, 2010, at 16:32 , Juergen Beisert wrote: > > I don't know if this is the correct list to ask this question. If not, > > please give me a pointer. > > > > Other SmartCard interfaces are built into an external reader (mostly > >

[opensc-devel] Built-in SmartCard reader

2010-05-19 Thread Juergen Beisert
d. Regards, Juergen /* * Copyright (C) 2010 Juergen Beisert * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your optio