world leader in high performance signal processing
Trace: » pcmciautils

PCMCIA Utilities

This page covers using the pcmcia utilities in userspace to interact with pcmcia sockets. It does not cover using specific pcmcia drivers, so if you are still trying to get the socket up and running, please start at a different page.

Config

In the user/vendor configuration menu, select:

Blackfin app programs  --->
   [*] pcmciautils

Usage

When you compile the PCMCIA support into the kernel your kernel startup messages should contain flowing lines:

bfin_cf_pcmcia bfin_cf_pcmcia: Blackfin CompactFlash/PCMCIA Socket Driver
bfin_cf_pcmcia bfin_cf_pcmcia: on irq 54

Inserting

When a card is inserted – following lines should be displayed:

root:/> pcmcia_socket pcmcia_socket0: pccard: PCMCIA card inserted into slot 0
pcmcia 0.0: pcmcia: registering new device pcmcia0.0
hda: SanDisk SDCFH-512, CFA DISK drive
ide0 at 0x20310000-0x20310007,0x2031000e on irq 54
hda: max request size: 128KiB
hda: 1000944 sectors (512 MB) w/1KiB Cache, CHS=993/16/63
 hda: hda1 hda2 hda3
ide-cs: hda: Vpp = 0.0

root:~>

Card List

root:/> pccardctl
pcmciautils 015
Copyright (C) 2004-2005 Dominik Brodowski, (C) 1999 David A. Hinds
Report errors and bugs to <linux-pcmcia@lists.infradead.org>, please.
invalid or unknown argument
Usage: pccardctl COMMAND
Supported commands are:
        ls
        insert
        eject
        suspend
        resume
        reset
        info
        status
        config
        ident


root:/> pccardctl ls
Socket 0 Bridge:        [bfin_cf_pcmcia]        (bus ID: bfin_cf_pcmcia)
Socket 0 Device 0:      [ide-cs]                (bus ID: 0.0)

Identifying

root:/> pccardctl ident
Socket 0:
  product info: "SanDisk", "SDP", "5/3 0.6", ""
  manfid: 0x0045, 0x0401
  function: 4 (fixed disk)

Checking Status

root:/> pccardctl status
Socket 0:
  3.3V 16-bit PC Card
  Subdevice 0 (function 0) bound to driver "ide-cs"

Removing

If no drivers are loaded the Card can be HOT Removed

root:/> pccardctl eject 0
pcmcia_socket pcmcia_socket0: pccard: card ejected from slot 0
root:/> pcmcia_socket pcmcia_socket0: *** DANGER *** unable to remove socket power
root:~>