Re: [SLUG] Problems with compactflash

From: Bryan-TheBS-Smith (b.j.smith@ieee.org)
Date: Mon Sep 24 2001 - 21:22:34 EDT


Chuck Hast wrote:
> I am new to this list, but have been enjoying it. Now I will pass a
> question on to you all, I have a desktop running RH 7.1. I wanted
> to be able to pull image files off of the compact flash cards my
> camera uses, so I went out a purchased a Antec DataChute PCMCIA
> PCI adaptor in order to put PCMCIA on my desktop machine.

It's Ricoh-based, and seems to be detected according to your dump.
Hmmm, there may be a parameter or two you need to add to
/etc/sysconfig/pcmcia (assuming you're using RedHat).

> I can put NIC cards, wireless NIC cards, modems, and serial port cards
> in it and all appear to work just fine. But when I put a compact flash
> card in it, the machine locks up. If I pop the card out the machine will
> start to respond slowly and then finally you hear two beeps and things
> are back to normal.

That's bad. It shouldn't be "locking up." Understand that the
Linux card services (cs) is just a mechanism to load a module (like
ide-cs) and run a script (depending on the device) when you
insert/eject a card.

Try booting up without the card inserted. Then inserting it. Also,
what "adapter" are you using, assuming the compact flash requires
one to fit in a PCMCIA slot?

> Below is a copy of the message log (/var/log/messages)
> Aug 25 22:59:17 gecko cardmgr[1120]: starting, version is 3.1.22
> Aug 25 22:59:17 gecko cardmgr[1120]: watching 2 sockets
> Aug 25 22:59:17 gecko kernel: cs: IO port probe 0x0c00-0x0cff: clean.
> Aug 25 22:59:17 gecko kernel: cs: IO port probe 0x0100-0x04ff:
> excluding 0x200-0x207 0x220-0x22f 0x330-0x337 0x378-0x37f 0x388-0x38f
> 0x4d0-0x4d7
> Aug 25 22:59:17 gecko kernel: cs: IO port probe 0x0a00-0x0aff: clean.
> Aug 25 22:59:47 gecko cardmgr[1120]: initializing socket 0
> Aug 25 22:59:47 gecko cardmgr[1120]: socket 0: ATA/IDE Fixed Disk
> Aug 25 22:59:48 gecko cardmgr[1120]: product info: "SunDisk", "SDP",
> "5/3 0.6"Aug 25 22:59:48 gecko cardmgr[1120]: manfid: 0x0045, 0x0401
> function: 4 (fixed disk)
> Aug 25 22:59:48 gecko cardmgr[1120]: executing: 'modprobe ide-cs'
> Aug 25 23:00:20 gecko kernel: hde: no response (status = 0xff)
> Aug 25 23:00:39 gecko kernel: ide_cs: ide_register() at 0x110 & 0x11e,
> irq 11 failed
> Aug 25 23:00:40 gecko cardmgr[1120]: get dev info on socket 0 failed:
> Resource temporarily unavailable
> Aug 25 23:00:40 gecko cardmgr[1120]: shutting down socket 0
> Aug 25 23:00:40 gecko cardmgr[1120]: executing: 'modprobe -r ide-cs'
>
> Here is what lsmod returns
>
> Module Size Used by
> ide-cd 26848 0 (autoclean)
> cdrom 27232 0 (autoclean) [ide-cd]
> via82cxxx_audio 17552 0 (autoclean)
> ac97_codec 8800 0 (autoclean) [via82cxxx_audio]
> soundcore 4464 2 (autoclean) [via82cxxx_audio]
> autofs 11264 1 (autoclean)
> ds 7280 2
> yenta_socket 11440 2
> pcmcia_core 43072 0 [ds yenta_socket]
> 3c59x 25344 1 (autoclean)
> ipchains 38976 0 (unused)
>
> And here is what "/proc/interrupts" shows
>
> CPU0
> 0: 390856 XT-PIC timer
> 1: 9035 XT-PIC keyboard
> 2: 0 XT-PIC cascade
> 8: 1 XT-PIC rtc
> 9: 981 XT-PIC eth0, Ricoh Co Ltd RL5c476 II (#2)
> 11: 1174828 XT-PIC Ricoh Co Ltd RL5c476 II, via82cxxx
> 12: 38792 XT-PIC PS/2 Mouse
> 14: 6829 XT-PIC ide0
> 15: 25208 XT-PIC ide1
> NMI: 0
> ERR: 0
>
> This is a PCI device but it is grabbing ISA interrupts.

Er, there is no such thing as an "PCI" interrupt. PCI always maps
interrupts back into the dual, 8-channel PC/AT-ISA IRQ controller,
just like ISA.

And, BTW, 16-bit PCMCIA is actually a bridge for ISA, as 32-bit
CardBus is a bridge for PCI.

> Have any of you tried to get one of these devices to work
> on your machine?
> Tnx in advanced for your time.

We use a few different vendors at AVS. I've had issues with SiS and
ViA chipsets though, since most vendors only test for Intel
compatibility (despite lagging marketshare). But in my case, I had
IRQ issues with one not even being assigned.

At least you're getting an IRQ assigned. Again, try booting without
the card inserted and get back to me. It may just be the script.

-- TheBS

-- 
Bryan "TheBS" Smith     mailto:b.j.smith@ieee.org    chat:thebs413
Engineer   AbsoluteValue Systems, Inc.   http://www.linux-wlan.org
President    SmithConcepts, Inc.      http://www.SmithConcepts.com
------------------------------------------------------------------
Those living in the US who consider the American flag to be a sym-
bol of oppression obviously fail to understand what the word means



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:01:47 EDT