[ELDK] Need help compiling u-boot for Lite5200

Detlev Zundel dzu at denx.de
Thu Oct 20 18:25:33 CEST 2011


Hi Alexej,

> I am trying to install linux on my Lite5200 EVB using this manual:
> http://emsys.denayer.wenk.be/emcam/Linux_on_MPC5200_(UK).pdf

Ah, 7 year old material ;)

> I downloaded ELDK 4.2 ISO and installed the ppc_6xx package which is
> correct for my processor (MPC5200) according to
> http://www.denx.de/wiki/view/DULG/ELDKSupportedTargetArchitectures .

Although we are currently transitioning to ELDK 5.x, this should still
work, yes.

> Then I just followed the manual: 
>
> $ export CROSS_COMPILE=ppc_82xx-

This should really be ppc_6xx but as the one is a symlink to the
other, both should work.

> $ PATH=$PATH:/<ELDK-dir>/usr/bin:/<ELDK-dir>/bin

Did you do an "export PATH"?

> I downloaded and installed U-Boot 1.3.2 like it's described on this
> manual page: http://www.denx.de/wiki/view/DULG/UBootSources

Ah, even older sources :)  Lite5200 is supported in current sources, so
you should use that[1] - even top of tree fresh from git should work.

> and the I tried to compile u-boot:
>  
> $ cd u-boot
> $ make Lite5200_LOWBOOT_config
>  
> $ make all
>  
> it said, ppc_8xx-gcc was not found. Sure, because I specified the
> CROSS_COMPILE variable as ppc_82xx above. But it doesn't work if I
> specify it as ppc_8xx as well. Can I alter a config file so the 'make'
> does look for ppc_82xx-gcc instead of ppc_8xx-gcc ?

Nope, this is a pilot error, the infrastructure is ok. Just setup PATH
and CROSS_COMPILE in the shell from which you call make and be sure to
export all of them.

> I really appreciate your help, I'm relatively new to embedded linux and
> cross compiling.

Happy hacking!

Cheers
  Detlev

[1] ftp://ftp.denx.de/pub/u-boot/

-- 
There are two hard things in computer science: cache invalidation,
naming things, and off-by-one errors.
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de


More information about the eldk mailing list