Klone and eldk

tat edited this page Oct 16, 2012 · 1 revision

The following text assumes that ELDK has been successfully installed on the host platform - see http://www.denx.de/wiki/DULG/ELDK for details - and that the base installation directory is /home/eldk.

Setup the environment

Set up the shell environment to include the variables needed by the cross toolchain, i.e. PATH, DEPMOD, CROSS_COMPILE and ARCH, for the MPC8xx processor:

$ sh /home/eldk/eldk_init ppc_8xx  | sed -e 's/^/export /' > .eldk-ppc_8xx.env
$ . .eldk-ppc_8xx.env

Get a KLone application locally

Download the simplest KLone application available:

$ wget http://www.koanlogic.com/download/klone/klapp-minimal-1.0.0.tar.gz
$ tar zxf klapp-minimal-lib-1.0.0.tar.gz
$ cd klapp-minimal-lib-1.0.0/

Instruct KLone for a Linux PPC cross build

Patch the Makefile to indicate that the Linux PPC cross toolchain must be used:

$ sed '3 i MAKL_PLATFORM = linux-powerpc\n' Makefile > .Makefile && mv .Makefile Makefile

Please be aware of zlib1g-dev library is necessary to be installed on host machine for sucessful compilation!

Fire!

$ make
...
$ file kloned  # after a double symlink follow up
ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), for 
GNU/Linux 2.4.3, dynamically linked (uses shared libs), for GNU/Linux 2.4.3, not stripped
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.