From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] IDE access swaps the bytes.
Date: Thu, 02 Dec 2004 22:49:03 +0100 [thread overview]
Message-ID: <20041202214908.0CDB6C1430@atlas.denx.de> (raw)
In-Reply-To: Your message of "Thu, 02 Dec 2004 10:37:53 PST." <OF3F292F76.1C02E690-ON88256F5E.006658A6-88256F5E.006658AA@Cyclades.com>
In message <OF3F292F76.1C02E690-ON88256F5E.006658A6-88256F5E.006658AA@Cyclades.com> you wrote:
>
> I am using the u-boot with a MPC855T based board, and
> I am trying to boot from a compact flash by using the diskboot command.
I'm sorry, but my crystal ball is in dire need of an ectoplasmic up-
grade - in it's current state I am unable to see how your CF card is
attached to the system - is it through the PCMCIA controller, or
directly on the bus, or what?
> After debugging the code, I found out that the u-boot does
> not detect a DOS partition in the compact flash because
> the bytes are swapped when data is read from the IDE.
This is something that is specific to your hardware, then. It works
fine on the systems we have here.
> As the processor is big-endian, I supposed the u-boot
> would automatically fix this swapping problem, though I
> could not understand how. The IDE interface is set in
By use of appropriate access macros?
> set a "define" to fix this swapping problem, or if I should
> change the code (cmd_ide.c, I guess) using #ifdef <my platform>.
Don't change the code as long as you don't understand what's going
on. As mentioned before: the current code is working fine on several
systems with both big- and little-endian architectures.
> Could anyone please explain this to me?
Without studying the schematics of your board? That's not exactly a
one-banana problem...
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Without facts, the decision cannot be made logically. You must rely
on your human intuition.
-- Spock, "Assignment: Earth", stardate unknown
next prev parent reply other threads:[~2004-12-02 21:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-02 18:37 [U-Boot-Users] IDE access swaps the bytes Helio Fujimoto
2004-12-02 21:49 ` Wolfgang Denk [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-12-06 18:58 Helio Fujimoto
2004-12-03 0:49 Helio Fujimoto
2004-12-03 13:44 ` Travis B. Sawyer
2004-12-02 17:12 Helio Fujimoto
2004-12-02 17:19 ` Wolfgang Denk
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=20041202214908.0CDB6C1430@atlas.denx.de \
--to=wd@denx.de \
--cc=u-boot@lists.denx.de \
/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