PCMCIA issues ---> cs: unable to map card memory 0x1000!

Mathieu Bertrand Bertrand at tcl.ite.mee.com
Tue Feb 8 11:40:51 EST 2005


Hi,

I'm currently working on a home made board based on a MIPS processor and a
Marvell MV64340 memory controller.
The MV64340 PCI bus 1 is connected to a TI 2050 PCI/PCI bridge connected to
a PCI/PCMCIA TI 1520 cardbus bridge.
Now, I encounter troubles using PCMCIA/pccard cards... I 've tried several
cards and the issue is the same.
I use Linux 2.6.8.

Here is my PCI bus configuration :
# lspci -vv
01:0f.0 Class 0604: 104c:ac28 (rev 02)
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 64
        Bus: primary=01, secondary=02, subordinate=0a, sec-latency=0
        I/O behind bridge: 00000000-00003fff
        Memory behind bridge: c4000000-c8ffffff
        Prefetchable memory behind bridge: 00000000c0000000-00000000c3f00000
        BridgeCtl: Parity- SERR- NoISA+ VGA- MAbort- >Reset- FastB2B-
        Capabilities: [dc] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [e4] #06 [0000]

02:00.0 Class 0607: 104c:ac55 (rev 01)
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 168, cache line size 08
        Interrupt: pin A routed to IRQ 361
        Region 0: Memory at c8000000 (32-bit, non-prefetchable) [size=4K]
        Bus: primary=02, secondary=03, subordinate=06, sec-latency=176
        Memory window 0: c0000000-c1fff000 (prefetchable)
        Memory window 1: c4000000-c5fff000
        I/O window 0: 00000000-00000fff
        I/O window 1: 00001000-00001fff
        BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset+ 16bInt-
PostWrite+
        16-bit legacy interface ports at 0001

02:00.1 Class 0607: 104c:ac55 (rev 01)
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 168, cache line size 08
        Interrupt: pin A routed to IRQ 361
        Region 0: Memory at c8001000 (32-bit, non-prefetchable) [size=4K]
        Bus: primary=02, secondary=07, subordinate=0a, sec-latency=176
        Memory window 0: c2000000-c3fff000 (prefetchable)
        Memory window 1: c6000000-c7fff000
        I/O window 0: 00002000-00002fff
        I/O window 1: 00003000-00003fff
        BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset+ 16bInt-
PostWrite+
        16-bit legacy interface ports at 0001

When I call cardmgr (from the console), I have the following infomation :
# cardmgr
cardmgr[1633]: cannot access /lib/modules/2.6.10-rc2: No such file or
directory
cardmgr[1633]:cs: memory probe 0xc0000000-0xc1ffffff: excluding
0xc0000000-0xc1ffffff
cs: memory probe 0xc2000000-0xc3ffffff: excluding 0xc2000000-0xc3ffffff
cs: memory probe 0xc4000000-0xc5ffffff: excluding 0xc4000000-0xc5ffffff
cs: memory probe 0xc6000000-0xc7ffffff: excluding 0xc6000000-0xc7ffffff
cs: unable to map card memory 0x1000!
cs: unable to map card memory 0x1000!
 watching 2 sockets
# Dec 31 17:00:40 cardmgr[1638]: socket 0: Anonymous Memory
cs: unable to map card memory 0x1000!
cs: unable to map card memory 0x1000!
cs: unable to map card memory 0x1000!
cs: unable to map card memory 0x1000!
Dec 31 17:00:40 cardmgr[1638]: executing: 'modprobe memory_cs 2>&1'
Dec 31 17:00:41 cardmgr[1638]: + modprobe: could not parse modules.dep
Dec 31 17:00:41 cardmgr[1638]: +
Dec 31 17:00:41 cardmgr[1638]: modprobe exited with status 1
Dec 31 17:00:41 cardmgr[1638]: module
/lib/modules/2.6.10-rc2/pcmcia/memory_cs.o not available
Dec 31 17:00:41 cardmgr[1638]: bind 'memory_cs' to socket 0 failed: Invalid
argument

And here is the mapping of config.opts file :
include port 0x00000000-0x00000fff, port 0x00001000-0x00001fff
include port 0x00002000-0x00002fff, port 0x00003000-0x00003fff
include memory 0xc0000000-0xc1ffffff, memory 0xc4000000-0xc5ffffff
include memory 0xc2000000-0xc3ffffff, memory 0xc6000000-0xc7ffffff

I don't really know what to do.
Thank you for your precious help !

Mathieu BERTRAND
---------------------------------------------------------
Mitsubishi ITE-TCL, Rennes (FRANCE)




More information about the linux-pcmcia mailing list