public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Reg- Cross compilation of Redboot
@ 2007-10-30  5:22 R.J.Sivakumar
  2007-10-30 11:22 ` Gary Thomas
  0 siblings, 1 reply; 2+ messages in thread
From: R.J.Sivakumar @ 2007-10-30  5:22 UTC (permalink / raw)
  To: ecos-discuss

[-- Attachment #1: Type: text/plain, Size: 846 bytes --]

Dear Support,
         As we are trying to cross compile the redboot bootloader for our 
custom board of IMX31 using ecos configuration tool,its giving compilation 
error when we use freescale toolchain provided in the IMX31 LTIB BSP.
But it succeeded in compilation when we used arm-elf toolchain provided in the 
ecos tool itself, but bin or elf file resulted in that is not executing in 
the custom board. Whereas the default mx31ads_redboot.bin is executing in the 
custom board and get strucked in the SDRAM location of 0x87f0062c and 
0x87f1ebc0.
So, we are doubting with the toolchain.Please give us suggestion to resolve 
this issue and also help us where the major modification will be present in 
the bootloader for the custom board.

Error report when built using  freescale BSP toolchain is attached.

-- 
Best regards,
Sivakumar.R.J

[-- Attachment #2: error_toolchain.txt --]
[-- Type: text/plain, Size: 2301 bytes --]

src/infra_diag.o /home/ismail/src/ecos/packages/infra/current/src/diag.cxx
distcc[17723] (dcc_get_hostlist) Warning: no hostlist is set; can't distribute work
distcc[17723] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
make[1]: Leaving directory `/home/ismail/opt/ecos/ecos-2.0/tools/bin/oct30-1_build/infra/current'
/home/ismail/src/ecos/packages/infra/current/src/diag.cxx:90: error: 'init_priority' attribute is not supported on this platform
make: Leaving directory `/home/ismail/opt/ecos/ecos-2.0/tools/bin/oct30-1_build'
/home/ismail/src/ecos/packages/infra/current/src/diag.cxx: In function 'int diag_sprintf(char*, const char*, ...)':

/home/ismail/src/ecos/packages/infra/current/src/diag.cxx:535: warning: dereferencing type-punned pointer will break strict-aliasing rules
/home/ismail/src/ecos/packages/infra/current/src/diag.cxx: In function 'int diag_snprintf(char*, size_t, const char*, ...)':
/home/ismail/src/ecos/packages/infra/current/src/diag.cxx:551: warning: dereferencing type-punned pointer will break strict-aliasing rules
/home/ismail/src/ecos/packages/infra/current/src/diag.cxx: In function 'int diag_vsprintf(char*, const char*, void*)':
/home/ismail/src/ecos/packages/infra/current/src/diag.cxx:565: warning: dereferencing type-punned pointer will break strict-aliasing rules
distcc[17723] ERROR: compile /home/ismail/src/ecos/packages/infra/current/src/diag.cxx on localhost failed
make[1]: *** [src/diag.o.d] Error 1
make: *** [build] Error 2

The toolchain used is in /opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/bin/. Tools are 
arm-none-linux-gnueabi-addr2line  arm-none-linux-gnueabi-gcc        arm-none-linux-gnueabi-objdump
arm-none-linux-gnueabi-ar         arm-none-linux-gnueabi-gcc-4.1.1  arm-none-linux-gnueabi-ranlib
arm-none-linux-gnueabi-as         arm-none-linux-gnueabi-gccbug     arm-none-linux-gnueabi-readelf
arm-none-linux-gnueabi-c++        arm-none-linux-gnueabi-gcov       arm-none-linux-gnueabi-size
arm-none-linux-gnueabi-c++filt    arm-none-linux-gnueabi-ld         arm-none-linux-gnueabi-strings
arm-none-linux-gnueabi-cpp        arm-none-linux-gnueabi-nm         arm-none-linux-gnueabi-strip
arm-none-linux-gnueabi-g++        arm-none-linux-gnueabi-objcopy    fix-embedded-paths




[-- Attachment #3: Type: text/plain, Size: 148 bytes --]

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

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

* Re: [ECOS] Reg- Cross compilation of Redboot
  2007-10-30  5:22 [ECOS] Reg- Cross compilation of Redboot R.J.Sivakumar
@ 2007-10-30 11:22 ` Gary Thomas
  0 siblings, 0 replies; 2+ messages in thread
From: Gary Thomas @ 2007-10-30 11:22 UTC (permalink / raw)
  To: R.J.Sivakumar; +Cc: ecos-discuss

R.J.Sivakumar wrote:
> Dear Support,
>          As we are trying to cross compile the redboot bootloader for our 
> custom board of IMX31 using ecos configuration tool,its giving compilation 
> error when we use freescale toolchain provided in the IMX31 LTIB BSP.
> But it succeeded in compilation when we used arm-elf toolchain provided in the 
> ecos tool itself, but bin or elf file resulted in that is not executing in 
> the custom board. Whereas the default mx31ads_redboot.bin is executing in the 
> custom board and get strucked in the SDRAM location of 0x87f0062c and 
> 0x87f1ebc0.
> So, we are doubting with the toolchain.Please give us suggestion to resolve 
> this issue and also help us where the major modification will be present in 
> the bootloader for the custom board.
> 
> Error report when built using  freescale BSP toolchain is attached.

I've already told you (via private email) that you *must* use the arm-elf
tools - you cannot use the arm-gnueabi tools.

If FreeScale thinks you can build RedBoot for this platform using only
their gnueabi tools, ask them how.

> ------------------------------------------------------------------------
> 
> src/infra_diag.o /home/ismail/src/ecos/packages/infra/current/src/diag.cxx
> distcc[17723] (dcc_get_hostlist) Warning: no hostlist is set; can't distribute work
> distcc[17723] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
> make[1]: Leaving directory `/home/ismail/opt/ecos/ecos-2.0/tools/bin/oct30-1_build/infra/current'
> /home/ismail/src/ecos/packages/infra/current/src/diag.cxx:90: error: 'init_priority' attribute is not supported on this platform
> make: Leaving directory `/home/ismail/opt/ecos/ecos-2.0/tools/bin/oct30-1_build'
> /home/ismail/src/ecos/packages/infra/current/src/diag.cxx: In function 'int diag_sprintf(char*, const char*, ...)':
> 
> /home/ismail/src/ecos/packages/infra/current/src/diag.cxx:535: warning: dereferencing type-punned pointer will break strict-aliasing rules
> /home/ismail/src/ecos/packages/infra/current/src/diag.cxx: In function 'int diag_snprintf(char*, size_t, const char*, ...)':
> /home/ismail/src/ecos/packages/infra/current/src/diag.cxx:551: warning: dereferencing type-punned pointer will break strict-aliasing rules
> /home/ismail/src/ecos/packages/infra/current/src/diag.cxx: In function 'int diag_vsprintf(char*, const char*, void*)':
> /home/ismail/src/ecos/packages/infra/current/src/diag.cxx:565: warning: dereferencing type-punned pointer will break strict-aliasing rules
> distcc[17723] ERROR: compile /home/ismail/src/ecos/packages/infra/current/src/diag.cxx on localhost failed
> make[1]: *** [src/diag.o.d] Error 1
> make: *** [build] Error 2
> 
> The toolchain used is in /opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/bin/. Tools are 
> arm-none-linux-gnueabi-addr2line  arm-none-linux-gnueabi-gcc        arm-none-linux-gnueabi-objdump
> arm-none-linux-gnueabi-ar         arm-none-linux-gnueabi-gcc-4.1.1  arm-none-linux-gnueabi-ranlib
> arm-none-linux-gnueabi-as         arm-none-linux-gnueabi-gccbug     arm-none-linux-gnueabi-readelf
> arm-none-linux-gnueabi-c++        arm-none-linux-gnueabi-gcov       arm-none-linux-gnueabi-size
> arm-none-linux-gnueabi-c++filt    arm-none-linux-gnueabi-ld         arm-none-linux-gnueabi-strings
> arm-none-linux-gnueabi-cpp        arm-none-linux-gnueabi-nm         arm-none-linux-gnueabi-strip
> arm-none-linux-gnueabi-g++        arm-none-linux-gnueabi-objcopy    fix-embedded-paths
> 
> 
> 
> 


-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

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

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

end of thread, other threads:[~2007-10-30 11:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-30  5:22 [ECOS] Reg- Cross compilation of Redboot R.J.Sivakumar
2007-10-30 11:22 ` Gary Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).