linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Steven A. Falco" <sfalco@harris.com>
To: Lixin Yao <Lixin.Yao@HSTX.com>
Cc: linuxppc-dev@ozlabs.org, Aaron Pace <kodiakuppercut@gmail.com>
Subject: Re: Can not get PATA to work for Compact Flash with 2.6.28 kernel
Date: Mon, 02 Feb 2009 16:51:55 -0500	[thread overview]
Message-ID: <49876AFB.3060207@harris.com> (raw)
In-Reply-To: <03D77CA4AC7F4D48A6AB5DA3F1001B3F10A4B9@exchtxus2.HSTX.global.vpn>

Lixin Yao wrote:
> Steven/Aaron,
> 
> I found the problem. On my board, the CF is on a 16 bit interface on bus
> of MPC8248. The HW is connected in Big Endian format. PPC Bit D0 is
> connected to CF Bit D15, and PPC D1 to CF Bit D14, till PPC D0 to CF
> D15. I had to swap the bytes in u-boot. I forgot to do it in Kernel. 
> 
> After making the change, CF is detected. But I can not access /dev/hda
> or any scsi/sda devices under /dev. 
> 

How did you swap the bytes?  The CF will be accessed both in byte mode
and in 16-bit mode.  So this is tricky to do in software.  When we
wired our CF, we deliberately swapped the bytes in hardware.  So the
processor bus MSB goes to pin 6 of the CF.

	Steve

  reply	other threads:[~2009-02-02 21:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-30 22:23 Can not get PATA to work for Compact Flash with 2.6.28 kernel Lixin Yao
2009-02-02 14:59 ` Steven A. Falco
2009-02-02 15:52   ` Lixin Yao
2009-02-02 16:37     ` Steven A. Falco
2009-02-02 20:39       ` Lixin Yao
2009-02-02 21:51         ` Steven A. Falco [this message]
2009-02-02 22:00           ` Lixin Yao
2009-02-04 14:26             ` Steven A. Falco
  -- strict thread matches above, loose matches on Subject: below --
2009-02-02 20:14 Aaron Pace

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49876AFB.3060207@harris.com \
    --to=sfalco@harris.com \
    --cc=Lixin.Yao@HSTX.com \
    --cc=kodiakuppercut@gmail.com \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).