Setting up /etc/pcmcia/config for a new card to be read as memory

file: linux_new_pcmcia.html - 11 Sep 2000

Per linux_cardread.html, put the unknown card into a slot. If the cardmgr doesn't
recognize the card, you'll get a "sad" beep on the second insert. At this point,
do a:
cardctl ident
You should get something like:
Socket 0:
product info: "3Com Corporation", "3C589D", "TP/BNC LAN Card Ver. 2a", "000002"
manfid: 0x0101, 0x0589
function: 6 (network)
Socket 1:
product info: "EDI7P040FLA60---15 ", "COPYRIGHT ELECTRONIC DESIGNS INCORPORATED ", "1998"
manfid: 0x01f6, 0x0000
The card in Socket 1 is not recognized by the cardmgr because it has no
entry in /etc/pcmcia/config. It's a custom FLASH card that's Intel
compatible. Here's how to add it, using the info from the "cardctl ident"
command above:
1> Make a backup of the original /etc/pcmcia/config.
2> Edit /etc/pcmcia/config and add the following lines in the "Memory Cards"
section:
card "EDI Intel-Compatible 40MB Flash"
version "EDI7P040FLA60---15 "
bind "memory_cs"
Note that the string in the card line is an arbtrary title - it's what
will appear in the /var/run/stab file. The version line is the EXACT
string (note the space between the 5 and the ") in the first position
of the "product info:" output from the "cardctl ident" command. The
bind line associates a driver (we want the generic memory card driver)
with the card identified by the version line.
3> After saving the /etc/pcmcia/config file, restart the cardmgr so it
will re-read the config file:
killall -HUP cardmgr
4> Hopefully you heard a bunch of "happy" beeps....now you should be able
to access the card via /dev/mem0c0c per linux_cardread.html

NOTE 1: This method allows READ-ONLY access to the card.

NOTE 2: The above method will work in general for READ-ONLY access to any
PCMCIA card as a raw memory device. Many Intel FLASH cards are already included
in /etc/pcmcia/config, but the EDI Intel-compatible cards used in the LOGR53 and
VMCM2 are custom made, unique cards.