There is he following methed.
NXP offers SDK 2.0-1701 for the T1024RDB board.
This SDK supports toolchain for standalone compiling.
See the Section 3.3.7 (Install the Standalone Toolchain) in the SDK 2.0-1701 documentation:
http://www.nxp.com/assets/documents/data/en/supporting-information/QORIQ-SDK-2.0-IC-REV0.pdf
Use similar command sequence for your program compiling:
- 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-aarch64-fsl-linux
- sudo chmod 777 /opt/fsl-qoriq/2.0/environment-setup-aarch64-fsl-linux
- 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:
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:
- $CC test.c -o test.elf
Look at the foolowing pages about starting your application after boot:
http://www.tldp.org/HOWTO/HighQuality-Apps-HOWTO/boot.html
https://bbs.archlinux.org/viewtopic.php?id=164316
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------