UBOOT compile trouble

Hi, I've some board based on freescale powerPc (MPC5200) and running linux. I'm currently generating an UBOOT bootloader using the ppc cross-compiler installed from LTIB ((Linux Target Image Builder from Freescale's bsp)

The host PC used to generate UBOOT is an UBUNTU 64bit: Distributor ID: Ubuntu Description: Ubuntu 12.04.1 LTS Release: 12.04 Codename: precise

Linux version 3.2.0-29-generic (buildd@allspice) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) )

#46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 2 On-line CPU(s) list: 0,1 Thread(s) per core: 1 Core(s) per socket: 2 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 23 Stepping: 10 CPU MHz: 1596.000 BogoMIPS: 5851.24 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 3072K NUMA node0 CPU(s): 0,1

here is the script I use to build the uboot (2010): #---------------------------------------------------------- #! /bin/bash CROSS_COMPILE=powerpc-e300c3-linux-gnu- ARCH=ppc PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin BUILD_DIR=/opt/tec/uboot/bin/build MAKEFLAGS= FREESCALE=/opt/freescale/usr/local/gcc-4.1.78-eglibc-2.5.78-1/powerpc-e300c3-linux-gnu/bin PATH=$FREESCALE:$PATH BOOTNAME=icecube_5200

export BUILD_DIR export CROSS_COMPILE export ARCH export PATH export MAKEFLAGS export SHELL export FLAG make clean make $BOOTNAME_'config' make #----------------------------------------------------------

The result of build fails on last make with this error:

powerpc-e300c3-linux-gnu-gcc -D__ASSEMBLY__ -g -Os -mrelocatable

-fPIC -meabi -D__KERNEL__ -DTEXT_BASE=0xFFF00000

-I/opt/tec/uboot/bin/build/include2 -I/opt/tec/uboot/bin/build/include

-I/mnt/luna/UBOOT/src/u-boot-2010.03/include -fno-builtin -ffreestanding

-nostdinc -isystem /opt/freescale/usr/local/gcc-4.1.78-eglibc-2.5.78-1/powerpc-e300c3-linux-gnu/lib/gcc/powerpc-e300c3-linux-gnu/4.1.2/include

-pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_MPC5xxx -ffixed-r2 -mstring

-mcpu=603e -mmultiple -DTEXT_BASE=0xFFF00000

-I/mnt/luna/UBOOT/src/u-boot-2010.03/board -o /opt/tec/uboot/bin/build/lib_ppc/ppccache.o ppccache.S -c powerpc-e300c3-linux-gnu-gcc: Internal error: Segmentation fault (program as) Please submit a full bug report. See for instructions. make[1]: *** [/opt/tecnint/uboot/bin/build/lib_ppc/ppccache.o] Errore 1 make[1]: uscita dalla directory "/mnt/luna/UBOOT/src/u-boot-2010.03/lib_ppc" make: *** [/opt/tecnint/uboot/bin/build/lib_ppc/libppc.a] Errore 2

I noticed this error some time after latest automatic UBUNTU upgrades.... I presume its a problem of environment but I've not able to catch the problem: because I've not rebuild the UBOOT for some time , I do not know wich update has caused the problem...

Any suggestion? Thanks A.

Reply to
cortexA15
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.