Use this page to discuss issues with simple memory cards, such as SRAM or Intel linear flash. 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 SmartMedia flash memory as ide device?

Date: 1999, Nov 04
From: Richard K. Belew rik

i'm trying to read (Fujifilm DX-10) digital camera images
from its SmartMedia card, via a PCMCIA adapter from Viking.
cardmgr recognizes seems to recognize the insertion
and think it's an ide device.   

# cardctl config

Socket 1:
  Vcc = 5.0, Vpp1 = 0.0, Vpp2 = 0.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: 0x0140 to 0x014f, auto sized

# cardctl ident

Socket 1:
  product info: "       ", "    ", "0.0"
  manfid: 0x0000, 0x0000
  function: 4 (fixed disk)


From /var/log/messages:

Nov  3 14:47:30 host cardmgr[319]: executing: './ide start hde'
Nov  3 14:47:30 host cardmgr[319]: + ./ide: /sbin/ide_info: No such file or directory

i don't know what the missing ide_info means?

/var/run/stab shows:

Socket 1: ATA/IDE Fixed Disk
1	ide	ide_cs	0	hde	33	0

i've looked thru the PCMCIA cardmgr HOWTO 
but i don't seem to be able to do the right
combination of ftl_format and/or mount filesystem
specs.   should i be treating it like an ide disk
or flash memory?

as a workaround, i've tried using my Win95 partition
to copy the files off the card onto the harddisk (that works), 
then mounted that partition under linux.
but while i can see the full 300k .jpg files (which are actually
exif format!), when i try to copy them or open them
them, the files get truncated to only the first 58 bytes?!
is there some EOF mark that stops the linux read, or...?

anybody else tried to make this work?

-- 
Richard K. Belew                   rik@cs.ucsd.edu
                       http://www.cs.ucsd.edu/~rik

Computer Science & Engr. Dept.      858 / 534-2601
Univ. California -- San Diego       858 / 532-0702 (msgs)
9500 Gilman Dr. (0114)              858 / 534-7029 (fax)

None Yes, SmartMedia cards are IDE devices

Re: Question SmartMedia flash memory as ide device? (Richard K. Belew)
Date: 1999, Nov 04
From: David Hinds <dhinds@pcmcia.sourceforge.org>

On Wed, Nov 03, 1999 at 04:26:40PM -0800, Richard K. Belew wrote:
> 
> i'm trying to read (Fujifilm DX-10) digital camera images
> from its SmartMedia card, via a PCMCIA adapter from Viking.
> cardmgr recognizes seems to recognize the insertion
> and think it's an ide device.   

That's because SmartMedia cards are IDE devices.  I'll clarify this in
the HOWTO.

> i don't know what the missing ide_info means?

Don't worry about it.  You should just be able to mount /dev/hde, with
a command like:

    mount -t msdos /dev/hde /mnt

As for why you have trouble copying the files to your hard disk even
under Windows, I'm afraid I don't have any good ideas about that.
There is no such thing as an end-of-file mark in a Linux file, as far
as I know.  It isn't really a Linux PCMCIA issue.

-- Dave

Question Memory Suggestions ?

Date: 2000, Feb 15
From: Tobias Zügel Neodym

I have a rather old IBM Thinkpad 755CX Notebook which is equiped with only 16 MB. I'd like to add more memory to it, but the IBM chipcard is too expensive. I was wondering, if it is possible to use a "Flash-Memory-Card with ATA" (e.g. from Kingston Memory) as a linux swap partition. Is this possible and would that be wise ?

None Probably not a good idea

Re: Question Memory Suggestions ? (Tobias Zügel)
Date: 2000, Feb 15
From: David Hinds <dhinds@pcmcia.sourceforge.org>

PCMCIA bus speeds are typically only 1-2 MB/sec at best, so an ATA
flash card is likely to be slower than your existing hard drive.

-- Dave

Question Any other memory opportunities ?

Re: None Probably not a good idea (David Hinds)
Date: 2000, Feb 15
From: Tobias Zügel Neodym

What other opportunites do I have to improve the memory situation on my notebook ? I do not want to buy this very expensive IBM expansion card ...

Greetings

Toby

None Maybe just shop around?

Re: Question Any other memory opportunities ? (Tobias Zügel)
Date: 2000, Feb 15
From: David Hinds <dhinds@pcmcia.sourceforge.org>

I just tried a search at a U.S. mail order company (www.cdw.com) and
see a 32MB module for the Thinkpad 755CX for $157, or 16MB for $79.

-- Dave

Sad sram is only set up correctly when inserted after network

Date: 2000, Mar 03
From: Lorenz Hahn dantuine

Hi,

The Problem:

I want to use a 2MB sram card with a file system on it. When this card is the only card in the laptop it seems to be detected but not configured, means I can't mount the file system.

When the sram card is inserted together with a network adapter and the system is started up afterwards both cards are recognized as sram cards and none is working.

When the network card is inserted first, regardless if it's been done before or after power on and the sram card after the initialization of the network card, both cards are recognized ok and working. Means I can surf the web and the mounted file system.

Questions:

Did I've missed something?

Is there a way to give cardmgr a hint which hardware is actually inserted in the slots?

If it's a problem with a missing config header in the card, which sram card has such a header and is known to run without problems?

I hope the appended details help you to give me a hint how to fix my problem. I need to access the sram card without utilizing a network card.

Thanx in advance, Lorenz.

Log Details:

Note: the host name is chosen through the slot where the network card is inserted. So I've got two different host names.

/var/log/messages, working scenario:
====================================
	Mar  3 18:49:10 lha-test2 kernel: Linux PCMCIA Card Services 3.1.11
	Mar  3 18:49:10 lha-test2 kernel:   kernel build: 2.2.14 #6 Fri Feb 25 19:07:43 CET 2000
	Mar  3 18:49:10 lha-test2 kernel:   options:  [pci] [cardbus] [apm]
	Mar  3 18:49:10 lha-test2 kernel: PCI routing table version 1.0 at 0xfdf90
	Mar  3 18:49:10 lha-test2 kernel: Intel PCIC probe:
	Mar  3 18:49:10 lha-test2 kernel:   TI 1131 PCI-to-CardBus at slot 00:0a, mem 0x68000000
	Mar  3 18:49:10 lha-test2 kernel:     host opts [0]: [ring] [clkrun irq 12] [pci + serial irq] [no pci irq] [lat 168/176] [bus 32/34]
	Mar  3 18:49:10 lha-test2 kernel:     host opts [1]: [ring] [clkrun irq 12] [pci + serial irq] [no pci irq] [lat 168/176] [bus 35/37]
	Mar  3 18:49:10 lha-test2 kernel:     ISA irqs (scanned) = 3,4,7,10,11,15 status change on irq 15
	Mar  3 18:49:10 lha-test2 kernel: cs: IO port probe 0x1000-0x17ff: clean.
	Mar  3 18:49:10 lha-test2 kernel: cs: IO port probe 0x0100-0x04ff: excluding 0x200-0x207 0x220-0x22f 0x330-0x337 0x378-0x37f 0x388-0x38f 0x398-0x39f 0x4d0-0x4d7
	Mar  3 18:49:10 lha-test2 kernel: cs: IO port probe 0x0a00-0x0aff: clean.
	Mar  3 18:49:10 lha-test2 kernel: cs: memory probe 0xa0000000-0xa0ffffff: clean.
	Mar  3 18:49:10 lha-test2 kernel: eth0: NE2000 Compatible: io 0x300, irq 3, hw_addr 00:80:C8:8F:13:1F
	Mar  3 18:56:36 lha-test2 cardmgr[80]: initializing socket 0
	Mar  3 18:56:36 lha-test2 cardmgr[80]: socket 0: Anonymous Memory
	Mar  3 18:56:36 lha-test2 cardmgr[80]: executing: 'insmod /lib/modules/2.2.14/pcmcia/memory_cs.o'
	Mar  3 18:56:36 lha-test2 kernel: memory_cs: mem0: anonymous: 2 mb
	Mar  3 18:56:36 lha-test2 cardmgr[80]: executing: './memory start mem0'
	Mar  3 18:56:36 lha-test2 cardmgr[80]: + /dev/mem0c0b on /mem type vfat (rw)

/var/log/messages, only sram inserted:
======================================
	Mar  3 18:21:32 eagle kernel: Linux PCMCIA Card Services 3.1.11
	Mar  3 18:21:32 eagle kernel:   kernel build: 2.2.14 #6 Fri Feb 25 19:07:43 CET 2000
	Mar  3 18:21:32 eagle kernel:   options:  [pci] [cardbus] [apm]
	Mar  3 18:21:32 eagle kernel: PCI routing table version 1.0 at 0xfdf90
	Mar  3 18:21:32 eagle kernel: Intel PCIC probe:
	Mar  3 18:21:32 eagle kernel:   TI 1131 PCI-to-CardBus at slot 00:0a, mem 0x68000000
	Mar  3 18:21:32 eagle kernel:     host opts [0]: [ring] [clkrun irq 12] [pci + serial irq] [no pci irq] [lat 168/176] [bus 32/34]
	Mar  3 18:21:32 eagle kernel:     host opts [1]: [ring] [clkrun irq 12] [pci + serial irq] [no pci irq] [lat 168/176] [bus 35/37]
	Mar  3 18:21:32 eagle kernel:     ISA irqs (scanned) = 3,4,7,10,11,15 status change on irq 15
	Mar  3 18:21:32 eagle kernel: cs: IO port probe 0x1000-0x17ff: clean.
	Mar  3 18:21:32 eagle kernel: cs: IO port probe 0x0100-0x04ff: excluding 0x200-0x207 0x220-0x22f 0x330-0x337 0x378-0x37f 0x388-0x38f 0x398-0x39f 0x4d0-0x4d7
	Mar  3 18:21:32 eagle kernel: cs: IO port probe 0x0a00-0x0aff: clean.
	Mar  3 18:21:32 eagle kernel: cs: memory probe 0xa0000000-0xa0ffffff: excluding 0xa0000000-0xa0ffffff
	Mar  3 18:21:32 eagle kernel: cs: memory probe 0x60000000-0x60ffffff: excluding 0x60000000-0x60ffffff
	Mar  3 18:21:32 eagle kernel: cs: warning: no high memory space available!
	Mar  3 18:21:32 eagle kernel: cs: memory probe 0x0d0000-0x0dffff: excluding 0xd0000-0xdffff
	Mar  3 18:21:32 eagle kernel: cs: memory probe 0x0c0000-0x0cffff: excluding 0xc0000-0xcffff
	Mar  3 18:21:32 eagle kernel: memory_cs: mem0: anonymous: unknown size
	Mar  3 18:21:32 eagle kernel: [MS-DOS FS Rel. 12,FAT 0,check=n,conv=b,uid=0,gid=0,umask=022,bmap]
	Mar  3 18:21:32 eagle kernel: [me=0x8a,cs=0,#f=102,fs=0,fl=0,ds=0,de=51215,data=0,se=60880,ts=-1083833168,ls=0,rc=0,fc=4294967295]
	Mar  3 18:21:32 eagle kernel: Transaction block size = 512
	Mar  3 18:21:32 eagle kernel: VFS: Can't find a valid MSDOS filesystem on dev fd:00.

Hardware details:

laptop: 233MHz Pentium II, brand: Medion, bought by "Aldi"

network card: DE-660, brand: D-Link

sram card: melcard 2MB, brand: Mitsubishi, (MF32M1-LCDAT01)

Software details:

uname -a: 
  Linux lha-test2 2.2.14 #6 Fri Feb 25 19:07:43 CET 2000 i686 unknown

cardmgr -V:
  cardmgr version 3.1.11

lsmod, working scenario:

 Module                  Size  Used by
 memory_cs               9132   1 
 pcnet_cs                8928   1
 8390                    6420   0  [pcnet_cs]
 ds                      6920   2  [memory_cs pcnet_cs]
 i82365                 22672   2
 pcmcia_core            46784   0  [memory_cs pcnet_cs ds i82365]
 serial                 19860   0  (autoclean)
 nls_iso8859-1           2236   2  (autoclean)

lsmod, broken scenario:

 Module                  Size  Used by
 memory_cs               9132   0 
 ds                      6920   2  [memory_cs]
 i82365                 22672   2
 pcmcia_core            46784   0  [memory_cs ds i82365]
 serial                 19860   0  (autoclean)
 nls_iso8859-1           2236   1  (autoclean)

None There's a workaround

Re: Sad sram is only set up correctly when inserted after network (Lorenz Hahn)
Date: 2000, Mar 03
From: David Hinds <dhinds@pcmcia.sourceforge.org>

The PCMCIA subsystem has trouble automatically determining what memory
resources to use, if the first inserted card is a simple memory card.

To work around the problem, add to /etc/sysconfig/pcmcia:

    CORE_OPTS="probe_mem=0"

and maybe edit /etc/pcmcia/config.opts to only include memory ranges
that you know are ok.  To determine this, you can boot with the
network card, and check the system log for the memory probe results.

-- Dave

Ok Thanx, we're up and running...

Re: None There's a workaround (David Hinds)
Date: 2000, Mar 07
From: Lorenz Hahn dantuine

Just to give you the positive feedback. I've applied the suggested workaround. Not everything is tested yet, but it looks very good. The filesystem sitting on the sram card is mounted.

Thank you,

Lorenz.

Question Raw-Writing to linear Flash cards does not work at all

Date: 2000, Apr 19
From: Johannes Reisinger jreising

I tried to write to linear FLASH cards by simply doing
'cat somefile >/dev/mem0c0c' resp. 
'cat somefile >/dev/mem0c0b'. This does not work at all
for several types of flash-cards I tested.

Technical data:
Debian 2.1 on Toshiba Libretto 100
Kernel 2.2.13
PCMCIA modules 3.1.13 (also tested with 3.1.2)
Flash cards: e.g. KingMax 4MB (PPS-004MSR) with Iflash2+
Sorry, no logging output. It failes silently.

Can anyone tell me whether I do something substantially
wrong or is this a driver bug?

None There does seem to be a problem with iflash2+_mtd

Re: Question Raw-Writing to linear Flash cards does not work at all (Johannes Reisinger)
Date: 2000, Apr 19
From: David Hinds <dhinds@pcmcia.sourceforge.org>

I think there is a problem in the iflash2+_mtd driver that only shows
up when doing direct writes (i.e., not FTL stuff).  I'll see if I can
track it down, but in the meantime, try using the iflash2_mtd driver
instead (edit /etc/pcmcia/config for this).

However... you say it fails silently?  When I have a problem, I get an
"Input/Output error", and numerous system log messages.  You should be
using /dev/mem0c0c, and I'd recommend using "dd", not "cat".  The
block size is also important.  If you write a multiple of the erase
block size (128K), then the driver will automatically erase before
writing.  Otherwise, it writes without erasing first, which may be
unlikely to work, depending on what you're doing.

-- Dave

Sad Cisco intel series 2+ card not recognized

Date: 2000, May 05
From: Dennis Gerasimov denger

Folks,

I happen to have cisco flash intel series 2+ card which reads iMC016FLSP-15/25-s It is a 5v card.

I have installed pcmcia-cs-3.1.14.

The card is recognized as "Anonymous Memory", cardctl ident returns "no product info available", and cardctl status returns "3.3V 16-bit PC Card" which is wrong - it should be 5v.

Basically the card is not recognized correctly.

syslog have very little in it:

May  5 11:21:03 krypton cardmgr[980]: initializing socket 1
May  5 11:21:03 krypton cardmgr[980]: socket 1: Anonymous Memory
May  5 11:21:03 krypton cardmgr[980]: executing: 'insmod /lib/modules/2.2.6/pcmcia/memory_cs.o'
May  5 11:21:04 krypton kernel: memory_cs: mem0: anonymous: unknown size 
May  5 11:21:04 krypton cardmgr[980]: executing: './memory start mem0'

Any idea how do I approach this beast to make it work?

Question Howto mount a simple memory card ( NOT flash )

Date: 2000, Jun 12
From: Francisco Escarpa PacoEscarpa

Hello:

This is probably an stupid question, but ...

I'm trying to access to a 512 Kb memory card from an Leica surveying instrument ( TC1100, an advanced total station ).

When inserting the card, heard two beeps ( frist low tone, second high tone ), and cardinfo reports an anonymous memory card. In /dev/ I can find the ./mem0b0b, mem0c0c and rest of previsible devices, but when I try to mount "mount -t msdos /dev/mem0b0b /mnt/Leica , I got a invalid filesystem error. ( Of course, I supose that the card has such a valid filesystem ).

żmaybe I should open the card as a ramdisk or so ?

Thanks in advance,

Francisco Escarpa.

None Maybe this isn't a DOS filesystem??

Re: Question Howto mount a simple memory card ( NOT flash ) (Francisco Escarpa)
Date: 2000, Jun 12
From: David Hinds <dhinds@pcmcia.sourceforge.org>

Your mount command looks ok to me.

You're just taking it on faith that the card has an MSDOS filesystem?

-- Dave

None Re: Maybe this isn't a DOS filesystem??

Re: None Maybe this isn't a DOS filesystem?? (David Hinds)
Date: 2000, Jun 13
From: Francisco Escarpa PacoEscarpa

On Mon, 12 Jun 2000, David Hinds wrote:

> Your mount command looks ok to me.
>=20
> You're just taking it on faith that the card has an MSDOS filesystem?
>=20
> -- Dave

Thank you for the answer.

Maybe; the information is stored in files in DOS style; in Leica's
application, the card appears as a new system drive. Nobody in
Leica knows what a "filesystem" is :-(. They said that "you can read
it in Windows". ( Of course, They think that "advanced programming"=20
and "Visual Basic" are sinonimous :-).

Thank you again, and best,

Paco.

--------------------------------------
Francisco Jos=E9 Escarpa S=E1nchez-Garnica
--------------------------------------
 C/ Andr=E9s Mellado, 17 : 28015 MADRID
     Tel.: 915439648 / 616424289
--------------------------------------
PCMCIA Memory Device Issues


Add Message to: "PCMCIA Memory Device Issues"

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