3.14.52_1.1.0_ga compile issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

3.14.52_1.1.0_ga compile issue

2,638 Views
wenmingfeng
Contributor III

when I try to build the officially uboot, rel_imx_3.14.52_1.1.0_ga after download to my ubuntu14.04LTS virtual machine,

I got compiler issue, the error as below. Anybody else encounter the same issue?

LD examples/standalone/hello_world
OBJCOPY examples/standalone/hello_world.srec
OBJCOPY examples/standalone/hello_world.bin
LDS u-boot.lds
LD u-boot
arch/arm/imx-common/built-in.o: In function `print_cpuinfo':
/home/lucid/imx6dl/uboot-imx-rel_imx_3.14.52_1.1.0_ga/arch/arm/imx-common/cpu.c:199: undefined reference to `uclass_get_device'
/home/lucid/imx6dl/uboot-imx-rel_imx_3.14.52_1.1.0_ga/arch/arm/imx-common/cpu.c:201: undefined reference to `thermal_get_temp'
arch/arm/imx-common/built-in.o: In function `arch_preboot_os':
/home/lucid/imx6dl/uboot-imx-rel_imx_3.14.52_1.1.0_ga/arch/arm/imx-common/cpu.c:270: undefined reference to `ldo_mode_set'
drivers/built-in.o: In function `read_cpu_temperature':
/home/lucid/imx6dl/uboot-imx-rel_imx_3.14.52_1.1.0_ga/drivers/thermal/imx_thermal.c:43: undefined reference to `dev_get_platdata'
/home/lucid/imx6dl/uboot-imx-rel_imx_3.14.52_1.1.0_ga/drivers/thermal/imx_thermal.c:45: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `imx_thermal_probe':
/home/lucid/imx6dl/uboot-imx-rel_imx_3.14.52_1.1.0_ga/drivers/thermal/imx_thermal.c:226: undefined reference to `dev_get_platdata'
/home/lucid/imx6dl/uboot-imx-rel_imx_3.14.52_1.1.0_ga/drivers/thermal/imx_thermal.c:227: undefined reference to `dev_get_priv'
/home/lucid/toolchain/gcc-linaro-4.8-2015.06-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils) Linaro 2014.11-3-git 2.24.0.20141017 assertion fail /home/tcwg-buildslave/workspace/tcwg-make-release/label/tcwg-x86_64/target/arm-linux-gnueabihf/snapshots/binutils-gdb.git~linaro_binutils-2_24-branch@a93e252ee5250dba831e54f98336b40c7210dac7/bfd/elf32-arm.c:7710
/home/lucid/toolchain/gcc-linaro-4.8-2015.06-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils) Linaro 2014.11-3-git 2.24.0.20141017 assertion fail /home/tcwg-buildslave/workspace/tcwg-make-release/label/tcwg-x86_64/target/arm-linux-gnueabihf/snapshots/binutils-gdb.git~linaro_binutils-2_24-branch@a93e252ee5250dba831e54f98336b40c7210dac7/bfd/elf32-arm.c:7710
/home/lucid/toolchain/gcc-linaro-4.8-2015.06-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils) Linaro 2014.11-3-git 2.24.0.20141017 assertion fail /home/tcwg-buildslave/workspace/tcwg-make-release/label/tcwg-x86_64/target/arm-linux-gnueabihf/snapshots/binutils-gdb.git~linaro_binutils-2_24-branch@a93e252ee5250dba831e54f98336b40c7210dac7/bfd/elf32-arm.c:7710
/home/lucid/toolchain/gcc-linaro-4.8-2015.06-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils) Linaro 2014.11-3-git 2.24.0.20141017 assertion fail /home/tcwg-buildslave/workspace/tcwg-make-release/label/tcwg-x86_64/target/arm-linux-gnueabihf/snapshots/binutils-gdb.git~linaro_binutils-2_24-branch@a93e252ee5250dba831e54f98336b40c7210dac7/bfd/elf32-arm.c:7710
/home/lucid/toolchain/gcc-linaro-4.8-2015.06-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils) Linaro 2014.11-3-git 2.24.0.20141017 assertion fail /home/tcwg-buildslave/workspace/tcwg-make-release/label/tcwg-x86_64/target/arm-linux-gnueabihf/snapshots/binutils-gdb.git~linaro_binutils-2_24-branch@a93e252ee5250dba831e54f98336b40c7210dac7/bfd/elf32-arm.c:7710
/home/lucid/toolchain/gcc-linaro-4.8-2015.06-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld.bfd: error: required section '.rel.plt' not found in the linker script
/home/lucid/toolchain/gcc-linaro-4.8-2015.06-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld.bfd: final link failed: Invalid operation
make: *** [u-boot] Error 1
lucid@ubuntu:~/imx6dl/uboot-imx-rel_imx_3.14.52_1.1.0_ga$

0 Kudos
6 Replies

1,621 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Wenming Feng,

Are you using the BSP toolchain to compile u-boot? It could be that some libraries are missing. Please provide more details on your configuration. You  may find steps to build u-boot on the link below for reference.

Building U-boot 

Regards,

0 Kudos

1,621 Views
wenmingfeng
Contributor III

Hi gusaram,

Thanks for your response. Actually I build and get source by refer to below document

Installing Ubuntu Rootfs on NXP i.MX6 boards 

I am not using yocto, what I am confusing is that one month ago I used the same toolchain to build an image for imx53qsb, but now it is encounter the issue.

Regards,

0 Kudos

1,621 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Wenming Feng,

I'm sorry to hear you're having problems using the toolchain. Did you use the toolchain refereed in the document?

https://releases.linaro.org/14.09/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz  

I'm not sure if the toolchain you are using does have i.MX6 support but you should be able to download and use the above one or you may extract the toolchain from the i.MX6 BSP (which does take some time).

Regards,

0 Kudos

1,621 Views
wenmingfeng
Contributor III

Thanks gusa,

The link you provide is no longer exist, I only can compiler with yocto, no way to using an established toolchain to compiler.

0 Kudos

1,621 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Wenming Feng,

Are you familiar with Yocto? You may use the command once the environment has been set:

bitbake meta-toolchain

Once created you may install it by running the following script:

<BSP_DIR>/<BUILD_DIR>/tmp/deploy/sdk/poky-glibc-x86_64-meta-toolchain-cortexa9hf-vfp-neon-toolchain-<POKY_VER>.sh 

Regards,

0 Kudos

1,621 Views
wenmingfeng
Contributor III

Thanks, good idea. I will try.

0 Kudos