Re: Smart, Inc. 4mb flash card . have to manually insmod memory_cs .

From: Mr. James W. Laferriere (babydr@baby-dragons.com)
Date: Sat Apr 15 2000 - 00:56:41 EST


        Hello Mike , the info you requested is just below .
              Dave , the info you requested is after the tag
              "On Fri, 14 Apr 2000, David Hinds wrote:" below .

On Fri, 14 Apr 2000, Michael H. Warfield wrote:
> On Thu, Apr 13, 2000 at 09:52:43PM -0700, Mr. James W. Laferriere wrote:
> > Hello All, Been very unsuccessful in trying to read the above
> > card using the pcmcia-tools . I have a laptop (of course) .
> Please don't make cross references to the subject from the
> body. There is no "the above card" in the body of your message. I
> also couldn't find anywhere where you mentioned the EXACT make and
> model of your card. You listed all sorts of information about your
> software but didn't tell us what the card really was.

        Sorry ... , It is the exact items right off of the face of the
        card . Maybe this is a MDL# ? , SM9FAS2043IP280 .
        On the back is a Cisco sticky label , which at the moment I am
        not the least bit interested in removing . maybe in a week or
        two when I can afford a larger replacement .

> > system info : IBM ThinkPad 385ed 80MBmemory . Latest bios ...
> > When I boot up the tools won't install memory_cs for the above
> > card . But If I manually do an 'insmod memory_cs' & then
> > re-insert the card , then the /dev/mem0* entries appear .
> > This is only -after- I reinsert the card , so the driver does
> > know that this is a memory card .
> I wouldn't bet on that last comment. No way no how.
        Ain't betting either. ;-)

> My questions...
> When you call this a "Smart, Inc. 4mb flash card", is this, per
> chance a 4MB SmartMedia card made by Smart Inc or a Compact Flash Card
> made by Smart Inc, or (I think they make this too) a Memory Stick
> Flash card by Smart Inc?
        None of the above . And I missed one word that should have been
        inserted in the 'quoted' item . "fast" as in:
        "4mb fast flash card" then the string of chars per my entry above .
        then the word "smart" highly bolded well below on the card .

> Based on it's size (4 Meg is really small for
> CF) I would take a wild guess that it's a 4 MB SmartMedia card. In
> any case, my comments will be appropriate for either Smart Media, CF,
> or Memory Stick. If you DON'T have one of those, all bets are off.
        I definately is NOT reported as an ide device .

> These cards and their PCMCIA adapters do not show up as memory
> cards to the PC. They show up as little removable ATA IDE hard drives.
> If you inserted the card and heard a double beep, the PC recognized the
> card and loaded the driver for it. It will NOT be a memory driver,
> however. You will probably find the card available as /dev/hdc or
> /dev/hde (depending on if you have one or two internal IDE controllers).
> If it's a standard flash card like SmartMedia, it will be partitioned
> like a little hard drive with a FAT partition on partition 1. It will be
> formated with an MS-DOS FAT filesystem. I typically just mount the card
> as type VFAT like this:
> mount -t vfat /dev/hdc1 /mnt/tmp
> (Make sure you have VFAT compiled in your kernel. - Use -t msdos
> if you don't.)
> You should be able to read and write the card, just like any other
> MS-DOS file system now. A "df" will show you have a 4 Meg file system
> mounted.
        Thank you for the info , but the above does not happen on this
        beast .

> WARNING! Be sure you unmount the file system before you remove
> the card (there is no "door lock" on these things) or you may corrupt the
> file system!
        Will definately remember this warning . Tnx.

> I have both SmartMedia cards and Compact Flash cards along with
> the PCMCIA adapters for both. They both work identically in this regard.
> I don't have any Memory Stick cards or adapters but I do believe that are
> the same sort of critter as well. The all work like a charm right out of
> the box with no magic needed for PCMCIA or anything.
> [...]
> Mike

On Fri, 14 Apr 2000, David Hinds wrote:
> I would have to see the system log messages from the PCMCIA drivers.
> As someone else said, if this is a Smartmedia or CompactFlash card, it
> uses the ide_cs driver, and is NOT a simple memory card that uses
> memory_cs.
        OK, here is what I've been doing & this time after a clean startup
        into multiuser mode I get the below output from the drivers .
        Had to capture the below from the console screen as not all of
        the info shows up in dmesg .

Starting PCMCIA services: modulesLinux PCMCIA Card Services 3.1.14
  kernel build: 2.2.13 #127 Thu Oct 21 13:13:20 CDT 1999
  options: [pci] [cardbus]
Intel PCIC probe:
  Cirrus PD6729 rev 00 PCI-to-PCMCIA at slot 00:13, port 0x3e0
    host opts [0]: [ring] [1/6/16] [1/20/16]
    host opts [1]: [ring] [1/6/16] [1/20/16]
    ISA irqs (default) = 3,4,5,7,9,10,12 polling interval = 1000 ms
 cardmgr.
cardmgr[61]: starting, version is 3.1.14
INIT: Entering runlevel: 3
cardmgr[61]: watching 2 sockets
cs: IO port probe 0x1000-0x17ff: excluding 0x15e8-0x15ef
cs: IO port probe 0x0100-0x04ff: excluding 0x220-0x22f 0x388-0x38f 0x4d0-0x4d7
cs: IO port probe 0x0a00-0x0aff: clean.
Going multiuser...
cardmgr[61]: initializing socket 0
cs: memory probe 0x0d0000-0x0dffff: clean.
cardmgr[61]: unsupported card in socket 0
cardmgr[61]: product info: "SMART Modular Technologies", " 4MB FLASH Card "
cardmgr[61]: initializing socket 1
cardmgr[61]: socket 1: Linksys EtherFast 10/100 Fast Ethernet
cardmgr[61]: executing: 'insmod /lib/modules/2.2.13/net/8390.o'
cardmgr[61]: executing: 'insmod /lib/modules/2.2.13/pcmcia/pcnet_cs.o'
eth0: NE2000 Compatible: io 0x300, irq 9, hw_addr 00:E0:98:00:F7:92
cardmgr[61]: executing: './network start eth0'
Configuring eth0 as 192.220.154.95...
SIOCADDRT: Network is unreachable
Activating IPv4 packet forwarding...
Starting daemons: syslogd klogd inetd sshd
Running gpm...

        The next step that I've been doing ... this time a clean startup
        into single user mode . rc.pcmcia goes all the way thru , but
        then shuts down ( an odd one to me ) . Then if I start the pcmcia
        facility sometimes I'll get the below . But if I extract the
        flash card & reinstall it , I always get these lines onto the
        console . But the memory device doesn't appear to be usable .

(none):~# /etc/rc.d/rc.pcmcia start
(none):~# cardmgr[164]: starting, version is 3.1.14
cardmgr[164]: watching 2 sockets
cs: IO port probe 0x1000-0x17ff: excluding 0x15e8-0x15ef
cs: IO port probe 0x0100-0x04ff: excluding 0x220-0x22f 0x388-0x38f
0x4d0-0x4d7
cs: IO port probe 0x0a00-0x0aff: clean.
cardmgr[164]: initializing socket 0
cardmgr[164]: socket 0: Anonymous Memory
cardmgr[164]: executing: 'insmod /lib/modules/2.2.13/pcmcia/memory_cs.o'
memory_cs: mem0: anonymous: unknown size
cardmgr[164]: executing: './memory start mem0'
cardmgr[164]: initializing socket 1
cardmgr[164]: socket 1: Linksys EtherFast 10/100 Fast Ethernet
cardmgr[164]: executing: 'insmod /lib/modules/2.2.13/net/8390.o'
cardmgr[164]: executing: 'insmod /lib/modules/2.2.13/pcmcia/pcnet_cs.o'
eth0: NE2000 Compatible: io 0x300, irq 9, hw_addr 00:E0:98:00:F7:92
cardmgr[164]: executing: './network start eth0'
eth0: found link beat

                Hope this is better than my last try . JimL
       +----------------------------------------------------------------+
       | James W. Laferriere | System Techniques | Give me VMS |
       | Network Engineer | 25416 22nd So | Give me Linux |
       | babydr@baby-dragons.com | DesMoines WA 98198 | only on AXP |
       +----------------------------------------------------------------+

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:26 EST