[ELDK] Compilation problems with ELDK 4.2

Anatolij Gustschin agust at denx.de
Tue Jul 22 08:42:15 CEST 2008


Hello,

Chuan Neng Lee wrote:

> Now, however I have found compilation problems with both ELDK 4.2
> and linux-2.6-denx from git.  I am trying to compile a default
> config for a PPC LITE5200 evaluation board.  Assuming the root
> directory of /opt/eldk_42, building on a Fedora Core 6 Linux
> running on x86, if I cross-compile as follows:
> 
> export PATH=$PATH:/opt/eldk_42/usr/bin:/opt/eldk_42/bin
> 
> make ARCH=ppc CROSS_COMPILE=ppc_6xx- mrproper
> make ARCH=ppc CROSS_COMPILE=ppc_6xx- menuconfig   # didn't change option 
> here
> make ARCH=ppc CROSS_COMPILE=ppc_6xx-

<snip>

> 
> Now, if I try the same thing with the latest code from git:
> 
> make ARCH=ppc CROSS_COMPILE=ppc_6xx- mrproper
> make ARCH=ppc CROSS_COMPILE=ppc_6xx- menuconfig   # didn't change option 
> here
> make ARCH=ppc CROSS_COMPILE=ppc_6xx-
> 
> The following error will occur:
> 
> =================snip======
>   .
>   .
>   .
>   AS      arch/ppc/boot/simple/relocate.o
>   CC      arch/ppc/boot/simple/misc.o
>   CC      arch/ppc/boot/simple/mpc52xx_tty.o
> arch/ppc/boot/simple/mpc52xx_tty.c: In function 'serial_init':
> arch/ppc/boot/simple/mpc52xx_tty.c:93: error: 'struct mpc52xx_psc' has 
> no member named 'tfalarm'
> make[2]: *** [arch/ppc/boot/simple/mpc52xx_tty.o] Error 1
> make[1]: *** [simple] Error 2
> make: *** [zImage] Error 2
> =================end=========
> 
> 
> What am I missing?

Try something like this:

make ARCH=powerpc CROSS_COMPILE=ppc_6xx- 52xx/lite5200b_defconfig
make ARCH=powerpc CROSS_COMPILE=ppc_6xx- uImage

ARCH=ppc is not supported in latest linux-2.6-denx tree.

Best Regards,
Anatolij

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de


More information about the eldk mailing list