u-boot compilation error

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

u-boot compilation error

3,143 Views
volodymyrmakhit
Contributor II

Hi all!

I'm following for this manual meta-fsl-bsp-release.git - Freescale i.MX Yocto BSP Release Layer

repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.10.53-1.1.0_ga

repo sync

Building X11
------------
MACHINE=wandboard-dual source fsl-setup-release.sh -b build-x11 -e x11

bitbake fsl-image-qt5

And I got error on clean source:

| arch/arm/imx-common/built-in.o: In function `arch_preboot_os':

| /home/x0158990/work/os/fsl-arm-yocto-bsp/build-X11/tmp/work/wandboard_dual-poky-linux-gnueabi/u-boot-imx/2014.04-r0/git/arch/arm/imx-common/cpu.c:203: undefined reference to `ldo_mode_set'

| arm-poky-linux-gnueabi-ld.bfd: BFD (GNU Binutils) 2.24 assertion fail /home/x0158990/work/os/fsl-arm-yocto-bsp/build-X11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/binutils-cross/2.24-r0/binutils-2.24/bfd/elf32-arm.c:7696

| arm-poky-linux-gnueabi-ld.bfd: error: required section '.rel.plt' not found in the linker script

| arm-poky-linux-gnueabi-ld.bfd: final link failed: Invalid operation

| make: *** [u-boot] Error 1

| ERROR: oe_runmake failed

| WARNING: exit code 1 from a shell command.

| ERROR: Function failed: do_compile (log file is located at /home/x0158990/work/os/fsl-arm-yocto-bsp/build-X11/tmp/work/wandboard_dual-poky-linux-gnueabi/u-boot-imx/2014.04-r0/temp/log.do_compile.8980)

ERROR: Task 234 (/home/x0158990/work/os/fsl-arm-yocto-bsp/sources/meta-fsl-bsp-release/imx/meta-fsl-arm/recipes-bsp/u-boot/u-boot-imx_2014.04.bb, do_compile) failed with exit code '1'

NOTE: Tasks Summary: Attempted 4851 tasks of which 4821 didn't need to be rerun and 1 failed.

Waiting for 0 running tasks to finish:

Please help!

Labels (3)
0 Kudos
2 Replies

814 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

You are using our FSL official release. Therefore the wandboard machine is not expected to work with this branch imx-3.10.53-1.1.0_ga

I suggest you to try the below one for the wandboard

repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b dizzy

Best Regards,

Alejandro

0 Kudos

814 Views
wenmingfeng
Contributor III

Hi alejan,

when I build my 3.14.52_1.1.0_ga uboot, I got below error.The config I used is wandboard_dl_defconfig just under the configs. Can you give some comments how can I fix this ?

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'
arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail ../../bfd/elf32-arm.c:7696
arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail ../../bfd/elf32-arm.c:7696
arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail ../../bfd/elf32-arm.c:7696
arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail ../../bfd/elf32-arm.c:7696
arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail ../../bfd/elf32-arm.c:7696
arm-linux-gnueabihf-ld.bfd: error: required section '.rel.plt' not found in the linker script
arm-linux-gnueabihf-ld.bfd: final link failed: Invalid operation
make: *** [u-boot] Error 1

Thanks!

Wenming

0 Kudos