Hello Dat Ho,
First of all, QorIQ SDK 1.8 is used for LS1021A 1.0 CPU, and SDK 1.9 is used for LS1021A 2.0 CPU, so you need to be aware of this and choose the correct version Linux SDK.
For how to building customized u-boot image in Yocto SDK environment, please refer to the following procedure.
After install ISOs QorIQ-SDK-<version>-SOURCE-<date>-yocto.iso and QorIQ-SDK-<version>-CORTEXA7-CACHE-<date>-yocto.iso and set up the build environment, please use the following commands to modify u-boot source and rebuild u-boot.
1. $bitbake u-boot -c cleansstate
2. $bitbake u-boot -c patch
3. Go to the source the source folder build_ls1021atwr/tmp/work/ls1021atwr-fsl-linux-gnueabi/u-boot-qoriq/2015.01+fslgit-r0/git/ to modify u-boot source.
4 . Rebuild and deploy u-boot image.
$ bitbake u-boot.
5. Modifying u-boot source again and rebuild u-boot.
$ bitbake u-boot -c configure -f
$ bitbake u-boot
Regarding how to use the standalone toolchain.
source /opt/fsl-qoriq/1.9/environment-setup-cortexa7hf-vfp-neon-fsl-linux-gnueabi
make CROSS_COMPILE=arm-fsl-linux-gnueabi- CC="arm-fsl-linux-gnueabi-gcc --sysroot=/opt/fsl-qoriq/1.9/sysroots/cortexa7hf-vfp-neon-fsl-linux-gnueabi" O=ls1021atwr_nor_config all
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------