All of lore.kernel.org
 help / color / mirror / Atom feed
* Compact flash on mpc8349eITX
@ 2008-08-01 15:58 Sparks, Sam
  2008-08-01 16:50 ` Anton Vorontsov
  2008-08-02 17:13 ` Arnd Bergmann
  0 siblings, 2 replies; 5+ messages in thread
From: Sparks, Sam @ 2008-08-01 15:58 UTC (permalink / raw)
  To: linuxppc-dev

I'm trying to get the compact flash up and running on an mpc8349eITX,
and am continually running into issues where the IRQ is not processed,
and the mmio commands are not getting response. At this point, I am
starting to suspect a HW issue, but I was hoping to verify that I am
using a known good kernel configuration.

Has anyone successfully communicated with a compact flash device in true
IDE mode on the MPC8349eITX? If so, do you happen to know the kernel
configuration and/or revision?

I appreciate any help, as I am really getting stuck here.
Regards,
Sam

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Compact flash on mpc8349eITX
  2008-08-01 15:58 Compact flash on mpc8349eITX Sparks, Sam
@ 2008-08-01 16:50 ` Anton Vorontsov
  2008-08-01 17:36   ` Sparks, Sam
  2008-08-02 17:13 ` Arnd Bergmann
  1 sibling, 1 reply; 5+ messages in thread
From: Anton Vorontsov @ 2008-08-01 16:50 UTC (permalink / raw)
  To: Sparks, Sam; +Cc: linuxppc-dev

On Fri, Aug 01, 2008 at 10:58:58AM -0500, Sparks, Sam wrote:
> I'm trying to get the compact flash up and running on an mpc8349eITX,
> and am continually running into issues where the IRQ is not processed,
> and the mmio commands are not getting response. At this point, I am
> starting to suspect a HW issue, but I was hoping to verify that I am
> using a known good kernel configuration.
> 
> Has anyone successfully communicated with a compact flash device in true
> IDE mode on the MPC8349eITX? If so, do you happen to know the kernel
> configuration and/or revision?

Works like a charm here. I use quite outdated u-boot though. Which one
you use? I could try it (if it is community u-boot).

As for the backtrace you posted recently, I remeber I've noticed the
similar issue long ago on some mITX board. I believe the board had
hw issues indeed (or CF card I tested with). The problem could be in
the IRQ line itself (for some reason it always low), or it could be
IDE cmd/data lines at fault, so that IDE can't receive status read
command and does not deassert the interrupt line... quite hard to
tell.

The logs below.

(Notice that u-boot says that UPMA is configured to work with CF IDE).

U-Boot 1.2.0-g5b1313fb (Jun  9 2007 - 17:29:42) MPC83XX

CPU:   e300c1, MPC8349E, Rev: 11 at 533.333 MHz, CSB:  266 MHz
Board: Freescale MPC8349E-mITX
UPMA:  Configured for compact flash
I2C:   ready
DRAM:
   DDR DIMM: data bus width is 64 bit without ECC
   DDRC ECC mode: OFF
   DDR RAM: 256 MB
FLASH: 16 MB
PCI:   Bus Dev VenId DevId Class Int
        00  10  1095  3114  0180  00
In:    serial
Out:   serial
Err:   serial
Board revision: 1.0 (PCF8475A)
Net:   TSEC0
IDE:   Bus 0: OK
  Device 0: Model: KINGSTON Firm: 20060713 Ser#: KINGSTON CF 00003E2C
            Type: Hard Disk
            Capacity: 495.1 MB = 0.4 GB (1014048 x 512)
MPC8349E-mITX> boot
[...]
Using MPC834x ITX machine description
Linux version 2.6.27-rc1-00006-g2799599 (cbou@polina) (gcc version 4.2.0)) #35 Fri Aug 1 20:32:51 MSD 2008
[...]
scsi0 : pata_platform
ata1: PATA max PIO6 mmio cmd 0xf0000000 ctl 0xf000020c irq 23
ata1.00: ATA-0: KINGSTON, 20060713, max MWDMA2
ata1.00: 1014048 sectors, multi 0: LBA
ata1.00: configured for PIO
ata1.00: configured for PIO
ata1: EH complete
scsi 0:0:0:0: Direct-Access     ATA      KINGSTON         2006 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 1014048 512-byte hardware sectors (519 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] 1014048 512-byte hardware sectors (519 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1
sd 0:0:0:0: [sda] Attached SCSI disk
sd 0:0:0:0: Attached scsi generic sg0 type 0
[...]
# dd if=/dev/sda of=/dev/null count=20000
20000+0 records in
20000+0 records out
10240000 bytes (10 MB) copied, 1.94026 seconds, 5.3 MB/s

-- 
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Compact flash on mpc8349eITX
  2008-08-01 16:50 ` Anton Vorontsov
@ 2008-08-01 17:36   ` Sparks, Sam
  2008-08-01 17:59     ` Anton Vorontsov
  0 siblings, 1 reply; 5+ messages in thread
From: Sparks, Sam @ 2008-08-01 17:36 UTC (permalink / raw)
  To: avorontsov; +Cc: linuxppc-dev

>From: Anton Vorontsov
>Sent: Friday, August 01, 2008 11:51 AM
>
>Works like a charm here. I use quite outdated u-boot though. Which one
>you use? I could try it (if it is community u-boot).

I'm using the head, which I grabbed last week: U-Boot
1.3.4-rc1-00012-g1953d12
TIA for checking your itx with this version.

>
>As for the backtrace you posted recently, I remeber I've noticed the
>similar issue long ago on some mITX board. I believe the board had
>hw issues indeed (or CF card I tested with). The problem could be in
>the IRQ line itself (for some reason it always low), or it could be
>IDE cmd/data lines at fault, so that IDE can't receive status read
>command and does not deassert the interrupt line... quite hard to
>tell.

Thanks for confirming.. I was losing my mind :-)
This looks like it is indeed a HW problem with the ITX. Are you aware of
any threads/documents describing the issue? We based our custom HW off
the ITX schematic with regards to the CF, and I hope we didn't copy over
_that_ problem :-/

Cheers,
Sam

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Compact flash on mpc8349eITX
  2008-08-01 17:36   ` Sparks, Sam
@ 2008-08-01 17:59     ` Anton Vorontsov
  0 siblings, 0 replies; 5+ messages in thread
From: Anton Vorontsov @ 2008-08-01 17:59 UTC (permalink / raw)
  To: Sparks, Sam; +Cc: linuxppc-dev

On Fri, Aug 01, 2008 at 12:36:39PM -0500, Sparks, Sam wrote:
> >From: Anton Vorontsov
> >Sent: Friday, August 01, 2008 11:51 AM
> >
> >Works like a charm here. I use quite outdated u-boot though. Which one
> >you use? I could try it (if it is community u-boot).
> 
> I'm using the head, which I grabbed last week: U-Boot
> 1.3.4-rc1-00012-g1953d12
> TIA for checking your itx with this version.

U-Boot 1.3.4-rc1-00012-g1953d12 (Aug  1 2008 - 21:45:42) MPC83XX

The CF still works.

> >As for the backtrace you posted recently, I remeber I've noticed the
> >similar issue long ago on some mITX board. I believe the board had
> >hw issues indeed (or CF card I tested with). The problem could be in
> >the IRQ line itself (for some reason it always low), or it could be
> >IDE cmd/data lines at fault, so that IDE can't receive status read
> >command and does not deassert the interrupt line... quite hard to
> >tell.
> 
> Thanks for confirming.. I was losing my mind :-)
> This looks like it is indeed a HW problem with the ITX. Are you aware of
> any threads/documents describing the issue? We based our custom HW off
> the ITX schematic with regards to the CF, and I hope we didn't copy over
> _that_ problem :-/

I don't think it was a hw design problem, more likely somebody
fried the CF slot on that board (either by hot-plugging the CF, or via
inserting CF 5V only flash.. either of this is forbidden for the
8349mITX boards).

-- 
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Compact flash on mpc8349eITX
  2008-08-01 15:58 Compact flash on mpc8349eITX Sparks, Sam
  2008-08-01 16:50 ` Anton Vorontsov
@ 2008-08-02 17:13 ` Arnd Bergmann
  1 sibling, 0 replies; 5+ messages in thread
From: Arnd Bergmann @ 2008-08-02 17:13 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Sparks, Sam

On Friday 01 August 2008, Sparks, Sam wrote:
> Has anyone successfully communicated with a compact flash device in true
> IDE mode on the MPC8349eITX? If so, do you happen to know the kernel
> configuration and/or revision?
> 

There are some CF cards and some IDE-CF adapters that are missing the lines
for DMA mode, even if the controller on the card supports DMA.
If a specific card doesn't work, try using a different one, or use PIO mode
only.

	Arnd <><

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-08-02 17:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-01 15:58 Compact flash on mpc8349eITX Sparks, Sam
2008-08-01 16:50 ` Anton Vorontsov
2008-08-01 17:36   ` Sparks, Sam
2008-08-01 17:59     ` Anton Vorontsov
2008-08-02 17:13 ` Arnd Bergmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.