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/TDA2EVM5777: unable to build linux

Part Number: TDA2EVM5777

Tool/software: Linux

Hi all,

I am trying to build PROCESSOR_SDK_VISION_03_01_00_00. I want to run Linux on A15. For this, I am referring VisionSDK_Linux_UserGuide.pdf and have installed the sdk, followed the section 2.4.2 to install Linux and other components section. Also set up linaro toolchain in ti_components/os_tools/linux/linaro

With this, I execute ,

$ make linux
make -C ./hlos/makerules/linux -f build_uboot.mk uboot
make[1]: Entering directory `/home/prabhuraj/PROCESSOR_SDK_VISION_03_01_00_00/vision_sdk/build/hlos/makerules/linux'
make -fbuild_uboot.mk uboot_build UBOOT_TARGET=dra7xx_evm_vision_config
make[2]: Entering directory `/home/prabhuraj/PROCESSOR_SDK_VISION_03_01_00_00/vision_sdk/build/hlos/makerules/linux'
make -C ARCH=arm CROSS_COMPILE= dra7xx_evm_vision_config
make: Entering an unknown directory
make: *** ARCH=arm: No such file or directory. Stop.
make: Leaving an unknown directory
make[2]: *** [uboot_build] Error 2
make[2]: Leaving directory `/home/prabhuraj/PROCESSOR_SDK_VISION_03_01_00_00/vision_sdk/build/hlos/makerules/linux'
make[1]: *** [uboot] Error 2
make[1]: Leaving directory `/home/prabhuraj/PROCESSOR_SDK_VISION_03_01_00_00/vision_sdk/build/hlos/makerules/linux'
make: *** [uboot] Error 2

When I do,

$ make kernel
make -C ./hlos/makerules/linux -f build_kernel.mk kernel
make[1]: Entering directory `/home/prabhuraj/PROCESSOR_SDK_VISION_03_01_00_00/vision_sdk/build/hlos/makerules/linux'
cd ;\
./ti_config_fragments/defconfig_builder.sh -t ti_sdk_dra7x_release
/bin/sh: 2: ./ti_config_fragments/defconfig_builder.sh: not found
make[1]: *** [kernel] Error 127
make[1]: Leaving directory `/home/prabhuraj/PROCESSOR_SDK_VISION_03_01_00_00/vision_sdk/build/hlos/makerules/linux'
make: *** [kernel] Error 2

Can anyone please let me know what I am missing here?

thanks,

prabhuraj

  • After exporting uboot path
    $export uboot_PATH=/home/prabhuraj/PROCESSOR_SDK_VISION_03_01_00_00/ti_components/os_tools/linux/u-boot

    $make linux

    make -C ./hlos/makerules/linux -f build_uboot.mk uboot
    make[1]: Entering directory `/home/prabhuraj/PROCESSOR_SDK_VISION_03_01_00_00/vision_sdk/build/hlos/makerules/linux'
    make -fbuild_uboot.mk uboot_build UBOOT_TARGET=dra7xx_evm_vision_config
    make[2]: Entering directory `/home/prabhuraj/PROCESSOR_SDK_VISION_03_01_00_00/vision_sdk/build/hlos/makerules/linux'
    make -C /home/prabhuraj/PROCESSOR_SDK_VISION_03_01_00_00/ti_components/os_tools/linux/u-boot ARCH=arm CROSS_COMPILE= dra7xx_evm_vision_config
    make[3]: Entering directory `/home/prabhuraj/PROCESSOR_SDK_VISION_03_01_00_00/ti_components/os_tools/linux/u-boot'
    #
    # configuration written to .config
    #
    make[3]: Leaving directory `/home/prabhuraj/PROCESSOR_SDK_VISION_03_01_00_00/ti_components/os_tools/linux/u-boot'
    make[2]: Leaving directory `/home/prabhuraj/PROCESSOR_SDK_VISION_03_01_00_00/vision_sdk/build/hlos/makerules/linux'
    make -fbuild_uboot.mk uboot_build
    make[2]: Entering directory `/home/prabhuraj/PROCESSOR_SDK_VISION_03_01_00_00/vision_sdk/build/hlos/makerules/linux'
    make -C /home/prabhuraj/PROCESSOR_SDK_VISION_03_01_00_00/ti_components/os_tools/linux/u-boot ARCH=arm CROSS_COMPILE=
    make[3]: Entering directory `/home/prabhuraj/PROCESSOR_SDK_VISION_03_01_00_00/ti_components/os_tools/linux/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
    make[3]: Leaving directory `/home/prabhuraj/PROCESSOR_SDK_VISION_03_01_00_00/ti_components/os_tools/linux/u-boot'
    make[3]: Entering directory `/home/prabhuraj/PROCESSOR_SDK_VISION_03_01_00_00/ti_components/os_tools/linux/u-boot'
    CHK include/config/uboot.release
    CHK include/generated/version_autogenerated.h
    CHK include/generated/timestamp_autogenerated.h
    UPD include/generated/timestamp_autogenerated.h
    CC lib/asm-offsets.s
    lib/asm-offsets.c:1:0: error: bad value (armv5) for -march= switch
    /*
    ^
    make[4]: *** [lib/asm-offsets.s] Error 1
    make[3]: *** [prepare0] Error 2
    make[3]: Leaving directory `/home/prabhuraj/PROCESSOR_SDK_VISION_03_01_00_00/ti_components/os_tools/linux/u-boot'
    make[2]: *** [uboot_build] Error 2
    make[2]: Leaving directory `/home/prabhuraj/PROCESSOR_SDK_VISION_03_01_00_00/vision_sdk/build/hlos/makerules/linux'
    make[1]: *** [uboot] Error 2
    make[1]: Leaving directory `/home/prabhuraj/PROCESSOR_SDK_VISION_03_01_00_00/vision_sdk/build/hlos/makerules/linux'
    make: *** [uboot] Error 2

    I am using ubuntu 14.04 and have installed

    $ sudo apt-get install lib32stdc++6 lib32z1-dev lib32z1 lib32ncurses5
    lib32bz2-1.0

    I could not install ia32-libs due to package unavailability from ubuntu 14.04 repo

    similarly,

    sudo apt-get install sed dos2unix dtrx mono-complete git lib32z1 lib32ncurses5 lib32bz2-1.0 libc6:i386 libc6-i386 libstdc++6:i386 libncurses5:i386 libz1:i386 libc6-dev-i386 device-tree-compiler

    except uname package, I have all other packages in my PC.

    Any suggestions to solve this issue?

    thanks,
    prabhuraj
  • Hi Prabhuraj,


    The "bad value (armv5) for -march= switch" error means that the the gcc for x86 is invoked instead of arm's cross compiler.
    This happens because CROSS_COMPILE is empty in u-boot make command.
    It seems there is some problem with including the variables from tools_path.mk properly (for example uboot_PATH you exported
    manually is set there and also A15_TOOLCHAIN_PREFIX which is used for CROSS_COMPILE), but I am not sure what could be the reason for this.

    Which MAKECONFIG you have set in Rules.make?

    Regards,
    Yordan
  • Thanks Yordan.

    I am using tda2xx_evm_linux_all. I have already checked the tools_path.mk. I also edited the paths with my absolute src directory path, just to see if it helps.

    I still see the same problem.

    But, when I tried to compile the uboot and kernel code from their respective directories (eg os_tools/linux/kernel/omap) then it compiles properly. 

    I want to compile from top level build directory.

    Please provide your suggestions.

    regards,
    Prabhuraj

  • Hi Yordan,

    Previous MAKECONFIG for bios was creating the issue. After "make clean", and configuring it for linux, I could solve this problem.

    thanks,
    prabhuraj