Card reader linux mint

Card reader linux mint

у меня версия ядра 4.8 и картридер rts5229 не работает
при выполнении команды make (папка родного драйвера) выдает:

/media/sda2/DISTRIBS/OS/Linux/distr/rts5229/rtsx.c:148:55: error: macro «__DATE__» might prevent reproducible builds [-Werror=date-time]
SPRINTF(» Build: %s, %s\n», __DATE__, __TIME__);
^
/media/sda2/DISTRIBS/OS/Linux/distr/rts5229/rtsx.c:148:55: error: macro «__TIME__» might prevent reproducible builds [-Werror=date-time]
/media/sda2/DISTRIBS/OS/Linux/distr/rts5229/rtsx.c: At top level:
/media/sda2/DISTRIBS/OS/Linux/distr/rts5229/rtsx.c:266:2: error: unknown field ‘proc_info’ specified in initializer
.proc_info = proc_info,
^
/media/sda2/DISTRIBS/OS/Linux/distr/rts5229/rtsx.c:266:17: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.proc_info = proc_info,
^

/media/sda2/DISTRIBS/OS/Linux/distr/rts5229/rtsx.c:266:17: note: (near initialization for ‘rtsx_host_template.proc_dir’)
In file included from ./include/linux/printk.h:6:0,
from ./include/linux/kernel.h:13,
from ./include/linux/sched.h:17,
from ./include/linux/blkdev.h:4,
from /media/sda2/DISTRIBS/OS/Linux/distr/rts5229/rtsx.c:23:
/media/sda2/DISTRIBS/OS/Linux/distr/rts5229/rtsx.c: In function ‘rtsx_control_thread’:
./include/linux/kern_levels.h:4:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘u64 ’ [-Wformat=]
#define KERN_SOH «\001» /* ASCII Start Of Header */
^
./include/linux/kern_levels.h:10:18: note: in expansion of macro ‘KERN_SOH’
#define KERN_ERR KERN_SOH «3» /* error conditions */
^

/media/sda2/DISTRIBS/OS/Linux/distr/rts5229/rtsx.c:521:11: note: in expansion of macro ‘KERN_ERR’
printk(KERN_ERR «Bad target number (%d:%d)\n»,
^

./include/linux/kern_levels.h:4:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘u64 ’ [-Wformat=]
#define KERN_SOH «\001» /* ASCII Start Of Header */
^
./include/linux/kern_levels.h:10:18: note: in expansion of macro ‘KERN_SOH’
#define KERN_ERR KERN_SOH «3» /* error conditions */

Любые редактирования файлов дистрибутива родного драйвера по советам из интернета не помогают, ошибки те же выскакивают, драйвер не устанавливается.

Источник

Linux Mint Forums

Welcome to the Linux Mint forums!

adding a smart card reader

adding a smart card reader

Post by joeimp » Sun May 26, 2013 11:47 am

Hi folks, I’m new to Mint and I love it. However, I’m trying to setup Firefox so that I can access PKI-enabled websites and check my .mil email. I added coolkey, but when I go to add a new security module, it keeps throwing an «Unable to add module» error. This is on a fresh install of Mint 15/Firefox 21.

I know this has been asked and answered all over the internet. It seems like there are plenty of people using a smart card reader with various Linux distros. But I cannot get past this step. I’ve combed through militarycac.com and all the message boards looking for a solution.

Does anyone have any suggestions? I followed these instructions:

Re: adding a smart card reader

Post by Chase » Tue Jun 03, 2014 2:26 am

If you’re using ActiveClient on a Windows box and Mozilla browser, try this:
1. In Mozilla menu, click Tools => Options.
2. In the dialog box, click Advanced.
3. Click the Encryption tab and then click the Security Devices button.
4. That should pop up a window titled Device Manager. Click the button marked «Load».
5. Enter a unique name for «Module Name» and then click Browse.
6. Navigate to where ActiveClient files are located on your computer. something like C:\Program Files\ActivIdentity\ActivClient\
7. Find file named acpkcs211.dll. Select it, and then click Open button.
8. Click OK, etc. to get back to Mozilla.

You may need to close and restart the browser, but I think that should do it for you.

Читайте также:  Драйвер для сканера canon lide 120 для windows 10

Re: adding a smart card reader

Post by wgn » Tue Jun 03, 2014 1:35 pm

Re: adding a smart card reader

Post by PSUPops » Wed Mar 25, 2015 12:03 pm

So I realize that this post is old, but when I Googled »Linux Mint coolkey unable to load module» I ended up here. I suspect the native coolkey package (although in the 64-bit repository) is still the 32-bit package under the hood. I don’t want or need all those ia32-lib packages just to use Coolkey, so I decided to roll with OpenSC. Also, the coolkey package in Ubuntu doesn’t support the new PIV certificates that DoD is using on their CACs anyway, so this does me no good. Try this:

1. Un-FUBAR your previous efforts by purging certain packages.
sudo apt-get remove —purge opensc openct coolkey libckyapplet* epiphany*

2. Install necessary modules (drivers) and build dependencies for middleware (OpenSC).
sudo apt-get install libpcsclite1 pcscd pcsc-tools libnss3-tools libccid libpcsclite-dev libssl-dev libreadline-dev autoconf automake build-essential docbook-xsl xsltproc libtool dh-make fakeroot autotools-dev pkg-config checkinstall

3. Double-check your build dependencies with aptitude’s »spell checker.»
sudo apt-get build-dep opensc

5. Unpackage the downloaded file (assumes you saved the file in your Downloads folder (/home/[user]/Downloads) ).
cd Downloads
. if that didn’t work, try cd

/Downloads
tar -zxvf opensc-0.14.0.tar.gz
cd opensc-0.14.0

6a. METHOD 1: From within the downloaded, extracted folder compile and perform the install. Each line will take a few moments to complete.
./bootstrap
./configure —prefix=/usr —sysconfdir=/etc/opensc
make
sudo make install

6b. METHOD 2: Alternatively, you can try to build a .deb package for install. This makes removal a breeze, but each distro handles this process a little bit differently. This process may need to be tweaked for your needs.
./boostrap
./configure —prefix=/usr —sysconfdir=/etc/opensc
make
sudo checkinstall
sudo chown *.deb

7. Load your new PKCS11 module as needed. If you chowned the .deb package in the previous step, you can move it to a safe place for re-use later.
Location of new module: /usr/lib/pkcs11/opensc-pkcs11.so

Why did I Google this? I started on Arch (love), switched to Fedora to see how they were coming along, and after I boogered up my NSS db while experimenting, decided to go back to Kubuntu. The installations are quick and painless these days for most distros (except for maybe Arch), so it wasn’t a big deal to switch once a week. Alas, I digress. Kubuntu worked fine, except the native Coolkey package doesnt support the new PIV identity certifications that the DoD uses through the GUI. This was a dealbreaker for me. I have an easy workaround, but thought I’d check Mint too (I heard the latest Mint moved away from Ubuntu repositories, and is aiming more at the native Debian repos.). Best of luck you in the Linux community. Embrace freedom.

Re: adding a smart card reader

Post by macdroid9000 » Wed Jul 01, 2015 9:52 pm

I know the answer to this post is a year old but it worked perfectly and I just wanted to thank PSUPops for the clear, concise and accurate instructions, I now have a working smart card reader on my system! OpenSC worked great in binary form on my Mac and now works wonderfully compiled and installed on my Mint box.

Re: adding a smart card reader

Post by sabby » Tue Dec 08, 2015 12:06 pm

I, too, wanted to chime in and thank POPs for that solution. This worked perfectly for Mint 17 to gain access to the Centers for Disease Control and Prevention (CDC) smartcard reader.

Now, if I can only get the CITRIX receiver to work.

Источник

Linux Mint Forums

Welcome to the Linux Mint forums!

sd card reader not working

sd card reader not working

Post by sp3k3y » Sat Apr 23, 2011 3:13 am

Читайте также:  Выключить автовход windows 10

right, being new to linux i have had a play around with a few distros and finally settled on mint.
i have managed to sort everything out but my sd card reader.
i am using a msi u135dx, searched tons of forums but cant find an answer. it worked fine on puppy and jolicloud but i never tried it on ubuntu.

any ideas would be appreciated

Re: sd card reader not working

Post by viking777 » Sat Apr 23, 2011 5:09 am

Re: sd card reader not working

Post by sp3k3y » Sat Apr 23, 2011 9:03 am

Re: sd card reader not working

Post by viking777 » Sat Apr 23, 2011 11:36 am

Hmm

This is what it should say:

Re: sd card reader not working

Post by sp3k3y » Sun Apr 24, 2011 4:33 am

Re: sd card reader not working

Post by viking777 » Sun Apr 24, 2011 5:02 am

As you can see the first line has the letters SD in two places so it is easy enough to pick out. Copy the output of the lines relating to your SD reader and post them here so we can see what model it is and what driver it should be using.

Re: sd card reader not working

Post by sp3k3y » Mon Apr 25, 2011 5:21 am

Re: sd card reader not working

Post by viking777 » Mon Apr 25, 2011 6:26 am

Oh dear that really is a problem then. That means the device is not even detected by the operating system. I was rather hoping it would be simply a driver problem that is quite easy to cure.

You say in your opening post that you have used Puppy in the past and the reader worked. Could you boot from the Puppy disk (if you still have it) open a terminal there and run the same command (lspci -v) and compare the output. If this works we will at least know the make of the reader and the driver it should be using.

For example you can see from my earlier post that my reader is called a Ricoh R5C822 and it uses the sdhci-pci driver.

Re: sd card reader not working

Post by viking777 » Mon Apr 25, 2011 6:51 am

And look through the output of that for anything related to card readers.

I had previously surmised that because your reader was internal it must be connected to the pci bus, but thinking about it that is not necessarily so, it could equally be connected to the usb bus internally, and that might explain the results you got from /var/log/messages.

Re: sd card reader not working

Post by sp3k3y » Tue Apr 26, 2011 1:19 pm

okay did lsusb -v with and without the sd card in the reader in mint and couldnt find anything relating to sd card reader.
loaded puppy on to usb and ran lspci -v and lsusb -v again nothing.
i have just loaded jolicloud ran lspci -v and got nothing i ran lsusb -v with and without the sd card in and this was the only difference below if it helps

Bus 001 Device 008: ID 0cf2:6250 ENE Technology, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0cf2 ENE Technology, Inc.
idProduct 0x6250
bcdDevice 1.00
iManufacturer 1 ENE Flash
iProduct 2 UB6250
iSerial 4 606569746801
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 498mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 6
bInterfaceProtocol 80
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)

Читайте также:  The windows are very dirty you clean them

Re: sd card reader not working

Post by viking777 » Tue Apr 26, 2011 2:39 pm

Thanks, that is what I needed.

As you may have already suspected your card reader is not supported much by Linux at the moment. I have found drivers for it though:

And the whole 159 post discussion about how to deal with it here:
https://bugs.launchpad.net/linux/+bug/5 . mments=all

Unfortunately I don’t have time to wade through all that lot especially since I can’t test any of it anyway. There are reports in that thread about successes with these drivers installed although other posts say that they only work on one particular kernel (which is probably not the one you are using).

I doubt you will enjoy trying to follow all of the information in that thread, although you could just try installing the drivers

Where xxxxxx is the name of the package file you have downloaded.

But I can’t promise you any success, basically you just have an unsupported device there.

That is the best I can do for now.

EDIT. I also read that a fix for this device has been included in Ubuntu 11.04 which means it should also be in Mint 11 if you are prepared to wait a few weeks and install that instead of Mint 10.

Источник

Linux Mint Forums

Welcome to the Linux Mint forums!

MicroSD card reader

MicroSD card reader

Post by Merlyta » Mon Oct 29, 2018 4:27 pm

Re: MicroSD card reader

Post by phd21 » Mon Oct 29, 2018 6:05 pm

It appears that particular PCI MicroSD reader is known to have problems with Linux and apparently requires specific MS Windows drivers.

Most USB microSD card adapters should work perfectly in Linux, I have a couple USB v2.x USB microSD adapters that work very well for $10us or less. If you have USB v3.x support, then get one with USB 3.x support.

If you do not have many USB ports, then get a self-powered USB hub with 4 or more USB ports which work great in Linux.

I have this USB microSD adapter below which has been working well for years ($5.11 us). I would go with USB 3 version if I had USB v3.x ports in my ancient computer.
Amazon.com: IOGEAR SD/MicroSD/MMC Card Reader/Writer, GFR204SD USB v2.x $5.11 us
https://www.amazon.com/IOGEAR-MicroSD-R . sd+adapter
.
.
.
Amazon.com: usb powered hub linux
*** Make sure they come with a power adapter ***
https://www.amazon.com/s/ref=nb_sb_noss . +hub+linux

Amazon.com: PowerTRC® 7-port USB Hub with On/off Switch, Black (7 Port USB Hub) with Ac Adapter 5V/2.0A Power Adapter $9.95us
https://www.amazon.com/PowerTRC%C2%AE-7 . T9J45R1J8H

* Amazon.com: Sabrent 4-Port USB 3.0 Hub with Individual Power Switches and LEDs Included 5V/2.5A Power Adapter (HB-UMP3) $16us
https://www.amazon.com/dp/B00TPMEOYM/re . B00L2L64BK

* Amazon.com: Anker 4-Port USB 3.0 Ultra-Slim Portable Data Hub with 12W Power Adapter for Macbook, Mac Pro / mini, iMac, XPS, Surface Pro, Notebook PCs and More 5V/2.0A Power Adapter $17us
https://www.amazon.com/dp/B0192LPK5M/re . B00L2L64BK

The only other option I can think of is to install Virtualbox and then install a version of MS Windows in that and then install the MS Windows drivers for that microSD adapter which should work. But that is a lot of effort just to get that MicroSD adapter to work when the USB options would be better and quicker.

Источник

Оцените статью