OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: [Muscle] Questions on Omnikey Cardman 4040 and Gemplus GemPC Card PCMCIA card readers

From: Sihan Goi (goistergmail.com)
Date: Tue Jul 29 2008 - 04:02:17 CDT


Thanks again.

I've actually compared my kernel config with Mandriva's. They actually look
pretty similar, except I have mine built directly into the kernel instead of
modules, the reason being I want bootup to be fast(embedded device), and I'm
using a simple shell as init.

I'm also not using udev so the ttyS* doesn't popup upon device insertion(I'm
assuming udev makes that happen?) and I'm reluctant to install udev since it
seems like a lot of files and I'm not sure if simply copying the files over
to my disk image will work, nor do I know of any other way of "installing"
it on my image offline.

I've actually got the card reader detected by pccardctl. It shows up
correctly, however when I do a lspcmcia -v, I get a [-- no driver --]
instead of [-- serial_cs --], so somehow it isn't bound to the correct
driver. In sys/bus/pcmcia/devices/0.0, I don't see a driver/ subdirectory
either. When I insert the Omnikey card reader however, it's bound to the
cm4040 driver, and I see the subdirectory.

Any idea how I might get the card reader bound to the serial_cs driver as
well as ttyS0?

On Thu, Jul 17, 2008 at 9:32 AM, David Mueller <dsm42iname.com> wrote:

> If I had to guess, I'd suspect that there is something missing from your
> kernel configuration. Do you have all the PCMCIA stuff enabled? You might
> want to compare your kernel config with Mandriva's to see what might be
> different.
>
> >From what I saw with Fedora, the appropriate /dev/ttyS* device should be
> created when the card reader is inserted into the PCMCIA slot. You should
> see this happening if you do a "tail -f /var/log/messages" before you insert
> the card reader. The issue I had was some quirk with a ThinkPad X60 where
> the ttyS* device only got created if the laptop wasn't in its docking
> station. Undocked it worked perfectly, docked it didn't. Recently though,
> I've seen it working with a docked ThinkPad X61 running Fedora 8.
>
> - David
>
> > ----- Original Message -----
> > From: "Sihan Goi" <goistergmail.com>
> > To: MUSCLE <musclelists.musclecard.com>
> > Subject: Re: [Muscle] Questions on Omnikey Cardman 4040 and Gemplus GemPC
> Card PCMCIA card readers
> > Date: Wed, 16 Jul 2008 17:40:47 +0800
> >
> >
> > Thanks, I actually got it to work on my development platform(Mandriva
> > 2008.1) using those instructions.
> >
> > However, I'm also trying to get it to work on another standalone
> > environment with Linux kernel 2.6.22.19. Unfortunately the
> > instructions there won't work because there's no /dev/ttyS0 or
> > /dev/ttyS1 in this environment. What can I do to "create" these
> > devices? Sorry for the noob questions.
> >
> > On Wed, Jul 16, 2008 at 10:11 AM, David Mueller <dsm42iname.com> wrote:
> > > The GemPC Card reader is basically a serial reader, so you have
> > > to add a file in /etc/reader.conf.d/ with configuration details.
> > > You don't need to install Gemalto's drivers; the standard
> > > ccid/pcsc-lite packages work fine. The third question here
> > > describes what you need to do:
> > >
> > >
> https://securehomes.esat.kuleuven.be/~decockd/wiki/bin/view.cgi/Installing/SmartCardReader<https://securehomes.esat.kuleuven.be/%7Edecockd/wiki/bin/view.cgi/Installing/SmartCardReader>
> > >
> > > You can find out from /var/log/messages the DEVICENAME to use,
> > > and the LIBPATH may be different than what you see there (the
> > > libccidtwin driver might have a different version, and if you're
> > > running x86_64 rather than i386, the path should be under
> > > /usr/lib64 rather than /usr/lib. CHANNELID doesn't matter, it
> > > just has to be there.
> > >
> > > Hope this helps.
> > >
> > > - David
> > >
> > >> ----- Original Message -----
> > >> From: "Sihan Goi" <goistergmail.com>
> > >> To: MUSCLE <musclelists.musclecard.com>
> > >> Subject: [Muscle] Questions on Omnikey Cardman 4040 and Gemplus
> > >> GemPC Card PCMCIA card readers
> > >> Date: Fri, 11 Jul 2008 16:20:18 +0800
> > >>
> > >>
> > >> Hi,
> > >>
> > >> I'm wondering if anyone has had experience getting these 2 card
> > >> readers to work? According to the CCID page, the GemPC Card is
> > >> supported, but I wasn't able to get it to work with the generic
> > >> CCID/pcsc-lite out of the box. Gemplus has their own CCID/pcsc-lite,
> > >> but they seem like older versions(like the CCID page stated). Also,
> > >> does that mean I have to overwrite the existing CCID/pcsc-lite
> > >> installed with Gemplus's own drivers? If so, will Gemplus's own
> > >> drivers work with other CCID readers?
> > >>
> > >> As for the Omnikey Cardman 4040, is this even CCID compliant? It
> > >> didn't work out of the box either. I've tested with 3 other
> > >> Expresscard readers and they worked out of the box, but these
> > >> Expresscard readers are explicitly stated as CCID compliant and also
> > >> listed in the CCID page.
> > >>
> > >> Any help would be appreciated, thanks!
> > >>
> > >> --
> > >> - Goi Sihan
> > >> goistergmail.com
> > >> _______________________________________________
> > >> Muscle mailing list
> > >> Musclelists.musclecard.com
> > >> http://lists.drizzle.com/mailman/listinfo/muscle
> > >
> > >>
> > >
> > >
> > > --
> > > Be Yourself mail.com!
> > > Choose From 200+ Email Addresses
> > > Get a Free Account at www.mail.com
> > >
> > >
> > > _______________________________________________
> > > Muscle mailing list
> > > Musclelists.musclecard.com
> > > http://lists.drizzle.com/mailman/listinfo/muscle
> > >
> >
> >
> >
> > --
> > - Goi Sihan
> > goistergmail.com
> > _______________________________________________
> > Muscle mailing list
> > Musclelists.musclecard.com
> > http://lists.drizzle.com/mailman/listinfo/muscle
>
> >
>
>
> --
> Be Yourself mail.com!
> Choose From 200+ Email Addresses
> Get a Free Account at www.mail.com
>
>
> _______________________________________________
> Muscle mailing list
> Musclelists.musclecard.com
> http://lists.drizzle.com/mailman/listinfo/muscle
>

--
- Goi Sihan
goistergmail.com

_______________________________________________
Muscle mailing list
Musclelists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle