Note: The default installation path for standalone toolchain is /opt/fsl-networking/. The install folder can be specified during the installation procedure.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
----------------------------------------------------------------------------------------------------------------------- Note: If this post answers your question, please click the Correct Answer button. Thank you! -----------------------------------------------------------------------------------------------------------------------
Look at the following page install standalone toolchain:
https://freescale.sdlproducts.com/LiveContent/content/en-US/QorIQ_SDK/GUID-16DBC8E2-9A18-4867-9BE1-168062EF31C4
Build and install the standalone toolchain with Yocto:
$ source ./fsl-setup-poky -m <machine>
$ bitbake fsl-toolchain
$ cd build_<machine>_release/tmp/deploy/sdk
$ ./fsl-networking-eglibc-<host-system>-<core>-toolchain-<release>.sh
Note: The default installation path for standalone toolchain is /opt/fsl-networking/. The install folder can be specified during the installation procedure.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
source /opt/fsl-qoriq/2.0/environment-setup-aarch64-fsl-linux
Check result of "source" command. Use "$PATH" command. The "source" command should add path to gcc compiler.
You should see similar message:
$PATH
bash: /opt/fsl-qoriq/2.0/sysroots/x86_64-fslsdk-linux/usr/bin:/opt/fsl-qoriq/2.0/sysroots/x86_64-fslsdk-linux/usr/bin/../x86_64-fslsdk-linux/bin:/opt/fsl-qoriq/2.0/sysroots/x86_64-fslsdk-linux/usr/bin/aarch64-fsl-linux:/opt/fsl-qoriq/2.0/sysroots/x86_64-fslsdk-linux/usr/bin/aarch64-fsl-linux-uclibc:/opt/fsl-qoriq/2.0/sysroots/x86_64-fslsdk-linux/usr/bin/aarch64-fsl-linux-musl:/ltib/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/scripts:/ltib/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/bin:/ltib/Freescale-Linux-SDK-for-LS1021A-IOT-Rev2-v0.4-20150907-yocto.iso/poky/scripts:/ltib/Freescale-Linux-SDK-for-LS1021A-IOT-Rev2-v0.4-20150907-yocto.iso/poky/bitbake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:
$CC test.c --sysroot=/opt/fsl-qoriq/2.0/sysroots/aarch64-fsl-linux -o test.elf
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------