<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2><DIV>--&gt; Hi,</DIV><DIV><BR><FONT face=monospace size=2>I'm sorry, but my crystal ball is in dire need of an ectoplasmic &nbsp;up-<BR>grade &nbsp;- in it's current state I am unable to see how your CF card is<BR>attached to the system - is it &nbsp;through &nbsp;the &nbsp;PCMCIA &nbsp;controller, &nbsp;or<BR>directly on the bus, or what?</FONT></DIV><P><FONT face=monospace size=2>--&gt; OK, 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].</P><DIV><BR>Without studying the schematics of your board? That's not &nbsp;exactly &nbsp;a<BR>one-banana problem...<BR></DIV><DIV>--&gt; I believe there might be something different in my hardware, because the program&nbsp;does exactly the opposite of what it should do (maybe the data lines are usually swapped, for example). I did a workaround in the code to straighten it up, but would like a better solution, that's why I would like to understand the code. For example:</DIV><DIV>&nbsp;</DIV><DIV>(1) - when I get the identification from the compact flash, the first byte is the most significant one in the word. When stored in a big endian mode, the ID is in the right order. Why then does the code&nbsp;swap them?</DIV><DIV>&nbsp;</DIV><DIV>(2) - when I get a word from the compact flash, the even byte is the most significant byte. The access for a little-endian processor is straight, but not for a big-endian processor. In the code, the swap is not done neither in a little-endian not in a big-endian case, which means that either the data stored inside the flash is swapped for a big-endian access or that the code is supposing that this swapping is done in the hardware. </DIV><DIV>&nbsp;</DIV><DIV>Regards,</DIV><DIV>&nbsp;</DIV><DIV>Helio Fujimoto.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Best regards,<BR><BR>Wolfgang Denk<BR><BR>-- <BR>Software Engineering: &nbsp;Embedded and Realtime Systems, &nbsp;Embedded Linux<BR>Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de<BR>Without facts, the decision cannot be made logically. You &nbsp;must &nbsp;rely<BR>on your human intuition.<BR><SPAN>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>-- Spock, "Assignment: Earth", stardate unknown<BR></DIV></FONT><br></FONT>