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.

Linux/TDA2EG: why are there errors for "make linux" ?

Part Number: TDA2EG

Tool/software: Linux

logan@kali:/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/build$ make linux

make -C ./hlos/makerules/linux -f build_uboot.mk uboot
make[1]: Entering directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/build/hlos/makerules/linux'
make -fbuild_uboot.mk uboot_build UBOOT_TARGET=dra7xx_evm_vision_config
make[2]: Entering directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/build/hlos/makerules/linux'
make -C /usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/../ti_components/os_tools/linux/u-boot/u-boot ARCH=arm CROSS_COMPILE=/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/linaro/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- dra7xx_evm_vision_config
make[3]: Entering directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/u-boot/u-boot'
#
# configuration written to .config
#
make[3]: Leaving directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/u-boot/u-boot'
make[2]: Leaving directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/build/hlos/makerules/linux'
make -fbuild_uboot.mk uboot_build
make[2]: Entering directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/build/hlos/makerules/linux'
make -C /usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/../ti_components/os_tools/linux/u-boot/u-boot ARCH=arm CROSS_COMPILE=/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/linaro/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
make[3]: Entering directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/u-boot/u-boot'
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config.h
  GEN     include/autoconf.mk
  GEN     include/autoconf.mk.dep
  GEN     spl/include/autoconf.mk
  CHK     include/config/uboot.release
  CHK     include/generated/version_autogenerated.h
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  CHK     include/generated/generic-asm-offsets.h
  CHK     include/generated/asm-offsets.h
  HOSTCC  tools/mkenvimage.o
  HOSTLD  tools/mkenvimage
  HOSTCC  tools/fit_image.o
  HOSTCC  tools/image-host.o
  HOSTCC  tools/dumpimage.o
  HOSTLD  tools/dumpimage
  HOSTCC  tools/mkimage.o
  HOSTLD  tools/mkimage
  CC      cmd/version.o
  LD      cmd/built-in.o
  CC      common/main.o
  CC      common/board_f.o
  LD      common/built-in.o
  CC      drivers/usb/gadget/f_fastboot.o
  LD      drivers/usb/gadget/built-in.o
  CC      lib/display_options.o
  LD      lib/built-in.o
  LD      u-boot
  OBJCOPY u-boot-nodtb.bin
  MKIMAGE u-boot.img
  OBJCOPY u-boot.srec
  CAT     u-boot-dtb.bin
  COPY    u-boot.bin
  SYM     u-boot.sym
  CC      spl/common/spl/spl.o
  LD      spl/common/spl/built-in.o
  CC      spl/lib/display_options.o
  LD      spl/lib/built-in.o
  LD      spl/u-boot-spl
  OBJCOPY spl/u-boot-spl-nodtb.bin
  COPY    spl/u-boot-spl.bin
  MKIMAGE MLO
  MKIMAGE u-boot-dtb.img
make[3]: Leaving directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/u-boot/u-boot'
make[2]: Leaving directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/build/hlos/makerules/linux'
make[1]: Leaving directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/build/hlos/makerules/linux'
make -C ./hlos/makerules/linux -f build_kernel.mk kernel
make[1]: Entering directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/build/hlos/makerules/linux'
cd /usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/../ti_components/os_tools/linux/kernel/omap ;\
./ti_config_fragments/defconfig_builder.sh -t ti_sdk_dra7x_release
Creating defconfig file /usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/kernel/omap/arch/arm/configs/ti_sdk_dra7x_release_defconfig
cd /usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk ;\
make -C /usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/../ti_components/os_tools/linux/kernel/omap ARCH=arm ti_sdk_dra7x_release_defconfig
make[2]: Entering directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/kernel/omap'
#
# configuration written to .config
#
make[2]: Leaving directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/kernel/omap'
make -fbuild_kernel.mk kernel_build KERNEL_TARGET=zImage
make[2]: Entering directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/build/hlos/makerules/linux'
make -C /usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/../ti_components/os_tools/linux/kernel/omap ARCH=arm CROSS_COMPILE=/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/linaro/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- zImage
make[3]: Entering directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/kernel/omap'
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
make[4]: 'include/generated/mach-types.h' is up to date.
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  GZIP    kernel/config_data.gz
  CHK     kernel/config_data.h
  DTC     drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dtb
  DTB     drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dtb.S
  AS      drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dtb.o
  LD      drivers/gpu/drm/tilcdc/built-in.o
rm drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dtb drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dtb.S
  LD      drivers/gpu/drm/built-in.o
  LD      drivers/gpu/built-in.o
  LD      drivers/built-in.o
  LINK    vmlinux
  LD      vmlinux.o
  MODPOST vmlinux.o
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  KSYM    .tmp_kallsyms1.o
  KSYM    .tmp_kallsyms2.o
  LD      vmlinux
  SORTEX  vmlinux
  SYSMAP  System.map
  OBJCOPY arch/arm/boot/Image
  Kernel: arch/arm/boot/Image is ready
  Kernel: arch/arm/boot/Image is ready
  LZMA    arch/arm/boot/compressed/piggy.lzma
  AS      arch/arm/boot/compressed/piggy.lzma.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
make[3]: Leaving directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/kernel/omap'
make[2]: Leaving directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/build/hlos/makerules/linux'
make -fbuild_kernel.mk kernel_build KERNEL_TARGET=modules
make[2]: Entering directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/build/hlos/makerules/linux'
make -C /usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/../ti_components/os_tools/linux/kernel/omap ARCH=arm CROSS_COMPILE=/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/linaro/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- modules
make[3]: Entering directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/kernel/omap'
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
make[4]: 'include/generated/mach-types.h' is up to date.
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  Building modules, stage 2.
  MODPOST 355 modules
make[3]: Leaving directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/kernel/omap'
make[2]: Leaving directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/build/hlos/makerules/linux'
make -C /usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/../ti_components/os_tools/linux/kernel/linux-kernel-addon/memcache/build/ modules
make[2]: Entering directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/kernel/linux-kernel-addon/memcache/build'
# memcache: Building module
make -C /usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/../ti_components/os_tools/linux/kernel/omap M=`pwd` ARCH=arm CROSS_COMPILE=/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/linaro/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- modules
make[3]: Entering directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/kernel/omap'
  Building modules, stage 2.
  MODPOST 1 modules
make[3]: Leaving directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/kernel/omap'
make[2]: Leaving directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/kernel/linux-kernel-addon/memcache/build'
make -fbuild_kernel.mk kernel_build KERNEL_TARGET=dra7-evm-infoadas.dtb
make[2]: Entering directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/build/hlos/makerules/linux'
make -C /usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/../ti_components/os_tools/linux/kernel/omap ARCH=arm CROSS_COMPILE=/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/linaro/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- dra7-evm-infoadas.dtb
make[3]: Entering directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/kernel/omap'
  DTC     arch/arm/boot/dts/dra7-evm-infoadas.dtb
In file included from arch/arm/boot/dts/dra74x.dtsi:10:0,
                 from arch/arm/boot/dts/dra7-evm.dts:12,
                 from arch/arm/boot/dts/dra7-evm-vision.dts:9,
                 from arch/arm/boot/dts/dra7-evm-infoadas.dts:8:
arch/arm/boot/dts/dra7.dtsi:10:54: fatal error: dt-bindings/interrupt-controller/arm-gic.h: No such file or directory
compilation terminated.
scripts/Makefile.lib:293: recipe for target 'arch/arm/boot/dts/dra7-evm-infoadas.dtb' failed
arch/arm/Makefile:333: recipe for target 'dra7-evm-infoadas.dtb' failed
make[3]: Leaving directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/kernel/omap'
build_kernel.mk:11: recipe for target 'kernel_build' failed
make[2]: Leaving directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/build/hlos/makerules/linux'
build_kernel.mk:18: recipe for target 'kernel' failed
make[1]: Leaving directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/build/hlos/makerules/linux'
Makefile:409: recipe for target 'kernel' failed

But, I do have the file:
logan@kali:/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/kernel/omap$ ls include/dt-bindings/interrupt-controller/
arm-gic.h  irq.h  irq-st.h  mips-gic.h

  • Hi,

    I have forwarded your question to VisionSDK experts to comment.

    Regards,
    Yordan
  • Can you check with permission on the folder ,
    what is your build environment . (linux version)

    Also can you try in some other machine and verify if this issue is seen.

    We have built and verified the same and see no such issue
  • Hi Chetan,

    for your information

    logan@kali:/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/build$ ls -l ../../ti_components/os_tools/linux/kernel/omap/include/dt-bindings/interrupt-controller/
    total 16
    -rw-rw-rw- 1 logan logan 490 Aug 31 08:30 arm-gic.h
    -rw-rw-rw- 1 logan logan 565 Aug 31 08:30 irq.h
    -rw-rw-rw- 1 logan logan 859 Aug 31 08:30 irq-st.h
    -rw-rw-rw- 1 logan logan 207 Aug 31 08:30 mips-gic.h
    logan@kali:/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/build$ uname -a
    Linux kali 4.0.0-kali1-amd64 #1 SMP Debian 4.0.4-1+kali2 (2015-06-03) x86_64 GNU/Linux

  • Can you verify your path variables.
    we dont see any such issue ,
    We test and develob on ubuntu , but i dont see OS being a problem . it must be some path variables only .
    Do you see this error on multiple machine . ? if you try on some other ubuntu machine and confirm us

    Regards
    Chetan.M
  • here are several path variables:

    PWD=/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/build
    XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/
    PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
    INSTALL_DIR=/usr/local/PROCESSOR_SDK_VISION_03_00_00_00

    I tried on a ubuntu system. there were same errors.

    Do I need to set other environment variables or modify configuration files?

    Br.

  • No ,

    No other path environment required .

    What error did you see in ubuntu 14.04 machine .. ?

    Regards

    Chetan.M

  • Here is the errors from Ubuntu. It is same as Kali's.

    ....
    make -fbuild_kernel.mk kernel_build KERNEL_TARGET=dra7-evm-infoadas.dtb
    make[2]: Entering directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/build/hlos/makerules/linux'
    make -C /usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/../ti_components/os_tools/linux/kernel/omap ARCH=arm CROSS_COMPILE=/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/linaro/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- dra7-evm-infoadas.dtb
    make[3]: Entering directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/kernel/omap'
      DTC     arch/arm/boot/dts/dra7-evm-infoadas.dtb
    In file included from arch/arm/boot/dts/dra74x.dtsi:10:0,
                     from arch/arm/boot/dts/dra7-evm.dts:12,
                     from arch/arm/boot/dts/dra7-evm-vision.dts:9,
                     from arch/arm/boot/dts/dra7-evm-infoadas.dts:8:
    arch/arm/boot/dts/dra7.dtsi:10:54: fatal error: dt-bindings/interrupt-controller/arm-gic.h: No such file or directory
    compilation terminated.
    scripts/Makefile.lib:293: recipe for target 'arch/arm/boot/dts/dra7-evm-infoadas.dtb' failed
    arch/arm/Makefile:333: recipe for target 'dra7-evm-infoadas.dtb' failed
    make[3]: Leaving directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/kernel/omap'
    build_kernel.mk:11: recipe for target 'kernel_build' failed
    make[2]: Leaving directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/build/hlos/makerules/linux'
    build_kernel.mk:18: recipe for target 'kernel' failed
    make[1]: Leaving directory '/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/build/hlos/makerules/linux'
    Makefile:409: recipe for target 'kernel' failed

    But, I do have the file:
    logan@HP:/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/kernel/omap$ ls include/dt-bindings/interrupt-controller/
    arm-gic.h  irq.h  irq-st.h  mips-gic.h

    By the way,

    I updated the Rules.make with following information:

    Select make config in Rules.make
    TDA2XX MAKECONFIG=tda2xx_evm_linux_all

    are there other configure files need to update?

    Best Regards

    xuejun

  • fixed above errors with:
    ====================================
    diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
    index 79e86613712f..779b3d151fc2 100644
    --- a/scripts/Makefile.lib
    +++ b/scripts/Makefile.lib
    @@ -160,6 +160,7 @@ cpp_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(LINUXINCLUDE) \
    ld_flags = $(LDFLAGS) $(ldflags-y)

    dtc_cpp_flags = -Wp,-MD,$(depfile).pre.tmp -nostdinc \
    + -I$(srctree)/include \
    -I$(srctree)/arch/$(SRCARCH)/boot/dts \
    -I$(srctree)/arch/$(SRCARCH)/boot/dts/include \
    -I$(srctree)/drivers/of/testcase-data \
    =================================================

    But, popup following errors:
    ====================================
    DTC arch/arm/boot/dts/dra7-evm-infoadas.dtb
    Error: ./include/dt-bindings/input/linux-event-codes.h:1.1-3 syntax error
    FATAL ERROR: Unable to parse input tree
    scripts/Makefile.lib:294: recipe for target 'arch/arm/boot/dts/dra7-evm-infoadas.dtb' failed
    make[4]: *** [arch/arm/boot/dts/dra7-evm-infoadas.dtb] Error 1
    arch/arm/Makefile:333: recipe for target 'dra7-evm-infoadas.dtb' failed
    make[3]: *** [dra7-evm-infoadas.dtb] Error 2
    =================================================
    then, I check the content in the file include/dt-bindings/input/linux-event-codes.h. there is only one line in the file:
    ../../uapi/linux/input-event-codes.h

    I'm confued for the wrong grammar for a C language. I guess it should be the following one:
    #include <../../uapi/linux/input-event-codes.h>

    I also check it by git log ../../uapi/linux/input-event-codes.h :
    =============================================
    Author: Hans de Goede <hdegoede@redhat.com>
    Date: Wed Oct 14 17:06:08 2015 -0700

    devicetree: bindings: Use linux-event-codes.h for evdev codes

    Add a symlink to uapi/linux/linux-event-codes.h, and include that
    instead of (re)defining all the evdev type and code values in
    dt-bindings/input/input.h. This way we do not need to keep all the event
    codes synced manually.

    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Acked-by: Rob Herring <robh@kernel.org>
    Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    ====================================================

    do I used a wrong kernel code version or I need to modify them manually befor "make linux"
    there is the way I got my kernel code base:

    logan@kali:/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/kernel/omap$ git branch kernel_dev processor-sdk-linux-automotive-3.03.00.01
    logan@kali:/usr/local/PROCESSOR_SDK_VISION_03_00_00_00/ti_components/os_tools/linux/kernel/omap$ git am ../linux-kernel-addon/kernel-patches/*