Home Help Center

PowerPC and DENX

dinmandinman Member Dinesh SAMUELOrganization: Courant Multi MediaProject: Network bridge
Hello,

I am new user of Ice.

Can any one tell me if it is possible to cross compile to this environment ?

What must I change to do this ?

Hardware: PowerPC AMCC 405EP
Flash : 16 MB
RAM: 32 MB
OS : Linux DENX

Thanks for your help.

Comments

  • bernardbernard Jupiter, FLAdministrators, ZeroC Staff Bernard NormierOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi Dinesh,

    We currently do not support this platform. So far, the Ice for C++ build system works only on the target host (no cross-compiling).

    I suspect it would make sense to try first Ice-E on your embedded system. The Ice-E build system supports cross-compilation to Linux Gumstix/ARM; maybe we can adapt the build system/build instructions to work on Linux / PPC? Please refer to INSTALL.LINUX in the Ice-E source distribution.

    Best regards,
    Bernard
  • christianchristian Member Christian PfligersdorfferOrganization: eos.infoProject: embedded control system development
    Hi folks,

    I successfully cross-compiled IceE-1.3.0 for our PowerPC target platform (MPC5200) using the DENX development kit. It almost worked out of the box and needed only one adjustment to the source base. The Time::now() function implementation needs to be told that our target platform does not have monotonic clock support.

    To get this right out of the box change the conditional compilation to something like
    #if defined(_WIN32)
       // on windows
    #elif defined(_POSIX_MONOTONIC_CLOCK) && (_POSIX_MONOTONIC_CLOCK > 0)
       // on platform having the monotonic clock
    #else
       // on platform without monotonic clock
    

    With that settled, you simply follow the installation instructions for Gumstix Linux, set the appropriate cross-tools
    $ export CXX=ppc-linux-c++
    $ export AR=ppc-linux-ar
    

    and build it. Have fun!
Sign In or Register to comment.