MPC5200 - problem with CF card

Jón Benediktsson jonb at marel.is
Thu Jan 6 22:37:36 EST 2005


Eugene Surovegin <ebs at ebshome.net> wrote on 05.01.2005 17:56:46:

> On Wed, Jan 05, 2005 at 02:49:42PM +0000, J?n Benediktsson wrote:
> > > I am working with a custom MPC5200 board which uses the built-in 
> > > ATA/IDE controller for a compact flash card. 
> > > The Linux kernel is Denx linux_2_4_devel. 
> 
> [snip]
> 
> > > mpc5xxx_ide: Setting up IDE interface ide0... 
> > > Probing IDE interface ide0... 
> > > hda: SanDisk SDCFBI-1024, ATA DISK drive 
> > > hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x7f) 
> > > ide0: unexpected interrupt, status=0x00, count=1 
> 
> I had similar problem with some CF cards (while other like in your 
> case worked fine).
> 
> Try disabling probing of the slave ide0 interface (hdb). I'm not 
> familiar with MPC5xxx, but most likely you can modify mpc5xxx_ide or 
> whatever code sets up access to your CF card.
> 
> Find where an instance of ide_hwif_t is initialized for ide0 and add 
> something like:
> 
>    /* Don't probe second drive */
>         hwif->drives[1].noprobe = 1;
> 

Thank you.  It was indeed the probing for the second drive that was 
causing the problem.
Adding hdb=noprobe to the kernel command line (bootargs) fixes the problem 
without kernel modifications.

Thanks again,
Jon




More information about the Linuxppc-embedded mailing list