Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello World under u-boot.
Look at attached file. It is u-boot redme file from www.denx.de. See description for "Hello World" Demo in this file.
Hello World under Linux
- Look at the Section 3.3.7 of SDK 2.0-1703 documentation for installing standalone toolchain:
https://www.nxp.com/docs/en/supporting-information/QORIQ-SDK-2.0-IC-REV0.pdf
- Use this toolchain for compiling Hello World program.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
$ . /opt/fsl-qoriq/2.0/environment-setup-ppce6500-fsl-linux
Check information about your cross compiler using the following commands:
echo $CC
or
$CC --version
Check result of "source" command. Use "$PATH" command. The "source" command should add path to gcc compiler.
You should see similar message:
echo $PATH
bash: /opt/fsl-qoriq/1.9/sysroots/x86_64-fslsdk-linux/usr/bin:/opt/fsl-qoriq/1.9/sysroots/x86_64-fslsdk-linux/usr/bin/powerpc-fsl-linux-gnuspe:
Commands for test.c code building:
$CC test.c -o test.elf // dinamic library
$CC test.c --static -o test.elf // static library
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------