Help accessing compact flash memory card?

Jeff jeff at adamsclan.org
Wed Dec 28 22:47:49 EST 2005


Greetings list. I'm just a user, so I hope this is an appropriate forum 
for this question.

Quick summary:

Using a post 2.6.13 kernel, my 16-bit pcmcia compact flash card inserted 
via a pcmcia adapter is not usable. My 32-bit wireless network card is 
fully usable.

Background:

I have a compact flash memory card for my digital camera that I was able 
to successfully access on my computer up until I started using post 
2.6.13 kernel. Once I upgraded to a post 2.6.13 kernel, I was no longer 
able to access it, at first getting a message along the line of "missing 
memory_cs". After digging around the net, I found the "Linux Kernel 2.6 
PCMCIA - mini-HOWTO", and I've gone through it several times making some 
progress, but I've now reach the point that I'm stumped. I believe the 
kernel is setup correctly, as I see the card insert and the pcmcia 
subsystem assign it a device.

My best guess as to where my troubles lie is that I'm having an issue 
with the user space tools, but I'm at a loss as to how to go about 
fixing things. Debian's pcmciautils package uses UDEV rather than 
hotplug, neither of which I've gotten my head around. So any hints, 
pointers, or words of advice that anyone can provide are greatly 
appreciated.

I've provided what I hope are relevant system details below, and I'm 
happy to provide any additional information that would be helpful.

Thanks,

- Jeff


System details:

OS: Debian unstable, updated today.

lspci -v output:
-------------------------------------------------------------------
0000:00:00.0 Host bridge: Intel Corporation 82830 830 Chipset Host 
Bridge (rev 04)
         Subsystem: Matsushita Electric Industrial Co., Ltd.: Unknown 
device 8338
         Flags: bus master, fast devsel, latency 0
         Memory at <unassigned> (32-bit, prefetchable)
         Capabilities: [40] #09 [2105]

0000:00:02.0 VGA compatible controller: Intel Corporation 82830 CGC 
[Chipset Graphics Controller] (rev 04) (prog-if 00 [VGA])
         Subsystem: Matsushita Electric Industrial Co., Ltd.: Unknown 
device 8338
         Flags: bus master, fast devsel, latency 0, IRQ 5
         Memory at e8000000 (32-bit, prefetchable) [size=128M]
         Memory at e0000000 (32-bit, non-prefetchable) [size=512K]
         Capabilities: [d0] Power Management version 1

0000:00:02.1 Display controller: Intel Corporation 82830 CGC [Chipset 
Graphics Controller]
         Subsystem: Matsushita Electric Industrial Co., Ltd.: Unknown 
device 8338
         Flags: bus master, fast devsel, latency 0
         Memory at f0000000 (32-bit, prefetchable) [size=128M]
         Memory at e0080000 (32-bit, non-prefetchable) [size=512K]
         Capabilities: [d0] Power Management version 1

0000:00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 
42) (prog-if 00 [Normal decode])
         Flags: bus master, fast devsel, latency 0
         Bus: primary=00, secondary=01, subordinate=05, sec-latency=64
         I/O behind bridge: 00003000-00003fff
         Memory behind bridge: e0200000-e02fffff
         Prefetchable memory behind bridge: 30000000-31ffffff

0000:00:1f.0 ISA bridge: Intel Corporation 82801CAM ISA Bridge (LPC) 
(rev 02)
         Flags: bus master, medium devsel, latency 0

0000:00:1f.1 IDE interface: Intel Corporation 82801CAM IDE U100 (rev 02) 
(prog-if 8a [Master SecP PriP])
         Subsystem: Matsushita Electric Industrial Co., Ltd.: Unknown 
device 8338
         Flags: bus master, medium devsel, latency 0, IRQ 5
         I/O ports at <ignored>
         I/O ports at <ignored>
         I/O ports at <unassigned>
         I/O ports at <unassigned>
         I/O ports at 1840 [size=16]
         Memory at e0100000 (32-bit, non-prefetchable) [size=1K]

0000:00:1f.3 SMBus: Intel Corporation 82801CA/CAM SMBus Controller (rev 02)
         Subsystem: Matsushita Electric Industrial Co., Ltd.: Unknown 
device 8338
         Flags: medium devsel, IRQ 5
         I/O ports at 1100 [size=32]

0000:00:1f.5 Multimedia audio controller: Intel Corporation 82801CA/CAM 
AC'97 Audio Controller (rev 02)
         Subsystem: Matsushita Electric Industrial Co., Ltd.: Unknown 
device 8346
         Flags: bus master, medium devsel, latency 0, IRQ 5
         I/O ports at 1c00 [size=256]
         I/O ports at 1880 [size=64]

0000:01:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL-8139/8139C/8139C+ (rev 10)
         Subsystem: Matsushita Electric Industrial Co., Ltd.: Unknown 
device 8338
         Flags: bus master, medium devsel, latency 47, IRQ 7
         I/O ports at 3000 [size=256]
         Memory at e0202000 (32-bit, non-prefetchable) [size=256]
         Capabilities: [50] Power Management version 2

0000:01:03.0 USB Controller: NEC Corporation USB (rev 43) (prog-if 10 
[OHCI])
         Subsystem: Matsushita Electric Industrial Co., Ltd.: Unknown 
device 8338
         Flags: bus master, medium devsel, latency 36, IRQ 10
         Memory at 000d8000 (32-bit, non-prefetchable) [size=4K]
         Capabilities: [40] Power Management version 2

0000:01:03.1 USB Controller: NEC Corporation USB (rev 43) (prog-if 10 
[OHCI])
         Subsystem: Matsushita Electric Industrial Co., Ltd.: Unknown 
device 8338
         Flags: bus master, medium devsel, latency 36, IRQ 10
         Memory at 000d9000 (32-bit, non-prefetchable) [size=4K]
         Capabilities: [40] Power Management version 2

0000:01:03.2 USB Controller: NEC Corporation USB 2.0 (rev 04) (prog-if 
20 [EHCI])
         Subsystem: Matsushita Electric Industrial Co., Ltd.: Unknown 
device 8338
         Flags: bus master, medium devsel, latency 32, IRQ 11
         Memory at e0202400 (32-bit, non-prefetchable) [size=256]
         Capabilities: [40] Power Management version 2

0000:01:05.0 CardBus bridge: Ricoh Co Ltd RL5c475 (rev 88)
         Subsystem: Matsushita Electric Industrial Co., Ltd.: Unknown 
device 8338
         Flags: bus master, medium devsel, latency 128, IRQ 10
         Memory at e0200000 (32-bit, non-prefetchable) [size=4K]
         Bus: primary=01, secondary=02, subordinate=05, sec-latency=176
         Memory window 0: 30000000-31fff000 (prefetchable)
         Memory window 1: 32000000-33fff000
         I/O window 0: 00003400-000034ff
         I/O window 1: 00003800-000038ff
         16-bit legacy interface ports at 0001

0000:01:05.1 System peripheral: Ricoh Co Ltd R5C575 SD Bus Host Adapter
         Subsystem: Matsushita Electric Industrial Co., Ltd.: Unknown 
device 8338
         Flags: medium devsel, IRQ 7
         Memory at e0202800 (32-bit, non-prefetchable) [size=256]
         Capabilities: [80] Power Management version 2
-------------------------------------------------------------------

What I see  in syslog when the memory card is inserted:
-------------------------------------------------------------------
Dec 28 14:37:25 terminator kernel: pccard: PCMCIA card inserted into slot 0
Dec 28 14:37:25 terminator kernel: pcmcia: registering new device pcmcia0.0
-------------------------------------------------------------------

ls -l /sys/bus/pcmcia/devices/0.0/:
-------------------------------------------------------------------
--w------- 1 root root    0 Dec 28 21:31 allow_func_id_match
lrwxrwxrwx 1 root root    0 Dec 28 21:31 bus -> ../../../../../bus/pcmcia
-r--r--r-- 1 root root 4096 Dec 28 21:33 card_id
-r--r--r-- 1 root root 4096 Dec 28 21:33 func_id
-r--r--r-- 1 root root 4096 Dec 28 21:33 function
-r--r--r-- 1 root root 4096 Dec 28 21:33 manf_id
-r--r--r-- 1 root root 4096 Dec 28 21:31 modalias
drwxr-xr-x 2 root root    0 Dec 28 21:31 power
-r--r--r-- 1 root root 4096 Dec 28 21:33 prod_id1
-r--r--r-- 1 root root 4096 Dec 28 21:33 prod_id2
-r--r--r-- 1 root root 4096 Dec 28 21:33 prod_id3
-r--r--r-- 1 root root 4096 Dec 28 21:33 prod_id4
--w------- 1 root root 4096 Dec 28 21:33 uevent
-------------------------------------------------------------------




More information about the linux-pcmcia mailing list