LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   How to use PCMCIA Smart Card reader on Panasonic CF-29 (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/how-to-use-pcmcia-smart-card-reader-on-panasonic-cf-29-a-4175594452/)

V12venator 11-29-2016 04:52 PM

How to use PCMCIA Smart Card reader on Panasonic CF-29
 
Hello all, first time posting here and I'm wondering how I would go about using an OmniKey CardMan 4000 PCMCIA on a Panasonic Toughbook CF-29 running Linux Mint 13(?) Maya. I've downloaded and set up the software using the information at militarycac.com and feliciano.tech to no avail. Can someone point me in the right direction of recognizing the PCMCIA card on the system and telling the system where to look for the credentials on the smart card?


lsmod outputs reveal:
pcmcia 39826 1 cm4000_cs
pcmcia_rsrc 18267 1 yenta_socket
pcmcia_core 21511 3 pcmcia,yenta_socket,pcmcia_rsrc

Many thanks in advance,
V12Venator

rokytnji 11-29-2016 06:36 PM

Run

Code:

sudo updatedb
let it take it's time to finish. Then if you know the name of what came off the pmcia card

Code:

locate <name of whatever
example from my laptop

Code:

$ locate clicompanion
/etc/clicompanion.d
/etc/clicompanion.d/clicompanion2.config
/etc/clicompanion.d/clicompanion2.config.debian
/etc/clicompanion.d/clicompanion2.config.ubuntu
/usr/bin/clicompanion
/usr/lib/python2.7/dist-packages/clicompanion-1.1.egg-info
/usr/lib/python2.7/dist-packages/clicompanionlib
/usr/lib/python2.7/dist-packages/clicompanionlib/__init__.py
/usr/lib/python2.7/dist-packages/clicompanionlib/__init__.pyc
/usr/lib/python2.7/dist-packages/clicompanionlib/config.py
/usr/lib/python2.7/dist-packages/clicompanionlib/config.pyc
/usr/lib/python2.7/dist-packages/clicompanionlib/helpers.py
/usr/lib/python2.7/dist-packages/clicompanionlib/helpers.pyc
/usr/lib/python2.7/dist-packages/clicompanionlib/menus_buttons.py
/usr/lib/python2.7/dist-packages/clicompanionlib/menus_buttons.pyc
/usr/lib/python2.7/dist-packages/clicompanionlib/plugins.py
/usr/lib/python2.7/dist-packages/clicompanionlib/plugins.pyc
/usr/lib/python2.7/dist-packages/clicompanionlib/preferences.py
/usr/lib/python2.7/dist-packages/clicompanionlib/preferences.pyc
/usr/lib/python2.7/dist-packages/clicompanionlib/tabs.py
/usr/lib/python2.7/dist-packages/clicompanionlib/tabs.pyc
/usr/lib/python2.7/dist-packages/clicompanionlib/utils.py
/usr/lib/python2.7/dist-packages/clicompanionlib/utils.pyc
/usr/lib/python2.7/dist-packages/clicompanionlib/view.py
/usr/lib/python2.7/dist-packages/clicompanionlib/view.pyc
/usr/share/clicompanion
/usr/share/applications/clicompanion.desktop
/usr/share/clicompanion/locale
/usr/share/clicompanion/locale/clicompanion.mo
/usr/share/doc/clicompanion
/usr/share/doc/clicompanion/NEWS.Debian.gz
/usr/share/doc/clicompanion/changelog.Debian.gz
/usr/share/doc/clicompanion/copyright
/usr/share/man/man1/clicompanion.1.gz
/usr/share/pixmaps/clicompanion.16.png
/var/lib/dpkg/info/clicompanion.conffiles
/var/lib/dpkg/info/clicompanion.list
/var/lib/dpkg/info/clicompanion.md5sums
/var/lib/dpkg/info/clicompanion.postinst
/var/lib/dpkg/info/clicompanion.prerm
/var/tmp/mozilla_scuzbucket0/clicompanion_1.3-1_all.deb


You can look in /media folder if it is mounted also.

Code:

lspci -knn
should help identifying the cardbus.

V12venator 11-29-2016 07:00 PM

Ran updatedb and locate cm4000_cs

Comes up with kernel/drivers/.../cm4000_cs.ko for four versions of the 3.2.0 kernel, /usr/include/linux/cm4000_cs.h, and six /src/linux.../include/linux/cm4000_cs.h

lspci -knn shows cardbus bridge 0.0 and 0.1 being Ricoh Co Ltd RL5c476 II.

I don't believe my system is seeing the PCMCIA slots as being available hardware to use.

rokytnji 11-29-2016 07:34 PM

If Maya has the inxi info script.

Post output in code tags (advanced reply > hash mark on tool bar)

Code:

inxi -Fxxz
so members can see what you are running on that cf-29 as far as kernel and specs.

Sounds like you are running a old 3.2 kernel. I am on 4.8.10 myself.
Edit: Maya is new so probably a 4 version kernel of some sort should show in inxi which I now know mint linux has and uses.

rokytnji 11-29-2016 07:37 PM

Also.

Code:

dmesg | grep ricoh
might show something. Maybe?

https://linuxconfig.org/getting-know...your-linux-box

V12venator 12-02-2016 07:51 PM

From CF-29
 
To Rokytnji:

inxi output
Code:

System:    Host: ESCI-JDH-L-CF29-CE14 Kernel: 3.2.0-113-generic i686 (32 bit, gcc: 4.6.3)
          Desktop: Gnome Distro: Linux Mint 13 Maya
Machine:  System: Matsushita (portable) product: CF-29HTP44BM version: 001
          Mobo: Matsushita model: CF29-3 version: 001 Bios: Phoenix K.K. version: V3.00L13 date: 05/22/2005
CPU:      Single core Intel Pentium M (-UP-) cache: 2048 KB flags: (sse sse2) bmips: 2793.13 clocked at 1400.00 MHz
Graphics:  Card: Intel 82852/855GM Integrated Graphics Device bus-ID: 00:02.0
          X.Org: 1.11.3 drivers: intel (unloaded: fbdev,vesa) Resolution: 1024x768@60.0hz
          GLX Renderer: Mesa DRI Intel 852GM/855GM x86/MMX/SSE2 GLX Version: 1.3 Mesa 8.0.4 Direct Rendering: Yes
Audio:    Card: Intel 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller driver: snd_intel8x0 ports: 1c00 18c0 bus-ID: 00:1f.5
          Sound: Advanced Linux Sound Architecture ver: 1.0.24
Network:  Card-1: Intel PRO/Wireless 2915ABG [Calexico2] Network Connection driver: ipw2200 ver: 1.2.2kmprq bus-ID: 02:01.0
          IF: eth1 state: up mac: <filter>
          Card-2: Realtek RTL-8139/8139C/8139C+ driver: 8139too ver: 0.9.28 port: 3000 bus-ID: 02:02.0
          IF: eth0 state: down mac: <filter>
Drives:    HDD Total Size: 120.0GB (6.9% used) 1: /dev/sda SAMSUNG_HM121HC 120.0GB
Partition: ID: / size: 110G used: 7.7G (8%) fs: ext4 ID: swap-1 size: 0.26GB used: 0.19GB (74%) fs: swap
          ID: swap-2 size: 0.52GB used: 0.00GB (0%) fs: swap
Sensors:  System Temperatures: cpu: 51.8C mobo: N/A
          Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 132 Uptime: 12 min Memory: 227.9/487.0MB Runlevel: 2 Gcc sys: 4.6.3 Client: Shell inxi: 1.7.33

Nothing came back for the dmesg command.

rob.rice 12-03-2016 12:28 AM

Quote:

Originally Posted by V12venator (Post 5635993)
Ran updatedb and locate cm4000_cs

Comes up with kernel/drivers/.../cm4000_cs.ko for four versions of the 3.2.0 kernel, /usr/include/linux/cm4000_cs.h, and six /src/linux.../include/linux/cm4000_cs.h

lspci -knn shows cardbus bridge 0.0 and 0.1 being Ricoh Co Ltd RL5c476 II.

I don't believe my system is seeing the PCMCIA slots as being available hardware to use.

do a "lsmod" to check weather the kernel module is loaded or not the cms4000_cs.ko is the kernel module
next you need to find how to load the module so it will look for yoir card
had to do this for a bunch of ethernet cards it can be a bitch to get one working
you may find all the info you need in your modules configuration file
slackware has it in /etc/rc.d/rc.modules {kernel version number}
you could also try googling your card name and model number with "linux" at the end of the search string
hopes this helps

rokytnji 12-03-2016 08:59 AM

To add to rob rice said. And yes. lsmod may show something. I got a sneaky feeling the 3.2 kernel you showed you are running is older than when that smart card was made.

It is not my dog hunting. So I cannot say for sure without lot's of research.

For dmesg. try

Code:

dmesg|tail
You will get a return on that one. Look to the end lines of a readout for error messages on that smartcard.

rokytnji 12-03-2016 09:06 AM

I own a Panasonic 2001 CF-48 toughbook. It is way way older than a CF-29.

Just curious why you are running a older kernel on it is all. I can run a 4 series kernel on my single core pentium M 1.8 GHZ cpu. Running AntiX.

V12venator 12-03-2016 05:08 PM

The Processor isn't PAE capable, so I had to downgrade to Maya while already being 32 bit anyway.

rokytnji 12-03-2016 05:50 PM

Quote:

The Processor isn't PAE capable,
What> Have you more than 4 gig of ram in that CF-29. If not. It should not matter. Don't install the pae. Install the i686 or i386 version.
My panasonic cf-48 only runs 1.2 gig of ram. Maxed out.

https://community.linuxmint.com/tutorial/view/1718

V12venator 12-03-2016 07:54 PM

The kernel came with the distro. I haven't bothered to try and upgrade in case it messes with the system.

V12venator 12-03-2016 09:20 PM

Just tried to upgrade to 4.0 kernel. Said this kernel does not support non-PAE CPU.


All times are GMT -5. The time now is 12:59 AM.