PCMCIA / compact flash / au1x00

Aeschbacher, Fabrice Fabrice.Aeschbacher at siemens.com
Mon Apr 23 09:46:01 EDT 2007


I tried with another compact flash (this time, a SanDisk). Surprisingly,
I got some other results. The card still appears or disappears in
/sys/bus/pcmcia/devices as I plug or unplug it. But now I can see some
messages on the console:

o when using ide-cs:

  pccard: PCMCIA card inserted into slot 0
  pcmcia: registering new device pcmcia0.0
  hda: SanDisk SDCFB-64, CFA DISK drive
  ide0: Disabled unable to get IRQ 35.
  ide0: failed to initialize IDE interface
  ide0: I/O resource 0x10200E-0x10200E not free.
  ide0: ports already in use, skipping probe
  ide0: I/O resource 0x10200E-0x10200E not free.
  ide0: ports already in use, skipping probe
  ide0: I/O resource 0x10200E-0x10200E not free.
  ide0: ports already in use, skipping probe
  ide0: I/O resource 0x10200E-0x10200E not free.
  ide0: ports already in use, skipping probe
  ide0: I/O resource 0x10200E-0x10200E not free.
  ide0: ports already in use, skipping probe
  ide0: I/O resource 0x10200E-0x10200E not free.
  ide0: ports already in use, skipping probe
  ide0: I/O resource 0x10200E-0x10200E not free.
  ide0: ports already in use, skipping probe
  ide0: I/O resource 0x10200E-0x10200E not free.
  ide0: ports already in use, skipping probe
  ide0: I/O resource 0x10200E-0x10200E not free.
  ide0: ports already in use, skipping probe
  ide-cs: ide_register() at 0x102000 & 0x10200e, irq 35 failed

o when using pata_pcmcia:

  ata1: PATA max PIO0 cmd 0x102000 ctl 0x10200E bmdma 0x0 irq 35
  pata_pcmcia 0.0: irq 35 request failed: -89
  pata_pcmcia: probe of 0.0 failed with error -12


The same console messages are generated if I run pcmcia-socket-startup
later.

Bye,
Fabrice Aeschbacher

> -----Original Message-----
> From: linux-pcmcia-bounces at lists.infradead.org 
> [mailto:linux-pcmcia-bounces at lists.infradead.org] On Behalf 
> Of Aeschbacher, Fabrice
> Sent: Donnerstag, 19. April 2007 14:43
> To: linux-pcmcia at lists.infradead.org
> Subject: PCMCIA / compact flash / au1x00
> 
> Hi,
> 
> [kernel 2.6.20.7 / mips]
> 
> I am having trouble using a compact flash connected to a 
> PCMCIA socket on an Alchemy au1550 board (mips).
> 
> The CF seems to be recognized:
> 
>   # insmod au1x00_ss.ko
> 
>   => dmesg output:
>     pccard: PCMCIA card inserted into slot 0
>     pcmcia: registering new device pcmcia0.0
> 
>   # pccardctl ls          
>   Socket 0 Bridge:        [au1x00-pcmcia]         (bus ID:
> au1x00-pcmcia.0)
>   Socket 0 Device 0:      [-- no driver --]       (bus ID: 0.0)
> 
>   # pccardctl info
>   PRODID_1="TRANSCEND"
>   PRODID_2="TS2GCF120"
>   PRODID_3=""
>   PRODID_4=""
>   MANFID=000a,0000
>   FUNCID=4
> 
>   # pccardctl status
>   Socket 0:
>     3.3V 16-bit PC Card
>     Subdevice 0 (function 0) [unbound]
> 
> Problem: I can't access the CF by its device (hda):
> 
>   # fdisk /dev/hda
>   Unable to open /dev/hda
> 
> 
> 
> Here is the relevant part of the kernel config:
> CONFIG_IDE=y
> CONFIG_BLK_DEV_IDE=y
> CONFIG_BLK_DEV_IDECS=m
> CONFIG_PCCARD=y
> CONFIG_PCMCIA_DEBUG=y
> CONFIG_PCMCIA=y
> CONFIG_PCMCIA_IOCTL=y
> CONFIG_PCMCIA_AU1X00=m
> 
> Neither hotplug nor udev is installed (I only installed 
> /sbin/pccardctl).
> 
> I know cardmgr is no more used in recent kernels. Anyway, if 
> I try to run it, I become following result:
> 
>   # cardmgr
>   cardmgr[976]: watching 1 socket
>   cardmgr[976]: could not adjust resource: IO ports 0xc00-0: 
> Invalid argument
>   cardmgr[976]: could not adjust resource: IO ports 0x100-0: 
> Invalid argument
>   cardmgr[976]: could not adjust resource: memory 0xc0000-0xfffff:
> Invalid argument
>   cardmgr[976]: could not adjust resource: memory 
> 0x60000000-0x60ffffff:
> Invalid   argument
>   cardmgr[976]: could not adjust resource: memory 
> 0xa0000000-0xa0ffffff:
> Invalid   argument
>   cardmgr[976]: could not adjust resource: IO ports 0xa00-0: 
> Invalid argument
>   cardmgr[976]: could not adjust resource: irq 4: Invalid argument
>   cardmgr[976]: could not adjust resource: irq 7: Invalid argument
> 
> and following output in dmesg:
>   ds: ds_open(socket 0)
>   pcmcia: Detected deprecated PCMCIA ioctl usage from 
> process: cardmgr.
>   pcmcia: This interface will soon be removed from the kernel; please
> expect breakage   unless you upgrade to new tools.
>   pcmcia: see
> http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.htm
> l for details.
>   ds: ds_open(socket 1)
>   ds: ds_open(socket 1)
>   ide_attach()
>   ide_config(0x80788400)
>   Probing IDE interface ide0...
>   hda: TRANSCEND, CFA DISK drive
>   ide0: Disabled unable to get IRQ 34.
>   ide0: failed to initialize IDE interface
>   ide0: I/O resource 0x16400E-0x16400E not free.
>   ide0: ports already in use, skipping probe
>   ide0: I/O resource 0x16400E-0x16400E not free.
>   ide0: ports already in use, skipping probe
>   ide0: I/O resource 0x16400E-0x16400E not free.
>   ide0: ports already in use, skipping probe
>   ide0: I/O resource 0x16400E-0x16400E not free.
>   ide0: ports already in use, skipping probe
>   ide0: I/O resource 0x16400E-0x16400E not free.
>   ide0: ports already in use, skipping probe
>   ide0: I/O resource 0x16400E-0x16400E not free.
>   ide0: ports already in use, skipping probe
>   ide0: I/O resource 0x16400E-0x16400E not free.
>   ide0: ports already in use, skipping probe
>   ide0: I/O resource 0x16400E-0x16400E not free.
>   ide0: ports already in use, skipping probe
>   ide0: I/O resource 0x16400E-0x16400E not free.
>   ide0: ports already in use, skipping probe
>   ide-cs: ide_register() at 0x164000 & 0x16400e, irq 34 failed
>   ide_release(0x80788400)
> 
> Can someone tell me what I missed?
> 
> Note: the CF used to work correctly with a kernel 2.4.26
> 
> Best regards,
> Fabrice Aeschbacher
> 
> _______________________________________________
> Linux PCMCIA reimplementation list
> http://lists.infradead.org/mailman/listinfo/linux-pcmcia
> 



More information about the linux-pcmcia mailing list