Use this page to discuss issues with ATA/IDE drives, CompactFlash, and Smartmedia cards. Before posting, be sure you've checked any relevant sections of the PCMCIA-HOWTO, such as: Particularly useful bits of information to post include your laptop's make and model; the type(s) of card(s) you are using; and, of course, any relevant system log messages.

Messages Inline: 0 1

Question Compact Flash on single-board computers

Date: 1999, Nov 02
From: smckown

I'm new to PCMCIA and CompactFlash.

I will be using an Advantech PCM-5820 SBC (single-board computer) to implement a small router using LRP. I have found other folks who have accomplished this task using other models of SBC's from the company. Now, to my question.

The 5820 has a CompactFlash slot. How can I determine if I can use a SanDisk (or M-Systems or similar) CompactFlash card in this slot as a bootable device under Linux?

I understand that CompactFlash is 100% compatible with the PC Card ATA standard, so would I simply use the PCMCIA package's ide_cs driver?

Thanks smckown@ctea.com

None Re: Question: Compact Flash on single-board computers

Re: Question Compact Flash on single-board computers
Date: 1999, Nov 02
From: David Hinds <dhinds@pcmcia.sourceforge.org>

If this is the only PCMCIA device you'll be using, then you probably
do not need to use any Linux PCMCIA drivers at all... in fact, using
them will only make your life more difficult.  The reason is that
booting is a BIOS function, not a kernel function: if your BIOS knows
how to configure and boot from the CompactFlash slot, then when the
Linux kernel gets control, the card should already be set up to look
like an ordinary IDE device.

If you then want the Linux PCMCIA system to manage that slot, then
things get complicated... because the slot is already "live", and in
fact, the device is probably already mounted as your root filesystem.
There isn't much that the PCMCIA drivers can do to help: you can't hot
swap that card, for instance.  The socket driver tries to recognize
this situation and will leave this slot alone.

-- Dave

Question cdrecord possible with IDE/ATAPI adapter

Date: 1999, Dec 01
From: Dave Cook daverz

I've got a IDE/ATAPI card (an H45 QuickPcmcia card; cardctrl says it's a Shuttle Technology card) connected to an ATAPI cdrom burner. I can mount it for reading just fine (on hdk!) but it's not clear to me that it's possible to use this with cdrecord using SCSI emulation. Any hints, or is this just not possible?

None I'm not sure

Re: Question cdrecord possible with IDE/ATAPI adapter (Dave Cook)
Date: 1999, Dec 01
From: David Hinds <dhinds@pcmcia.sourceforge.org>

I honestly don't know, because I don't think I really understand how
SCSI emulation is supposed to work.  Did you follow a procedure that
was supposed to work for non-PCMCIA IDE CD recorders, and run into a
particular problem that you can describe?

-- Dave

Question EXP CDROM 940

Date: 1999, Dec 09
From: Paul Mc Clure pmcclure

I am desperatly trying to get this PC-Card Cdrom to work.
Cardmgr reports in syslog:
Unsupported card in socket 0
    product info: "EXP   ", "CDROM", "L2", ""

In the pcmcia docs it says that my card is supported but in paren's next to it is says not all of them. I have added an entry in /etc/pcmcia/config that matches this product info and binds it with ide_cs.

My question is, how can i find out where this is going wrong. It apears the card is "Seen" and reports it's "name" ok and there is an entry in the config file but i have no idea if the ide_cs driver is not seeing it or working with it. Any ideas on how to get this to work or to get more info?

Thanks Alot

Note Paul Mc Clure

Re: Question EXP CDROM 940 (Paul Mc Clure)
Date: 1999, Dec 09
From: Paul Mc Clure pmcclure

Well i have gotten alittle farther. It turns out that the config line in /etc/pcmcia/config had a "-" in the cdrom (i.e. it read cd-rom) while the card reported "cdrom". I removed the dash and now the card is identified ok but the ide_cs drive has some problems. :( In syslogd: Cardmgr: Executing 'insmode /lib/modules/2.2.10/pcmcia/ide_cs.o' kernel: ide_cs: GetNextTuple: No more itmes Cardmgr: Get dev info on Socket 0 failed: Resource temporarily unavailabe.

So what i'm guesing is the drive is asked for some info from the card but there is none to give.. What is a Tuple? Does any one have any ideas on how to get this to work? I have the source and will start going through it but i'd hate to just chop some part out or something. If some one has ANY ideas or knowledge to add please reply. I'd greatly apriciate it. I will also read the PCMCIA programers HOWTO and if i figure it out i will post the solution back to here.

None Sorry: you are out of luck

Re: Question EXP CDROM 940 (Paul Mc Clure)
Date: 1999, Dec 09
From: David Hinds <dhinds@pcmcia.sourceforge.org>

You've got one of the unsupported EXP cards.  The supported ones work
with the standard config file; the unsupported ones do not.

It isn't working with the ide_cs driver because it isn't an IDE
device.  The driver is checking the card for a configuration that it
can use, and can't find one.

-- Dave

Question ide zip disk problem

Date: 1999, Dec 12
From: Max Lamb Max

When starting up, everything goes fine, the drive is recognised as an ide device, however when ide_info runs it gives the error message open () failed : device not configured. I'm not entirely sure whats happening, and some help would be appreciated.

Question IDE Card causing havoc with 3Com card.

Date: 1999, Dec 20
From: Chris N. Brown cnbrown

Hello,

I am having a devil of a problem with my PMCIA IDE card and I was hoping that you could help me out.... I've searched the FAQ and Deja and haven't been able to figure out my problem.

Dirst things first:

My system is: RedHat 6.1, kernel 2.2.12 with pcmcia package 3.0.14. No special modification has been done to the kernel, so it's a "standard" kernel that ships with RH 6.1.

I have the following PCMCIA cards:

	3COM 3C589  Ethernet card
	Apricorn EZ-Gig IDE card

Now, here is the problem that I'm having:

When I first installed my system, I was able to use both cards (meaning that I could talk to the outside world and access data on my external IDE drive) successfully for about 2 to 3 weeks. However, after shutting down my laptop and rebooting one day, wierd things started to happen.

The 3Com card successfully initialized, but the EZ-GIG card failed to initialize... the error message that pops out to the console states that the card in socket 1 (the IDE card) is timing out.

Output from "cardctl status" says:

Socket 0:
  5V 16-bit card present
  Function 0: ready
Socket 1:
  5V 16-bit card present
  Function 0: busy, battery dead, battery low

and "dmesg" says: cs: socket 1 timed out during reset

Also, inserting the IDE card causes my ethernet card to stop functioning altogether, and causes the following output with the "dmesg" command:

eth0: interrupt(s) dropped!
eth0: command 0x5800 did not complete!
eth0: command 0x5800 did not complete!
eth0: command 0x5800 did not complete!
eth0: command 0x5800 did not complete!
eth0: command 0x5800 did not complete!
eth0: command 0x5800 did not complete!
eth0: command 0x5800 did not complete!
eth0: command 0x5800 did not complete!
eth0: command 0x5800 did not complete!
eth0: command 0x5800 did not complete!
eth0: command 0x5800 did not complete!
eth0: command 0x5800 did not complete!
eth0: command 0x5800 did not complete!
eth0: command 0x5800 did not complete!
eth0: command 0x5800 did not complete!
.... repeated forever, with the "link" light on my dongle flashing like a police siren.

I have to manually reset both pcmcia cards "via cardctl eject..." to get connected to the outside world again.

What could be causing this? I know that when the drive worked, it was using the ide_cs module. I don't think that I am having a hard drive problem, because I've tried this with 2 different drives both with the same results.

Thanks in advance, Chris Brown

None It certainly sounds like a hardware failure

Re: Question IDE Card causing havoc with 3Com card. (Chris N. Brown)
Date: 1999, Dec 20
From: David Hinds <dhinds@pcmcia.sourceforge.org>

This sounds very much like a hardware failure.  If everything used to
work, and all you did was a reboot (no software upgrades you're not
mentioning), then I don't see how something very basic like powering
up the socket could stop working.

You could try swapping your cards around, if you haven't already tried
that.  Also, if you could try testing things under Windows, that would
help to pin down whether software or hardware is at fault.

-- Dave

Question Shuttle Tech PCMCIA IDE/ATA HDD

Date: 1999, Dec 21
From: Ronald Yeo ronyeo

Hi,
 I have a PCMCIA HDD, that I have not been able to get running
in Linux.  (Shuttle Technology) In Win, it is setup as a primary-slave
and it is seen when I insert the card.  
 FYI, the devs in my /dev/ dir only goes to hdh9.

Dec  6 01:40:15 pc15 cardmgr[342]: socket 0: ATA/IDE Fixed Disk
Dec  6 01:40:15 pc15 cardmgr[342]: executing: 'insmod /lib/modules/2.2.13-7mdk/pcmcia/ide_cs.o'
Dec  6 01:40:20 pc15 kernel: hdl: ST92130AG, ATA DISK drive
Dec  6 01:40:20 pc15 kernel: ide5 at 0x160-0x167,0x366 on irq 3
Dec  6 01:40:20 pc15 kernel: hdl: ST92130AG, 2062MB w/0kB Cache, CHS=4191/16/63
Dec  6 01:40:20 pc15 kernel:  hdl: [PTBL] [523/128/63] hdl1 < hdl5 hdl6 hdl7 hdl8 >
Dec  6 01:40:20 pc15 kernel: ide_cs: hdk: Vcc = 5.0, Vpp = 0.0
Dec  6 01:40:20 pc15 cardmgr[342]: executing: './ide start hdk'
Dec  6 01:40:20 pc15 cardmgr[342]: + ./MAKEDEV: don't know how to make device "hdk"
Dec  6 01:40:20 pc15 cardmgr[342]: + open() failed: No such file or directory
Dec  6 01:40:20 pc15 cardmgr[342]: + ./ide: ./ide.opts: No such file or directory
Dec  6 01:40:20 pc15 cardmgr[342]: start cmd exited with status 1  

When I have another card (modem/nic combo) in the socket, I get an additional 2 line :

Dec  6 00:50:07 pc15 kernel: ide2: ports already in use, skipping probe
Dec  6 00:50:08 pc15 kernel: ide2: ports already in use, skipping probe

Appreciate any pointers.

I'm at my wit's end as I have been struggling with this for a long time. It's also one of the few last things that's tying me to MS.

Kernel is 2.2.13-7mdk and kernel-pcmcia-cs-2.2.13-7mdk

Ronald

None MAKEDEV is not smart enough...

Re: Question Shuttle Tech PCMCIA IDE/ATA HDD (Ronald Yeo)
Date: 1999, Dec 28
From: David Hinds <dhinds@pcmcia.sourceforge.org>

The current PCMCIA distribution has an updated ide startup script that
knows how to create the hdk device files.

Or, you can just do:

    mkdev /dev/hdk  b 57 0
    mkdev /dev/hdk1 b 57 1
    mkdev /dev/hdk2 b 57 2

etc, by hand.

-- Dave

Warning Error in /etc/pcmcia/ide script

Date: 1999, Dec 21
From: Brian Mays brian

There is an error in the /etc/pcmcia/ide script. This script contains the following lines:

    27	if [ ! -b /dev/$DEVICE ] ; then
    28	    cd /dev
    29	    mknod $DEVICE b $MAJOR 0
    30	    for $minor in 1 2 3 4 5 6 7 8 ; do
    31		mknod ${DEVICE}$minor b $MAJOR $minor
    32	    done
    33	fi
    34	eval `/sbin/ide_info /dev/$DEVICE` || usage

The "$" in front of "minor" in line 30 should not be there.

Question Unable to mount CD-ROM drive

Date: 1999, Dec 30
From: gmoh

I have a ThinkPad 560X and an IBM 24X-10X CD-ROM drive (comes with the Portable Drive Bay). The card that comes with the drive bay says it's a "IDE PC Card". However, after I plugged the card in, I'm not able to mount to /mnt/cdrom. Could anyone help me with this? The machine is running RH 6.1. Any help is appreciated.

gary

None Need more information

Re: Question Unable to mount CD-ROM drive
Date: 1999, Dec 30
From: David Hinds <dhinds@pcmcia.sourceforge.org>

First the basics: do you hear beeps when you insert the card?  Are
they happy beeps or sad beeps?  And what messages do you get in your
system log?

-- Dave

Question SmartMedia card insert doesn't work

Date: 2000, Jan 15
From: Friedemann Baitinger baiti

I have a noname SmartMedia adapter. When I insert the adapter with a card inserted or insert a card while the adapter is already inserted, the adapter is not recognized.

 syslog messages indicate:

 get dev info on socket 0 failed: Resource temporarily unavailable

Now while the card is still inserted, if I then use the cardctrl GUI and manually do a 'eject' and then a 'insert' via the pulldown menu card insertion always works without problems. The situation is reproducable either way. Inserting mechanically always fails with the same message. eject/insert sequence using the cardctl program always works. It doesn't matter how long I wait between the eject and the insert sequence.

Any ideas why it works one way but not the other. BTW: a friend of mine has the same adapter but is using a different type of notebook. With his machine, the manual insert works just fine.

None More info needed

Re: Question SmartMedia card insert doesn't work (Friedemann Baitinger)
Date: 2000, Jan 22
From: David Hinds <dhinds@pcmcia.sourceforge.org>

> 
>  get dev info on socket 0 failed: Resource temporarily unavailable

There is always another error message before this one.

What kind of laptop do you have?

-- Dave

None requested info...

Re: None More info needed (David Hinds)
Date: 2000, Jan 22
From: Friedemann Baitinger baiti

It is an IBM ThinkPad 770X, and here is the complete syslog output:

 Jan 22 09:16:36 blackbox cardmgr[28396]: initializing socket 0
 Jan 22 09:16:36 blackbox cardmgr[28396]: socket 0: ATA/IDE Fixed Disk
 Jan 22 09:16:37 blackbox cardmgr[28396]: executing: 'insmod /lib/modules/2.2.14/pcmcia/ide_cs.o irq_list=9,10,11,12'
 Jan 22 09:16:56 blackbox kernel: ide_cs: ide_register() at 0x100 & 0x10e, irq 9 failed
 Jan 22 09:16:57 blackbox cardmgr[28396]: get dev info on socket 0 failed: Resource temporarily unavailable

None more of requested info

Re: None More info needed (David Hinds)
Date: 2000, Jan 22
From: Friedemann Baitinger baiti

I thought it might also be helpful if I post the syslog output for the case where I do a manual card insert command via the cardctrl interface as described in the initial posting:

 Jan 22 09:21:15 blackbox cardmgr[28396]: initializing socket 0
 Jan 22 09:21:15 blackbox cardmgr[28396]: socket 0: ATA/IDE Fixed Disk
 Jan 22 09:21:15 blackbox cardmgr[28396]: executing: 'insmod /lib/modules/2.2.14/pcmcia/ide_cs.o irq_list=9,10,11,12'
 Jan 22 09:21:16 blackbox kernel: hde: , ATA DISK drive
 Jan 22 09:21:16 blackbox kernel: ide2 at 0x100-0x107,0x10e on irq 9
 Jan 22 09:21:16 blackbox kernel: hde: , 31MB w/0kB Cache, CHS=500/8/16
 Jan 22 09:21:16 blackbox kernel:  hde: hde1
 Jan 22 09:21:16 blackbox kernel: ide_cs: hde: Vcc = 5.0, Vpp = 0.0
 Jan 22 09:21:16 blackbox cardmgr[28396]: executing: './ide start hde'
 Jan 22 09:21:17 blackbox kernel: VFS: Disk change detected on device ide2(33,0)
 Jan 22 09:21:17 blackbox kernel:  hde: hde1
 Jan 22 09:21:17 blackbox kernel: hde: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
 Jan 22 09:21:17 blackbox kernel: hde: drive_cmd: error=0x04 { DriveStatusError }
 Jan 22 09:21:17 blackbox kernel: VFS: Disk change detected on device ide2(33,1)
 Jan 22 09:21:17 blackbox kernel:  hde: hde1
 Jan 22 09:21:17 blackbox kernel: VFS: Disk change detected on device ide2(33,1)
 Jan 22 09:21:17 blackbox kernel:  hde: hde1
 Jan 22 09:21:17 blackbox cardmgr[28396]: + /dev/hde1 on /fuji type msdos (rw)

None Something to try

Re: None more of requested info (Friedemann Baitinger)
Date: 2000, Mar 29
From: David Hinds <dhinds@pcmcia.sourceforge.org>

I've had a couple reports of problems specifically with 32MB smartmedia cards so this may be a common problem.

There shouldn't be any difference in the order of events for a manual insert versus "cardctl insert". Maybe it is a funny timing issue. Try loading the pcmcia_core module with "unreset_delay=100", or even larger values. For RedHat, you would set, in /etc/sysconfig/pcmcia:

  CORE_OPTS="unreset_delay=100"

This sets a delay, in 1/100 second units, between when a card is reset, and when a driver will be loaded. You could also try varying "vcc_settle" the same way.

-- Dave

Warning Another problem with the /etc/pcmcia/ide script.

Date: 2000, Jan 18
From: Brian Mays brian

This is another simple error in the /etc/pcmcia/ide script. This problem is caused by the following lines:

    27	if [ ! -b /dev/$DEVICE ] ; then
    28	    cd /dev
    29	    mknod $DEVICE b $MAJOR 0
    30	    for minor in 1 2 3 4 5 6 7 8 ; do
    31		mknod ${DEVICE}$minor b $MAJOR $minor
    32	    done
    33	fi

Therefore, if /dev/$DEVICE does not exist, the script goes to the /dev directory to create the device. Later, however, it tries to source the ide.opts file, which is no longer in the current directory:

    36	# Load site-specific settings
    37	ADDRESS="$SCHEME,$SOCKET,$SERIAL_NO"
    38	. $0.opts

The script somehow needs to return to the /etc/pcmcia directory after creating the device.

Brian

None Ok, I'll fix for 3.1.9

Re: Warning Another problem with the /etc/pcmcia/ide script. (Brian Mays)
Date: 2000, Jan 18
From: David Hinds <dhinds@pcmcia.sourceforge.org>

I'll fix it to not do the "cd".  I think that's a left-over from when
I used "MAKEDEV", which didn't always work, so I switched to using
mknod directly.

-- Dave

Question Recommendation for CompactFlash Reader ?

Date: 2000, Jan 31
From: Ian Thurlbeck IanThurlbeck

Hi There!

I have a user who has been using a SanDisk ImageMate parallel port device to read his camera's CompactFlash disks (he's Win NT based).

I'm going to move him to a Linux based desktop PC (i.e. not a laptop) soon and I was wondering if you can get, say, an IDE card/device that would allow him to read these CompactFlash cards under Linux's PCMCIA Card Services.

Any thoughts/pointers gratefully received!

Many thanks

Ian

-- Ian Thurlbeck

Question PCMCIA ATA/IDE card detected but not mounted

Date: 2000, Feb 04
From: Achim Spangler spangler

System:
* SUSE 6.3
* kernel 2.2.14
* pcmcia 3.1.10
* SunDisk SDP3B-4, ATA DISK drive

If I insert the mentioned ATA disk in my pcmcia 1 slot (network card in slot 0), I hear TWO high beeps (all o.k.). But the msdos filesystem on hde1 is not automatically mounted.

IMPORTANT: Later manually mounting "by hand" ("mount /dev/hde1") allow me to mount and access the drive -> only the automatic mount doesn't work

Gratulation: With an earlier version of kernel and pcmcia I had to remove my network card before inserting the ide card, because all irq's was used. But now pcmcia can use not active used irq (occupied by inactive systems like serial port). ==> THANKS

Looking in /var/log/messages I get the following: -------------------------------------------------

kernel: Linux PCMCIA Card Services 3.1.10
kernel:   kernel build: 2.2.14 #2 Mon Jan 10 10:46:39 CET 2000
kernel:   options:  [pci] [cardbus] [apm]
kernel: PCI routing table version 1.0 at 0xfe840
kernel: Intel PCIC probe: 
kernel:   TI 1225 PCI-to-CardBus at slot 00:0a, mem 0x68000000
kernel:     host opts [0]: [serial pci & irq] [no pci irq] [lat 168/176] [bus 32/34]
kernel:     host opts [1]: [serial pci & irq] [no pci irq] [lat 168/176] [bus 35/37]
kernel:     ISA irqs (scanned) = 3,4,7,9,11 polling interval = 1000 ms
cardmgr[1815]: starting, version is 3.1.10

cardmgr[1815]: watching 2 sockets

kernel: cs: IO port probe 0x1000-0x17ff: excluding 0x1000-0x103f 0x1400-0x140f
kernel: cs: IO port probe 0x0100-0x04ff: excluding 0x200-0x207 0x378-0x37f 0x4d0-0x4d7
kernel: cs: IO port probe 0x0a00-0x0aff: clean.
cardmgr[1815]: initializing socket 0 kernel: cs: memory probe 0xa0000000-0xa0ffffff: clean. cardmgr[1815]: socket 0: 3Com 589 Ethernet

cardmgr[1815]: executing: 'insmod /lib/modules/2.2.14/pcmcia/3c589_cs.o'

kernel: eth0: 3Com 3c589, io 0x310, irq 3, hw_addr 00:60:08:BA:87:80
kernel:   8K FIFO split 5:3 Rx:Tx, auto xcvr
cardmgr[1815]: executing: './network start eth0'

cardmgr[1815]: + Shutting down INET services (inetd)^[[71G^[[32mdone^[[m

cardmgr[1815]: + Starting INET services (inetd)^[[71G^[[32mdone^[[m ...

cardmgr[1815]: initializing socket 1

cardmgr[1815]: socket 1: ATA/IDE Fixed Disk

cardmgr[1815]: executing: 'insmod /lib/modules/2.2.14/pcmcia/ide_cs.o'

kernel: hde: SunDisk SDP3B-4, ATA DISK drive
kernel: ide2 at 0x100-0x107,0x10e on irq 3
kernel: hde: SunDisk SDP3B-4, 3MB w/1kB Cache, CHS=123/2/32
kernel:  hde: hde1
kernel: ide_cs: hde: Vcc = 3.3, Vpp = 0.0
cardmgr[1815]: executing: './ide start hde'
kernel: VFS: Disk change detected on device ide2(33,0)
kernel:  hde: hde1
kernel: hde: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
kernel: hde: drive_cmd: error=0x04 { DriveStatusError }
-------------------------------------------------

My ide.opts:
-------------------------------------------------
case "$ADDRESS" in
*,*,*,1)
    DO_FSTAB="y" ; DO_FSCK="y" ; DO_MOUNT="y"
    FSTYPE="msdos"
    #OPTS=""
    MOUNTPT="/mnt/ide_pcmcia_1"
    ;;
*,*,*,2)
    DO_FSTAB="y" ; DO_FSCK="y" ; DO_MOUNT="y"
    FSTYPE="msdos"
    #OPTS=""
    MOUNTPT="/mnt/ide_pcmcia_2"
    ;;
*,*,*,*)
    PARTS="1"
    ;;
esac
-------------------------------------------------

The relevant lines in /etc/fstab: -------------------------------------------------

/dev/hde1 /mnt/ide_pcmcia_1 msdos noauto,rw,user,exec,suid,umask=000 0 0

/dev/hde2 /mnt/ide_pcmcia_2 msdos noauto,rw,user,exec,suid,umask=000 0 0

-------------------------------------------------

Achim

None Just a ide.opts glitch

Re: Question PCMCIA ATA/IDE card detected but not mounted (Achim Spangler)
Date: 2000, Feb 04
From: David Hinds <dhinds@pcmcia.sourceforge.org>

> *,*,*,*)
>     PARTS="1"
>     ;;

That should be "*,*,*)".  When the ide.opts script is invoked for the
"whole device", there are only three fields in the ADDRESS variable.
When it later calls ide.opts for each partition, it adds the fourth
(partition) field.

-- Dave

Question Iomega 250MB PCMCIA-->USB problem?

Date: 2000, Feb 05
From: Michael Marder marder

I have a PCMCIA --> USB converter for a 250 MB zip drive.

All at first appears to work. I can mount the drive, have created a Linux partition with fdisk followed by mkfs, and can write files to the disk. However, I find the all long files copied to the disk are corrupt, with occasional binary garbage injected into the files.

Guesses are that either I've done something dumb with the filesystem, or else there is some sort of buffering problem.

Diagnostics: cardctl version 3.0.9

from cardctl config
Socket 1:
  Vcc = 5.0, Vpp1 = 0.0, Vpp2 = 0.0
  Interface type is memory and I/O
  IRQ 10 is exclusive, level mode, enabled
  Function 0:
    Config register base = 0x0400
      Option = 0x41, status = 0000, pin = 0000, copy = 0000
    I/O window 1: 0x0100 to 0x010f, auto sized

kernel version 2.2.5-15 (Red Hat 6.0)

From /var/log/messages:

Feb  5 11:30:44 gimou cardmgr[535]: socket 1: ATA/IDE Fixed Disk
Feb  5 11:30:44 gimou cardmgr[535]: executing: 'insmod /lib/modules/2.2.5-15/pcmcia/ide_cs.o'
Feb  5 11:30:54 gimou kernel: hde: IOMEGA ZIP 250 ATAPI, ATAPI FLOPPY drive 
Feb  5 11:30:54 gimou kernel: ide2 at 0x100-0x107,0x10e on irq 10 
Feb  5 11:30:54 gimou kernel: hde: 244766kB, 489532 blocks, 512 sector size 
Feb  5 11:30:54 gimou kernel: hde: 244736kB, 239/64/32 CHS, 4096 kBps, 512 sector size, 2941 rpm 
Feb  5 11:30:54 gimou kernel: hde: The drive reports both 250609664 and 250640384 bytes as its capacity 
Feb  5 11:30:54 gimou kernel:  hde: hde1 
Feb  5 11:30:54 gimou kernel: ide_cs: hde: Vcc = 5.0, Vpp = 0.0 
Feb  5 11:30:54 gimou cardmgr[535]: executing: './ide start hde'
Feb  5 11:30:54 gimou cardmgr[535]: + ./ide: /sbin/ide_info: No such file or directory
Feb  5 11:34:45 gimou kernel: hde: The drive reports both 250609664 and 250640384 bytes as its capacity 
Feb  5 11:34:49 gimou kernel:  hde: hde1 

That comment about two sizes of the disk doesn't sound too good, but apart from deleting old partition and creating new one and formatting it, which I did, I'm not sure what else to check. Could absence of ide_info cause problem? Are there any places to look for buffer overflows of some sort?

Thanks! Michael Marder

More More information

Re: Question Iomega 250MB PCMCIA-->USB problem? (Michael Marder)
Date: 2000, Feb 08
From: Michael Marder marder

More information is probably useful.

I upgraded to 3.0.14 (used the current RedHat rpm, which seems to have upgraded some things and not others!) I have tried adding "cis_speed=600 io_speed=400" to CORE_OPTS, but was just guessing and it didn't seem to do anything.

Here are some messages that record the controller, and also describe the error that seems to go along with the problem, from /var/log/messages, after reloading the modules and then copying a file. I'm using Iomega's preformatted disk, since the file systems I've created given the I/O problems are all corrupt.

Feb  7 20:54:57 gimou kernel:   kernel build: 2.2.5-15 #1 Mon Apr 19 22:21:09 EDT 1999 
Feb  7 20:54:57 gimou kernel:   options:  [pci] [cardbus] [apm] 
Feb  7 20:54:57 gimou kernel: Intel PCIC probe:  
Feb  7 20:54:57 gimou kernel:   O2Micro OZ6832 PCI-to-CardBus at bus 0 slot 5, mem 0x68000000, 2 sockets 
Feb  7 20:54:57 gimou kernel:     host opts [0]: [a 00] [b 00] [c 20] [d 06] [mhpg 18] [fifo 00] [e 08] [no pci irq] [lat 32/176] [bus 32/34] 
Feb  7 20:54:57 gimou kernel:     host opts [1]: [a 00] [b 00] [c 20] [d 06] [mhpg 18] [fifo 00] [e 08] [no pci irq] [lat 32/176] [bus 35/37] 
Feb  7 20:54:57 gimou kernel:     ISA irqs (default) = 3,4,10,11 polling interval = 1000 ms 
Feb  7 20:54:57 gimou cardmgr[3985]: starting, version is 3.0.14
Feb  7 20:54:57 gimou cardmgr[3985]: watching 2 sockets
Feb  7 20:54:57 gimou cardmgr[3985]: Card Services release does not match!
Feb  7 20:54:57 gimou kernel: cs: IO port probe 0x1000-0x17ff: clean. 
Feb  7 20:54:57 gimou kernel: cs: IO port probe 0x0100-0x04ff: excluding 0x3b8-0x3df 0x408-0x40f 0x480-0x48f 0x4d0-0x4d7 
Feb  7 20:54:57 gimou kernel: cs: IO port probe 0x0a00-0x0aff: clean. 
Feb  7 20:54:57 gimou cardmgr[3985]: initializing socket 1
Feb  7 20:54:58 gimou kernel: cs: memory probe 0x60000000-0x60ffffff: excluding 0x60000000-0x600fffff 
Feb  7 20:54:58 gimou cardmgr[3985]: socket 1: ATA/IDE Fixed Disk
Feb  7 20:54:58 gimou cardmgr[3985]: executing: 'insmod /lib/modules/2.2.5-15/pcmcia/ide_cs.o'
Feb  7 20:55:06 gimou kernel: hde: IOMEGA ZIP 250 ATAPI, ATAPI FLOPPY drive 
Feb  7 20:55:06 gimou kernel: ide2 at 0x100-0x107,0x10e on irq 3 
Feb  7 20:55:07 gimou cardmgr[3985]: executing: './ide start hde'
Feb  7 20:55:07 gimou cardmgr[3985]: + ./ide: /sbin/ide_info: No such file or directory
Feb  7 20:55:06 gimou kernel: hde: 244766kB, 489532 blocks, 512 sector size 
Feb  7 20:55:06 gimou kernel: hde: 244736kB, 239/64/32 CHS, 4096 kBps, 512 sector size, 2941 rpm 
Feb  7 20:55:06 gimou kernel: hde: The drive reports both 250609664 and 250640384 bytes as its capacity 
Feb  7 20:55:06 gimou kernel:  hde: hde4 
Feb  7 20:55:06 gimou kernel: ide_cs: hde: Vcc = 5.0, Vpp = 0.0 
Feb  7 20:56:19 gimou kernel: hde: The drive reports both 250609664 and 250640384 bytes as its capacity 
Feb  7 20:56:21 gimou kernel:  hde: hde4 
Feb  7 20:56:21 gimou kernel: hde: The drive reports both 250609664 and 250640384 bytes as its capacity 
Feb  7 20:56:22 gimou kernel:  hde: hde4 
Feb  7 20:57:02 gimou kernel: ide-floppy: hde: I/O error, pc = 2a, key =  4, asc = 47, ascq =  0 
Feb  7 20:57:02 gimou kernel: end_request: I/O error, dev 21:04 (hde), sector 519 
Feb  7 20:57:02 gimou kernel: ide-floppy: hde: I/O error, pc = 2a, key =  4, asc = 47, ascq =  0 
Feb  7 20:57:02 gimou kernel: end_request: I/O error, dev 21:04 (hde), sector 647 
Feb  7 20:57:02 gimou kernel: ide-floppy: hde: I/O error, pc = 2a, key =  4, asc = 47, ascq =  0 
Feb  7 20:57:02 gimou kernel: end_request: I/O error, dev 21:04 (hde), sector 775 
Feb  7 20:57:02 gimou kernel: ide-floppy: hde: I/O error, pc = 2a, key =  4, asc = 47, ascq =  0 
Feb  7 20:57:02 gimou kernel: end_request: I/O error, dev 21:04 (hde), sector 903 
Feb  7 20:57:02 gimou kernel: ide-floppy: hde: I/O error, pc = 2a, key =  4, asc = 47, ascq =  0 
Feb  7 20:57:02 gimou kernel: end_request: I/O error, dev 21:04 (hde), sector 1031 
Feb  7 20:57:02 gimou kernel: ide-floppy: hde: I/O error, pc = 2a, key =  4, asc = 47, ascq =  0 
Feb  7 20:57:02 gimou kernel: end_request: I/O error, dev 21:04 (hde), sector 1159 
Feb  7 20:57:02 gimou kernel: ide-floppy: hde: I/O error, pc = 2a, key =  4, asc = 47, ascq =  0 

None Maybe some useful information

Re: More More information (Michael Marder)
Date: 2000, Feb 08
From: David Hinds <dhinds@pcmcia.sourceforge.org>

I'm not sure what to suggest.  You might want to forward this to Gadi
Oxman, at gadio@netvision.net.il: he is the maintainer of the kernel
ide-floppy driver.  Also, I've been told that the IOMega Clik! drive
requires a patched ide-floppy driver, and it's possible that your
device has similar requirements.  For the Clik! drive, see:

    http://paulbristow.net/linux/clik.html

-- Dave

Ok Untitled

Re: None Maybe some useful information (David Hinds)
Date: 2000, Feb 09
From: Michael Marder marder

The problem with the 250 MB disks is common to all the Iomega 250 MB disks and is answered on the news groups.

One has to remove the module ide-floppy, and replace it with ide-scsi. I'm not sure how to automate that procedure yet. Anyway, the disk then shows up as sda4 rather than hde4, and everything seems to start working perfectly.

Sad CARDport 2X CDROM - resource conflict?

Date: 2000, Feb 10
From: Mike Miller Mike_Miller

I'm trying to use a CARDport 2X CDROM with RedHat 6.1.  
Unfortunately, it seems that Linux perceives a resource
conflict.

RedHat 6.1 doesn't include dump_cis, and it appears that
the only way I'd get it is to recompile the kernel.  As
I'm new to Linux, I'd prefer to avoid that, at least for
now.  What I have been able to find out follows.  Any
suggestions as to how to proceed will be gratefully
accepted!

Mike Miller

-----------
My machine is a Libretto 50.
My Linux kernel version is 2.2.12-20.
My PCMCIA driver version is 3.0.14.
------------
The CDROM works fine on the same machine (dual boot)
with Windows 95, where it's listed as using only the
i/o ports 360-363 as resources (i.e. no IRQ is used).
------------
I altered /etc/pcmcia/config to contain the lines

card "CNF CARDport CD-ROM"
  manfid 0x00aa, 0x0096
#  version "CNF CD-M", "CD-ROM"
  bind "ide_cs"

(without the alteration, the card was recognised only
as "ATA/IDE Fixed Disk")
------------
/etc/pcmcia/config.opts is the original

include port 0x100-0x4ff, port 0x1000-0x17ff
include memory 0xc0000-0xfffff
include memory 0xa0000000-0xa0ffffff, memory 0x60000000-0x60ffffff
include port 0xa00-0xaff
exclude irq 4
exclude irq 7
----------
/var/run/stab has

Socket 0: CNF CARDport CD-ROM
Socket 1: empty
-----------
/var/log/messages includes the (possibly relevant) lines

Feb  7 11:00:05 localhost kernel: PCI: No PCI bus detected 
Feb  7 11:00:06 localhost kernel: ttyS00 at 0x03f8 (irq = 4) is a 16550A 
Feb  7 11:00:06 localhost kernel: ttyS01 at 0x02f8 (irq = 3) is a 16550A 
Feb  7 11:00:06 localhost kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 
Feb  7 11:00:08 localhost pcmcia: Starting PCMCIA services:
Feb  7 11:00:08 localhost pcmcia:  modules
Feb  7 11:00:09 localhost kernel: Linux PCMCIA Card Services 3.0.14 
Feb  7 11:00:09 localhost kernel:   kernel build: 2.2.12-20 #1 Mon Sep 27 10:25:54 EDT 1999 
Feb  7 11:00:09 localhost kernel:   options:  [pci] [cardbus] [apm] 
Feb  7 11:00:09 localhost kernel: Intel PCIC probe:  
Feb  7 11:00:09 localhost kernel:   Intel i82365sl B step ISA-to-PCMCIA at port 0x3e0 ofs 0x00, 2 sockets 
Feb  7 11:00:09 localhost kernel:     host opts [0]: none 
Feb  7 11:00:09 localhost kernel:     host opts [1]: none 
Feb  7 11:00:09 localhost kernel:     ISA irqs (scanned) = 7,9,10,11,12,15 status change on irq 15 
Feb  7 11:00:09 localhost pcmcia:  cardmgr.
Feb  7 11:00:09 localhost cardmgr[324]: starting, version is 3.0.14
Feb  7 11:00:09 localhost cardmgr[324]: watching 2 sockets
Feb  7 11:00:09 localhost kernel: cs: IO port probe 0x1000-0x17ff: clean. 
Feb  7 11:00:09 localhost kernel: cs: IO port probe 0x0100-0x04ff: excluding 0x240-0x24f 0x340-0x347 0x378-0x38f 0x480-0x48f 
Feb  7 11:00:09 localhost kernel: cs: IO port probe 0x0a00-0x0aff: clean. 
Feb  7 11:00:09 localhost rc: Starting pcmcia succeeded
Feb  7 11:05:42 localhost cardmgr[324]: initializing socket 0
Feb  7 11:05:42 localhost cardmgr[324]: socket 0: CNF CARDport CD-ROM
Feb  7 11:05:42 localhost kernel: cs: memory probe 0x0d0000-0x0dffff: clean. 
Feb  7 11:05:42 localhost cardmgr[324]: executing: 'insmod /lib/modules/2.2.12-20/pcmcia/ide_cs.o'
Feb  7 11:05:42 localhost kernel: ide_cs: GetNextTuple: No more items 
Feb  7 11:05:43 localhost cardmgr[324]: get dev info on socket 0 failed: Resource temporarily unavailable
-------------
/sbin/cardctl ident says

Socket 0:
  product info: "CDROM                  ", "PLAYER  ", "001", "A"
  manfid: 0x00aa, 0x0096
  function: 4 (fixed disk)
Socket 1:
  no product info available
------------
/sbin/cardctl status says

Socket 0:
  5V 16-bit card present
  Function 0: ready, write protect
Socket 1:
  no card
----------
/sbin/cardctl config says
Socket 0:
  Vcc = 5.0, Vpp1 = 5.0, Vpp2 = 5.0
Socket 1:
  not configured
----------
/proc/ioports has the lines

0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0070-007f : rtc
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
01f0-01f7 : ide0
02f8-02ff : serial(auto)
03c0-03df : vga+
03e0-03e1 : i82365
03f6-03f6 : ide0
03f8-03ff : serial(auto)
-------------

Sad may be the same with Zenith CD

Re: Sad CARDport 2X CDROM - resource conflict? (Mike Miller)
Date: 2000, Feb 16
From: Christian Gennerat c_gennerat

It appears that a very similar model works! http://hyper.stanford.edu/HyperNews/get/pcmcia/ataide/35/4.html

You said that windows config is I/O=360-363 I experienced with a Zenith Data Systems Multimedia Interface card the same problem Windows use I/O=300-303 for CD, and 220-22F for Audio, when ide_cs starts it tries ide_register with this area and a second I/O area 0xa20 (where has it found it?) and fails.

Because ide_cs needs 2 I/O areas, the first 8 ports long, and the second 2 ports long, theese CD need a specific driver

Feedback Amacom Baby DVD on a Thinkpad 240

Date: 2000, Feb 14
From: Wasim wasim

Just to update the SUPPORTED.CARDS.

Tried out the Amacom baby DVD drive which comes with an Amacom PCMCIA card connector. This works fine (I guess the Baby CD drive should also work) on 2 separate laptops.

However, on a Thinkpad 240, I have only got it recognised twice. Once as a "OTI-SCYLLA ATAPI CD-ROM" and once as a generic ATAPI CDROM. Unfortunately, I cannot reproduce this. With the same memory range, I get varying results.

For the record, the details are - Gateway 2000SOLO: No problems.

Thinkpad240: The machine now runs the 2.2.15 kernel (as from RH6.2 beta) and the associated pcmcia bits (3.1.8). From /var/log/messages some reasonably typical messages:

--------------------------------------------------------------

Feb 14 19:25:25 localhost kernel: Intel PCIC probe:
Feb 14 19:25:25 localhost kernel:   TI 1211 PCI-to-CardBus at bus 0 slot 10, mem 0x68000000, 1 socket
Feb 14 19:25:25 localhost kernel:     host opts [0]: [ring] [pwr save] [pci + serial irq] [pci irq 11] [lat 168/176] [bus 32/34]
Feb 14 19:25:25 localhost kernel:     ISA irqs (scanned) = 3,9,10,15 status change on irq 15
Feb 14 19:25:25 localhost cardmgr[1003]: starting, version is 3.1.8
Feb 14 19:25:25 localhost cardmgr[1003]: watching 1 sockets
Feb 14 19:25:25 localhost kernel: cs: IO port probe 0x1000-0x17ff: clean.
Feb 14 19:25:25 localhost kernel: cs: IO port probe 0x0100-0x04ff: excluding 0x170-0x177 0x370-0x377
Feb 14 19:25:25 localhost kernel: cs: IO port probe 0x0a00-0x0aff: clean.
Feb 14 19:25:27 localhost cardmgr[1003]: initializing socket 0
Feb 14 19:25:27 localhost kernel: cs: memory probe 0x60000000-0x60ffffff: excluding 0x60000000-0x60ffffff
Feb 14 19:25:27 localhost kernel: cs: warning: no high memory space available!
Feb 14 19:25:27 localhost kernel: cs: memory probe 0x0d0000-0x0dffff: excluding 0xd0000-0xdffff
Feb 14 19:25:27 localhost kernel: cs: memory probe 0x0e0000-0x0effff: excluding 0xe0000-0xeffff
Feb 14 19:25:27 localhost kernel: cs: memory probe 0x0f0000-0x0fffff: excluding 0xf0000-0xfffff
Feb 14 19:25:27 localhost kernel: cs: unable to map card memory!
Feb 14 19:25:27 localhost kernel: cs: unable to map card memory!
Feb 14 19:25:27 localhost cardmgr[1003]: socket 0: Anonymous Memory
Feb 14 19:25:27 localhost cardmgr[1003]: executing: 'insmod /lib/modules/2.2.15-2.5.0/pcmcia/memory_cs.o'
Feb 14 19:25:27 localhost kernel: memory_cs: RequestWindow: Resource in use
Feb 14 19:25:28 localhost cardmgr[1003]: get dev info on socket 0 failed: Resource temporarily unavailable 

None IDE drive addition failure

Date: 2000, Feb 18
From: zvi zvi

I am trying to use an IDE disk drive on a desktop machine. The
pcmcia card reader is by ActionTec - PC700:

Interface:              16-bit ISA
Chipset:                Vadem VG-469
Configuration Modes:    Plug-N-Play compatible

The disk drive, in the sample data below, is an IDE disk drive by
Integral Peripherals - Viper 340. But I have tried also a drive
by Calluna (520Mb) that failed similarly.

The PC is running SuSE 6.2.

(Both drives work well in a laptop running windows 98 and the
 card reader works fine under windows 98)


Following is various data I hope will give some clues as
to the problem.

Last comment, the Viper drive works every now an then (one in 50 insertions`
after a reboot)...


Thanks in advance

zvi    

----Start Data
                         
lore2:/etc/pcmcia # uname -rv
2.2.10 #1 Tue Jul 20 16:32:24 MEST 1999

lore2:/etc/pcmcia # cardctl -V
cardctl version 3.0.13

lore2:~ # cardctl ident 0
  product info: "INTEGRAL PERIPHERALS", "ATA CARD"
  manfid: 0x0106, 0x0000
  function: 4 (fixed disk)

lore2:~ # cardctl status 0
  5V 16-bit card present
  Function 0: ready

lore2:~ # cardctl config 0
  Vcc = 5.0, Vpp1 = 0.0, Vpp2 = 0.0
  Interface type is memory and I/O
  IRQ 3 is exclusive, level mode, enabled
  Function 0:
    Config register base = 0x0200
      Option = 0x41, status = 0000, pin = 0000, copy = 0000
    I/O window 1: 0x0100 to 0x010f, auto sized

lore2:/etc/pcmcia # fdisk /dev/hde

The number of cylinders for this disk is set to 8963.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hde: 16 heads, 54 sectors, 8963 cylinders
Units = cylinders of 864 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hde1        621388   1251730 272307445   83  Linux
Partition 1 does not end on cylinder boundary:
     phys=(1023, 47, 54) should be (1023, 15, 54)

Command (m for help):


messages file during insertion and intialization:               

Jan  6 08:43:13 lore2 cardmgr[109]: initializing socket 0
Jan  6 08:43:13 lore2 cardmgr[109]: socket 0: ATA/IDE Fixed Disk
Jan  6 08:43:13 lore2 cardmgr[109]: executing: 'insmod /lib/modules/2.2.10/pcmcia/ide_cs.o'
Jan  6 08:43:33 lore2 kernel: hde: integral Peripherals 8340Pa, ATA DISK drive                  
Jan  6 08:43:33 lore2 kernel: hdf: no response (status = 0xa1), resetting drive
Jan  6 08:43:33 lore2 kernel: hdf: no response (status = 0xa1)
Jan  6 08:43:33 lore2 kernel: ide2 at 0x100-0x107,0x10e on irq 3
Jan  6 08:43:33 lore2 kernel: hde: integral Peripherals 8340Pa, 3781MB w/4128kB Cache, CHS=8963/
16/54                                                                                           
Jan  6 08:43:33 lore2 kernel:  hde: hde1 hde2 hde3 hde4
Jan  6 08:43:33 lore2 kernel: ide_cs: hde: Vcc = 5.0, Vpp = 0.0                                 
Jan  6 08:43:33 lore2 cardmgr[109]: executing: './ide start hde'
Jan  6 08:43:33 lore2 kernel: hde: read_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
Jan  6 08:43:33 lore2 kernel: hde: read_intr: error=0x10 { SectorIdNotFound }, CHS=31563/14/35, sector=0
Jan  6 08:43:33 lore2 kernel: hde: read_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
Jan  6 08:43:33 lore2 kernel: hde: read_intr: error=0x10 { SectorIdNotFound }, CHS=31563/14/35, sector=0
Jan  6 08:43:33 lore2 kernel: hde: read_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
Jan  6 08:43:33 lore2 kernel: hde: read_intr: error=0x10 { SectorIdNotFound }, CHS=31563/14/35, sector=0
Jan  6 08:43:33 lore2 kernel: hde: read_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }                                                                                         
Jan  6 08:43:33 lore2 kernel: hde: read_intr: error=0x10 { SectorIdNotFound }, CHS=31563/14/35, sector=0                                                                                       
 Jan  6 08:43:33 lore2 kernel: ide2: reset: success
Jan  6 08:43:33 lore2 kernel: hde: read_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
Jan  6 08:43:33 lore2 kernel: hde: read_intr: error=0x10 { SectorIdNotFound }, CHS=31563/14/35, sector=0
Jan  6 08:43:33 lore2 kernel: hde: read_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
Jan  6 08:43:33 lore2 kernel: hde: read_intr: error=0x10 { SectorIdNotFound }, CHS=31563/14/35, sector=0
Jan  6 08:43:33 lore2 kernel: hde: read_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
Jan  6 08:43:33 lore2 kernel: hde: read_intr: error=0x10 { SectorIdNotFound }, CHS=31563/14/35, sector=0
Jan  6 08:43:33 lore2 kernel: hde: read_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }                                                                                         
Jan  6 08:43:33 lore2 kernel: hde: read_intr: error=0x10 { SectorIdNotFound }, CHS=31563/14/35, sector=0
Jan  6 08:43:33 lore2 kernel: ide2: reset: success    
Jan  6 08:43:33 lore2 kernel: hde: read_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }



lore2:/etc/pcmcia # lsmod
Module                  Size  Used by
ide_cs                  3324   1
sd_mod                 15408   0  (autoclean) (unused)
vmnet                   9552   3
vmmon                  10528   0  (unused)
3c59x                  17388   1  (autoclean)
ds                      6144   4  [ide_cs]
i82365                 23308   2
pcmcia_core            41656   0  [ide_cs ds i82365]
serial                 41940   0  (autoclean)
memstat                 1412   0  (unused)
pnp                    45736   1
uart401                 6740   1
opl3                   13228   1
ad1848                 49144   1
midi                   27560   1  [pnp uart401 opl3 ad1848]
soundbase             479212   1  [pnp uart401 opl3 ad1848 midi]
sndshield               4732   0  [pnp uart401 opl3 ad1848 midi soundbase]     


----End

Sad SmartMedia Adaptor causes Kernel Oops

Date: 2000, Feb 19
From: Brian Mays brian

SmartMedia Adaptor causes Kernel Oops

When the card is inserted, everything locks up for several seconds, and the following is logged in kern.log:

    ===========================================================================
    Jan 22 20:21:31 nermal kernel: hdc: , ATA DISK drive 
    Jan 22 20:21:31 nermal kernel: hdd: no response (status = 0xa1), resetting drive 
    Jan 22 20:21:31 nermal kernel: hdd: no response (status = 0xa1) 
    Jan 22 20:21:31 nermal kernel: ide2: ports already in use, skipping probe 
    Jan 22 20:21:31 nermal kernel: ide1 at 0x100-0x107,0x10e on irq 10 
    Jan 22 20:21:31 nermal kernel: hdc: , 7MB w/1kB Cache, CHS=250/4/16 
    Jan 22 20:21:31 nermal kernel:  hdc: hdc1 
    Jan 22 20:21:31 nermal kernel: ide_cs: hdc: Vcc = 5.0, Vpp = 12.0 
    Jan 22 20:21:32 nermal kernel: VFS: Disk change detected on device ide1(22,0) 
    Jan 22 20:21:32 nermal kernel:  hdc: hdc1 
    Jan 22 20:21:32 nermal kernel: hdc: drive_cmd: status=0x51 { DriveReady SeekComplete Error } 
    Jan 22 20:21:32 nermal kernel: hdc: drive_cmd: error=0x04 { DriveStatusError } 
    Jan 22 20:22:04 nermal kernel: VFS: Disk change detected on device ide1(22,1) 
    Jan 22 20:22:04 nermal kernel:  hdc: hdc1 
    Jan 22 20:22:04 nermal kernel: VFS: Disk change detected on device ide1(22,1) 
    Jan 22 20:22:04 nermal kernel:  hdc: hdc1 
    Jan 22 20:28:31 nermal kernel: VFS: Disk change detected on device ide1(22,0) 
    Jan 22 20:28:31 nermal kernel:  hdc: hdc1 
    Jan 22 20:28:31 nermal kernel: VFS: Disk change detected on device ide1(22,0) 
    Jan 22 20:28:31 nermal kernel:  hdc: hdc1 
    ===========================================================================

Shortly after the SmartMedia Adaptor is ejected, programs start crashing or locking up randomly and one or more kernel Oopses are logged (occasionally this does not happen - probably less than 10% of the time):

    ===========================================================================
    Jan 22 20:28:42 nermal kernel: Unable to handle kernel paging request at virtual address 01ee77f8 
    Jan 22 20:28:42 nermal kernel: current->tss.cr3 = 006a3000, %cr3 = 006a3000 
    Jan 22 20:28:42 nermal kernel: *pde = 00000000 
    Jan 22 20:28:42 nermal kernel: Oops: 0000 
    Jan 22 20:28:42 nermal kernel: CPU:    0 
    Jan 22 20:28:42 nermal kernel: EIP:    0010:[free_wait+44/108] 
    Jan 22 20:28:42 nermal kernel: EFLAGS: 00010007 
    Jan 22 20:28:42 nermal kernel: eax: 00004000   ebx: 01ee77f4   ecx: c1fbc000   edx: 80000400 
    Jan 22 20:28:42 nermal kernel: esi: 01ee77f0   edi: c1fbc000   ebp: 00000207   esp: c06a5f38 
    Jan 22 20:28:42 nermal kernel: ds: 0018   es: 0018   ss: 0018 
    Jan 22 20:28:42 nermal kernel: Process kfm (pid: 282, process nr: 38, stackpage=c06a5000) 
    Jan 22 20:28:42 nermal kernel: Stack: 00000007 00000000 c012d6e0 c1fbc000 00000004 00000001 c0e1fbf8 00000000  
    Jan 22 20:28:42 nermal kernel:        00000040 00000304 c06a4000 00000000 00000000 c1fbc000 c012da69 00000007  
    Jan 22 20:28:42 nermal kernel:        c06a5fa8 c06a5fa4 c06a4000 00000000 40309c48 bffffabc c012d050 c06a5fa8  
    Jan 22 20:28:42 nermal kernel: Call Trace: [do_select+512/536] [sys_select+881/1176] [sys_ioctl+420/444] [system_call+52/56]  
    Jan 22 20:28:42 nermal kernel: Code: 8b 4e 08 89 ca 8b 41 04 39 d8 74 09 89 c2 8b 42 04 39 d8 75  
    Jan 22 20:28:55 nermal kernel: Unable to handle kernel paging request at virtual address 006c5000 
    Jan 22 20:28:55 nermal kernel: current->tss.cr3 = 00eb9000, %cr3 = 00eb9000 
    Jan 22 20:28:55 nermal kernel: *pde = 00000000 
    Jan 22 20:28:55 nermal kernel: Oops: 0000 
    Jan 22 20:28:55 nermal kernel: CPU:    0 
    Jan 22 20:28:55 nermal kernel: EIP:    0010:[__wake_up+30/72] 
    Jan 22 20:28:55 nermal kernel: EFLAGS: 00013216 
    Jan 22 20:28:55 nermal kernel: eax: c16e10a8   ebx: 80001000   ecx: c12f5080   edx: 006c5000 
    Jan 22 20:28:55 nermal kernel: esi: c16e10a4   edi: 00000001   ebp: c0ebde6c   esp: c0ebde68 
    Jan 22 20:28:55 nermal kernel: ds: 0018   es: 0018   ss: 0018 
    Jan 22 20:28:55 nermal kernel: Process XF86_SVGA (pid: 221, process nr: 30, stackpage=c0ebd000) 
    Jan 22 20:28:55 nermal kernel: Stack: 00000020 c0ebdea0 c014b329 c0814f40 c0172a81 c12f4dc0 00000020 c0ebded0  
    Jan 22 20:28:55 nermal kernel:        c0ebdf00 c0172844 00003246 00000000 c12f5080 c08140e0 c16e0f7c c014901e  
    Jan 22 20:28:55 nermal kernel:        c16e0f7c c0ebdf00 00000020 c0ebded0 c16e0f7c c16e0f7c 00000020 00000001  
    Jan 22 20:28:55 nermal kernel: Call Trace: [sock_def_readable+25/44] [unix_stream_sendmsg+573/604] [unix_stream_sendmsg+0/604] [sock_sendmsg+138/176] [unix_stream_sendmsg+0/604] [sock_readv_writev+136/148] [do_readv_writev+326/496]  
     Jan 22 20:28:55 nermal kernel:        [schedule+334/636] [sys_writev+106/144] [system_call+52/56]  
    Jan 22 20:28:55 nermal kernel: Code: 8b 02 85 c7 74 f1 39 f3 74 0c 89 d0 e8 29 f9 ff ff eb e4 8d  
    ===========================================================================

I have checked:

  *  The Card is unmounted before ejecting
  *  I use cardinfo or cardctl to eject the card before removing it
  *  The card operates correctly in a Windoze 98 machine
  *  The card operates correctly with the 2.0.38 kernel & version 3.0.5 of the PCMCIA modules

I am currently using a custom 2.2.14 kernel, however the problem seems to have existed with all 2.2 series kernels I have tried with the card (I started with 2.2.10). The laptop is a Dell Latitude XPi P133ST.

This problem is known to exist with version 3.1.8 and 3.1.10 of PC Card Services.

None Doesn't seem to be a common problem

Re: Sad SmartMedia Adaptor causes Kernel Oops (Brian Mays)
Date: 2000, Feb 28
From: David Hinds <dhinds@pcmcia.sourceforge.org>

That's peculiar.  I know that IDE PCMCIA devices generally do not
cause such problems on 2.2.* kernels, as long as you do a "cardctl
eject" prior to ejecting the cards.  But you say you get the oops even
when you shut the card down properly.

-- Dave

Question PCMCIA ATAPI CDROM burners?

Date: 2000, Feb 24
From: miles tenhand

I've got a EXT brand ATAPI cdrom burner that is recognized just fine as a cd drive, but I can't figure out how to use it as a burner.

I know that I need to use the ATAPI scsi emulation, but I'm not sure how or if that can be done with the pcmcia software.

Has this been done before?

None There's actually a new document about this

Re: Question PCMCIA ATAPI CDROM burners? (miles)
Date: 2000, Feb 24
From: David Hinds <dhinds@pcmcia.sourceforge.org>

David Gent is working on a mini-HOWTO, at:

  http://www.wam.umd.edu/~urgent/howto.html

-- Dave

Question PCMCIA card reader problems with ISA controller

Date: 2000, Feb 25
From: Steve McClure smcclure

I can't get my card reader to work correctly on my desktop machine.  I get a high low beep sequence whenever I insert a CompactFlash card.

dmesg output:
Linux PCMCIA Card Services 3.1.10
  kernel build: 2.0.36 #3 Sat Oct 2 12:56:34 EDT 1999
  options:  [pci] [cardbus]
Intel PCIC probe:
  VIA VT83C469 ISA-to-PCMCIA at port 0x3e0 ofs 0x00
    host opts [0]: [ring]
    host opts [1]: [ring]
    ISA irqs (default) = none! polling interval = 1000 ms
cs: IO port probe 0x03e0-0x03e1: clean.
cs: memory probe 0x0d0000-0x0dffff: clean.

When I insert the card I get this from dmesg:
ide_cs: GetNextTuple: No more items

cardctl ident reports:
Socket 0:
  product info: "CL ATA FLASH CARD LEXAR  ", "TORNADO", "V.00E"
  manfid: 0x4e01, 0x0200  function: 4 (fixed disk)
Socket 1:
  no product info available

etc/sysconfig/pcmcia:
PCMCIA=yes
PCIC=i82365
PCIC_OPTS="irq_list=, poll_interval=100"
CORE_OPTS=
CARDMGR_OPTS=""

etc/pcmcia/config.opts:
#
# Local PCMCIA Configuration File
#
# System resources available for PCMCIA devices
##include port 0x100-0x4ff, port 0x1000-0x17ff
#include memory 0xc0000-0xfffff, memory 0xa0000000-0xa0ffffff
include port 0x3e0-0x3e1
include memory 0xd0000-0xdffff
#
# Extra port range for IBM Token Ring#
#include port 0xa00-0xaff
## Resources we should not use, even if they appear to be available
#
# First built-in serial portexclude irq 4
# Second built-in serial port
#exclude irq 3# First built-in parallel port
exclude irq 7
## Options for loadable modules
#
# To fix sluggish network with IBM ethernet adapter...#module "pcnet_cs" opts "mem_speed=600"
#
# Options for Xircom Netwave driver...#module "netwave_cs" opts "domain=0x100 scramble_key=0x0"

#module "ide_cs" opts "irq_list=10,11,14"module "ide_cs" opts "irq_list=14"



and finally strace reports this which looks the ioctl in cardmgr.c for DS_GET_DEVICE_INFO:
ioctl(1, 0xc050643d, 0x8059bd8)         = -1 EAGAIN (Resource temporarily unavailable)

I've tried different incantations of irq_list, poll_interval, etc.  It does work in Win95 with the port and memory listed above. It uses IRQ 14 in Win95.

I have my second serial and both IDE controllers disabled in my BIOS.

Any help would be greatly appreciated.

None Two separate issues

Re: Question PCMCIA card reader problems with ISA controller (Steve McClure)
Date: 2000, Feb 25
From: David Hinds <dhinds@pcmcia.sourceforge.org>

>     ISA irqs (default) = none! polling interval = 1000 ms

It looks like you're specifying an irq_list that doesn't include any
interrupts that are actually available?

But that isn't your immediate problem.

> When I insert the card I get this from dmesg:
> ide_cs: GetNextTuple: No more items

The IDE driver isn't finding the information it needs.  Can you post
the output of "dump_cis"?

-- Dave

Note Re: two separate issues

Re: None Two separate issues (David Hinds)
Date: 2000, Feb 26
From: Steve McClure smcclure

>>     ISA irqs (default) = none! polling interval = 1000 ms
>
> It looks like you're specifying an irq_list that doesn't >include any
> interrupts that are actually available?
>
> But that isn't your immediate problem.

I removed the irq_list from /etc/sysconfig/pcmcia and now dmesg reports:

Linux PCMCIA Card Services 3.1.10
  kernel build: 2.0.36 #3 Sat Oct 2 12:56:34 EDT 1999
  options:  [pci] [cardbus]
Intel PCIC probe: 
  VIA VT83C469 ISA-to-PCMCIA at port 0x3e0 ofs 0x00
    host opts [0]: [ring]
    host opts [1]: [ring]
    ISA irqs (default) = 4,7,10,11,14 polling interval = 1000 ms
cs: IO port probe 0x03e0-0x03e1: clean.
cs: memory probe 0x0d0000-0x0dffff: clean.

>
> > When I insert the card I get this from dmesg:
> > ide_cs: GetNextTuple: No more items
>
> The IDE driver isn't finding the information it needs.  Can >you post
> the output of "dump_cis"?

This is a different CF card than in my first post but same result.

dump_cis reports:

Socket 0:
  dev_info
    fn_specific 400ns, 2kb
  common_jedec 0xdf 0x01
  manfid 0x0007, 0x0000
  vers_1 4.1, "HITACHI", "FLASH", "4.0"
  funcid fixed_disk [post]
  disk_interface [ide]
  disk_features [silicon] [unique] [single]
    [sleep] [standby] [idle] [low power]
  config base 0x0200 mask 0x000f last_index 0x03
  cftable_entry 0x00 [default]
    [rdybsy] [pwrdown]
    Vcc Vnom 5V
    memory 0x0000-0x07ff @ 0x0000
  cftable_entry 0x00
    Vcc Vnom 3300mV Ipeak 45mA
  cftable_entry 0x01 [default]
    [rdybsy] [pwrdown]
    Vcc Vnom 5V
    io 0x0000-0x000f [lines=4] [8bit] [16bit]
    irq mask 0xffff [level] [pulse] [shared]
  cftable_entry 0x01
    Vcc Vnom 3300mV Ipeak 45mA
  cftable_entry 0x02 [default]
    [rdybsy] [pwrdown]
    Vcc Vnom 5V
    io 0x01f0-0x01f7, 0x03f6-0x03f7 [lines=10] [8bit] [16bit] [range]
    irq 14 [level] [pulse] [shared]
  cftable_entry 0x02
    Vcc Vnom 3300mV Ipeak 45mA
  cftable_entry 0x03 [default]
    [rdybsy] [pwrdown]
    Vcc Vnom 5V
    io 0x0170-0x0177, 0x0376-0x0377 [lines=10] [8bit] [16bit] [range]
    irq 14 [level] [pulse] [shared]
  cftable_entry 0x03
    Vcc Vnom 3300mV Ipeak 45mA

Socket 1:
  no CIS present

>
> -- Dave

Thanks, Steve

None Re: Note: Re: two separate issues

Re: Note Re: two separate issues (Steve McClure)
Date: 2000, Feb 26
From: David Hinds <dhinds@pcmcia.sourceforge.org>

>     ISA irqs (default) = 4,7,10,11,14 polling interval = 1000 ms

That's better...

> cs: IO port probe 0x03e0-0x03e1: clean.

I'm not sure what you've got in mind here, but this IO port range is
where the PCMCIA bridge sits.  You've got to provide some IO ports for
your card.

What results did you get before you started modifying config.opts?
Maybe you should back up and start over with a clean slate.  In this
case, the "no more items" meant that the driver tried each of the
card's configuration options, and none of them could be used, because
there are no free IO ports.

-- Dave

Question cannot mount cdrom

Date: 2000, Feb 28
From: Robert Rosenbaum rrosen

when I try to mount my cdrom, it says: mount: /dev/cdrom is not a valid block device

It sure looks like a block device:

$ls -l /dev/cdrom /dev/hdc
 ... /dev/cdrom -> /dev/hdc
 brwx-rw---- 1 root 22, 0 May 5 1998 /dev/hdc

The strange thing is that it worked fine under Red Hat 5 (Linux 2.0.36), but it stopped working when I upgraded. I am running Red Hat 6.1 , on a Toshiba Portege 300CT. The BIOS is set for PCIC mode.

$uname -a
 Linux umbar 2.2.12-20 #1 Mon Sep 27 10:25:54 EDT 1999 i586 unknown
$cat /proc/devices
 Character devices
 ...
 254 pcmcia
 Block Devices
 ...
 3 ide0
 ...
 22 ide1
$cat /proc/modules
 ide_cs 2916 1
 pcnet_cs 7572 1
 8390 5920 0 [pcnet_cs]
 ds 5740 2 [ide_cs pcnet_cs]
 i82365 22640 2
 pcmcia_core 39912 0 [ide_cs pcnet_cs ds i82365]
$cat /proc/interrupts
 ...
 5: 8 XT-PIC ide1
 ...
$cat /var/run/stab
 Socket 0:KTI ETHER-C16 Fast ethernet
 0 network pcnet_cs 0 eth0
 Socket 1:ATA/IDE Fixed Disk
 1 ide ide_cs 0 hdc 22 0
$cardctl status
 Socket 0:
  5V 16-bit card present
  Function 0: ready
 Socket 1:
  5V 16-bit card present
  Function 0: ready, battery low 
   {cdrom using AC adaptor, but can use batteries}
$dmesg
 hdd: CRN-8240, ATAPI CDROM drive
 ide1 at 0x100-0x107,0x10e on irq 5
 hdd: ATAPI 24X CDROM drive, 128kB Cache
 ide_cs: hdc: Vcc = 5.0, Vpp = 0.0

One odd thing... The file /sbin/ide_info was missing from my distribution. I grabbed the latest source, compiled it, and copied it to /sbin. Then when I insert the card, I see in /var/log/messages:

 /sbin/ide_info /dev/hdc
 open() failed: Device not configured.

So the open() call is returning EXNIO, but /proc/devices says it exists.

None A closer look

Re: Question cannot mount cdrom (Robert Rosenbaum)
Date: 2000, Feb 28
From: David Hinds <dhinds@pcmcia.sourceforge.org>

> $dmesg
>  hdd: CRN-8240, ATAPI CDROM drive
>  ide1 at 0x100-0x107,0x10e on irq 5
>  hdd: ATAPI 24X CDROM drive, 128kB Cache
>  ide_cs: hdc: Vcc = 5.0, Vpp = 0.0

Try /dev/hdd.

As for why what was hdc is now hdd, I'm not sure.  The "hdc" in the
last line and in /var/run/stab really identifies the first device slot
associated with this IDE controller, which is normally the only one
occupied.  For some reason, your CD-ROM is coming up on the "slave"
device instead.

-- Dave

Ok success!

Re: None A closer look (David Hinds)
Date: 2000, Mar 01
From: Robert Rosenbaum rrosen

yes, I am able to mount it on /dev/hdd.

Thanks a bunch.

I saw a few other people with pcmcia cdrom problems on c.o.l.install. I'll forward the suggestion on to them, and to RedHat support.

Question Problems with IBM Portable Drive Bay and CD-ROM

Date: 2000, Mar 18
From: Sten Drescher StenD

I'm attempting to use a CD-ROM drive in an IBM Portable Drive Bay with my ThinkPad 600. SUPPORTED.CARDS indicates that this has been tested, but I'm having problems with it. The HOWTO indicates that there may be problems configuring the drive if there is no media present at insertion time, but I'm still having problems despite having a CD in the drive. I typically have to issue `cardctl eject 0; cardctl insert 0` to get the ide channel recognized:

 Mar 17 16:39:54 sybil kernel: Linux PCMCIA Card Services 3.1.13 
 Mar 17 16:39:54 sybil kernel:   kernel build: 2.2.14 #1 Fri  Mar 17 15:41:52 CST 2000 
 Mar 17 16:39:54 sybil kernel:   options:  [pci] [cardbus] [apm] 
 Mar 17 16:39:54 sybil kernel: PCI routing table version 1.0 at 0xf9e10 
 Mar 17 16:39:54 sybil kernel:   00:02.0 -> irq 11 
 Mar 17 16:39:54 sybil kernel:   00:02.1 -> irq 11 
 Mar 17 16:39:54 sybil kernel: Intel PCIC probe:  
 Mar 17 16:39:54 sybil kernel:   TI 1250A PCI-to-CardBus at slot 00:02, mem 0x20301000 
 Mar 17 16:39:54 sybil kernel:     host opts [0]: [ring] [isa irq] [pci irq 11] [lat 168/176] [bus 1/3] 
 Mar 17 16:39:54 sybil kernel:     host opts [1]: [ring] [isa irq] [pci irq 11] [lat 168/176] [bus 4/6] 
 Mar 17 16:39:55 sybil kernel:     ISA irqs (scanned) = 3,4,7,9,10 PCI status changes 
 Mar 17 16:39:55 sybil kernel: cs: IO port probe 0x1000-0x17ff: excluding 0x15e8-0x15ef 
 Mar 17 16:39:55 sybil kernel: cs: IO port probe 0x0100-0x04ff: excluding 0x200-0x207 0x220-0x22f 0x388-0x38f 0x3b8-0x3
df 0x4d0-0x4d7 
 Mar 17 16:39:55 sybil kernel: cs: IO port probe 0x0a00-0x0aff: clean. 
 Mar 17 16:39:55 sybil kernel: cs: memory probe 0xa0000000-0xa0ffffff: clean. 
 Mar 17 16:40:20 sybil kernel: ide_cs: ide_register() at 0x320 & 0x32e, irq 3 failed 
 Mar 17 16:40:22 sybil kernel: eth0: 3Com 3c589, io 0x300, irq 3, hw_addr 00:10:4B:EC:D7:A1 
 Mar 17 16:40:22 sybil kernel:   8K FIFO split 5:3 Rx:Tx, auto xcvr 
 Mar 17 16:40:23 sybil kernel: eth0: flipped to 10baseT 
 Mar 17 16:40:27 sybil kernel: eth0: flipped to 10baseT 
 Mar 17 16:41:29 sybil kernel: hde: CRN-8241B, ATAPI CDROM drive 
 Mar 17 16:41:29 sybil kernel: ide2 at 0x320-0x327,0x32e on irq 3 
 Mar 17 16:41:29 sybil kernel: ide_cs: hde: Vcc = 5.0, Vpp = 0.0 
 Mar 17 16:41:29 sybil kernel: hde: bad special flag: 0x03 

Things seem to work fine after this, but I have trouble later unmounting the CD. I see the following messages in /var/log/messages at that point:

 Mar 17 20:50:18 sybil kernel: hde: irq timeout: status=0xd0 { Busy } 
 Mar 17 20:50:48 sybil kernel: hde: ATAPI reset timed-out, status=0xd0 
 Mar 17 20:51:19 sybil kernel: ide2: reset timed-out, status=0xd0 
 Mar 17 20:51:19 sybil kernel: hde: status timeout: status=0xd0 { Busy } 
 Mar 17 20:51:19 sybil kernel: hde: drive not ready for command 
 Mar 17 20:51:53 sybil kernel: hde: ATAPI reset timed-out, status=0xd0 
 Mar 17 20:52:24 sybil kernel: ide2: reset timed-out, status=0xd0 
 Mar 17 20:52:24 sybil kernel: hde: status timeout: status=0xd0 { Busy } 
 Mar 17 20:52:24 sybil kernel: end_request: I/O error, dev 21:00 (hde), sector 0 
 Mar 17 20:52:24 sybil kernel: hde: drive not ready for command 

As I said, this is an IBM ThinkPad 600, type 2645-85U. I'm using the IBM Portable Drive Bay (FRU 37L1513) with the IBM IDE PC Card (33L5033) and an UltraslimBay CD-ROM (05K9267). Any assistance anyone can provide would be welcomed.

Question Problems with Archos MiniZip 100

Date: 2000, Mar 21
From: Claudio Weidmann cweidmann

I don't get it to work... Google pointed me to the old groups
on hyper.stanford.edu, but they disappeared. My main problem
is that I have kernel 2.0.38 and don't have the time to
upgrade right now. pcmcia is 3.1.13. I'm trying to use
ide-scsi, since ide-floppy crashes sometimes, and never lets
me access /dev/hde.

Relevant info:

append = "SCHEME=home,hde=noprobe,hde=ide-scsi"

Kernel config:
CONFIG_MODULES=y
# CONFIG_MODVERSIONS is not set
CONFIG_KERNELD=y
CONFIG_BLK_DEV_FD=y
CONFIG_BLK_DEV_IDE=y
# CONFIG_BLK_DEV_HD_IDE is not set
CONFIG_BLK_DEV_IDECD=y
# CONFIG_BLK_DEV_IDETAPE is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set
CONFIG_BLK_DEV_IDESCSI=y
CONFIG_BLK_DEV_IDE_PCMCIA=y
CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=y
# CONFIG_CHR_DEV_ST is not set
# CONFIG_BLK_DEV_SR is not set
CONFIG_CHR_DEV_SG=y
# CONFIG_SCSI_MULTI_LUN is not set
CONFIG_SCSI_CONSTANTS=y

/var/log/messages:
Mar 21 11:13:15 lcavpc26 cardmgr[71]: socket 1: ATA/IDE Fixed Disk
Mar 21 11:13:15 lcavpc26 cardmgr[71]: executing: 'insmod /lib/modules/2.0.38/pcmcia/ide_cs.o'
Mar 21 11:13:18 lcavpc26 kernel: hde: probing with STATUS instead of ALTSTATUS
Mar 21 11:13:18 lcavpc26 kernel: hde: IOMEGA ZIP 100 ATAPI, ATAPI FLOPPY drive - enabling SCSI emulation
Mar 21 11:13:18 lcavpc26 kernel: ATAPI overlap supported: No
Mar 21 11:13:18 lcavpc26 kernel: ide2 at 0x11f0-0x11f7,0x13f6 on irq 10
Mar 21 11:13:18 lcavpc26 kernel: ide_cs: hde: Vcc = 5.0, Vpp = 12.0
Mar 21 11:13:18 lcavpc26 cardmgr[71]: executing: './ide start hde'

cat /proc/scsi/scsi 
Attached devices: none

How can I force the SCSI subsystem to scan for new devices?
Thanks for any help

Claudio

None A possible workaround for the ide-scsi issue

Re: Question Problems with Archos MiniZip 100 (Claudio Weidmann)
Date: 2000, Mar 21
From: David Hinds <dhinds@pcmcia.sourceforge.org>

It isn't a clean solution, but I'd try building both ide-floppy and
ide-scsi as modules.  Then, after inserting the card, try doing:

  rmmod ide-floppy
  modprobe ide-scsi

and see if that works.

-- Dave

None Smartmedia 15 second freeze

Date: 2000, Apr 02
From: J. Schmid jds

Each time a smartmedia card is inserted, my system "freezes" for approx. 15 seconds (no mouse or keyboard activity except vt-switching; display corruption in the case of switching to X). After the freeze smart media mounting, reading, writing works without (known) problems.

Hardware:

Sony-Vaio 737, simple Technology SmartMediaAdapter, OLYMPUS M-8P D3V10 SmartMedia

Software:

linux 2.2.12+patch irda3

pcmcia-packages tried: pcmcia-cs.12-Jan-00.tar.gz, pcmcia-cs-3.1.13.tar.gz, pcmcia-cs.31-Mar-00.tar.gz

The freezing is the same with all tested versions of "pcmcia"
the message:
  Apr  2 11:37:40 heidi kernel:     PCI irq 9 test failed
occurs only for the two latest versions tested.

Because of 
  Apr  2 12:03:17 heidi cardmgr[199]: error parsing CIS on socket 0: Invalid argument
I have attached the output of dump-cis.
Several error messages regarding ide follow the insertion
and a missed interrupt follows the ejection.
From the syslog:

Apr  2 11:37:40 heidi kernel: Linux PCMCIA Card Services 3.1.14
Apr  2 11:37:40 heidi kernel:   kernel build: 2.2.12 #1 Sun Mar 19 09:33:26 /etc/localtime 2000
Apr  2 11:37:40 heidi kernel:   options:  [pci] [cardbus] [apm]
Apr  2 11:37:40 heidi kernel: PCI routing table version 1.0 at 0xfdf80
Apr  2 11:37:40 heidi kernel: Intel PCIC probe: 
Apr  2 11:37:40 heidi kernel:   Ricoh RL5C478 rev 03 PCI-to-CardBus at slot 00:0a, mem 0x68000000
Apr  2 11:37:40 heidi kernel:     host opts [0]: [isa irq] [io 3/6/1] [mem 3/6/1] [pci irq 9] [lat 168/176] [bus 32/34]
Apr  2 11:37:40 heidi kernel:     host opts [1]: [isa irq] [io 3/6/1] [mem 3/6/1] [pci irq 9] [lat 168/176] [bus 35/37]
Apr  2 11:37:40 heidi kernel:     PCI irq 9 test failed
Apr  2 11:37:40 heidi kernel:     ISA irqs (default) = 3,4,5,7,10,11,12 polling interval = 1000 ms
Apr  2 11:37:41 heidi cardmgr[199]: starting, version is 3.1.14
Apr  2 11:37:42 heidi kernel: IrDA (tm) Protocols for Linux-2.3 (Dag Brattli)
Apr  2 11:37:42 heidi cardmgr[199]: config error, file './config.opts' line 45: module name not found!
Apr  2 11:37:42 heidi kernel: IrCOMM protocol (Dag Brattli)
Apr  2 11:37:42 heidi kernel: cs: IO port probe 0x1000-0x17ff: clean.
Apr  2 11:37:42 heidi kernel: cs: IO port probe 0x0100-0x04ff: excluding 0x140-0x147 0x220-0x22f 0x320-0x327 0x378-0x37f 0x388-0x38f 0x4d0-0x4d7
Apr  2 11:37:42 heidi kernel: cs: IO port probe 0x0a00-0x0aff: clean.
Apr  2 11:37:42 heidi cardmgr[199]: watching 2 sockets
[...]
Apr  2 12:03:17 heidi kernel: cs: memory probe 0xa0000000-0xa0ffffff: clean.
Apr  2 12:03:17 heidi cardmgr[199]: initializing socket 0
Apr  2 12:03:17 heidi cardmgr[199]: error parsing CIS on socket 0: Invalid argument
Apr  2 12:03:17 heidi cardmgr[199]: socket 0: ATA/IDE Fixed Disk
Apr  2 12:03:17 heidi cardmgr[199]: executing: 'insmod /lib/modules/2.2.12/pcmcia/ide_cs.o'
Apr  2 12:03:34 heidi kernel: hde: , ATA DISK drive
Apr  2 12:03:34 heidi kernel: hdf: no response (status = 0xeb), resetting drive
Apr  2 12:03:34 heidi kernel: hdf: no response (status = 0xeb)
Apr  2 12:03:34 heidi kernel: ide2 at 0x100-0x107,0x10e on irq 3
Apr  2 12:03:34 heidi kernel: hde: , 7MB w/1kB Cache, CHS=250/4/16
Apr  2 12:03:34 heidi kernel:  hde: hde1
Apr  2 12:03:34 heidi kernel: ide_cs: hde: Vcc = 5.0, Vpp = 12.0
Apr  2 12:03:34 heidi cardmgr[199]: executing: './ide start hde'
Apr  2 12:03:35 heidi kernel: VFS: Disk change detected on device ide2(33,0)
Apr  2 12:03:35 heidi kernel:  hde: hde1
Apr  2 12:03:35 heidi kernel: hde: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
Apr  2 12:03:35 heidi kernel: hde: drive_cmd: error=0x04 { DriveStatusError }
********ejection***************
Apr  2 12:04:31 heidi kernel: ide2: unexpected interrupt, status=0xff, count=1
Apr  2 12:04:31 heidi cardmgr[199]: shutting down socket 0
Apr  2 12:04:31 heidi cardmgr[199]: executing: './ide stop hde'
Apr  2 12:04:31 heidi cardmgr[199]: + open() failed: No such device
Apr  2 12:04:32 heidi cardmgr[199]: executing: 'rmmod ide_cs'

*******************************
/home/jschmid/software/pcmcia-cs-3.1.14/debug-tools/dump_cis -v
*******************************
Socket 0:
  offset 0x02, tuple 0x01, link 0x04
    df 4a 01 ff 
  dev_info
    fn_specific 400ns, 2kb

  offset 0x08, tuple 0x18, link 0x02
    df 01 
  common_jedec 0xdf 0x01

  offset 0x0c, tuple 0x20, link 0x02
    df 01 
  parse error: Invalid argument

  offset 0x10, tuple 0x15, link 0x15
    04 01 20 20 20 20 20 00 20 20 20 20 20 20 20 20 
    20 20 00 00 ff 
  vers_1 4.1, "     ", "          ", ""

  offset 0x27, tuple 0x21, link 0x02
    04 01 
  funcid fixed_disk [post]

  offset 0x2b, tuple 0x22, link 0x02
    01 01 
  disk_interface [ide]

  offset 0x2f, tuple 0x22, link 0x03
    02 0d 0f 
  disk_features [silicon] [unique] [single]
    [sleep] [standby] [idle] [low power]

  offset 0x34, tuple 0x1a, link 0x05
    01 03 00 02 0f 
  config base 0x0200 mask 0x000f last_index 0x03

  offset 0x3b, tuple 0x1b, link 0x0a
    c0 c0 a2 01 55 01 0e 08 00 20 
  cftable_entry 0x00 [default]
    [rdybsy] [mwait] [pwrdown]
    Vcc Vnom 5V
    Vpp1 Vnom 12V
    memory 0x0000-0x07ff @ 0x0000

  offset 0x47, tuple 0x1b, link 0x0c
    c1 41 9a 01 55 01 0e 64 f0 ff ff 20 
  cftable_entry 0x01 [default]
    [rdybsy] [pwrdown]
    Vcc Vnom 5V
    Vpp1 Vnom 12V
    io 0x0000-0x000f [lines=4] [8bit] [16bit]
    irq mask 0xffff [level] [pulse] [shared]

  offset 0x55, tuple 0x1b, link 0x0c
    82 41 18 ea 61 f0 01 07 f6 03 01 ee 
  cftable_entry 0x02
    [rdybsy]
    io 0x01f0-0x01f7, 0x03f6-0x03f7 [lines=10] [8bit] [16bit] [range]
    irq 14 [level] [pulse] [shared]

  offset 0x63, tuple 0x1b, link 0x0c
    83 41 18 ea 61 70 01 07 76 03 01 ee 
  cftable_entry 0x03
    [rdybsy]
    io 0x0170-0x0177, 0x0376-0x0377 [lines=10] [8bit] [16bit] [range]
    irq 14 [level] [pulse] [shared]

  offset 0x71, tuple 0x14, link 0x00
  no_long_link

Socket 1:
  no CIS present

None For now, that's just the way it is

Re: None Smartmedia 15 second freeze (J. Schmid)
Date: 2000, Apr 03
From: David Hinds <dhinds@pcmcia.sourceforge.org>

For now, I think you just need to live with it.  The problem is due to
two limitations of the kernel IDE driver... first, it can't always
tell that a new device is a Smartmedia card, and second, when it then
mistakenly tries to probe for a "slave" device, this probe spins in
the kernel for a very long time.  I've told the IDE maintainer about
the problem.

-- Dave

None kernel knows about flash

Re: None For now, that's just the way it is (David Hinds)
Date: 2000, Apr 05
From: J. Schmid jds

You are right, the delay seems to be caused by the probe for the second drive. After you said it is a kernel problem I looked and there seems to be a workaroud implemented in the kernel: The kernel checks for "flash" based on "id->model" in ide.c. At this point id->model seems to be empty for my smart media cards but if I use id->cyls (this can of course not be used in general) to detect the smarmedia the delay and the probe for "hdf" is gone. Is there an acceptable way to detect smart media at this point?

Weirdness on: During my experiments things suddenly stopped working even with the original kernel. Inserting a smartmedia card would instantly cause hda to spin down and lock the system. I found that the existence of smartmedia causes persistent (across boots) changes to the bios that I cannot undo i.e. the following can not be tested from a "clean" starting point.

a) a NEW!! bios entry appeared for "third ide" and was set to "auto". Changing this to "none" cured the spin-down-lock feature.

b) ide2 at some point decided to pick irq11 instead of irq3 with the exact same setup.

c) there is a reproducible lock up problem that equally affects the original driver (it was probably present before my experiments/BIOS problems, I had one lockup which I didn't reproduce then):

Lockup for: (insert smartmedia 1) (remove smartmedia 1) (insert smartmedia 2)

No lockup for: (insert smartmedia 1) (remove smartmedia 1) (insert smartmedia 1) ...

No lockup for: (insert smartmedia 1) (mount /dev/hde1) (umount /dev/hde1) (remove smartmedia 1) (insert smartmedia 2) (mount) ...

i.e. to get the problem you need two smartmedia cards and shouldn't mount them, which doesn't occur in normal use... .

None Changes to the IDE driver that should help

Re: None kernel knows about flash (J. Schmid)
Date: 2000, Apr 05
From: David Hinds <dhinds@pcmcia.sourceforge.org>

In the 2.3.* tree, in drivers/block/ide.c, the drive_is_flashcard()
function looks like:

 if (drive->removable && id != NULL) {
  if (id->config == 0x848a) return 1;
  ...

so you can try adding that check to the 2.2.* kernel.  You can also
prevent the lockup (but not the delay before the drive is usable) by
editing drivers/block/ide-probe.c and changing delay_50ms() to look
like:

 static void delay_50ms (void)
 {
  current->state = TASK_UNINTERRUPTIBLE;
  schedule_timeout(HZ/20);
 }

-- Dave

None 15 second freeze solved, lockups remain

Re: None Changes to the IDE driver that should help (David Hinds)
Date: 2000, Apr 08
From: J. Schmid jds

Thank you for the reply,
 if (drive->removable && id != NULL) {
   if (id->config == 0x848a) return 1;
solves the 15 second freeze.

The lockups are not solved by the change you suggested, there is nothing reproducible as I claimed in my last mail based on three lockups, they occur irregularly.

When I use setup_delay=500, the happy beeps come after 5 seconds if it works, the crash / hda-spin-down is instantaneous if it doesn't work i.e. before the card is powered up!

If it works, there seems to be no difference between inerting the adaper and then the smartmedia or the other way round.

Inserting the smartmedia into the adapter and then the adapter into the laptop seems more reliable (maybe even _reliable_) at this point.

None I don't know what to suggest for the lockups

Re: None 15 second freeze solved, lockups remain (J. Schmid)
Date: 2000, Apr 10
From: David Hinds <dhinds@pcmcia.sourceforge.org>

I don't have any good ideas about the crashes; from your earlier email
it sounded like it might be connected to some BIOS activity??  I have
not seen any similar reports, and if it is peculiar to your hardware,
it may be difficult to track down.

-- Dave

Question Can a card permenantly damage a particular IRQ?

Date: 2000, Apr 02
From: John Ruttenberg rutt

I have this Olympus MA-2E smartmedia adaptor and I also have a history of notebook computers with pcmcia that didn't seem to work quite right. I recently got a new Dell inspiron 5k. After a little work (the scan didn't seem to work right.) I was able to get pcmcia working with my network cards on IRQ 9. (My wavelan card hated IRQ 3 but my 3com card worked on both IRQ 3 and IRQ 9. The wavelan card would cause the system to freeze when used on IRQ3.)

Anyway after a few days of using the computer, I tried to insert my Olympus card. My computer instantly hung (nothing in the SYSLOG.) Fine. I can understand that. So I restarted without the Olympus card and just the wavelan card. It froze as soon as it tried to use the network. Eventually I limited the irq_list to just 10 and now the wavelan card works again.

Could I have zapped IRQ 9 with the Olympus card? Does this story make any sense?

None I can't really tell what's going on here

Re: Question Can a card permenantly damage a particular IRQ? (John Ruttenberg)
Date: 2000, Apr 03
From: David Hinds <dhinds@pcmcia.sourceforge.org>

I guess it is conceivable that a transient current could damage
something in the bridge chip, but it seems very unlikely that it could
have this sort of effect.  I don't really know.

-- Dave

None smartmedia adaptor w dell inspiron 5k

Date: 2000, Apr 04
From: John Ruttenberg rutt

I have:

	pcmcia-3.1.13 + a patch
            (so that pci status changes work)
	linux-2.2.14
	dell inspiron 5k
	simple technology smartmedia adaptor

When I insert this card (with no other cards inserted) it
makes the two good beeps, but it doesn't actually work.
Here is what the syslog shows:

Apr  4 18:21:30 alice kernel: Linux PCMCIA Card Services 3.1.13 
Apr  4 18:21:30 alice kernel:   kernel build: 2.2.14-5.0 #1 Tue Mar 7 21:07:39 EST 2000 
Apr  4 18:21:30 alice kernel:   options:  [pci] [cardbus] [apm] [pnp] 
Apr  4 18:21:30 alice kernel: PCI routing table version 1.0 at 0xfdf50 
Apr  4 18:21:30 alice kernel: PnP: PNP BIOS installation structure at 0xc00f7220 
Apr  4 18:21:30 alice kernel: PnP: PNP BIOS version 1.0, entry at f0000:a77c, dseg at 400 
Apr  4 18:21:30 alice kernel: Intel PCIC probe:  
Apr  4 18:21:30 alice kernel:   TI 1225 PCI-to-CardBus at slot 00:04, mem 0x68000000 
Apr  4 18:21:30 alice kernel:     host opts [0]: [ring] [serial pci & irq] [pci irq 11] [lat 168/32] [bus 32/34] 
Apr  4 18:21:30 alice kernel:     host opts [1]: [ring] [serial pci & irq] [pci irq 11] [lat 168/32] [bus 35/37] 
Apr  4 18:21:30 alice kernel:     ISA irqs (scanned) = 9,10 PCI status changes 
Apr  4 18:21:30 alice cardmgr[1081]: starting, version is 3.1.13
Apr  4 18:21:30 alice cardmgr[1081]: watching 2 sockets
Apr  4 18:21:30 alice kernel: cs: IO port probe 0x1000-0x17ff: clean. 
Apr  4 18:21:30 alice kernel: cs: IO port probe 0x0100-0x04ff: excluding 0x170-0x177 0x370-0x377 
Apr  4 18:21:30 alice cardmgr[1081]: could not adjust resource: IO ports 0x300-0x3ff: Device or resource busy
Apr  4 18:21:30 alice cardmgr[1081]: could not adjust resource: IO ports 0x200-0x27f: Device or resource busy
Apr  4 18:21:57 alice cardmgr[1081]: initializing socket 1
Apr  4 18:21:57 alice kernel: cs: memory probe 0xa0000000-0xa0ffffff: clean. 
Apr  4 18:21:57 alice cardmgr[1081]: error parsing CIS on socket 1: Invalid argument
Apr  4 18:21:57 alice cardmgr[1081]: socket 1: ATA/IDE Fixed Disk
Apr  4 18:21:57 alice cardmgr[1081]: executing: 'insmod /lib/modules/2.2.14-5.0/pcmcia/ide_cs.o'
Apr  4 18:22:02 alice kernel: hdc: , ATA DISK drive 
Apr  4 18:22:02 alice kernel: ide1 at 0x100-0x107,0x10e on irq 9 
Apr  4 18:22:02 alice kernel: hdc: , 31MB w/1kB Cache, CHS=500/8/16 
Apr  4 18:22:02 alice kernel:  hdc: hdc1 
Apr  4 18:22:02 alice kernel: ide_cs: hdc: Vcc = 5.0, Vpp = 12.0 
Apr  4 18:22:02 alice cardmgr[1081]: executing: './ide start hdc'
Apr  4 18:22:02 alice kernel:  hdc: hdc1 
Apr  4 18:22:02 alice kernel: hdc: drive_cmd: status=0x51 { DriveReady SeekComplete Error } 
Apr  4 18:22:02 alice kernel: hdc: drive_cmd: error=0x04 { DriveStatusError } 
Apr  4 18:22:34 alice cardmgr[1081]: shutting down socket 1
Apr  4 18:22:34 alice cardmgr[1081]: executing: './ide stop hdc'
Apr  4 18:22:34 alice modprobe: modprobe: Can't locate module block-major-22
Apr  4 18:22:34 alice cardmgr[1081]: + open() failed: No such device
Apr  4 18:22:34 alice cardmgr[1081]: executing: 'rmmod ide_cs'

Ok The card actually works

Re: None smartmedia adaptor w dell inspiron 5k (John Ruttenberg)
Date: 2000, Apr 04
From: David Hinds <dhinds@pcmcia.sourceforge.org>

The pair of "drive_cmd" errors in the system log are spurious and should be ignored. They pop up when the IDE driver sees that this is a removable device, and tries to issue an IDE "door lock" command. I'll add a note about this to the HOWTO.

-- Dave

Question IRQ changes each time card it ejected

Date: 2000, Apr 10
From: Tony Sciortino tsciortino

I am using cargmgr 3.1.14 with kernel 2.2.14 mainly a mandrake 7 laptop. I have a Calluna ATA/IDE card that works great under normal circumstances. Here is my main issue. With the filesystem on the card mounted, I just pull the card out without unmounting the filesystem or using cardctl -eject. Cardmgr seems to take care of the unmount, mount and /etc/mtab no longer show the mount. If I put the card back in, cardmgr detects and activates the card. But, the first time card is used, it is /dev/hdc1 IRQ 3 After the removal and reinsertion of the card, it is now going after IRQ 9 and is /dev/hde1 I can not just pull the card out anymore times than this because it then can not find a free IRQ. Why is IRQ 3 nolonger able to be used? Is there a way to free or reset IRQ3 when the card is just pulled out? If not how about manualy.

Also, anyone have any luck using supermount with ATA/IDE card device, I get a kernel panic when I do...

None You are doing a bad bad thing

Re: Question IRQ changes each time card it ejected (Tony Sciortino)
Date: 2000, Apr 10
From: David Hinds <dhinds@pcmcia.sourceforge.org>

Do not hot eject IDE devices without unmounting the filesystems!  That
is bad, bad, bad!  The least of your problems is that the resources
used by the card are not freed correctly by the IDE driver; you are
also risking a kernel panic and/or data corruption every time you do
it.

You should always do a "cardctl eject" prior to ejecting an IDE
device.

-- Dave

Question CardBus EIDE interface

Date: 2000, Apr 19
From: Nicko van Someren Nicko

I have recently purchased a MiniDVD drive from Archos and it comes with a neat little PCMCIA addaptor card. The card is made by Shining and it has a little switch on the side. In one position the card operates as a standard PCMCIA card and under Linux it shows as a product info: "Shining", "PMIDE-ASC", "Rev 1.04" and works just fine with the ide_cs driver. In the other position the card is a CardBus device. The output of /proc/pci shows:

    Unknown mass storage controller: Unknown vendor Unknown device (rev 0).
      Vendor id=14e6. Device id=1.
      Medium devsel.  

In this mode the PCMCIA system sees it as a CardBus card but it does not really know what to do with it.

So, my question is this: is anyone working on any drivers for and CardBus IDE controlers? If so, how advanced are they? If not, if someone would care to give me pointers as to where to start I'll have a go at writing them (or hacking them to bit so that someone else can fix the mess that I make; it's 10 years since I wrote drivers for Unix :-)

Any help would be, well, helpful really.

	Nicko

Question problem with IDE and Linux SMP

Date: 2000, Apr 24
From: Peter A. Castro doctor

About 6 months ago I added a second processor to my system and rebuilt a linux 2.2.14 kernel with SMP. I'd rebuild PCMCIA-CS 3.1.14 under this config. Since then, I've been experiencing hangs when I do large or continuous file copies from either a SanDisk PC Card II (ATA Flash) or a SanDisk CF in a SanDisk CF Adapter. Both appear to the system as ATA/IDE drives. At the moment I'm only reading data from these cards. I haven't tried writing to them for fear that they will be trashed. I've loaded a large file (test1.dat) onto the card from a friends machine for testing. This file is about 20Mb. I also have a bunch of smaller files (~512k) whose sum totals more that 20Mb. If I attempt to copy anything that takes more that 3-4 seconds or totals more than 8Mb in size, I get into a condition where the device no longer responds; the console keeps saying that some operation timed-out (see logs below) because the resource was busy. I also see in the process list what looks like an attempt by the system to umount the card! At this point, I must reboot to clear the condition, and because of the resource problem a clean shutdown isn't possible.

If I take the same kernel config and rebuild without SMP (and rebuild PCMCIA-CS under the non-SMP config) things work normally. Large copies complete without any problems.

Has anyone else experienced this? Any ideas as to what's going on? Below are logs of a copy of the large file. I suspect a race condition having to do with SMP, but where I couldn't really guess. I don't really want to have to go back to a single-processor config. Any help would be greatly appreciated!

The PCMCIA card reader is an Antec DataChute PCMCIA ISA reader/writer. It's based on the VIA83C469 chipset. As my config shows below, I use the i82365 module. I've tried every changing every config parameter available, in various combinations, for the i82365 without any real success.

My /etc/pcmcia.conf is pretty simple:
 ------------------------------------------------------------
 PCMCIA=yes
 PCIC=i82365
 PCIC_OPTS="irq_list=5"
 CARDMGR_OPTS="-v"
 ------------------------------------------------------------

Here's the syslog of what happened.  This card has always
reported a status=0x51 and error=0x04 apon insertion, but has
never given me any problems (under a UP kernel).  Any idea
what these errors represent??
 ------------------------------------------------------------
 Linux PCMCIA Card Services 3.1.14
   kernel build: 2.2.14 #3 SMP Sun Feb 27 19:54:47 PST 2000
   options:  [pci] [cardbus] [pnp]
 PnP: PNP BIOS installation structure at 0xc00f7430
 PnP: PNP BIOS version 1.0, entry at f0000:6d84, dseg at f0000
 Intel PCIC probe:
   VIA VT83C469 rev 00 ISA-to-PCMCIA at port 0x3e0 ofs 0x00
     host opts [0]: [ring]
     host opts [1]: [ring]
     ISA irqs (default) = 5 polling interval = 1000 ms
 cs: IO port probe 0x1000-0x17ff: clean.
 cs: IO port probe 0x0100-0x04ff: excluding 0x140-0x15f
 cs: memory probe 0x0d0000-0x0dffff: excluding 0xd0000-0xd3fff
 hde: SunDisk SDP3B-220, ATA DISK drive
 ide2 at 0x100-0x107,0x10e on irq 5
 hde: SunDisk SDP3B-220, 210MB w/1kB Cache, CHS=840/16/32
  hde: hde1
 ide_cs: hde: Vcc = 5.0, Vpp = 0.0
 VFS: Disk change detected on device ide2(33,0)
  hde: hde1
 hde: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
 hde: drive_cmd: error=0x04 { DriveStatusError }
 VFS: Disk change detected on device ide2(33,1)
  hde: hde1
 VFS: Disk change detected on device ide2(33,1)
  hde: hde1
 hde: irq timeout: status=0xff { Busy }
 ide2: reset timed-out, status=0xff
 hde: status timeout: status=0xff { Busy }
 hde: drive not ready for command
 ide2: reset timed-out, status=0xff
 hde: status timeout: status=0xff { Busy }
 end_request: I/O error, dev 21:01 (hde), sector 68276
 hde: drive not ready for command
 hde: status timeout: status=0xff { Busy }
 hde: drive not ready for command
 ide2: reset timed-out, status=0xff
 hde: status timeout: status=0xff { Busy }
 hde: drive not ready for command
 ide2: reset timed-out, status=0xff
 hde: status timeout: status=0xff { Busy }
 end_request: I/O error, dev 21:01 (hde), sector 68277
 hde: drive not ready for command
 hde: status timeout: status=0xff { Busy }
 hde: drive not ready for command
 ide2: reset timed-out, status=0xff
 hde: status timeout: status=0xff { Busy }
 hde: drive not ready for command
 ide2: reset timed-out, status=0xff
 hde: status timeout: status=0xff { Busy }
 end_request: I/O error, dev 21:01 (hde), sector 68278
 hde: drive not ready for command
 hde: status timeout: status=0xff { Busy }
 hde: drive not ready for command
 ------------------------------------------------------------

Part of a process list at the time of the first Busy message:
 ------------------------------------------------------------
  433  ?  S    0:01 /sbin/cardmgr -v
  468   1 D    0:00 cp /pcmcia/test1.dat .
  469  ?  S    0:00 sh -c ./ide stop hde 2>&1
  470  ?  S    0:00 sh ./ide stop hde
  481  ?  D    0:00 umount -v /dev/hde1
 ------------------------------------------------------------

None I have not heard this one before

Re: Question problem with IDE and Linux SMP (Peter A. Castro)
Date: 2000, Apr 24
From: David Hinds <dhinds@pcmcia.sourceforge.org>

This does not sound like a common problem.  You should also check your
system log messages, which will include the kernel messages as well as
messages from cardmgr.

The errors at insertion time are not a problem.  They pop up for some
kernel versions, when the IDE driver tries to issue a "door lock"
command that the card doesn't recognize.  The driver won't try this
again if it fails the first time.

PCMCIA under SMP is not a particularly well tested configuration, and
I can't test it myself, so I can't really rule out the possibility
that the code contains SMP bugs.  Looking at the eject detection code,
I don't really see how it could be sensitive to whether it is running
on an SMP kernel or not.  But I also don't see how the hardware could
mis-report an eject in this situation.  Do you think all your hardware
should be solid?  (no overclocking, power supply has plenty of
capacity, no other strange symptoms while running SMP?)

You can effectively disable the test for an ejected card by setting
PCIC_OPTS="poll_interval=2000000000".  You would then need to issue
"cardctl insert" and "cardctl eject" commands by hand.  If this is an
effective work-around, that would at least narrow down the location of
the problem.

-- Dave

None Have done extensive testing, still have problems.

Re: None I have not heard this one before (David Hinds)
Date: 2000, Apr 26
From: Peter A. Castro doctor

Hi Dave!
  Thanks for responding!

>This does not sound like a common problem.  You should also
>check your system log messages, which will include the kernel
>messages as well as messages from cardmgr.

Actually, the messages I included in my original posting *are* from the system log (I removed the leading timestamp as it didn't really provide any useful extra information). What you see is what you get.

>The errors at insertion time are not a problem.  They pop up
>for some kernel versions, when the IDE driver tries to issue
>a "door lock" command that the card doesn't recognize.  The
>driver won't try this again if it fails the first time.

I figured as much and have been ignoring those messages.

>PCMCIA under SMP is not a particularly well tested
>configuration, and I can't test it myself, so I can't really
>rule out the possibility that the code contains SMP bugs.

Is there anything I can do to enable debug output to help trouble shoot the problem? Debugging modules isn't my speciality :-( Or is there a place in the cardmgr where I can place a break-point?

>Looking at the eject detection code, I don't really see how
>it could be sensitive to whether it is running on an SMP
>kernel or not.  But I also don't see how the hardware could

Since the amount of data/time between hangs varys somewhat, I'd guess there's a race condition that is SMP dependent. Again, if I rebuild the kernel+pcmcia-cs for non-SMP, everything works as expected. Exact same hardware config and software.

>mis-report an eject in this situation.  Do you think all your
>hardware should be solid?  (no overclocking, power supply
>has plenty of capacity, no other strange symptoms while
>running SMP?)

I've scrutinized the hardware pretty thoroughly. The load for all the drives and peripherals I have are well within the tollerance of the power-supply (it's a 400W PS). No other software/hardware problems, and I drive this machine pretty hard sometimes (but not while using pcmcia cards ;-).

The card read/writer is an ISA card, but I have several ISA cards plugged in and they all work perfectly.

>You can effectively disable the test for an ejected card by
>setting PCIC_OPTS="poll_interval=2000000000".  You would then
>need to issue "cardctl insert" and "cardctl eject" commands
>by hand.  If this is an effective work-around, that would at
>least narrow down the location of the problem.

I'll try this, but I'm not sure weither an "eject" is being erroneously generated, or if the interrupt is being missed somehow and an error condition is being raised as an "eject". The timing is too close to tell from the logs. And once the "Busy" occurs, I've very limited as to what I can do to probe for information. Again, if you've got any ideas on getting more diagnostics out of this I will try and generate it. Any suggestions on things to try? What extra information about my system can I provide to help identify possible problem areas?

Thanks!

None Re: Have done extensive testing, still have problems.

Re: None Have done extensive testing, still have problems. (Peter A. Castro)
Date: 2000, Apr 26
From: David Hinds <dhinds@pcmcia.sourceforge.org>

Just try the poll_interval thing first.  I'm not really sure what to
suggest regarding debugging the IDE driver; that's out of my area of
expertise.  Once the card is configured, the kernel IDE driver is "on
its own" until an eject event is processed; the PCMCIA modules are not
active during normal card operation.

-- Dave

Ok That works!

Re: None Re: Have done extensive testing, still have problems. (David Hinds)
Date: 2000, May 02
From: Peter A. Castro doctor

Yep, setting poll_interval=2000000000 and manually doing the insert and eject works. So, that will work for now. But, what's the real fix? Is there anyway I can help you shoot this?

Question ide_cs tells me ide_register failed

Date: 2000, May 06
From: Fabian Wenzel tigerente

Hi there!

I just upgraded my system and suddenly my Microdrive and CompactFlash Cards doesn't get registered anymore.
Everything else works fine, e.g. Network or SCSI - Cards.

This is the output that I got:

May  5 21:55:25 troll kernel: ds_open(socket 0)
May  5 21:55:25 troll kernel: ds_open(socket 1)
May  5 21:55:25 troll kernel: ds_open(socket 2)
May  5 21:55:25 troll kernel: ds_release(socket 0)
May  5 21:55:25 troll kernel: ds_release(socket 1)
May  5 21:55:25 troll cardmgr[84]: initializing socket 1
May  5 21:55:25 troll cardmgr[84]: socket 1: ATA/IDE Fixed Disk
May  5 21:55:25 troll cardmgr[84]: executing: 'insmod /lib/modules/2.2.14/pcmcia/ide_cs.o pc_debug=1'
May  5 21:55:25 troll kernel: ide_cs.c 1.26 1999/11/16 02:10:49 (David Hinds)
May  5 21:55:25 troll kernel: ds: register_pccard_driver('ide_cs')
May  5 21:55:25 troll kernel: ide_attach()
May  5 21:55:25 troll kernel: ide_config(0xc556ca20)
May  5 21:55:26 troll kernel: ide_cs: ide_register() at 0x100 & 0x10e, irq 3 failed
May  5 21:55:26 troll kernel: ide_release(0xc556ca20)
May  5 21:55:28 troll cardmgr[84]: get dev info on socket 1 failed: Resource temporarily unavailable
May  5 21:55:28 troll kernel: ide_detach(0xc556ca20)

Which is very strange as e.g. the SCSI card works using that IRQ.
I also tried to exclude most of the IRQs leaving only 11 which is also used by the Microdrive under Windows98 (just to be sure that this is not the problem)
and I still get the same errors.

Does anybody have an idea?

Thanks,

                    Fabian

Ok Fixed: Use now ide-probe.c from 2.2.13 instead of 2.2.14

Re: Question ide_cs tells me ide_register failed (Fabian Wenzel)
Date: 2000, May 06
From: Fabian Wenzel tigerente

Okay, after 8 hours of figuring out where the error was I finally got it exchanging ide-probe.c of my current kernel 2.2.14-SuSE with the one from the older 2.2.13-SuSE.

For some reason both versions differ, although the version number at the top is the same. And now the drive gets installed properly. I have no idea if SuSE patched the regular 2.2.14 that way that ide-probe.c got affected or not, but anyhow: I hope that there are more people who have the same problem and find this message helpful.

          Fabian

None Please forward to the IDE driver maintainer

Re: Ok Fixed: Use now ide-probe.c from 2.2.13 instead of 2.2.14 (Fabian Wenzel)
Date: 2000, May 08
From: David Hinds <dhinds@pcmcia.sourceforge.org>

The IDE driver maintainer, Andre Hedrick <andre@linux-ide.org>, works
at SuSE.  You should forward this information to him; he might be able
to quickly determine what changed between these kernel updates.

-- Dave

Question SanDisc make troubles

Date: 2000, May 17
From: Rüdiger Gubler ruediger.gubler

Hello,


First my system:

    Controller: i82365
    Kernel: 2.2.15
    PCMCIA: 3.1.14


Now the  troubles:

If I insert a SanDisk (ATA/IDE) with 16MB Capacity
it would recognised well (two high sounds).

If I insert a SanDisk (ATA/IDE) with 96MB Capacity
at the active console the following message appears:

    cs: socket 0 timed out during reset

After a

    cardctl reset

as root I will get a high and a low Sound.
The stab-file is empty. But a

    mount -t msdos /dev/hde1 /mnt/mem

works.

Whats wrong?
My Canon S20 camera works very well with these card.


  Rüdiger

None Your system log is your friend

Re: Question SanDisc make troubles (Rüdiger Gubler)
Date: 2000, May 17
From: David Hinds <dhinds@pcmcia.sourceforge.org>

I need to see the messages.  They will tell you the reason for the low
beep.  And is the stab file really completely empty??  I don't see how
that can ever happen.

-- Dave

More "If there a message stands i'll be happy"

Re: None Your system log is your friend (David Hinds)
Date: 2000, May 18
From: Rüdiger Gubler ruediger.gubler

The low beep appears because the stab-file does realy have no entry for the card.

My main problem is why does the timed out message appear. I think cs have some troubles to identify the card or the card is brocken.

Ruediger

Ok Lucky you -- I just solved this problem (in ide script) **FIX**

Re: More "If there a message stands i'll be happy" (Rüdiger Gubler)
Date: 2000, Jun 07
From: Tom Hundt thundt

I was having the same problem -- I have a couple of Sandisk cards (one calls itself Sundisk, the old name of the company) that would be recognized (two beeps) but not mounted.

The last thing in the system log would be "cardmgr[381]: executing: './ide start hde', which I think is normal.

After much futzing around with debugging printf type messages, I discovered that the parameters to the functions were getting all messed up, because some parameter coming back from the card had a SPACE in it!

Brilliant fix? Put quotes around the parameters.

Line 42 of ide says: 
add_parts "$ADDRESS" "$PARTS" || exit 1
  new! ---^    ----^      

For good measure line 54 has rm_parts with the same thing, although this always seemed to work anyway. (This is ide 1.9, or so it says.)

Now the log has messages about "disk change detected" and a kernel message "hde: hde1" and a message from cardmgr saying it's mounted /dev/hde1 on /mnt/ide. And indeed it is! :-) :-) :-)

Also I should add that in the ide.opts I set DO_FSCK= (i.e., blank) to prevent fsck.msdos not found messages. (These seemed to be harmless but I still didn't like 'em.)

(Speaking of which, the ide.opts needed to have stuff uncommented which David had put in there as an example. It would've been user-friendly if this had been uncommented in the first place.)

Also I should add that I'm running a fresh install of SuSE Linux 6.4 plus a downloaded pcmcia-cs-3.1.11 (on the advice of some other piece of documentation that said the "no pcmcia driver in /proc/device" meant that it had to be updated/recompiled).

And now that I can finally use my PCMCIA slots again, I'm very happy -- this is what finally prompted me to load Linux on myh laptop, Win95 was just hopelessly braindamaged. Way to go David!

-Tom Hundt

Question problem with Archos Zip100

Date: 2000, Jun 09
From: Ulrich Lauther lauther

Linux 2.2.13 Slackware 7.0, but self-compiled pcmcia 3.1.15 (3.1.14 crashes the kernel when hot swapping cards) Siemens-Fujitsu Lifebook E 6540

when I insert the Archos Zip100 Minidrive (carries a Fujitsu label) I hear a high and after quite a while a low beep. The logfile says:

Jun  9 12:35:30 newnote kernel: Linux PCMCIA Card Services 3.1.15
Jun  9 12:35:30 newnote kernel:   kernel build: 2.2.13 #22 Wed Oct 20 17:32:52 CDT 19
99
Jun  9 12:35:30 newnote kernel:   options:  [pci] [cardbus]
Jun  9 12:35:30 newnote kernel: PCI routing table version 1.0 at 0xfdf50
Jun  9 12:35:30 newnote kernel:   00:0f.0 -> irq 9
Jun  9 12:35:30 newnote kernel:   00:0f.1 -> irq 9
Jun  9 12:35:30 newnote kernel: Intel PCIC probe: 
Jun  9 12:35:30 newnote kernel:   Ricoh RL5C476 rev 80 PCI-to-CardBus at slot 00:0f, 
mem 0x68000000 Jun 9 12:35:30 newnote kernel: host opts [0]: [serial irq] [io 3/6/1] [mem 3/6/1 ] [pci irq 9] [lat 64/176] [bus 2/2] Jun 9 12:35:30 newnote kernel: host opts [1]: [serial irq] [io 3/6/1] [mem 3/6/1 ] [pci irq 9] [lat 64/176] [bus 3/3] Jun 9 12:35:30 newnote kernel: ISA irqs (default) = 3,4,5,7,10,11 PCI status cha nges
Jun  9 12:35:30 newnote cardmgr[1464]: starting, version is 3.1.15
Jun  9 12:35:30 newnote cardmgr[1464]: watching 2 sockets
Jun  9 12:35:30 newnote kernel: cs: IO port probe 0x0c00-0x0cff: excluding 0xcf8-0xcf
f
Jun  9 12:35:30 newnote kernel: cs: IO port probe 0x0800-0x08ff: clean.
Jun  9 12:35:30 newnote kernel: cs: IO port probe 0x0100-0x04ff: excluding 0x118-0x11
f 0x4d0-0x4d7
Jun  9 12:35:30 newnote kernel: cs: IO port probe 0x0a00-0x0aff: clean.
Jun  9 12:35:48 newnote cardmgr[1464]: initializing socket 0
Jun  9 12:35:48 newnote kernel: cs: memory probe 0xa0000000-0xa0ffffff: clean.
Jun  9 12:35:48 newnote cardmgr[1464]: socket 0: Xircom CEM56 Ethernet/Modem
Jun  9 12:35:48 newnote cardmgr[1464]: executing: 'modprobe xirc2ps_cs'
Jun  9 12:35:48 newnote kernel: xirc2ps_cs.c 1.31 1998/12/09 19:32:55 (dd9jn+kvh)
Jun  9 12:35:48 newnote cardmgr[1464]: executing: 'modprobe serial_cs'
Jun  9 12:35:53 newnote kernel: eth1: autonegotiation failed; using 10mbs
Jun  9 12:35:53 newnote kernel: eth1: MII selected
Jun  9 12:35:53 newnote kernel: eth1: media 10BaseT, silicon revision 5
Jun  9 12:35:53 newnote kernel: eth1: Xircom: port 0x300, irq 3, hwaddr 00:10:A4:04:E
7:B5
Jun  9 12:35:53 newnote kernel: tty00 at 0x0ae8 (irq = 3) is a 16550A
Jun  9 12:35:53 newnote cardmgr[1464]: executing: './network start eth1'
Jun  9 12:35:53 newnote cardmgr[1464]: executing: './serial start ttyS0'
Jun  9 12:36:52 newnote cardmgr[1464]: initializing socket 1
Jun  9 12:36:52 newnote cardmgr[1464]: socket 1: ATA/IDE Fixed Disk
Jun  9 12:36:52 newnote cardmgr[1464]: executing: 'modprobe ide_cs'
Jun  9 12:37:07 newnote kernel: ide_cs: ide_register() at 0x100 & 0x10e, irq 5 failed
Jun  9 12:37:08 newnote cardmgr[1464]: get dev info on socket 1 failed: Resource temp
orarily unavailable

What can I do?

None More information?

Re: Question problem with Archos Zip100 (Ulrich Lauther)
Date: 2000, Jun 09
From: David Hinds <dhinds@pcmcia.sourceforge.org>

First, I assume your Xircom card works fine (since you don't mention a
problem there)?  Does the zip card behave differently if you insert it
by itself?

I don't remember any changes between 3.1.14 and 3.1.15 that would
affect hot swap problems.  What specific problems did you have, with
which cards?  Did the zip drive behave differently with 3.1.14?

-- Dave

Feedback more on Zip100 problem

Re: None More information? (David Hinds)
Date: 2000, Jun 10
From: Ulrich Lauther lauther

with the 3.1.14 version that came precompiled with Slakware
7.0 the computer froze with any hot-swap, independent of the
card type, Xircom or Zip100.
The modem worked when inserted before booting, the Zip100
showed the same error as under 3.1.15.

Now with 3.1.15, the Xircom Modem works fine, the Zip100
not at all. Inserting at boot-time or hot-swapping does'nt
make a difference. I always get:

ide_cs: ide_register() at 0x100 & 0x10e, irq 5 failed get dev info on socket 1 failed: Resource temporarily unavailable

I tried to exclude irq 5, but then I get the same message
with another irq number.

Please let me know if I should carry out any other tests
and thanks for any help you may provide.

	-ulrich

PS: your reply did not reach me as email, though I activated
the corresponding button on the form.

None Re: Feedback: more on Zip100 problem

Re: Feedback more on Zip100 problem (Ulrich Lauther)
Date: 2000, Jun 13
From: David Hinds <dhinds@pcmcia.sourceforge.org>

I guess I'll repeat part of my earlier question: does the zip card
behave differently if you insert it by itself?  (I want to see if it
still fails when it gets irq 3, which appears to be ok, since the
modem card works with that)

For the hot swap problem, I can't tell what's going on from this
description.  It does not seem to be a frequent problem: I have not
seen any similar bug reports, and I can't reproduce it.  You could try
following the instructions in the PCMCIA-HOWTO for tracing lockups, if
you are curious.

You can also try excluding the IO port range 0x100-0x10f in
/etc/pcmcia/config.opts, in case you are seeing an IO port conflict.

If that also doesn't help, then I'm not sure what else to suggest.
The kernel IDE driver is not giving much in the way of useful
diagnostic information.

-- Dave

Question SmartMedia fails after a few retries

Date: 2000, Jun 17
From: Benjamin Fuhrmannek BeF

HI

It seems that the devicename of my SmartMedia adaptor counts
 up and doesn't work after a few retries.

This is my log:
----------------------------------------------------
Jun 17 15:39:40 lap cardmgr[51]: initializing socket 0
Jun 17 15:39:40 lap cardmgr[51]: error parsing CIS on socket 0: Invalid argument
Jun 17 15:39:40 lap cardmgr[51]: socket 0: ATA/IDE Fixed Disk
Jun 17 15:39:40 lap cardmgr[51]: executing: 'modprobe ide_cs'
Jun 17 15:39:43 lap cardmgr[51]: executing: './ide start hdc'
Jun 17 15:39:44 lap cardmgr[51]: + /dev/hdc1 on /mnt2 type msdos (rw)
Jun 17 15:40:04 lap cardmgr[51]: shutting down socket 0
Jun 17 15:40:04 lap cardmgr[51]: executing: './ide stop hdc'
Jun 17 15:40:05 lap cardmgr[51]: + /dev/hdc1 umounted
Jun 17 15:40:05 lap cardmgr[51]: executing: 'modprobe -r ide_cs'
Jun 17 15:40:12 lap cardmgr[51]: initializing socket 0
Jun 17 15:40:12 lap cardmgr[51]: error parsing CIS on socket 0: Invalid argument
Jun 17 15:40:12 lap cardmgr[51]: socket 0: ATA/IDE Fixed Disk
Jun 17 15:40:12 lap cardmgr[51]: executing: 'modprobe ide_cs'
Jun 17 15:40:15 lap cardmgr[51]: executing: './ide start hde'
Jun 17 15:40:15 lap cardmgr[51]: + /dev/hde1 on /mnt2 type msdos (rw)
Jun 17 15:40:27 lap cardmgr[51]: shutting down socket 0
Jun 17 15:40:27 lap cardmgr[51]: executing: './ide stop hde'
Jun 17 15:40:28 lap cardmgr[51]: + /dev/hde1 umounted
Jun 17 15:40:28 lap cardmgr[51]: executing: 'modprobe -r ide_cs'
Jun 17 15:40:42 lap cardmgr[51]: initializing socket 0
Jun 17 15:40:42 lap cardmgr[51]: error parsing CIS on socket 0: Invalid argument
Jun 17 15:40:42 lap cardmgr[51]: socket 0: ATA/IDE Fixed Disk
Jun 17 15:40:42 lap cardmgr[51]: executing: 'modprobe ide_cs'
Jun 17 15:41:24 lap cardmgr[51]: executing: './ide start hdg'
Jun 17 15:45:35 lap cardmgr[51]: + /dev/hdg1 on /mnt2 type msdos (rw)
Jun 17 15:45:46 lap cardmgr[51]: shutting down socket 0
Jun 17 15:45:46 lap cardmgr[51]: executing: './ide stop hdg'
Jun 17 15:45:47 lap cardmgr[51]: + /dev/hdg1 umounted
Jun 17 15:45:47 lap cardmgr[51]: executing: 'modprobe -r ide_cs'
Jun 17 15:46:05 lap cardmgr[51]: initializing socket 0
Jun 17 15:46:05 lap cardmgr[51]: error parsing CIS on socket 0: Invalid argument
Jun 17 15:46:05 lap cardmgr[51]: socket 0: ATA/IDE Fixed Disk
Jun 17 15:46:05 lap cardmgr[51]: executing: 'modprobe ide_cs'
Jun 17 15:46:06 lap cardmgr[51]: get dev info on socket 0 failed: Resource temporarily unavailable
Jun 17 15:46:15 lap cardmgr[51]: shutting down socket 0
Jun 17 15:46:15 lap cardmgr[51]: executing: 'modprobe -r ide_cs'
-------------------------------------------

Any ideas?

None Do not "hot eject" IDE devices

Re: Question SmartMedia fails after a few retries (Benjamin Fuhrmannek)
Date: 2000, Jun 19
From: David Hinds <dhinds@pcmcia.sourceforge.org>

Use "cardctl eject" before ejecting an IDE device.  Otherwise, the
kernel IDE driver gets confused and can't free the resources allocated
for the card, and eventually, you run out of resources.

-- Dave

Feedback OK, but...

Re: None Do not "hot eject" IDE devices (David Hinds)
Date: 2000, Jun 19
From: Benjamin Fuhrmannek BeF

Thanks.
It's a little awkward, but it works fine.

Isn't it possible to "hot eject" those devices without wasting resources?

None Of course

Re: Feedback OK, but... (Benjamin Fuhrmannek)
Date: 2000, Jun 19
From: David Hinds <dhinds@pcmcia.sourceforge.org>

> 
> Isn't it possible to "hot eject" those devices without wasting resources?

Sure, it is possible in principle.  But do you want to be the one to
fix the kernel IDE driver to handle it?

-- Dave

Feedback PCMCIA to ribbon-cable IDE

Date: 2000, Jun 27
From: Heather Stern starshine

I have at this point two PCMCIA-to-raw-IDE-pins devices which only work up to a certain point in Linux. Specifically, these gadgets allow me to attach any normal laptop drive to its pins, then insert the PCMCIA cable and voila! IDE mounting of a drive should occur. However, it seems to only work if the drive I am so attaching is sufficiently small and old. It works great for my old 528 MB drives (the original reason for buying the first one). One is a raw PCMCIA card with ribbon cable attachment (to IDE pinout matching 2.5" drives); the other is a pcmcia card to special plug, whose mate is on a small IDE bay (same pinout, just includes blinky-lights for power and access). Both behave similarly under Linux...

If I attach the card to a modern drive (eg 4 Gb, 12 Gb) and then insert its PCMCIA adapter to a 2.2.16 system, I get
  cs: socket 0 timed out during reset
although the drive does power up.  I then eject it because I don't want to harm the drives (though re-introducing them to their ordinary brackets shows them to be fine).

Under MSwin it mounts up correctly (verified using explore2fs, my drives don't tend to have vfat much anymore) using the utterly generic MSHDC driver ("generic IDE/ESDI"). Under OpenBSD it misbehaves a bit differently (and I'm in e-chat with them seperately). The point is that it's very clear that it is only a driver update that's needed. I'll be glad to send one of these "CarryDisk" adapters to the applicable developer if he or she would update it for modern use. They're pleasantly inexpensive for a multipurpose PCMCIA card. Its not-really-bright documentation is dated August 1998, and it doesn't seem to be a newer/cardbus device.

Since I don't have one I couldn't test this, but I'm wildly guessing that it would work correctly for IDE drives under 2 Gb. Thanks in advance!

Heather Stern -*- starshine

None Maybe a timing issue

Re: Feedback PCMCIA to ribbon-cable IDE (Heather Stern)
Date: 2000, Jul 07
From: David Hinds <dhinds@pcmcia.sourceforge.org>

>   cs: socket 0 timed out during reset

Perhaps these drives are just taking a long time to power up.  You
could try setting:

    CORE_OPTS="unreset_limit=60"

in /etc/sysconfig/pcmcia to give the card more time to signal "ready".

-- Dave

Question unreliable compact flash transfer

Date: 2000, Jul 05
From: Reinoud Lamberts Reinoud

Hi,

Reading from one of my compact flash cards results in corrupted data.
When the system is cold, it often can't even mount (probably reading a
corrupted boot block: "hdc: unknown partition table"), and when it
mounts it can hardly read a file without corruption.  Once things warm
up, these corruptions only happen occasionally.  It should be noted
that everything else seems to work just fine with the PCMCIA,
including reading another CF card, and the troubling CF card works
flawless in a digicam.

System:
- PCMCIA Card Services 3.1.8
- Linux kernel 2.2.14 (kernel and pcmcia from Red Hat 2.2.14-12 rpm's).
- Toshiba portege 620CT notebook (oldish p100, no PCI I think)
- PCIC logs as "Intel i82365sl B step ISA-to-PCMCIA at port 0x3e0 ofs
  0x00, 2 sockets"
- CF card from 'CUBE memory / dane-elec' which logs as "Hitachi CV
  6.1.2, 30MB w/1kB Cache, CHS=492/4/32"; http://www.cubememory.com/
- Sandisk CF card adapter

The manufacturer boasts on its website that the Hitachi chipset they
use allows really fast transfer; maybe this doesn't mix well with my
old notebook hardware (unreliable signal timing)?

I tried slowing down the access to the card (not knowing what these
options really do) by setting (in /etc/sysconfig/pcmcia on Red Hat
6.0) PCIC_OPTS="cycle_time=n" and CORE_OPTS="io_speed=n" for various
values of n (0..10000), without noticeable result (in reliability,
transfer speed, or log messages).

Any comments greatly appreciated!

- Reinoud

Question ide_register() failed for SmartMedia Adapter

Date: 2000, Jul 11
From: Steffen Neumann sneumann

Hi,

I have the problem 
Hi there, I have a problem with the 
   ide_cs: ide_register() at 0x100 & 0x10e, irq 3 failed
error. I tried to exclude some IRQs, even though #3 is not listed
in /proc/interrupts. Some info is attached below, I'd be greatful
for any help or further hints where to look.

Cheers,
Steffen

------------------

System is
Compaq Armada 1750
SmartMedia Adapter MA-2E from Olympus camera kit

SuSE6.3
Kernel2.2.13 ( File: 25842 Nov  8  1999 ide-probe.c,
               Version 1.05  July 3, 1999)
               recompiled with APM Support turned on)

PCMCIA Tools 3.1.3

Cardctl ident tells me about that "disk": 
        Socket 0:
        product info: "       ", "    ", "0.0"
        manfid: 0x0000, 0x0000
        function: 4 (fixed disk)         

But no devices are available.

And the full messages are:

kernel: Linux PCMCIA Card Services 3.1.3
kernel:   kernel build: 2.2.13 #1 Mon Nov 8 18:28:35 GMT 1999
kernel:   options:  [pci] [cardbus] [pnp]
kernel: Intel PCIC probe:
kernel:   TI 1225 PCI-to-CardBus at bus 0 slot 17, mem 0x7fffe000, 2 sockets
kernel:     host opts [0]: [ring] [pwr save] [pci + serial irq] [pci irq 11] [lat 66/176] [bus 2/2]
kernel:     host opts [1]: [ring] [pwr save] [pci + serial irq] [pci irq 11] [lat 66/176] [bus 3/3]
kernel:     ISA irqs (scanned) = 3,4,7,9,10,15 PCI status changes
cardmgr[744]: starting, version is 3.1.3
cardmgr[744]: watching 2 sockets
kernel: cs: IO port probe 0x1000-0x17ff: excluding 0x1000-0x10ff
kernel: cs: IO port probe 0x0100-0x04ff: excluding 0x250-0x257 0x378-0x37f 0x4d0-0x4d7
kernel: cs: IO port probe 0x0a00-0x0aff: clean.
cardmgr[744]: initializing socket 0
kernel: cs: memory probe 0xa0000000-0xa0ffffff: clean.
cardmgr[744]: socket 0: ATA/IDE Fixed Disk
cardmgr[744]: executing: 'insmod /lib/modules/2.2.13/pcmcia/ide_cs.o'
kernel: ide_cs: ide_register() at 0x100 & 0x10e, irq 3 failed
cardmgr[744]: get dev info on socket 0 failed: Ressource unavailable

None Re: Question: ide_register() failed for SmartMedia Adapter

Re: Question ide_register() failed for SmartMedia Adapter (Steffen Neumann)
Date: 2000, Jul 11
From: David Hinds <dhinds@pcmcia.sourceforge.org>

The SuSE 6.3 kernel should have a working ide-probe.  I have had a few
reports of problems with 32MB Smartmedia cards; does that happen to be
the card size you are using?  Also:

> kernel: Linux PCMCIA Card Services 3.1.3

this is a somewhat buggy PCMCIA driver release.  You might try
upgrading to the current release, which is now 3.1.18.

-- Dave

Ok Problem avoided

Re: Question ide_register() failed for SmartMedia Adapter (Steffen Neumann)
Date: 2000, Jul 12
From: Steffen Neumann sneumann

O.K., I have to admit that I don't want to fiddle around too much. We got our adapter to work on a different machine, which is exactly what we wanted. I might try SuSE6.4 on the Compaq one day, but for now we're fine and happy.

 Thanks for your efforts,
 keep on the good work,
 yours,
 Steffen

Sad ATA Flash card fails on Thinkpad 240

Date: 2000, Jul 13
From: Eric Smith brouhaha

I have an old 10 megabyte IBM "ThinkPad File" PCMCIA flash card (IBM P/N 66G3014, FRU P/N 48G9900). It works fine with Red Hat 6.1 on my desktop computer at home, using an SCM interface (Vadem chip). This is using whatever version of pcmcia-cs Red Hat shipped with 6.1.

But on my ThinkPad 240 which apparently uses a TI PC1211 Cardbus bridge, the flash card isn't recognized. I get no beeps when I insert the card. On the ThinkPad I'm running Red Hat 6.2 with their kernel-2.2.14-5.0 updates, so it has pcmcia-cs version 3.1.8.

On insertion, the kernel logs:

Jul 13 16:35:35 zorac kernel: cs: socket 0 timed out during reset

Cardctl status reports:

Socket 0:
  3.3V 16-bit PC Card
  function 0: [busy]

Cardctl control reports:

Socket 0:
  Vcc 3.3V  Vpp1 3.3V  Vpp2 3.3V

I strongly suspect that those voltages are wrong. When I go home tonight I'll see what the desktop machine reports.

A week ago I borrowed a SanDisk 48M CF card with a PCMCIA adapter, and it worked fine in the ThinkPad.

All of my other PCMCIA and CardBus cards seem to work fine in the ThinkPad, including:

  • Linksys PCMPC200 CardBus 10/100 Ethernet
  • Adaptec SlimSCSI 1480A CardBus (works great even though the support is experimental, I can write CD-R at 8X!)
  • IBM Home & Away 10 Mbps Ethernet/14.4 Modem
  • an OEM'd New Media Bus Toaster SCSI card
  • several different Megahertz modems

Note slightly more info

Re: Sad ATA Flash card fails on Thinkpad 240 (Eric Smith)
Date: 2000, Jul 14
From: Eric Smith brouhaha

And cardctl ident returns:

Socket 0:
  no product info available

Note Log of same card working on desktop computer

Re: Sad ATA Flash card fails on Thinkpad 240 (Eric Smith)
Date: 2000, Jul 14
From: Eric Smith brouhaha

Last night I recorded the info from using the same card on my desktop computer. On insertion, the kernel logged:

Jul 14 00:02:20 hubbub cardmgr[419]: initializing socket 0
Jul 14 00:02:20 hubbub cardmgr[419]: socket 0: ATA/IDE Fixed Disk
Jul 14 00:02:20 hubbub cardmgr[419]: executing: 'insmod /lib/modules/2.2.12-20/pcmcia/ide_cs.o'
Jul 14 00:02:22 hubbub kernel: hdc: SunDisk SDP-10.4, ATA DISK drive 
Jul 14 00:02:22 hubbub kernel: hdd: SunDisk SDP-10.4, ATA DISK drive 
Jul 14 00:02:22 hubbub kernel: ide2: ports already in use, skipping probe 
Jul 14 00:02:22 hubbub kernel: ide1 at 0x100-0x107,0x10e on irq 9 
Jul 14 00:02:22 hubbub kernel: hdc: SunDisk SDP-10.4, 10MB w/1kB Cache, CHS=320/2/32 
Jul 14 00:02:22 hubbub kernel: hdd: SunDisk SDP-10.4, 10MB w/1kB Cache, CHS=320/2/32 
Jul 14 00:02:22 hubbub kernel:  hdc: hdc1 
Jul 14 00:02:22 hubbub kernel:  hdd: hdd1 
Jul 14 00:02:22 hubbub kernel: ide_cs: hdc: Vcc = 5.0, Vpp = 12.0 
Jul 14 00:02:22 hubbub cardmgr[419]: executing: './ide start hdc'
Jul 14 00:02:22 hubbub cardmgr[419]: + ./ide: /sbin/ide_info: No such file or di
rectory

cardctl status reported:

Socket 0:
  5V 16-bit card present
  Function 0: ready, battery dead, battery low

cardctl config reported:

Socket 0:
  Vcc = 5.0, Vpp1 = 12.0, Vpp2 = 12.0
  Interface type is memory and I/O
  IRQ 9 is exclusive, level mode, enabled
  Function 0:
    Config register base = 0x0200
      Option = 0x41, status = 0000, pin = 0000, copy = 0000
    I/O window 1: 0x0100 to 0x010f, auto sized

cardctl ident reported:

Socket 0:
  product info: "SunDisk", "SDP", "1.5"
  manfid: 0x0045, 0x0101
  function: 4 (fixed disk)

The card works fine there; any idea why the ThinkPad 240 would think that it's a 3.3V card?

I don't have Windows on the ThinkPad, so I can't determine whether that works. Maybe I can set up a DOS boot disk with the appropriate enabler and try it out.

None I'm not sure what's wrong on the Thinkpad

Re: Note Log of same card working on desktop computer (Eric Smith)
Date: 2000, Jul 15
From: David Hinds <dhinds@pcmcia.sourceforge.org>

The desktop card reader may only support 5V cards, and not do any
voltage sensing at all.  If this is a dual 3V/5V card, it would then
work at 5V.  On the desktop, you can run "dump_cis" to get information
about what voltages the card supports.

-- Dave

Question Compact Flash Hangs old Laptop

Date: 2000, Jul 14
From: Rui-Tao Dong rdong

I have an old NEC Versa 25c, which is was retired from its
Xterminal duty. (Replaced by an I-Opener :-).  I thought it
would be a good storage device (1.3GB) for my digital camera
for trips.  Unfortunately, it doesn't quite work.

The symptom is that inserting the CF card (w/ PCMCIA adapter)
completely hangs the machine, no message, no log, no response.

I am running RH 6.2 with CS 3.12 on a 25MHz i486.  The PCMCIA
slot works fine w/ a network card (Thomas Conrad), wireless
card (Wavelan) and sram card (Fuji).  The Nikon CF card
(SanDisk?) works fine on my UDB (Alpha Multia) with RH 6.2
CS 3.12 and my Zoomer.

This may not be a Linux problem.  I notice that the BIOS
wouldn't even run on poweron when the CF card is in
the slot.  However, I was hoping that the Kernel has more
control than the BIOS.

None It is a hardware incompatibility

Re: Question Compact Flash Hangs old Laptop (Rui-Tao Dong)
Date: 2000, Jul 14
From: David Hinds <dhinds@pcmcia.sourceforge.org>

This is a hardware issue with the NEC Versa and there is no possible
software workaround.

I have an old Versa and had a similar problem.  The issue is that the
Versa has an old PCMCIA bridge chip that conforms to an old version of
the PCMCIA standard (version 1.0).  Later standards redefined two pins
on the PCMCIA connector in a way that makes newer PCMCIA cards wedge
the older Versa hardware.

There is a hardware workaround but I don't recommend it and don't even
remember exactly how to do it.  You can open up the laptop and cut the
wire going to pin 43 on the PCMCIA connector.  I did this on my laptop
to enable one socket to work with the newer cards.

-- Dave

More Is there a reference?

Re: None It is a hardware incompatibility (David Hinds)
Date: 2000, Jul 14
From: Rui-Tao Dong rdong

Thanks for the quick reply.  Do you have a reference?  I 
haven't had any success with deja and Alta-Vista yet.  The
hardware work around seems to be my only way out (short of
buying a new machine.)  I am also wondering if I could do
the hack on the adapter?  Mistake will cost me only $10.

None Again, I don't recommend this at all

Re: More Is there a reference? (Rui-Tao Dong)
Date: 2000, Jul 14
From: David Hinds <dhinds@pcmcia.sourceforge.org>

I'm not sure what sort of reference you want to see.  I certainly
don't know of anything documenting how to do the hardware mod, if that
is what you want.  Looking at the general PCMCIA specs I have, I'm not
even sure how I figured out which was the right pin to cut.  Even
getting the laptop disassembled is not trivial.  I do not recommend
this and I'm kind of sorry I mentioned it.

I don't know what your CF adapter looks like so I don't know if it
might be easier to do the mod there.  It would be less risky than
cutting wires in your laptop, for sure.

-- Dave

More Almost worked

Re: None Again, I don't recommend this at all (David Hinds)
Date: 2000, Jul 19
From: Rui-Tao Dong rdong

Using a multimeter, I found the pin on the adapter which 
connects to pin 43.  I pushed the pin back and forth with a
small screwdriver until it breaks.   I popped it into the 
laptop, and it didn't freeze!  Instead the cardmgr says,
Jul 14 18:48:19 Alpha cardmgr[394]: initializing socket 0
Jul 14 18:48:19 Alpha cardmgr[394]: socket 0: ATA/IDE Fixed Disk
Jul 14 18:48:19 Alpha cardmgr[394]: executing: 'insmod /lib/modules/2.2.14/pcmcia/ide_cs.o'
Jul 14 18:49:07 Alpha kernel: hda: probing with STATUS(0xff) instead of ALTSTATUS(0x50) 
Jul 14 18:49:07 Alpha kernel: hda: probing with STATUS(0xff) instead of ALTSTATUS(0x50) 
Jul 14 18:49:07 Alpha kernel: hda: no response (status = 0xff), resetting drive 
Jul 14 18:49:07 Alpha kernel: hda: probing with STATUS(0xff) instead of ALTSTATUS(0x50) 
Jul 14 18:49:07 Alpha kernel: hda: no response (status = 0xff) 
Jul 14 18:49:31 Alpha kernel: ide_cs: ide_register() at 0x140 & 0x14e, irq 7 failed 
Jul 14 18:49:32 Alpha cardmgr[394]: get dev info on socket 0 failed: Resource temporarily unavailable
Jul 14 18:49:32 Alpha cardmgr[394]: shutting down socket 0
Jul 14 18:49:32 Alpha cardmgr[394]: executing: 'rmmod ide_cs'


Looks like if I can get it to pass through the probing phase,
then I'll be in a good shape. 

Question Problems with PCI to PCMCIA Adpater

Date: 2000, Aug 10
From: Nicolas Malsch nick

Hi guys,

I have a couple of issues with PCMCIA related stuff. One of them is urgent and about the PCMCIA Adapter. The Adapter is from Quatech. It is a PCD2-F/PCI. The configuration of the Card drive seems to be PCI bridge probe:

Ricoh RL5C476 found, 2 sockets.fine. 'probe' gives:

I am running RedHat 6.2 on a Dell Dimension XPS T600r. I upgraded from RedHat 6.1 a couple of weeks ago.

The problems start when I insert cards. It is not like he doesn't recognize them. Linux actually configures them properly but it takes a realy long time and I get some funky error messages in the /var/log/messages files:

When I insert a SunDisk 10 MB compact flash card, i get the following messages...

Aug  9 14:25:38 idefix cardmgr[450]: initializing socket 1
Aug  9 14:25:38 idefix cardmgr[450]: socket 1: ATA/IDE Fixed Disk
Aug  9 14:25:38 idefix kernel: cs: memory probe 0xa0000000-0xa0ffffff: clean.
Aug  9 14:25:39 idefix cardmgr[450]: executing: 'insmod /lib/modules/2.2.14-5.0/pcmcia/ide_cs.o'
Aug  9 14:25:41 idefix kernel: hde: SunDisk SDCFB-10, ATA DISK drive
Aug  9 14:25:41 idefix kernel: ide2 at 0x100-0x107,0x10e on irq 3
Aug  9 14:25:41 idefix kernel: hde: SunDisk SDCFB-10, 10MB w/1kB Cache, CHS=320/2/32
Aug  9 14:25:51 idefix kernel:  hde:hde: lost interrupt
Aug  9 14:26:01 idefix kernel: hde: lost interrupt
Aug  9 14:26:41 idefix last message repeated 4 times
Aug  9 14:26:41 idefix kernel:  unknown partition table
Aug  9 14:26:41 idefix kernel: ide_cs: hde: Vcc = 3.3, Vpp = 0.0
Aug  9 14:26:41 idefix cardmgr[450]: executing: './ide start hde'
Aug  9 14:26:41 idefix cardmgr[450]: + ./ide: /sbin/ide_info: No such file or directory

When I try my LinkSys EtherFast 10/100 PC Card, I get the following log...

ug 9 15:21:49 idefix cardmgr[449]: initializing socket 0

Aug  9 15:21:49 idefix cardmgr[449]: socket 0: NE2000 Compatible Ethernet
Aug  9 15:21:49 idefix cardmgr[449]: executing: 'insmod /lib/modules/2.2.14-5.0/net/8390.o'
Aug  9 15:21:49 idefix cardmgr[449]: executing: 'insmod /lib/modules/2.2.14-5.0/pcmcia/pcnet_cs.o'
Aug  9 15:21:49 idefix kernel: eth0: NE2000 Compatible: io 0x300, irq 3, hw_addr 00:E0:98:82:4A:71
Aug  9 15:21:49 idefix cardmgr[449]: executing: './network start eth0'
Aug  9 15:21:49 idefix pumpd[1327]: starting at (uptime 0 days, 0:14:17) Wed Aug  9 15:21:49 2000
Aug  9 15:21:51 idefix kernel: eth0: interrupt(s) dropped!
Aug  9 15:21:53 idefix kernel: eth0: interrupt(s) dropped!
Aug  9 15:21:53 idefix pumpd[1327]: configured interface eth0
Aug  9 15:21:53 idefix cardmgr[449]: + Determining IP information for eth0... done.
Aug  9 15:22:31 idefix last message repeated 6 times

I don't really know what is going on. It seems to "send a packet and them time out". I would appreciate help on that issue. Perhaps some explanation on the PCIC_OPTS with regards to PCI. If you need more info, feel free to ask.

Cheers, Nick

None Interrupt configuration issue: driver upgrade needed

Re: Question Problems with PCI to PCMCIA Adpater (Nicolas Malsch)
Date: 2000, Aug 10
From: David Hinds <dhinds@pcmcia.sourceforge.org>

This configuration is not supported by the PCMCIA drivers in Red Hat
6.2.  You will need to upgrade to a current driver package (3.1.19 at
the moment), then set:

  PCIC_OPTS="irq_mode=0"

in /etc/sysconfig/pcmcia, to tell the PCMCIA drivers to only use PCI
interrupts for this CardBus bridge.

-- Dave

More upgrade didn't solve all issues... :-(

Re: None Interrupt configuration issue: driver upgrade needed (David Hinds)
Date: 2000, Aug 22
From: Nicolas Malsch nick

Dave,

I upgraded the drivers which seems to make the reader a little more normalle but then I get an interrupt failure. Here are two of my tests results...

********************************************************

/vi var/log/messages with irq_mode=0

********************************************************

Aug 21 10:44:57 idefix cardmgr[501]: exiting
Aug 21 10:44:57 idefix kernel: unloading PCMCIA Card Services
Aug 21 10:44:57 idefix kernel: Linux PCMCIA Card Services 3.1.19
Aug 21 10:44:57 idefix kernel:   kernel build: 2.2.14-5.0 #1 Tue Mar 7 21:07:39 EST 2000
Aug 21 10:44:57 idefix kernel:   options:  [pci] [cardbus] [apm]
Aug 21 10:44:57 idefix kernel: PCI routing table version 1.0 at 0xfdf20
Aug 21 10:44:57 idefix kernel: Intel PCIC probe:
Aug 21 10:44:57 idefix kernel:   Ricoh RL5C476 rev 80 PCI-to-CardBus at slot 00:10, mem 0x68000000
Aug 21 10:44:57 idefix kernel:     host opts [0]: [pci only] [io 3/6/1] [mem 3/6/1] [pci irq 9] [lat 168/176] [bus 32/34]
Aug 21 10:44:57 idefix kernel:     host opts [1]: [pci only] [io 3/6/1] [mem 3/6/1] [pci irq 11] [lat 168/176] [bus 35/37]
Aug 21 10:44:57 idefix kernel:     PCI card interrupts, PCI status changes
Aug 21 10:44:57 idefix cardmgr[961]: starting, version is 3.1.19
Aug 21 10:44:57 idefix cardmgr[961]: watching 2 sockets
Aug 21 10:44:57 idefix kernel: cs: IO port probe 0x1000-0x17ff: excluding 0x1080-0x10ff 0x1400-0x1407 0x1410-0x1417
Aug 21 10:44:57 idefix kernel: cs: IO port probe 0x0100-0x04ff: excluding 0x200-0x207 0x330-0x337 0x378-0x37f 0x4d0-0x4d7
Aug 21 10:44:57 idefix kernel: cs: IO port probe 0x0a00-0x0aff: clean.
Aug 21 10:45:07 idefix cardmgr[961]: initializing socket 1
Aug 21 10:45:07 idefix kernel: cs: memory probe 0xa0000000-0xa0ffffff: clean.
Aug 21 10:45:07 idefix cardmgr[961]: socket 1: ATA/IDE Fixed Disk
Aug 21 10:45:07 idefix cardmgr[961]: executing: 'modprobe ide_cs'
Aug 21 10:46:48 idefix kernel: hde: no response (status = 0xff)
Aug 21 10:47:11 idefix kernel: ide_cs: ide_register() at 0x100 & 0x10e, irq 11 failed
Aug 21 10:47:12 idefix cardmgr[961]: get dev info on socket 1 failed: Resource temporarily unavailable
Aug 21 10:47:12 idefix cardmgr[961]: shutting down socket 1
Aug 21 10:47:12 idefix cardmgr[961]: executing: 'modprobe -r ide_cs'

************************************************************************

vi /var/log/messages without any options...

************************************************************************

Aug 21 10:54:00 idefix cardmgr[961]: exiting
Aug 21 10:54:00 idefix kernel: unloading PCMCIA Card Services
Aug 21 10:54:00 idefix kernel: Linux PCMCIA Card Services 3.1.19
Aug 21 10:54:00 idefix kernel:   kernel build: 2.2.14-5.0 #1 Tue Mar 7 21:07:39 EST 2000
Aug 21 10:54:00 idefix kernel:   options:  [pci] [cardbus] [apm]
Aug 21 10:54:00 idefix kernel: PCI routing table version 1.0 at 0xfdf20
Aug 21 10:54:00 idefix kernel: Intel PCIC probe:
Aug 21 10:54:00 idefix kernel:   Ricoh RL5C476 rev 80 PCI-to-CardBus at slot 00:10, mem 0x68000000
Aug 21 10:54:00 idefix kernel:     host opts [0]: [isa irq] [io 3/6/1] [mem 3/6/1] [pci irq 9] [lat 168/176] [bus 32/34]
Aug 21 10:54:00 idefix kernel:     host opts [1]: [isa irq] [io 3/6/1] [mem 3/6/1] [pci irq 11] [lat 168/176] [bus 35/37]
Aug 21 10:54:00 idefix kernel:     ISA irqs (default) = 4,5,7 PCI status changes
Aug 21 10:54:00 idefix cardmgr[1048]: starting, version is 3.1.19
Aug 21 10:54:00 idefix cardmgr[1048]: watching 2 sockets
Aug 21 10:54:00 idefix kernel: cs: IO port probe 0x1000-0x17ff: excluding 0x1080-0x10ff 0x1400-0x1407 0x1410-0x1417
Aug 21 10:54:00 idefix kernel: cs: IO port probe 0x0100-0x04ff: excluding 0x200-0x207 0x330-0x337 0x378-0x37f 0x4d0-0x4d7
Aug 21 10:54:00 idefix kernel: cs: IO port probe 0x0a00-0x0aff: clean.
Aug 21 10:54:14 idefix cardmgr[1048]: initializing socket 1
Aug 21 10:54:14 idefix kernel: cs: memory probe 0xa0000000-0xa0ffffff: clean.
Aug 21 10:54:14 idefix cardmgr[1048]: socket 1: ATA/IDE Fixed Disk
Aug 21 10:54:14 idefix cardmgr[1048]: executing: 'modprobe ide_cs'
Aug 21 10:55:21 idefix kernel: hde: no response (status = 0xff)
Aug 21 10:55:43 idefix kernel: ide_cs: ide_register() at 0x100 & 0x10e, irq 5 failed
Aug 21 10:55:44 idefix cardmgr[1048]: get dev info on socket 1 failed: Resource temporarily unavailable
Aug 21 10:55:44 idefix cardmgr[1048]: shutting down socket 1
Aug 21 10:55:44 idefix cardmgr[1048]: executing: 'modprobe -r ide_cs'

Should I just try irqs randomly using the "pci_irq_list options"? Is there another issue that I am not aware of? In both case the computer hangs when inserting a card. If I take the card out, the computer reacts again (after a few seconds).

	Thanx, Nicolas

None Hmmm, I think this is an IDE driver bug

Re: More upgrade didn't solve all issues... :-( (Nicolas Malsch)
Date: 2000, Aug 23
From: David Hinds <dhinds@pcmcia.sourceforge.org>

I guess I've never tried an ATA/IDE card with PCI interrupts before.

It appears that the IDE probe routine has a bug that makes it unusable
when a drive shares an interrupt with another device.  Try setting:

  PCIC_OPTS="irq_mode=0 pci_csc=0 poll_interval=100"

which will prevent the i82365 driver from sharing the interrupt.  In
your system, the Ricoh bridge is set up for irq's 9 and 11.  If those
irq's are already shared with other devices, you will still have
problems; but if one or both are free (nothing shows up in
/proc/interrupts), then one or both of your sockets should be ok with
this updated PCIC_OPTS.

-- Dave

Question Archos CDRW irq timeout

Date: 2000, Sep 03
From: Matt Sexton sexton

I'm trying to use an Archos CDRW drive that came with an ATA/IDE PCMCIA card, under Linux 2.2.16 with pcmcia-cs-3.1.20 on a Dell Latitude CPi. I have successfully gotten the card recognized by the SCSI host adapter emulator (thanks to the PCMCIA CD-Writer HOWTO). IO ports and an interrupt are assigned, but the driver fails communitcating with the device. Initially, there are a series of:

Sep  2 23:56:56 pc-admin238 kernel: SCSI bus is being reset for host 0 channel 0. 
Sep  2 23:56:56 pc-admin238 kernel: scsi : aborting command due to timeout : pid 1, scsi0, channel 0, id 0, lun 0 Inquiry 00 00 00 ff 00  
Sep  2 23:56:56 pc-admin238 kernel: SCSI host 0 abort (pid 1) timed out - resetting 

Eventually, there is this message:

Sep  2 23:57:21 pc-admin238 kernel: hdc: irq timeout: status=0xd0 { Busy } 
Sep  2 23:57:21 pc-admin238 kernel: hdc: DMA disabled 
Sep  2 23:57:21 pc-admin238 kernel: hdc: ATAPI reset complete 
Sep  2 23:57:21 pc-admin238 kernel: hdc: irq timeout: status=0x80 { Busy } 
Sep  2 23:57:21 pc-admin238 kernel: hdc: ATAPI reset complete 
Sep  2 23:57:22 pc-admin238 kernel: hdc: irq timeout: status=0x80 { Busy } 

The error is much the same when I use the ide-cd module instead of ide-scsi.

I have tried three different interrupts, all of which work fine for my PCMCIA ethernet (3c589) card. /proc/interrupts reports a nonzero number of interrupts being counted for the interrupt assigned to the driver.

I've tried changing the irq_mode for the CardBus controller (a TI 1131), with no effect.

Suggestions anyone?

Thanks, Matt

Here is the log from starting up pcmcia-cs

Sep  2 23:56:44 pc-admin238 kernel: Intel PCIC probe:  
Sep  2 23:56:44 pc-admin238 kernel:   TI 1131 rev 01 PCI-to-CardBus at slot 00:03
, mem 0xf8000000 
Sep  2 23:56:44 pc-admin238 kernel:     host opts [0]: [ring] [pci + serial irq] 
[pci irq 11] [lat 32/32] [bus 32/34] 
Sep  2 23:56:44 pc-admin238 kernel:     host opts [1]: [ring] [pci + serial irq] 
[pci irq 11] [lat 32/32] [bus 35/37] 
Sep  2 23:56:44 pc-admin238 kernel:     ISA irqs (scanned) = 3,9,10,15 PCI status
 changes 
Sep  2 23:56:44 pc-admin238 cardmgr[442]: starting, version is 3.1.20
Sep  2 23:56:44 pc-admin238 cardmgr[442]: watching 2 sockets
Sep  2 23:56:44 pc-admin238 kernel: cs: IO port probe 0x1000-0x17ff: clean. 
Sep  2 23:56:44 pc-admin238 kernel: cs: IO port probe 0x0100-0x04ff: excluding 0x
170-0x177 0x290-0x297 0x370-0x37f 
Sep  2 23:56:44 pc-admin238 kernel: cs: IO port probe 0x0a00-0x0aff: clean. 
Sep  2 23:56:45 pc-admin238 cardmgr[442]: initializing socket 1
Sep  2 23:56:45 pc-admin238 kernel: cs: memory probe 0xa0000000-0xa0ffffff: clean
. 
Sep  2 23:56:45 pc-admin238 cardmgr[442]: socket 1: ATA/IDE Fixed Disk
Sep  2 23:56:45 pc-admin238 cardmgr[442]: executing: 'modprobe ide_cs'
Sep  2 23:56:50 pc-admin238 kernel: hdc: probing with STATUS(0x80) instead of ALT
STATUS(0xa0) 
Sep  2 23:56:50 pc-admin238 kernel: hdc: ARCHOS MiniCDRW XS4424, ATAPI CDROM driv
e 
Sep  2 23:56:50 pc-admin238 kernel: ide2: ports already in use, skipping probe 
Sep  2 23:56:50 pc-admin238 kernel: ide1 at 0x11f0-0x11f7,0x13f6 on irq 10 
Sep  2 23:56:50 pc-admin238 kernel: ide_cs: hdc: Vcc = 5.0, Vpp = 12.0 
Sep  2 23:56:50 pc-admin238 cardmgr[442]: executing: './ide start hdc'
Sep  2 23:56:51 pc-admin238 kernel: ide-cd: ignoring drive hdc 
Sep  2 23:56:51 pc-admin238 kernel: hdc: driver not present 
Sep  2 23:56:51 pc-admin238 cardmgr[442]: + open() failed: Device not configured
Sep  2 23:56:51 pc-admin238 kernel: scsi0 : SCSI host adapter emulation for IDE A
TAPI devices 
Sep  2 23:56:51 pc-admin238 kernel: scsi : 1 host. 
Sep  2 23:56:53 pc-admin238 kernel: scsi : aborting command due to timeout : pid 
1, scsi0, channel 0, id 0, lun 0 Inquiry 00 00 00 ff 00  
Sep  2 23:56:55 pc-admin238 kernel: scsi : aborting command due to timeout : pid 
1, scsi0, channel 0, id 0, lun 0 Inquiry 00 00 00 ff 00  
Sep  2 23:56:55 pc-admin238 kernel: SCSI host 0 abort (pid 1) timed out - resetti
ng 

None I'd also try fiddling with IO port windows

Re: Question Archos CDRW irq timeout (Matt Sexton)
Date: 2000, Sep 07
From: David Hinds <dhinds@pcmcia.sourceforge.org>

It is just a shot in the dark, but I'd try commenting out the
0x1000-0x17ff port range in /etc/pcmcia/config.opts.

-- Dave

None no luck with I/O ports

Re: None I'd also try fiddling with IO port windows (David Hinds)
Date: 2000, Sep 09
From: Matt Sexton sexton

Yeah, I had tried changing IO ports as well, without any difference in the behaviour of the device.

The ironic thing is that Archos, the manufacturer, claims Linux support for this device on their web page. But the best that the technical support representative could offer is to make sure that I'm running Linux 2.x. What a big help that was... I'm trying to get some information from their engineering department, but I'm not optimistic.

Thanks for the suggestion.

Matt

PCMCIA ATA/IDE Device Issues


Add Message to: "PCMCIA ATA/IDE Device Issues"

Members Subscribe Admin Mode Show Frames Help for HyperNews at pcmcia-cs.sourceforge.net 1.10