Thread (4 messages) flat view 4 messages, 2 authors, 2005-01-06

Re: MPC5200 - problem with CF card

From: Jón Benediktsson <hidden>
Date: 2005-01-06 11:37:55

Eugene Surovegin [off-list ref] wrote on 05.01.2005 17:56:46:
On Wed, Jan 05, 2005 at 02:49:42PM +0000, J?n Benediktsson wrote:
quoted
quoted
I am working with a custom MPC5200 board which uses the built-in=20
ATA/IDE controller for a compact flash card.=20
The Linux kernel is Denx linux=5F2=5F4=5Fdevel.=20
=20
[snip]
=20
quoted
quoted
mpc5xxx=5Fide: Setting up IDE interface ide0...=20
Probing IDE interface ide0...=20
hda: SanDisk SDCFBI-1024, ATA DISK drive=20
hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x7f)=20
ide0: unexpected interrupt, status=3D0x00, count=3D1=20
=20
I had similar problem with some CF cards (while other like in your=20
case worked fine).
=20
Try disabling probing of the slave ide0 interface (hdb). I'm not=20
familiar with MPC5xxx, but most likely you can modify mpc5xxx=5Fide or=20
whatever code sets up access to your CF card.
=20
Find where an instance of ide=5Fhwif=5Ft is initialized for ide0 and add =
something like:
=20
   /* Don't probe second drive */
        hwif->drives[1].noprobe =3D 1;
=20
Thank you.  It was indeed the probing for the second drive that was=20
causing the problem.
Adding hdb=3Dnoprobe to the kernel command line (bootargs) fixes the proble=
m=20
without kernel modifications.

Thanks again,
Jon
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help