[ELDK] Compilation problems with ELDK 4.2

Chuan Neng Lee lee at adept.com
Wed Jul 23 22:05:17 CEST 2008


Anatolij,

Thank you for the excellent information.  I was able to compile
with a config generated via:

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

In other words, using the "powerpc" rather than the "ppc" ARCH, and
"5200b" rather than "5200".

Thanks for pointing me in the right direction!

- Lee

Anatolij Gustschin wrote:
> 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
>
>   


More information about the eldk mailing list