[ECOS] Redboot on IMX31

Shah, Amit amitshah@xgtechnology.com
Thu Nov 6 18:46:00 GMT 2008

I am trying to port redboot on our custom IMX31 board. I used the
Freescale patch for imx31 to build the redboot binaries under the ecos
configuration. But these binaries are not working on the board. The
hal_arm_board.cdl file has a complier option of "-mcpu=arm9". IMX31 has
an arm11 core, so I don't understand why Freescale put arm9 in the
compiler option. I tried replacing this with "-mcpu=arm1136jf-s" but it
gives me an error during the make stage. Can arm9 instructions run on an
arm11 core? Does anyone know how to get rid of this error?

Also if I use the .bin file with the arm9 option I see that my code
hangs somewhere in the 0x87f0.... region. Freescale is using rom address
of 0x87f00000 in their .ldi files. Does anyone have any information
regarding this?

----------Error with the "-mcpu=arm1136jf-s"

make[1]: Entering directory
arm-elf-gcc -finline-limit=7000 -mcpu=arm1136jf-s -Wall -Wpointer-arith
-Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions
-I/home/amits/src/ecos/packages/hal/arm/arch/current/tests -I.
-Wp,-MD,arm.tmp -o hal_mk_defs.tmp -S
cc1: bad value (arm1136jf-s) for -mcpu= switch
make[1]: *** [arm.inc] Error 1
make[1]: Leaving directory
make: *** [build] Error 2

Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

More information about the Ecos-discuss mailing list