AT91RM9200 CF Ambicom WL1100C issue

Mathieu Deschamps mathieu.deschamps at com2gether.net
Tue Feb 7 04:36:36 EST 2006


Steven,

Just getting runtime trace I have never seen before, I want to point out the 
pcmcia_read_cis_mem funciton trace. But this lead to the same end.

F eb  6 18:30:43 zephyr-B kern.debug kernel: at91_cf: Going to set_drvdata !
Feb  6 18:30:43 zephyr-B kern.debug kernel: at91_cf: Probe starting
Feb  6 18:30:43 zephyr-B kern.debug kernel: at91_cf: Requesting IRQ
Feb  6 18:30:43 zephyr-B kern.debug kernel: at91_cf: Remapping : 
socket.io_offset with  50800000
Feb  6 18:30:43 zephyr-B kern.info kernel: at91_cf: irqs det #109, io #58
Feb  6 18:30:43 zephyr-B kern.debug kernel: at91_cf: Registering socket
Feb  6 18:30:43 zephyr-B kern.debug kernel: cs: : 
pcmcia_register_socket(0xbf028e34)
Feb  6 18:30:44 zephyr-B kern.debug kernel: at91_cf: Vcc 0, io_irq 0, flags 
0000 csc 0080
Feb  6 18:30:44 zephyr-B kern.debug kernel: cs: pcmcia_socket0: parse_events: 
events 00000080
Feb  6 18:30:44 zephyr-B kern.debug kernel: cs: pcmcia_socket0: insert
Feb  6 18:30:44 zephyr-B kern.debug kernel: cs: pcmcia_socket0: setup
Feb  6 18:30:44 zephyr-B kern.debug kernel: at91_cf: Vcc 33, io_irq 0, flags 
0000 csc 0080
Feb  6 18:30:44 zephyr-B kern.debug kernel: cs: pcmcia_socket0: reset
Feb  6 18:30:44 zephyr-B kern.debug kernel: at91_cf: Vcc 33, io_irq 0, flags 
0240 csc 0080
Feb  6 18:30:44 zephyr-B kern.debug kernel: at91_cf: Vcc 33, io_irq 0, flags 
0200 csc 0080
Feb  6 18:30:44 zephyr-B kern.debug kernel: cs: pcmcia_socket0: insert done
Feb  6 18:30:44 zephyr-B kern.debug kernel: cs: pcmcia_socket0: 
send_event(event 4, pri 0, callback 0x00000000)
Feb  6 18:30:45 zephyr-B kern.debug kernel: orinoco 0.15rc2 (David Gibson 
<hermes at gibson.dropbear.id.au>, Pavel Roskin <proski at gnu.org>, et al)
Feb  6 18:30:47 zephyr-B kern.debug kernel: cs: pcmcia_socket0: 
send_event(event 4, pri 0, callback 0xbf040c2c)
Feb  6 18:30:47 zephyr-B kern.debug kernel: cs: pcmcia_socket0: 
pcmcia_read_cis_mem(1, 0x0, 2)
Feb  6 18:30:47 zephyr-B kern.debug kernel: cs: pcmcia_socket0:   0xff 0xff 
0x02 0xc0 ...
Feb  6 18:30:47 zephyr-B kern.debug kernel: cs: pcmcia_socket0: 
pcmcia_read_cis_mem(0, 0x0, 5)
Feb  6 18:30:47 zephyr-B kern.debug kernel: cs: pcmcia_socket0:   0x52 0xbd 
0xff 0xff ...
Feb  6 18:30:47 zephyr-B kern.debug kernel: orinoco_cs 0.15rc2 (David Gibson 
<hermes at gibson.dropbear.id.au>, Pavel Roskin <proski at gnu.org>, et al)
Feb  6 18:30:48 zephyr-B kern.debug kernel: ds: ds_open(socket 0)
Feb  6 18:30:48 zephyr-B kern.info kernel: pcmcia: Detected deprecated PCMCIA 
ioctl usage.
Feb  6 18:30:48 zephyr-B kern.info kernel: pcmcia: This interface will soon be 
removed from the kernel; please expect breakage unless you upgrade to new 
tools.
Feb  6 18:30:48 zephyr-B kern.info kernel: pcmcia: see 
http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html for details.
Feb  6 18:30:48 zephyr-B kern.debug kernel: ds: ds_open(socket 1)
Feb  6 18:30:48 zephyr-B kern.debug kernel: ds: ds_open(socket 1)
Feb  6 18:30:48 zephyr-B kern.info cardmgr[1891]: watching 1 socket
Feb  6 18:30:48 zephyr-B kern.info cardmgr[1892]: starting, version is 3.2.7
Feb  6 18:30:48 zephyr-B kern.info cardmgr[1892]: initializing socket 0
Feb  6 18:30:48 zephyr-B kern.debug kernel: cs: pcmcia_socket0: 
pcmcia_read_cis_mem(0, 0x0, 5)
Feb  6 18:30:48 zephyr-B kern.debug kernel: cs: pcmcia_socket0:   0x52 0x3e 
0xff 0xff ...
Feb  6 18:30:48 zephyr-B kern.info cardmgr[1892]: socket 0: Anonymous Memory
Feb  6 18:30:48 zephyr-B kern.info cardmgr[1892]: executing: 'modprobe 
memory_cs'
Feb  6 18:30:48 zephyr-B kern.warn kernel: 2.6. kernels use pcmciamtd instead 
of memory_cs.c and do not require special
Feb  6 18:30:48 zephyr-B kern.warn kernel: MTD handling any more.
Feb  6 18:30:48 zephyr-B kern.info cardmgr[1892]: + FATAL: Module memory_cs 
not found.
Feb  6 18:30:48 zephyr-B kern.notice cardmgr[1892]: modprobe exited with 
status 1
Feb  6 18:30:48 zephyr-B kern.notice cardmgr[1892]: module 
/lib/modules/2.6.14/pcmcia/memory_cs.o not available
Feb  6 18:30:48 zephyr-B kern.err cardmgr[1892]: bind 'memory_cs' to socket 0 
failed: Invalid argument

-------------------------------
Subject: Re: AT91RM9200 CF Ambicom WL1100C issue
Date: Tuesday 07 February 2006 10:22
From: Mathieu Deschamps <mathieu.deschamps at com2gether.net>
To: Steven Scholz <steven.scholz at imc-berlin.de>
Cc: linux-pcmcia at lists.infradead.org

On Monday 06 February 2006 18:03, Steven Scholz wrote:
> Mathieu,
>
> > 	cardmgr[1866]: could not adjust resource: IO ports 0xc00-0xcff
> > 	cardmgr[1866]: could not adjust resource: IO ports 0xc00-0xcff
> > 	cardmgr[1866]: could not adjust resource: IO ports 0x100-0x4ff
> > 	cardmgr[1866]: could not adjust resource: memory 0x50800000-0x7fffffff
> > 	cardmgr[1866]: could not adjust resource: IO ports 0x1000-0x17ff
> > 	cardmgr[1866]: could not adjust resource: IO ports 0xa00-0xaff
>
> Delete or uncomment the appropriate lines in /etc/pcmcia/config.opts

ok

> > 	cardmgr[1866]: socket 0: Anonymous Memory
> > 	cardmgr[1866]: executing: 'modprobe memory_cs'
> >
> > Feb  6 16:23:49 zephyr-B kern.debug kernel: ds: invalid CIS or invalid
> > resources (#tuples=0,chains?=0)
>
> This is why your card is "recognised" as "Anonymous Memory"
>
> Could have several reasons. Board is not working (i.e. buffer drivers
> are closed). Wrong timing (too fast). IORDY is not connected to
> AT91RM9200 etc etc

What do you mean by buffer drivers are closed ? They are woken up
on chip selecting NCS4 and At91_cf_probe from at91_cf.c takes care of A25,
CF_CE1 and CF_CE2 as it seems.

On the timing front, I've tried with CORE_OPTS="setup_delay=10 vcc_settle=50
cis_speed=400", no relevant changes AFAICS.

Meanwhile I've ask for linux support @ ambicom they said they were not
supporting anymore, I guess I had to try it...

> Is any other CF card working on your AT91RM9200?

A Sandisk memory  SDCFB-64Mb I also have is unrecognized as well as an
"Anonymous Memory".


Any others thoughts ?
Thanks.

mathdesc.

> --
> Steven
>
> _______________________________________________
> Linux PCMCIA reimplementation list
> http://lists.infradead.org/mailman/listinfo/linux-pcmcia

-------------------------------------------------------




More information about the linux-pcmcia mailing list