How to compile the kernel separately for T2080

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to compile the kernel separately for T2080

Jump to solution
2,286 Views
hongyuanzhao
Contributor I

How to download the cross-compilation tool ..?

0 Kudos
Reply
1 Solution
2,272 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please download the ISO Image: QorIQ Linux SDK v2.0 PPC64E6500 IMAGE(QorIQ-SDK-V2.0-PPC64E6500-IMAGE-20160527-yocto.iso).

from https://www.nxp.com/design/design-center/software/embedded-software/linux-software-and-development-t...

You will find fsl-toolchain folder in this ISO, please run the following command to install the toolchain in /opt/fsl-qoriq/2.0.

./fsl-toolchain/fsl-qoriq-glibc-x86_64-ppc64e6500-toolchain-2.0.sh

source /opt/fsl-qoriq/2.0/environment-setup-ppc64e6500-fsl-linux

 

View solution in original post

0 Kudos
Reply
6 Replies
2,267 Views
hongyuanzhao
Contributor I

got it ,thanks I will try.

0 Kudos
Reply
2,273 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please download the ISO Image: QorIQ Linux SDK v2.0 PPC64E6500 IMAGE(QorIQ-SDK-V2.0-PPC64E6500-IMAGE-20160527-yocto.iso).

from https://www.nxp.com/design/design-center/software/embedded-software/linux-software-and-development-t...

You will find fsl-toolchain folder in this ISO, please run the following command to install the toolchain in /opt/fsl-qoriq/2.0.

./fsl-toolchain/fsl-qoriq-glibc-x86_64-ppc64e6500-toolchain-2.0.sh

source /opt/fsl-qoriq/2.0/environment-setup-ppc64e6500-fsl-linux

 

0 Kudos
Reply
2,250 Views
hongyuanzhao
Contributor I

hongyuanzhao_0-1717660662347.png

linux$ powerpc64-fsl-linux-gcc test.c
test.c:1:19: fatal error: stdio.h: No such file or directory
#include <stdio.h>
^
compilation terminated.

0 Kudos
Reply
2,248 Views
hongyuanzhao
Contributor I

Cross compilation tool cannot be used

0 Kudos
Reply
2,130 Views
yipingwang
NXP TechSupport
NXP TechSupport

$ source /opt/fsl-qoriq/2.0/environment-setup-ppc64e6500-fsl-linux
$ ${CC} test.c -o test

0 Kudos
Reply
2,115 Views
hongyuanzhao
Contributor I

Thank you very much, Yiping.

How to compile the kernel ..?

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1880372%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHow%20to%20compile%20the%20kernel%20separately%20for%20T2080%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1880372%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHow%20to%20download%20the%20cross-compilation%20tool%20..%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1885140%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20compile%20the%20kernel%20separately%20for%20T2080%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1885140%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20very%20much%2C%20Yiping.%3C%2FP%3E%3CP%3EHow%20to%20compile%20the%20kernel%20..%3F%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1885027%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20compile%20the%20kernel%20separately%20for%20T2080%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1885027%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%24%20source%20%2Fopt%2Ffsl-qoriq%2F2.0%2Fenvironment-setup-ppc64e6500-fsl-linux%3CBR%20%2F%3E%24%20%24%7BCC%7D%20test.c%20-o%20test%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1882551%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20compile%20the%20kernel%20separately%20for%20T2080%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1882551%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ECross%20compilation%20tool%20cannot%20be%20used%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1880436%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20compile%20the%20kernel%20separately%20for%20T2080%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1880436%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Egot%20it%20%2Cthanks%20I%20will%20try.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1880414%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20compile%20the%20kernel%20separately%20for%20T2080%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1880414%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EPlease%20download%20the%20ISO%26nbsp%3B%3CSPAN%3EImage%3A%20QorIQ%20Linux%20SDK%20v2.0%20PPC64E6500%20IMAGE(QorIQ-SDK-V2.0-PPC64E6500-IMAGE-20160527-yocto.iso).%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Efrom%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fsoftware%2Fembedded-software%2Flinux-software-and-development-tools%2Flinux-sdk-for-qoriq-processors%3ASDKLINUX%23downloads%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fsoftware%2Fembedded-software%2Flinux-software-and-development-tools%2Flinux-sdk-for-qoriq-processors%3ASDKLINUX%23downloads%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EYou%20will%20find%26nbsp%3Bfsl-toolchain%20folder%20in%20this%20ISO%2C%20please%20run%20the%20following%20command%20to%20install%20the%20toolchain%20in%26nbsp%3B%2Fopt%2Ffsl-qoriq%2F2.0.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E.%2Ffsl-toolchain%2Ffsl-qoriq-glibc-x86_64-ppc64e6500-toolchain-2.0.sh%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Esource%20%2Fopt%2Ffsl-qoriq%2F2.0%2Fenvironment-setup-ppc64e6500-fsl-linux%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E