This is a followup to the previous write-up (as some information have become outdated):
https://tthtlc.wordpress.com/2011/01/06/unboxing-my-freescale-board-mpc5125
MPC5125 as provided here:
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MPC5125
https://linuxlink.timesys.com/docs/gsg/mpc5125_twr
https://community.freescale.com/thread/74066
https://community.freescale.com/thread/127394
http://www.freescale.com/files/microcontrollers/doc/fact_sheet/MPC5125FS.pdf
The following is an attempt to recompile the source codes using ELDK toolchain:
https://community.freescale.com/message/342028#342028
I downloaded the following files (from http://ftp.denx.de/pub/eldk/5.3/targets/powerpc/):
eldk-eglibc-i686-powerpc-toolchain-gmae-5.3.sh
powerpc.sha256
target.conf
install.shThen I installed them by doing the following:
$ mkdir eldk-download
$ cd eldk-download
$ mkdir -p targets/powerpc
$ wget ftp://ftp.denx.de/pub/eldk/5.3/install.sh
$ cd targets/powerpc
$ wget ftp://ftp.denx.de/pub/eldk/5.3/targets/powerpc/target.conf
$ wget ftp://ftp.denx.de/pub/eldk/5.3/targets/powerpc/eldk-eglibc-i686-powerpc-toolchain-gmae-5.3.sh
$ wget ftp://ftp.denx.de/pub/eldk/5.3/targets/powerpc/powerpc.sha256
$ sha256sum -c armv7a.sha256
eldk-eglibc-i686-powerpc-toolchain-gmae-5.3.sh: OK
target.conf: OK
…
$ cd ../..
$ chmod a+x install.sh
$ ./install.sh -s gmae -r – powerpcThat resulted in ‘gmae’ selected as the cross compiler toolchain and ‘none’ selected as the root file system (I’m using LimeOS on the development board).
Then I cross-compiled “Hello World” with the following:
$ source opt/eldk-5.3/powerpc/environment-setup-powerpc-linux
$ powerpc-gcc helloworld.c