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.

ti-processor-sdk-linux-am335x-evm-06.03.00.106环境设置

下载了SDK打算学习但根据手册设置编译器及环境却显示:

[linux-devkit]:~/ti-processor-sdk-linux-am335x-evm-06.03.00.106> make CROSS_COMPILE=arm-linux-gnueabihf-disclean

=====================================Building the Linux Kernel DTBs=====================================

make -C /home/nfk/ti-processor-sdk-linux-am335x-evm-06.03.00.106/board-support/linux-4.19.94+gitAUTOINC+be5389fd85-gbe5389fd85 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-disclean tisdk_am335x-evm_defconfigmake[1]: Entering directory '/home/nfk/ti-processor-sdk-linux-am335x-evm-06.03.00.106/board-support/linux-4.19.94+gitAUTOINC+be5389fd85-gbe5389fd85'

/bin/sh: 1: arm-linux-gnueabihf-discleangcc: not found

/bin/sh: 1: arm-linux-gnueabihf-discleangcc: not found  YACC    scripts/kconfig/zconf.tab.c

/bin/sh: 1: bison: not foundscripts/Makefile.lib:196: recipe for target '

scripts/kconfig/zconf.tab.c' failed

make[2]: *** [scripts/kconfig/zconf.tab.c] Error 127

Makefile:534: recipe for target 'tisdk_am335x-evm_defconfig' failed

make[1]: *** [tisdk_am335x-evm_defconfig] Error 2

make[1]: Leaving directory '/home/nfk/ti-processor-sdk-linux-am335x-evm-06.03.00.106/board-support/linux-4.19.94+gitAUTOINC+be5389fd85-gbe5389fd85'

Makefile:218: recipe for target 'linux-dtbs' failedmake: *** [linux-dtbs] Error 2

[linux-devkit]:~/ti-processor-sdk-linux-am335x-evm-06.03.00.106>

目前已经在profile添加:

export PATH=/home/nfk/ti-processor-sdk-linux-am335x-evm-06.03.00.106/linux-devkit/sysroots/x86_64-arago-linux/usr/bin:$PATH

export AECH=arm

export CROSS_COMPILE=arm-linux-gnueabi-

environment也添加了:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games/:/home/nfk/ti-processor-sdk-linux-am335x-evm-06.03.00.106/linux-devkit/sysroots/x86_64-arago-linux/usr/bin"ARCH=armCROSS_COMPILE=arm-linux-gnueabihf-

检查echo PATH显示为:

[linux-devkit]:~/ti-processor-sdk-linux-am335x-evm-06.03.00.106> echo PATH

PATH

请问这个如何进行环境设置,bash.bashrc文件没有修改。

  • 附件的文档有详细步骤,参考看一下。

    8244.SDK 安装及编译.docx

  • 我试过里面的方法了结果如下
    yyy@ubuntu:~/ti-processor-sdk-linux-am335x-evm-06.03.00.106$ export PATH=/home/yyy/ti-processor-sdk-linux-am335x-evm-06.03.00.106/linux-devkit/sysroots/x86_64-arago-linux/usr/bin:=$PATH
    yyy@ubuntu:~/ti-processor-sdk-linux-am335x-evm-06.03.00.106$ echo PATH
    PATH

    另外我试了一下查看 arm-linux-gnueabihf-gcc,里面是显示正确的路径。
    yyy@ubuntu:~/ti-processor-sdk-linux-am335x-evm-06.03.00.106$ arm-linux-gnueabihf-gcc -v
    Using built-in specs.
    COLLECT_GCC=arm-linux-gnueabihf-gcc
    COLLECT_LTO_WRAPPER=/home/nfk/ti-processor-sdk-linux-am335x-evm-06.03.00.106/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/../libexec/gcc/arm-linux-gnueabihf/8.3.0/lto-wrapper
    Target: arm-linux-gnueabihf
    Configured with: /tmp/dgboter/bbs/rhev-vm8--rhe6x86_64/buildbot/rhe6x86_64--arm-linux-gnueabihf/build/src/gcc/configure --target=arm-linux-gnueabihf --prefix= --with-sysroot=/arm-linux-gnueabihf/libc --with-build-sysroot=/tmp/dgboter/bbs/rhev-vm8--rhe6x86_64/buildbot/rhe6x86_64--arm-linux-gnueabihf/build/build-arm-linux-gnueabihf/install//arm-linux-gnueabihf/libc --with-bugurl=
    https://bugs.linaro.org/
    --enable-gnu-indirect-function --enable-shared --disable-libssp --disable-libmudflap --enable-checking=release --enable-languages=c,c++,fortran --with-gmp=/tmp/dgboter/bbs/rhev-vm8--rhe6x86_64/buildbot/rhe6x86_64--arm-linux-gnueabihf/build/build-arm-linux-gnueabihf/host-tools --with-mpfr=/tmp/dgboter/bbs/rhev-vm8--rhe6x86_64/buildbot/rhe6x86_64--arm-linux-gnueabihf/build/build-arm-linux-gnueabihf/host-tools --with-mpc=/tmp/dgboter/bbs/rhev-vm8--rhe6x86_64/buildbot/rhe6x86_64--arm-linux-gnueabihf/build/build-arm-linux-gnueabihf/host-tools --with-isl=/tmp/dgboter/bbs/rhev-vm8--rhe6x86_64/buildbot/rhe6x86_64--arm-linux-gnueabihf/build/build-arm-linux-gnueabihf/host-tools --with-arch=armv7-a --with-fpu=neon --with-float=hard --with-arch=armv7-a --with-pkgversion='GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)'
    Thread model: posix
    gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))

    但运行还是显示
    /bin/sh: 1: arm-linux-gnueabihf-discleangcc: not found

    /bin/sh: 1: arm-linux-gnueabihf-discleangcc: not found
  • 参考以下帖子看一下是否有帮助,或者再去英文论坛搜索相关报错,看能否获得一些建议。
    e2e.ti.com/.../3436852
    步骤就是上面贴出来的,应该没有问题,测试过的。
  • 你好,我重装了linux系统后才完成了环境配置,能完成SDK上原有的代码编译。

    现在想移植u-boot及linux到自制3354板上。

    目前我查看了以下两个文档,但他们中提到的:

    The sitara-board-port-linux git tree cloned into a directory

    • In the TI hands on lab this has been cloned for you in the /home/sitara/board-port directory.
    • If you are cloning these sources yourself you can do so using the following command (Assuming you have git properly configured to work with your network proxy if you use one).

    我不知道如何下载使用。

    所以想请问你是否还有其他科参考的文档,谢谢。

        

    processors.wiki.ti.com/.../Sitara_Linux_Training:_Linux_Board_Port