02 Micro 4-1 card reader doesn't work

Asked by Riccardo Lucchese

My O2 Micro OZ711Mx 4-in-1 MemoryCardBus doesn't recognize any kind when i plug any inside. Now I'm using edgy

I'm not sure of it(because It was a long time ago when i tried it), but I think that when i tried it in Dapper it also didn't work.

I hope somebody can help,
Riccardo.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) said :
#1

There appears to be a driver for this device on the following page:-

http://www.musclecard.com/sourcedrivers.html

It's not pleasant to install for a beginner, but there are some tips from people who have done this on the following page:-

http://www.ubuntuforums.org/archive/index.php/t-17358.html

Good luck, and if you have any specific problems with that procedure, come back and add your questions here.

Revision history for this message
Riccardo Lucchese (riccardo.lucchese) said :
#2

Thank you but I have already tried that... it ended with lines of errors after the make command... :(

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) said :
#3

What errors? Would you like to paste the whole make output to http://paste.ubuntu-nl.org/ and then paste the link here.

Revision history for this message
Riccardo Lucchese (riccardo.lucchese) said :
#4

Ok... this is the link: http://paste.ubuntu-nl.org/33130/

pcsclite was completed fully without problems.

At the end of the system.out I get :
"OZSCR installation complete."

but the make command didn't work. That's very strange to find errors like "expected ‘)’ before ‘*’ token", or?

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) said :
#5

I tried and got much the same here. I suspect it is because the OZSCR package is designed for Linux kernels 2.6.13 and below. I am on 2.6.19 and I suspect you're on 2.6.17. There is a page on a Gentoo wiki that describes how to patch the source to make it work. I did try this but the patch failed to apply for me. Maybe the original file has changed since the patch was created. Sorry, I don't think I can help you further unless you can get that file patched as per the " Driver and dependencies" section in the page below.

http://gentoo-wiki.com/HARDWARE_Acer_Travelmate_803LCi_Manual

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) said :
#6

Good news! Thanks to my good friend Neil, it can be made to work. This all presumes you have the pcsclite stuff - which you said you installed okay.

Get the dos2unix utility:-

$ sudo apt-get install tofrodos

Get the source for the OZSCR stuff:-

$ wget ftp://scrdriver:scrdriver@209.19.104.194/Linux/O2Micro_PCMCIA_SCR_203_Linux_Kernel26_OpenSource.tar.gz

Get the patches:-

$ wget http://lists.drizzle.com/pipermail/muscle/attachments/20060621/81fefc10/ozscrlx.c-patch-kernel-2.6.13-to-2.6.17configids-b-0001.bin

Unpack the source

$ tar zxvf O2Micro_PCMCIA_SCR_203_Linux_Kernel26_OpenSource.tar.gz

Fix the file that has DOS line endings (D'oh!):-

$ dos2unix OZSCR_2.0.3_Kern_2.6/src/ozscrlx-2.6.13/ozscrlx.c

Test the patch:-

$ cd OZSCR_2.0.3_Kern_2.6
$ patch --dry-run -p1 < ../ozscrlx.c-patch-kernel-2.6.13-to-2.6.17configids-b-0001.bin

You should get this..

patching file src/ozscrlx-2.6.13/ozscrlx.c

Do it for real this time:-

$ patch -p1 < ../ozscrlx.c-patch-kernel-2.6.13-to-2.6.17configids-b-0001.bin

Should get the same response. Now make and install and here's what we get:-

$ sudo ./configure-release
Found pcsclite 1.3.2 in /usr/local/lib
Found kernel 2.6.19-5-generic includes directory
Building OZSCR modules...
rm -f *.o
rm -f .*.o.d
rm -f *.ko
rm -f *.mod.*
rm -f .*.cmd
rm -rf .tmp_*
rm -f *~
make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.19-5-generic'
  CC [M] /home/alan/src/OZSCR_2.0.3_Kern_2.6/src/ozscrlx-2.6.13/ozscrlx.o
/home/alan/src/OZSCR_2.0.3_Kern_2.6/src/ozscrlx-2.6.13/ozscrlx.c:60:26: error: linux/config.h: No such file or directory
/home/alan/src/OZSCR_2.0.3_Kern_2.6/src/ozscrlx-2.6.13/ozscrlx.c: In function ‘ozscr_open’:
/home/alan/src/OZSCR_2.0.3_Kern_2.6/src/ozscrlx-2.6.13/ozscrlx.c:259: warning: unused variable ‘minor’
/home/alan/src/OZSCR_2.0.3_Kern_2.6/src/ozscrlx-2.6.13/ozscrlx.c: In function ‘ozscr_close’:
/home/alan/src/OZSCR_2.0.3_Kern_2.6/src/ozscrlx-2.6.13/ozscrlx.c:293: warning: unused variable ‘dev’
/home/alan/src/OZSCR_2.0.3_Kern_2.6/src/ozscrlx-2.6.13/ozscrlx.c:291: warning: unused variable ‘minor’
/home/alan/src/OZSCR_2.0.3_Kern_2.6/src/ozscrlx-2.6.13/ozscrlx.c: In function ‘ozscr_ioctl’:
/home/alan/src/OZSCR_2.0.3_Kern_2.6/src/ozscrlx-2.6.13/ozscrlx.c:336: warning: unused variable ‘minor’
make[2]: *** [/home/alan/src/OZSCR_2.0.3_Kern_2.6/src/ozscrlx-2.6.13/ozscrlx.o] Error 1
make[1]: *** [_module_/home/alan/src/OZSCR_2.0.3_Kern_2.6/src/ozscrlx-2.6.13] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.19-5-generic'
make: *** [default] Error 2
cp -f ozscrlx.ko /lib/modules/`uname -r`/pcmcia
cp: cannot stat `ozscrlx.ko': No such file or directory
make: *** [install] Error 1
rm -f *.o
rm -f .*.o.d
rm -f *.ko
rm -f *.mod.*
rm -f .*.cmd
rm -rf .tmp_*
rm -f *~
Copying files...
cp: cannot stat `etc/reader.conf.1.3.2': No such file or directory
/etc/reader.conf updated
OZSCR installation complete.

Doesn't that look great! I'll buy Neil a beer, you can owe me :)

Man I hope that works for you too. Let us know.

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) said :
#7

Hmm.. second thoughts, that's not looking too healthy either.. well, it's better than it was, that's for sure. Let me know how you get on anyway.

Revision history for this message
Riccardo Lucchese (riccardo.lucchese) said :
#8

when I do: ~/OZSCR_2.0.3_Kern_2.6$ patch --dry-run -p1 < ../ozscrlx.c-patch-kernel-2.6.13-to-2.6.17configids-b-0001.bin
bash:

I get :
../ozscrlx.c-patch-kernel-2.6.13-to-2.6.17configids-b-0001.bin: No file or directory

So i tried: ~/OZSCR_2.0.3_Kern_2.6/src/ozscrlx-2.6.13$ patch --dry-run -p1 < ./ozscrlx.c -patch-kernel-2.6.13-to-2.6.17configids-b-0001.bin

and I got:

patch: **** strip count atch-kernel-2.6.13-to-2.6.17configids-b-0001.bin is not a number

i tried also some other variants but I always got the same output.

:D

Revision history for this message
Laurent Bigonville (bigon) said :
#9

Thanks for the patch :)
But this driver seems to be only for the O2micro smartcard reader and not for the OZ711Mx

For the OZ711Mx have a look at: http://mmc.drzeus.cx/wiki/Controllers/O2/OZ711Mx (http://mmc.drzeus.cx/wiki/Controllers/O2/OZ711Mx?action=AttachFile)

Revision history for this message
Riccardo Lucchese (riccardo.lucchese) said :
#10

Hi Laurent!

Could you please post me how to make everything work, I just really don't know what to digit....

Thanks!

Revision history for this message
Laurent Bigonville (bigon) said :
#11

For the OZ711Mx unfortunately the driver doesn't compile and I don't have the skill to debug it.

Revision history for this message
constrapolator (constrapolator) said :
#12

    After spending about 8 hours on this, being taken full-circle from one side of the net to another. I've decided to try a hardware solution. My laptop is an HP nc6000 with two PCMCIA slots. My solution involved purchasing a card reader from ebay which functions under the pcmcia slot. I can't really specify which version -- looks about as generic as it gets. But, it works great with no configuration needed! And for only $15, I wish I thought of this earlier.

    It's not elegant, I know. But for those who just *need* card reader functionality on their notebooks, it'll get the job done.

Revision history for this message
Johnathan Morlock (johnathan-morlock) said :
#13

Not sure if this will fix the following:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/323159?comments=all

However the following link is no longer available:
ftp://scrdriver:scrdriver@209.19.104.194/Linux/O2Micro_PCMCIA_SCR_203_Linux_Kernel26_OpenSource.tar.gz

Is there another place where this can be found?

Did a google search for the file but nothing was found... still looking...

Thank you and God bless,
Johnathan

Revision history for this message
Johnathan Morlock (johnathan-morlock) said :
#14

The following possible fix:
https://answers.launchpad.net/ubuntu/+question/2535

Has a file download link in it:
tp://scrdriver:scrdriver@209.19.104.194/Linux/O2Micro_PCMCIA_SCR_203_Linux_Kernel26_OpenSource.tar.gz

This link is no longer available and if another can't be found then this possible fix is no longer a fix.

Did a Google search for the file and found nothing... still searching...

Any help with this would be appreciated.

BTW, I've made a script to automate the mmc fix process as noted in the above possible fix.

As soon as another reliable link to the above file is found I can update the script.

Here is the script thus far:
===============================================================================
#!/bin/bash
# Fix the mmc "unknown controller" issue in Ubuntu with O2Micro MMC Readers

# Install pcsclite from http://pcsclite.alioth.debian.org/
# Will this work? sudo apt-get -y install pcsclite

# Install dos2unix utility to convert the package
sudo apt-get -y install tofrodos

# Get the source code to convert
wget ftp://scrdriver:scrdriver@209.19.104.194/Linux/O2Micro_PCMCIA_SCR_203_Linux_Kernel26_OpenSource.tar.gz

# Get the patches
wget http://lists.drizzle.com/pipermail/muscle/attachments/20060621/81fefc10/ozscrlx.c-patch-kernel-2.6.13-to-2.6.17configids-b-0001.bin

# Unpack
tar zxvf O2Micro_PCMCIA_SCR_203_Linux_Kernel26_OpenSource.tar.gz

# Convert the file with DOS line endings
dos2unix OZSCR_2.0.3_Kern_2.6/src/ozscrlx-2.6.13/ozscrlx.c

# Test
cd OZSCR_2.0.3_Kern_2.6
patch --dry-run -p1 < ../ozscrlx.c-patch-kernel-2.6.13-to-2.6.17configids-b-0001.bin

# You should get this..
# patching file src/ozscrlx-2.6.13/ozscrlx.c

# Apply the patch
patch -p1 < ../ozscrlx.c-patch-kernel-2.6.13-to-2.6.17configids-b-0001.bin

# Perform the install
sudo ./configure-release
===============================================================================

Thank you and God bless,
Johnathan

Can you help with this problem?

Provide an answer of your own, or ask Riccardo Lucchese for more information if necessary.

To post a message you must log in.