Q: How do I use standalone toolchain to build kernel?
A: If you want to build the linux kernel using toolchain, you can do the following:
cd <toolchain-install-dir>
source environment-setup-<core>-fsl-linux
export LDFLAGS=""
cd <linux-src-dir>
make mrproper
./scripts/kconfig/merge_config.sh
arch/arm64/configs/defconfig
arch/arm64/configs/freescale.config
make CC="$CC" LD="$LD"
Compile successfully on standalone with reference to above.
How do I create a kernel.itb file in a standalone environment?
Hello 인섭 심,
Please refer to the following procedure to create kernel.itb file.
sed -i -e "s,kernel-image.gz,Image.gz," kernel.its
sed -i -e "s,freescale.dtb,/home/b25805/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/deploy/images/ls1043ardb/${DTB_FILE}," kernel.its
sed -i -e "s,rootfs.ext2.gz,/home/b25805/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/deploy/images/ls1043ardb/fsl-image-core-ls1043ardb.ext2.gz," kernel.its
mkimage -f kernel.its ${ITB_BASENAME}.itb
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------