Having developed a new IXP425 based card, we now face the problem of writing the BSP for it.
Actually, the main problem at this very moment is understanding the real issues with Endianess.
Indeed, primary tests made with the ARM MultiIce emulator appear to clearly indicate that Big Endian is required if wanting to access the IXP425 expansion bus with correct addressing (bytewise or wordwise).
As known, the boot device(s) on the IXP425 CPU must be located on the expansion bus. We selected 16 bits wide for the boot device.
However, at reset, the CPU defaults to Little Endian mode.
There comes then the issue of coherent switching from the Little to Big Endian mode.
More precisely :
A) Is the bootloader to be generated in Little or Big Endian ? B) How to handle the copy to SDRAM (byte swapping or not) ? C) How and when to switch Endian mode to constantly keep data coherency ?
Is anyone aware of a good explanatory document dealing with the problem, or better an example of a startup code ?
Your help will be greatly appreciated.
A. Beaujean