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.

TOOLCHAIN_PATH wrong for AM57xx YOCTO environment

I follow this article http://arago-project.org/wiki/index.php/Setting_Up_Build_Environment#Point_to_the_toolchain_to_use 

cctv@ubuntu:~/tisdk_am57xx/build$ echo $PATH
/home/cctv/tisdk_am57xx/sources/oe-core/scripts:/home/cctv/tisdk_am57xx/sources/meta-ros/scripts:/home/cctv/tisdk_am57xx/sources/meta-browser/scripts:/home/cctv/tisdk_am57xx/sources/bitbake/bin:/home/cctv/tisdk/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/bin:/home/cctv/tisdk/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf:/home/cctv/bin:/home/cctv/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
cctv@ubuntu:~/tisdk_am57xx/build$ export TOOLCHAIN_SYSPATH=/home/cctv/tisdk/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf
cctv@ubuntu:~/tisdk_am57xx/build$
cctv@ubuntu:~/tisdk_am57xx/build$
cctv@ubuntu:~/tisdk_am57xx/build$
cctv@ubuntu:~/tisdk_am57xx/build$
cctv@ubuntu:~/tisdk_am57xx/build$ TOOLCHAIN_SYSPATH=/home/cctv/tisdk/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf MACHINE=am57xx-evm bitbake core-image-minimal
ERROR: No valid toolchain in PATH
ERROR: Unable to parse /home/cctv/tisdk_am57xx/sources/bitbake/lib/bb/data_smart.py
Traceback (most recent call last):
  File "/home/cctv/tisdk_am57xx/sources/bitbake/lib/bb/data_smart.py", line 400, in DataSmart.expandWithRefs(s="${@bool(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) and (os.path.exists(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) and os.path.dirname(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) or bb.fatal('No valid toolchain in PATH')) or ''}", varname='TOOLCHAIN_PATH[:=]'):
                 except Exception as exc:
    >                raise ExpansionError(varname, s, exc) from exc
    
bb.data_smart.ExpansionError: Failure expanding variable TOOLCHAIN_PATH[:=], expression was ${@bool(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) and (os.path.exists(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) and os.path.dirname(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) or bb.fatal('No valid toolchain in PATH')) or ''} which triggered exception BBHandledException:

cctv@ubuntu:~/tisdk_am57xx/build$ cd $TOOLCHAIN_SYSPATH
cctv@ubuntu:~/tisdk/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf$

What wrong for TOOLCHAIN_PATH ?

Thank you!

x 出现错误。请重试或与管理员联系。