public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] IDE access swaps the bytes.
@ 2004-12-03  0:49 Helio Fujimoto
  2004-12-03 13:44 ` Travis B. Sawyer
  0 siblings, 1 reply; 7+ messages in thread
From: Helio Fujimoto @ 2004-12-03  0:49 UTC (permalink / raw)
  To: u-boot

An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20041202/3ec25d59/attachment.htm 

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [U-Boot-Users] IDE access swaps the bytes.
@ 2004-12-06 18:58 Helio Fujimoto
  0 siblings, 0 replies; 7+ messages in thread
From: Helio Fujimoto @ 2004-12-06 18:58 UTC (permalink / raw)
  To: u-boot






Thanks. That's what I suspected.

My webmail sends HTML messages by default, and I keep forgetting to set up
"plain text". Sorry about that.

Regards,

Helio Fujimoto.

=====================
Helio Fujimoto wrote:

>it is attached directly to the bus. There is an FPGA which is controls
the
>IDE interface. The IDE data bus [0-15] is connected to the MPC855T
data bus [15-0].


Ah.  We also have CF direct to local bus....
Here's how we connected it so as to keep common code common:

PER_DATA8     <->   CF_DATA15
PER_DATA9     <->   CF_DATA14
PER_DATA10   <->   CF_DATA13
PER_DATA11   <->   CF_DATA12
PER_DATA12   <->   CF_DATA11
PER_DATA13   <->   CF_DATA10
PER_DATA14   <->   CF_DATA9
PER_DATA15   <->   CF_DATA8
PER_DATA0   <->   CF_DATA7
PER_DATA1   <->   CF_DATA6
PER_DATA2   <->   CF_DATA5
PER_DATA3   <->   CF_DATA4
PER_DATA4   <->   CF_DATA3
PER_DATA5   <->   CF_DATA2
PER_DATA6   <->   CF_DATA1
PER_DATA7   <->   CF_DATA0

Since you're running directly from 855T local bus and not from your fpga,
you're in for some rewiring.  If, however, your data lines run through
your fpga,
you can simply reprogram the pins.

Good luck,

Travis
ps:  I just switched from Evolution to Thunderbird, I hope this is plain
text only!

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [U-Boot-Users] IDE access swaps the bytes.
@ 2004-12-02 18:37 Helio Fujimoto
  2004-12-02 21:49 ` Wolfgang Denk
  0 siblings, 1 reply; 7+ messages in thread
From: Helio Fujimoto @ 2004-12-02 18:37 UTC (permalink / raw)
  To: u-boot





Wolfgang,
Sorry, I didn't see that. I am resending it in plain text.

======
Hi, there,
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.
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.
In the same way, when the IDE device information is
gotten, they are shown as if they are swapped two by
two.

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
the CPU to have "16-bit" access. I don't know if I should
set a "define" to fix this swapping problem, or if I should
change the code (cmd_ide.c, I guess) using #ifdef <my platform>.
Actually, the Compact flash data sheet specifies exactly that, for a big
endian processor I should swap data when accessing a content inside it
(because in the compact flash access the even address data is the least
significant byte), and to not swap when reading the identification, exactly
the opposite of what is done in the code (in my understanding, I could be
wrong...)
Could anyone please explain this to me?

Thanks,

Helio Fujimoto.

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [U-Boot-Users] IDE access swaps the bytes
@ 2004-12-02 17:12 Helio Fujimoto
  2004-12-02 17:19 ` Wolfgang Denk
  0 siblings, 1 reply; 7+ messages in thread
From: Helio Fujimoto @ 2004-12-02 17:12 UTC (permalink / raw)
  To: u-boot

An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20041202/99905295/attachment.htm 

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

end of thread, other threads:[~2004-12-06 18:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-03  0:49 [U-Boot-Users] IDE access swaps the bytes Helio Fujimoto
2004-12-03 13:44 ` Travis B. Sawyer
  -- strict thread matches above, loose matches on Subject: below --
2004-12-06 18:58 Helio Fujimoto
2004-12-02 18:37 Helio Fujimoto
2004-12-02 21:49 ` Wolfgang Denk
2004-12-02 17:12 Helio Fujimoto
2004-12-02 17:19 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox