[ELDK] ELDK on Ubuntu 11.10

Johan Moraal johan.moraal at gmail.com
Tue Oct 25 07:58:41 CEST 2011


Hi Krish

Thanks, that did the trick

Johan

On 25 October 2011 07:47, krish <radhakrishna.p at gmail.com> wrote:
> Hi Johan,
>
> I have installed eldk-5.0 with the steps provided by you.
>
> The cross compilers are present in following path:
> /opt/eldk-5.0/powerpc/sysroots/i686-oesdk-linux/usr/bin/powerpc-linux/
>
> Add above cross compiler path to $PATH and use "powerpc-linux-gcc" to
> compile your programs.
>
> There is no "ppc_85xx-" in eldk-5.0.
>
> "/opt/eldk-5.0/powerpc/rootfs/usr/bin/gcc" is if type "ELF 32-bit MSB
> executable, PowerPC or cisco 4500". It means this can be executed on big
> endian systems.
>
> On Tue, Oct 25, 2011 at 10:47 AM, Johan Moraal <johan.moraal at gmail.com>
> wrote:
>>
>> Hi
>>
>> Thanks for you reply. I tried ppc_85xx- and ppc_85xx, but no luck:
>>
>> johan at Ubuntu2:~/vmshare$ CROSS_COMPILE=ppc_85xx-
>> johan at Ubuntu2:~/vmshare$ export CROSS_COMPILE
>> johan at Ubuntu2:~/vmshare$ ${CROSS_COMPILE}gcc -S test.c
>> ppc_85xx-gcc: command not found
>> johan at Ubuntu2:~/vmshare$
>> johan at Ubuntu2:~/vmshare$ CROSS_COMPILE=ppc_85xx
>> johan at Ubuntu2:~/vmshare$ export CROSS_COMPILE
>> johan at Ubuntu2:~/vmshare$ ${CROSS_COMPILE}gcc -S test.c
>> ppc_85xxgcc: command not found
>> johan at Ubuntu2:~/vmshare$
>>
>> More concerning to me is when I try to run the gcc binary in the eldk
>> path:
>>
>> 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
>>
>> "cannot execute binary file"?
>>
>> Regards Johan
>>
>> On 25 October 2011 04:52, krish <radhakrishna.p at gmail.com> wrote:
>> > 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"
>> >
>>
>>
>>
>> --
>> Johan
>
>
>
> --
> Regards,
> Radha Krishna
> "Find out what makes you happy and go behind it"
>



-- 
Johan


More information about the eldk mailing list