PCMCIA / compact flash / au1x00

Aeschbacher, Fabrice Fabrice.Aeschbacher at siemens.com
Thu Apr 19 08:42:44 EDT 2007


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.html 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



More information about the linux-pcmcia mailing list