[ELDK] ELDK on Ubuntu 11.10

Johan Moraal johan.moraal at gmail.com
Mon Oct 24 21:42:20 CEST 2011


Hi

I need some help using the ELDK.

I downloaded the following files from your FTP server:
/pub/eldk/5.0/targets/powerpc/
poky-image-sato-sdk-powerpc.tar.gz
/pub/eldk/5.0/targets/powerpc/eldk-eglibc-i686-powerpc-toolchain-gmae-5.0.tar.bz2
/pub/eldk/5.0/targets/powerpc/target.conf
/pub/eldk/5.0/install.sh

I did not modify install.sh or target.conf

My host system is Ubuntu 11.10 i686 (32bit). It is running as a
virtual machine with Windows 7 as host. I use Virtual Box 4.1.4 for
virtualisation.
My target processor is the Freescale P1022 with two PPC e500v2 cores.
However, for this excersice compiling for the MPC85xx (e500v1 core)
will suffice

I used the following commands install ELDK:

johan at Ubuntu2:~/vmshare/eldk$ sudo ./install.sh powerpc
--------------------------------------------------------------------
NOTICE: superuser priviledges will be needed to install the
root file system; make sure you have sufficient permissions.
--------------------------------------------------------------------
*** Installing ./targets/powerpc/poky-image-sato-sdk-powerpc.tar.gz
*** Installing ./targets/powerpc/eldk-eglibc-i686-powerpc-toolchain-gmae-5.0.tar.bz2
johan at Ubuntu2:~/vmshare/eldk$

The installation completed without any errors. A folder /opt/eldk-5.0
was created in my filesystem

After installation I did the following:

johan at Ubuntu2:~/vmshare$ CROSS_COMPILE=ppc85xx-
johan at Ubuntu2:~/vmshare$ export CROSS_COMPILE
johan at Ubuntu2:~/vmshare$
PATH=$PATH:/opt/eldk-5.0/powerpc/rootfs/usr/bin:/opt/eldk-5.0/powerpc/rootfs/bin
johan at Ubuntu2:~/vmshare$ printenv PATH
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/eldk-5.0/powerpc/rootfs/usr/bin:/opt/eldk-5.0/powerpc/rootfs/bin
johan at Ubuntu2:~/vmshare$

As I understand it, ELDK should now be properly installed. To test it,
I have a small test file I wish to compile: test.c

I used the following command to compile (Note that I use the -S option
because I want an .s assembly output file instead of an object file.)

johan at Ubuntu2:~/vmshare$ ${CROSS_COMPILE}gcc -S test.c
ppc85xx-gcc: command not found

Alternatively I tried:

johan at Ubuntu2:~/vmshare$ /opt/eldk-5.0/powerpc/rootfs/usr/bin/gcc -S test.c
bash: /opt/eldk-5.0/powerpc/rootfs/usr/bin/gcc: cannot execute binary file

Keep in mind that I have very little Linux experience.

As you can see I am unable to cross compile

Can you please assist?

--
Johan


More information about the eldk mailing list