amilo-forum.com

Everything you need to know about Amilo and Lifebook laptops by Fujitsu

Kernel Driver for 02 Micro in Amilo D 1845?

Everything around Linux and Unix-like operating systems.

Kernel Driver for 02 Micro in Amilo D 1845?

Postby Fezar » Wed Feb 14, 2007 1:16 pm

Hi all

I am really desperate to get my SD card reader working in Linux. It is listed under lspci, and I was wondering if there are any decent kernel drivers available. I am neebie to linux so need help! The driver listed in the sticky for hardware info (the one from muscle) is a broken download and for an old kernel. I am using OpenSuSE 10.2 on an Amilo D 1845, works great but would be better if I could use the SD card reader...

Thanks in Advance

Tom
Last edited by aspettl on Wed Feb 14, 2007 1:16 pm, edited 1 time in total.
Reason: aspettl (Wed Feb 14, 2007 4:26 pm): Moved.
Fezar
 
Posts: 25
Joined: Wed Feb 14, 2007 12:18 pm
Location: Birmingham, UK

Postby aspettl » Wed Feb 14, 2007 3:30 pm

I found this link:
http://www.linuxnet.com/sourcedrivers.html

But I have no idea if it's the right thing :?
Please let me know.

Regards
Aaron
User avatar
aspettl
Site Admin
 
Posts: 1347
Joined: Sat Mar 25, 2006 3:31 pm
Location: Germany
Notebook:
  • Lifebook E8020D

Yep

Postby Fezar » Wed Feb 14, 2007 6:58 pm

Thanks thats the link its the one I had in mind.

But the download link for the driver I want - the O2Micro one is a broken link. Probably because its outdated. I'm, looking for the same thing for a 2.6.18 kernel, I've tried googling for it and can only find links relating to this project. I wonder if it has been discontinued? If so do you know of any other projects going on?

Thanks for responding

TOM
Fezar
 
Posts: 25
Joined: Wed Feb 14, 2007 12:18 pm
Location: Birmingham, UK

Postby aspettl » Thu Feb 15, 2007 5:52 pm

Oh, sorry, I didn't see that it's the same link :oops: (It seems the link worked less than a month ago...)
Afaik the built-in PCMCIA controller works with the yenta module.
The cardreader itself is often connected via PCMCIA.

I found this interesting page:
http://mmc.drzeus.cx/wiki/Controllers/O2/OZ711Mx

What does lspci say?

Regards
Aaron
User avatar
aspettl
Site Admin
 
Posts: 1347
Joined: Sat Mar 25, 2006 3:31 pm
Location: Germany
Notebook:
  • Lifebook E8020D

Nice one

Postby Fezar » Sun Feb 18, 2007 3:04 pm

Sorry for the delay
Excellent found the page for my exact reader!

lspci -v reads:
Code: Select all
00:09.2 System peripheral: O2 Micro, Inc. OZ711Mx 4-in-1 MemoryCardBus Accelerator
        Subsystem: Fujitsu Siemens Computer GmbH Unknown device 106d
        Flags: slow devsel, IRQ 5
        Memory at dfffd000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [a0] Power Management version 2


and lspci -n reads:

Code: Select all
00:09.2 Class 0880: 1217:7110

So it is the card on the first page of the link you provided. But it appears that there is incomplete source to compile a driver from for it... :(
Fezar
 
Posts: 25
Joined: Wed Feb 14, 2007 12:18 pm
Location: Birmingham, UK

setpci?

Postby Fezar » Mon Feb 19, 2007 5:45 pm

http://www.linuxquestions.org/questions/showthread.php?p=2563950#post2563950

Here mike80234 recommends to use setpci to set the card reader up.

I have tried

Code: Select all
setpci --s 00:09 4d.b=02


(trying to change the syntax to suit my system, but I don't really know how to use set pci from my information...)

So here is lspci -v for my reader:
Code: Select all
00:09.0 CardBus bridge: O2 Micro, Inc. OZ711M1/MC1 4-in-1 MemoryCardBus Controller (rev 20)
        Subsystem: Fujitsu Siemens Computer GmbH Unknown device 106d
        Flags: bus master, stepping, slow devsel, latency 168, IRQ 169
        Memory at 58000000 (32-bit, non-prefetchable) [size=4K]
        Bus: primary=00, secondary=02, subordinate=05, sec-latency=176
        Memory window 0: 50000000-51fff000 (prefetchable)
        Memory window 1: 52000000-53fff000
        I/O window 0: 00001000-000010ff
        I/O window 1: 00001400-000014ff
        16-bit legacy interface ports at 0001

00:09.1 CardBus bridge: O2 Micro, Inc. OZ711M1/MC1 4-in-1 MemoryCardBus Controller (rev 20)
        Subsystem: Fujitsu Siemens Computer GmbH Unknown device 106d
        Flags: bus master, stepping, slow devsel, latency 168, IRQ 169
        Memory at 58001000 (32-bit, non-prefetchable) [size=4K]
        Bus: primary=00, secondary=06, subordinate=09, sec-latency=176
        Memory window 0: 54000000-55fff000 (prefetchable)
        Memory window 1: 56000000-57fff000
        I/O window 0: 00001800-000018ff
        I/O window 1: 00001c00-00001cff
        16-bit legacy interface ports at 0001

00:09.2 System peripheral: O2 Micro, Inc. OZ711Mx 4-in-1 MemoryCardBus Accelerator
        Subsystem: Fujitsu Siemens Computer GmbH Unknown device 106d
        Flags: slow devsel, IRQ 5
        Memory at dfffd000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [a0] Power Management version 2


the post also recommends to try tifm-0[1].6b.tar.bz2 which I am trying now
Fezar
 
Posts: 25
Joined: Wed Feb 14, 2007 12:18 pm
Location: Birmingham, UK

tifmxx driver

Postby Fezar » Mon Feb 19, 2007 6:04 pm

Tried the new module as from destructions below:

5 in 1 bridge Media Adapter: In this section, we will download, compile, and install the tifmxx driver for the 5 in 1 bridge Media Adapter. I know it works well with SD cards, but haven't tested it with the other four sorts of cards it's supposed to accept.
Download tifm-0.5c.tar.bz2 from here.
As a regular user,
mkdir tifm-0.5c
cd tifm-0.5c
tar xjf /path/to/tifm-0.5c.tar.bz2
make
As root,
cp *.ko /lib/modules/`uname -r`/kernel/drivers/mmc/
/sbin/depmod -a
/sbin/modprobe tifm_7xx1
/sbin/modprobe mmc_block
/sbin/modprobe tifm_sd
If you insert an SD card at this point, it is automatically mounted and a Nautilus window for it pops up on your desktop. The card is the device /dev/mmcblk0p1. It is mounted at /media/disk.


Nope. Doesn't work, worth a try, although it isn't for my hardware anyway :roll:
Fezar
 
Posts: 25
Joined: Wed Feb 14, 2007 12:18 pm
Location: Birmingham, UK

Postby Fezar » Wed Mar 14, 2007 12:26 pm

http://pieleric.free.fr/o2scr/
has some source files which according to:

http://lists.musclecard.com/pipermail/m ... 06180.html
Might do the trick...

The .c file states that it is for the 2.6 kernel!

Can anyone explain how to compile and use this as a kernel driver?
There is a header and a .c file available

Tom
Fezar
 
Posts: 25
Joined: Wed Feb 14, 2007 12:18 pm
Location: Birmingham, UK

Postby aspettl » Wed Mar 14, 2007 10:29 pm

Maybe I can try the next days (my E8020D has the same card reader), but I'm not that confident...

Regards
Aaron
User avatar
aspettl
Site Admin
 
Posts: 1347
Joined: Sat Mar 25, 2006 3:31 pm
Location: Germany
Notebook:
  • Lifebook E8020D

Postby Fezar » Thu Mar 15, 2007 5:25 pm

OK, when I get my laptop going again I'll be sure to post what it does if can can figure out what to do. Thanks for responding.

When you say you have the same card reader, do you mean the same one from the link in my last post, or do you mean the same one as myself:
http://mmc.drzeus.cx/wiki/Controllers/O2/OZ711Mx
(The O2 Micro, Inc. OZ711Mx 4-in-1 MemoryCardBus Accelerator)?
The one in the link is slightly different, but common sense tells me that it would be sensible to make a driver that works for a few similar o2micro card readers. If it is the same as mine, have you ever got it to work in a specific linux distro? I am using openSuSE 10.2, but I've heard that some have got it to work in slackware, or it might have been debian...

I've also heard ubuntu has very good hardware support
Fezar
 
Posts: 25
Joined: Wed Feb 14, 2007 12:18 pm
Location: Birmingham, UK

Postby aspettl » Thu Mar 15, 2007 6:27 pm

lspci -v for my Lifebook E8020D:
Code: Select all
06:03.0 CardBus bridge: O2 Micro, Inc. OZ711M1/MC1 4-in-1 MemoryCardBus Controller (rev 20)
        Subsystem: Fujitsu Limited. Unknown device 12fe
        Flags: bus master, stepping, slow devsel, latency 168, IRQ 16
        Memory at c8307000 (32-bit, non-prefetchable) [size=4K]
        Bus: primary=06, secondary=07, subordinate=07, sec-latency=176
        Memory window 0: 50000000-53fff000 (prefetchable)
        Memory window 1: 58000000-5bfff000
        I/O window 0: 00004000-000040ff
        I/O window 1: 00004400-000044ff
        16-bit legacy interface ports at 0001

06:03.1 CardBus bridge: O2 Micro, Inc. OZ711M1/MC1 4-in-1 MemoryCardBus Controller (rev 20)
        Subsystem: Fujitsu Limited. Unknown device 12fe
        Flags: bus master, stepping, slow devsel, latency 168, IRQ 16
        Memory at c8308000 (32-bit, non-prefetchable) [size=4K]
        Bus: primary=06, secondary=08, subordinate=0b, sec-latency=176
        Memory window 0: 54000000-57fff000 (prefetchable)
        Memory window 1: 5c000000-5ffff000
        I/O window 0: 00004800-000048ff
        I/O window 1: 00004c00-00004cff
        16-bit legacy interface ports at 0001

06:03.2 System peripheral: O2 Micro, Inc. OZ711Mx 4-in-1 MemoryCardBus Accelerator
        Subsystem: Fujitsu Limited. Unknown device 12fe
        Flags: slow devsel, IRQ 11
        Memory at c8304000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [a0] Power Management version 2

Seems to be the same as yours.
I have Ubuntu. I'll look into it a bit...

Regards
Aaron
User avatar
aspettl
Site Admin
 
Posts: 1347
Joined: Sat Mar 25, 2006 3:31 pm
Location: Germany
Notebook:
  • Lifebook E8020D

Postby aspettl » Thu Mar 15, 2007 11:14 pm

Ok, I did manage to compile the driver, just used "O2Micro_PCMCIA_SCR_203_Linux_Kernel26_OpenSource.tar.gz" with your driver files from above (for kernel 2.6.17+, I used debug mode).
Before, I installed packages pcscd and pcsc-tools, provided by Ubuntu.

"modprobe ozscrlx" gives me (dmesg):
Code: Select all
OZSCRLX O2Micro SmartCardBus Reader (for kernel >= 2.6.17)
OZSCRLX init_ozscrlx: major num: 252


Then creating the device node:
Code: Select all
mknod /dev/ozscrlx c 252 0


But it doesn't work:
Code: Select all
# pcsc_scan
PC/SC device scanner
V 1.4.5 (c) 2001-2006, Ludovic Rousseau <ludovic.rousseau@free.fr>
Compiled with PC/SC lite version: 1.2.9-beta9
Scanning present readers
Waiting for the first reader...

(nothing happens after that)
And:
Code: Select all
# pcscd -d -f
pcscdaemon.c:259:main() pcscd set to foreground with debug send to stderr
readerfactory.c:1095:RFInitializeReader() Attempting startup of O2Micro SmartCardBus Reader 00 00.
readerfactory.c:933:RFBindFunctions() Loading IFD Handler 2.0
ifdhandler.c:121:IFDHCreateChannel Lun 0, Channel F10000

ctapi.c:106:CT_init CT_init enter
ctapi.c:119:CT_init Try to open channel dev/ozscrlx
ctapi.c:136:CT_init CT_init exit (-11)
readerfactory.c:1130:RFInitializeReader() Open Port F10000 Failed (/dev/ozscrlx)
readerfactory.c:1012:RFUnloadReader() Unloading reader driver.
readerfactory.c:251:RFAddReader() O2Micro SmartCardBus Reader init failed.
pcscdaemon.c:464:main() pcsc-lite 1.3.1 daemon ready.


Edit:
Sometimes card reader is connected via pcmcia, but I suppose that isn't the case for us - or it wouldn't appear in lspci...
I also don't see anything with pccardctl:
Code: Select all
aaron@aaron:~$ pccardctl info
PRODID_1=""
PRODID_2=""
PRODID_3=""
PRODID_4=""
MANFID=0000,0000
FUNCID=255
PRODID_1=""
PRODID_2=""
PRODID_3=""
PRODID_4=""
MANFID=0000,0000
FUNCID=255
aaron@aaron:~$ pccardctl ls
Socket 0 Bridge:        [yenta_cardbus]         (bus ID: 0000:06:03.0)
Socket 1 Bridge:        [yenta_cardbus]         (bus ID: 0000:06:03.1)

(Yenta seems to work, but I haven't got any cards to confirm it...)

Regards
Aaron
User avatar
aspettl
Site Admin
 
Posts: 1347
Joined: Sat Mar 25, 2006 3:31 pm
Location: Germany
Notebook:
  • Lifebook E8020D

Postby Fezar » Fri Mar 16, 2007 8:43 am

Thats a shame, thanks for testing it out, I guess its just a case of waiting for new versions of our distro's to be brought out with this hardware support...
Tom
Fezar
 
Posts: 25
Joined: Wed Feb 14, 2007 12:18 pm
Location: Birmingham, UK


Return to Linux / Unix / BSD