PXA2xx pcmcia to compact flash on 2.6.13

Russell King rmk+pcmcia at arm.linux.org.uk
Sat Dec 17 03:38:33 EST 2005


On Fri, Dec 16, 2005 at 07:43:54PM -0800, John Heil wrote:
> On Fri, 16 Dec 2005, Russell King wrote:
> > On Fri, Dec 16, 2005 at 05:25:08AM -0800, John Heil wrote:
> > > The Compact Flash was not detected. It just sat there.
> >
> > What does "it just sat there" mean - the kernel got to the end of the
> > boot and paniced because it had no root device because it hadn't
> > detected the card?  It stopped at some point half way through the boot?
> >
> > PCMCIA operates asynchronously to the rest of the system, so it's
> > possible in the first case that it's just an initialisation ordering
> > problem.
> 
> 'just sat there' means linux had a functional command prompt etc, and  the
> only issue was the inability to access/see the compact flash.

What does cardctl status say?  If you don't have that, what about
the contents of /sys/class/pcmcia_socket/pcmcia_socket*/status and
related files?

> ...Today's update... pcmcia now works fine and IDE needs debugging...
> 
> I scoped the board and the pcmcia slot it w a logic analyzer I founnd an
> inverted direction signal controlling 2 data bus buffers...
> a fix to the VHDL solved all the get_x_tuple problems.
> Now I'm debugging the IDE probe code... msleep's being issued while
> in_atomic()  cool huh :)

Not cool if you're calling bind_request from the wrong context.
Like I say, you'll be better off using stuff how it is meant to
be used rather than hacking it around and hoping it'll do what
you want it to.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core



More information about the linux-pcmcia mailing list