[ELDK] ELDK on Ubuntu 11.10

krish radhakrishna.p at gmail.com
Tue Oct 25 04:52:02 CEST 2011


Hi,

I have not yet installed ELDK5.0, but used ELDK42 extensively. In ELDK42,
the compiler is "ppc_85xx-gcc".
In ELDK5.0, is it "ppc85xx-gcc"? Please recheck once.

Anyhow, I have started downloading eldk5.0

On Tue, Oct 25, 2011 at 1:12 AM, Johan Moraal <johan.moraal at gmail.com>wrote:

> 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
> _______________________________________________
> eldk mailing list
> eldk at lists.denx.de
> http://lists.denx.de/mailman/listinfo/eldk
>



-- 
Regards,
Radha Krishna
"Find out what makes you happy and go behind it"


More information about the eldk mailing list