This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
Doing u-boot build in yocto for my custom board.
Getting below error.
I am using onecontrol_a53_defconfig.
CONFIG_DEFAULT_DEVICE_TREE="onecontrol" and CONFIG_TARGET_ONECONTROL=y then aslo showing below error.
make -f /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/scripts/Makefile.build obj=drivers/usb/gadget/udc
| make -f /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/scripts/Makefile.build obj=drivers/usb/host
| make -f /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/scripts/Makefile.build obj=drivers/usb/mtu3
| make -f /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/scripts/Makefile.build obj=drivers/usb/musb-new
| make -f /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/scripts/Makefile.build obj=drivers/usb/musb
| make -f /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/scripts/Makefile.build obj=drivers/usb/phy
| make -f /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/scripts/Makefile.build obj=drivers/usb/ulpi
| make -f /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/scripts/Makefile.build obj=env
| make -f /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/scripts/Makefile.build obj=fs
| make -f /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/scripts/Makefile.build obj=lib
| make -f /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/scripts/Makefile.build obj=fs/ext4
| make -f /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/scripts/Makefile.build obj=fs/fat
| make -f /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/scripts/Makefile.build obj=net
| make -f /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/scripts/Makefile.build obj=lib/crypto
| make -f /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/scripts/Makefile.build obj=lib/efi_driver
| make -f /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/scripts/Makefile.build obj=lib/efi_loader
| make -f /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/scripts/Makefile.build obj=lib/libavb
| make -f /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/scripts/Makefile.build obj=lib/libfdt
| make -f /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/scripts/Makefile.build obj=lib/lzma
| make -f /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/scripts/Makefile.build obj=lib/zlib
| make -f /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/scripts/Makefile.build obj=examples
| make -f /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/scripts/Makefile.build obj=dts dtbs
| make -f /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/scripts/Makefile.build obj=arch/arm/dts dtbs
| test -e arch/arm/dts/onecontrol.dtb || ( \
| echo >&2; \
| echo >&2 "Device Tree Source is not correctly specified."; \
| echo >&2 "Please define 'CONFIG_DEFAULT_DEVICE_TREE'"; \
| echo >&2 "or build with 'DEVICE_TREE=<device_tree>' argument"; \
| echo >&2; \
| /bin/false)
|
| Device Tree Source is not correctly specified.
| Please define 'CONFIG_DEFAULT_DEVICE_TREE'
| or build with 'DEVICE_TREE=<device_tree>' argument
|
| /home/aws-suma/OneControl/build-lrd-am62xx-onecontrol-lrd-5.10-rt-test/tmp/work/am62xx_onecontrol_lrd-poky-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+62a9e51344-r33/git/dts/Makefile:33: recipe for target 'arch/arm/dts/onecontrol.dtb' failed
| make[2]: *** [arch/arm/dts/onecontrol.dtb] Error 1
NOTE: Tasks Summary: Attempted 7293 tasks of which 7279 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/aws-suma/OneControl/yocto/meta-ti/recipes-bsp/u-boot/u-boot-ti-staging_2021.01.bb:do_compile
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
Thanks!
Looks like your device tree specification didn't get picked up. I would suggest to separate possible U-Boot issues from Yocto setup issues by trying to clone your custom U-Boot tree into a new folder and see if you can get it to build there first. If you can there could be an issue of how you apply/customize your U-Boot configuration (defconfig) within Yocto that you'll need to debug.
Regards, Andreas