PETEC 2MB SRAM

Pep Talens pep.talens at f1-connecting.com
Wed Nov 4 05:20:25 EST 2009


Hi,

this is my scenario:

Laptop: BenQ Joybook A33E
OS: OpenSuse 10.2
Kernel: 2.6.18.8-0.13-default
PCMCIA Card: PRETEC 2MB SRAM     
http://pan8.fotovista.com/dev/8/6/03573268/l_03573268.jpg
pcmcia-cs version: 3.2.8
Socket: yenta-socket
IRQ: 169

After reading the Howto, mini-howto and some other stuff I still trying to 
figure out how to mount it and write in. Sorry if redundant but I'm a little 
lost. I can provide the output of some commands:

Monk:/opt/pcmcia-cs-3.2.8/cardmgr # 
udevinfo -a -p  /sys/bus/pcmcia/devices/0.0

Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/pci0000:00/0000:00:1e.0/0000:01:02.0/0.0':
    KERNEL=="0.0"
    SUBSYSTEM=="pcmcia"
    DRIVER==""
    
ATTR{modalias}=="pcmcia:m0000c0000f00fn00pfn00paEBF91155pb805360CApc00000000pd00000000"
    ATTR{prod_id2}=="  2MB SRAM CARD"
    ATTR{prod_id1}=="PRETEC"
    ATTR{pm_state}=="on"
    ATTR{function}=="0x00"

  looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:01:02.0':
    KERNELS=="0000:01:02.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="yenta_cardbus"
    ATTRS{broken_parity_status}=="0"
    ATTRS{enable}=="1"
    ATTRS{modalias}=="pci:v0000104Cd00008031sv00001071sd00008048bc06sc07i00"
    ATTRS{local_cpus}=="ffffffff"
    ATTRS{irq}=="169"
    ATTRS{class}=="0x060700"
    ATTRS{subsystem_device}=="0x8048"
    ATTRS{subsystem_vendor}=="0x1071"
    ATTRS{device}=="0x8031"
    ATTRS{vendor}=="0x104c"

  looking at parent device '/devices/pci0000:00/0000:00:1e.0':
    KERNELS=="0000:00:1e.0"
    SUBSYSTEMS=="pci"
    DRIVERS==""
    ATTRS{broken_parity_status}=="0"
    ATTRS{enable}=="1"
    ATTRS{modalias}=="pci:v00008086d00002448sv00000000sd00000000bc06sc04i01"
    ATTRS{local_cpus}=="ffffffff"
    ATTRS{irq}=="0"
    ATTRS{class}=="0x060401"
    ATTRS{subsystem_device}=="0x0000"
    ATTRS{subsystem_vendor}=="0x0000"
    ATTRS{device}=="0x2448"
    ATTRS{vendor}=="0x8086"

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""

Monk:/opt/pcmcia-cs-3.2.8/cardmgr # cat /proc/interrupts
           CPU0
  0:    3803200    IO-APIC-edge  timer
  1:         44    IO-APIC-edge  i8042
  8:          2    IO-APIC-edge  rtc
  9:      22488   IO-APIC-level  acpi
 12:       1044    IO-APIC-edge  i8042
 14:     559838    IO-APIC-edge  libata
 15:     168263    IO-APIC-edge  libata
169:          6   IO-APIC-level  yenta
177:          3   IO-APIC-level  uhci_hcd:usb2, ohci1394
193:     149076   IO-APIC-level  uhci_hcd:usb1, ehci_hcd:usb4
201:          0   IO-APIC-level  uhci_hcd:usb3
209:        865   IO-APIC-level  HDA Intel
217:    3688954   IO-APIC-level  eth0
NMI:          0
LOC:    3820527
ERR:          0
MIS:          0

Monk:/proc/bus/pccard # cardctl config
Socket 0:
  Vcc 5.0V  Vpp1 5.0V  Vpp2 5.0V

Monk:/proc/bus/pccard # cardctl ident
Socket 0:
  product info: "PRETEC", "  2MB SRAM CARD", "", ""

But I guess that this card is not supported in /etc/pcmcia/config. More over, 
I can see this in /var/log/messages:

Oct 29 09:11:47 Monk cardmgr[5688]: could not adjust resource: IO ports 
0x100-0x3af: Function not implemented
Oct 29 09:11:47 Monk cardmgr[5688]: could not adjust resource: IO ports 
0x3e0-0x4ff: Function not implemented
Oct 29 09:11:47 Monk cardmgr[5688]: could not adjust resource: IO ports 
0x820-0x8ff: Function not implemented
Oct 29 09:11:47 Monk cardmgr[5688]: could not adjust resource: IO ports 
0xc00-0xcf7: Function not implemented
Oct 29 09:11:47 Monk cardmgr[5688]: could not adjust resource: memory 
0xc0000-0xfffff: Function not implemented
Oct 29 09:11:47 Monk cardmgr[5688]: could not adjust resource: memory 
0xa0000000-0xa0ffffff: Function not implemented
Oct 29 09:11:47 Monk cardmgr[5688]: could not adjust resource: memory 
0x60000000-0x60ffffff: Function not implemented
Oct 29 09:11:47 Monk cardmgr[5688]: could not adjust resource: IO ports 
0xa00-0xaff: Function not implemented
Oct 29 09:11:47 Monk cardmgr[5689]: unsupported card in socket 0
Oct 29 09:11:47 Monk cardmgr[5689]:   product info: "PRETEC", "  2MB SRAM 
CARD", "", ""

After see this, as you will guess, my config.opts is:

include port 0x100-0x3af
include port 0x3e0-0x4ff
include port 0x820-0x8ff
include port 0xc00-0xcf7

include memory 0xc0000-0xfffff
include memory 0xa0000000-0xa0ffffff
include memory 0x60000000-0x60ffffff


Now I'm trying to migrate from cardmgr to pcmciautils but I don't know if 
after migration I'll be able to make this card writable. Am I in the right 
way? Could someone guide me?

Thank you very much

-- 
Pep Talens

Wincor-Nixdorf
46022 Valencia (Spain)
Tel. +34 902 15 38 27 Ext. 117
pep.talens at f1-connecting.com



More information about the linux-mtd mailing list