Linux Kernel

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

Linux Kernel

Linux Kernel

Building Linux Kernel

Building Using LTIB

Linux kernel can be easily built using Ltib. On Ltib menu, just select:

[*] Configure the Kernel 

Ltib_kernel1.png

When you exit this menu, Ltib will show the Kernel Menuconfig as below:

Ltib_kernel2.png

This is the Kernel Menuconfig, where it's possible to configure kernel options and drivers.

After exit this menu, kernel will be built and stored at:

<Ltib directory>/rootfs/boot 


Building Outside LTIB

Downloading and installing GNU Toolchain and git

When you install LTIB, a GNU toolchain is automatically installed on /opt/freescale/usr/local/

Kernel releases newer than 2.6.34 doesn't build on Toolchain 4.1.2, only on 4.4.1 or later

Check on your host at /opt/freescale/usr/local/ the current installed Toolchain.

Next step is to install GIT on host. For Ubuntu machines, use:

sudo apt-get install git-core 

Building Kernel from Freescale git repository

Freescale provides access to their own git kernel repository and can be viewed at: Freescale Public GIT

To download the kernel source code, create a new folder and use the command:

git clone git://git.freescale.com/imx/linux-2.6-imx.git

OR

git clone http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git

After some minutes, a folder called linux-2.6-imx will be created containing the Linux kernel

Create a local git branch from a remote branch you want to use. Let's use branch origin/imx_3.0.15 as example:

cd linux-2.6-imx 
git checkout -b localbranch origin/imx_3.0.15

To check all available remote branches, use: git branch -r

Export the cross compiler, architecture and the toolchain path:

export ARCH=arm 
export CROSS_COMPILE=arm-none-linux-gnueabi-

If using Toolchain 4.1.2:

export PATH="$PATH:/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/" 

OR If using Toolchain 4.4.4:

export PATH="$PATH:/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/" 

Copy the config file for the wanted platform on linux folder as example:

cp arch/arm/configs/imx6_defconfig .config 

All platform config files are located at <linux directory>/arch/arm/configs/

Call menuconfig and change configuration (if needed)

make menuconfig 

Now it's ready to be built:

make uImage

The zImage and uImage will be located at /arch/arm/boot/ folder.


Building Kernel Mainline


Mainline Kernel can be viewed on this link:

https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git

To download the kernel source code, create a new folder and use the command:

git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git

OR

git clone http://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git

OR

git clone https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git

After some minutes, a folder called linux will be created containing the Linux kernel

Create a local git branch from a remote branch you want to use. Let's use branch origin/linux-3.8.y as example:

cd linux
git checkout -b localbranch origin/linux-3.8.y

To check all available remote branches, use: git branch -r

Export the cross compiler, architecture and the toolchain path:

export ARCH=arm export CROSS_COMPILE=arm-none-linux-gnueabi- 

If using Toolchain 4.4.4:

export PATH="$PATH:/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/" 

Configure to the platform you want to build kernel. For i.MX family, use imx_v6_v7_defconfig:

make imx_v6_v7_defconfig

All platform config files are located at <linux directory>/arch/arm/configs/

Call menuconfig and change configuration (only if needed, this is an optional step!)

make menuconfig 

Now it's ready to be built:

make -j4 uImage LOADADDR=0x70008000

- Use -j4 option to speed up your build in case or PC has 4 cores. It's optional.

- IMPORTANT: Use the correct address for each processor. You can check the correct address value at linux/arch/arm/mach-imx/Makefile.boot.

After build the uImage, build the dtb file (device tree binary). For i.MX53 QSB use:

make imx53-qsb.dtb


The uImage will be located at: linux/arch/arm/boot/ folder and

dtb binary will be located at: linux/arch/arm/boot/dts


About Linux

For general Linux information, see About Linux

Tags (1)
%3CLINGO-SUB%20id%3D%22lingo-sub-1106932%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELinux%20Kernel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1106932%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CH1%20id%3D%22toc-hId-380672465%22%20id%3D%22toc-hId-380672465%22%20id%3D%22toc-hId-1297697012%22%3E%3CSPAN%20class%3D%22mw-headline%22%3EBuilding%20Linux%20Kernel%3C%2FSPAN%3E%3C%2FH1%3E%3CH2%20id%3D%22toc-hId-1071233939%22%20id%3D%22toc-hId-1071233939%22%20id%3D%22toc-hId-1988258486%22%3E%3C%2FH2%3E%3CP%3E%3C%2FP%3E%3CUL%3E%3CLI%20style%3D%22list-style-type%3Adisc%3B%20margin-left%3A0px%3B%20margin-bottom%3A1px%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fi-MX-Processors-Knowledge-Base%2FLinux-Kernel%2Fta-p%2F1106932%23toc-hId-380672465%22%20target%3D%22_blank%22%3EBuilding%20Linux%20Kernel%3C%2FA%3E%3C%2FLI%3E%3CLI%20style%3D%22list-style-type%3Adisc%3B%20margin-left%3A25px%3B%20margin-bottom%3A1px%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fi-MX-Processors-Knowledge-Base%2FLinux-Kernel%2Fta-p%2F1106932%23toc-hId--736220524%22%20target%3D%22_blank%22%3EBuilding%20Using%20LTIB%20%3C%2FA%3E%3C%2FLI%3E%3CLI%20style%3D%22list-style-type%3Adisc%3B%20margin-left%3A25px%3B%20margin-bottom%3A1px%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fi-MX-Processors-Knowledge-Base%2FLinux-Kernel%2Fta-p%2F1106932%23toc-hId--56162154%22%20target%3D%22_blank%22%3EBuilding%20Outside%20LTIB%20%3C%2FA%3E%3C%2FLI%3E%3CLI%20style%3D%22list-style-type%3Adisc%3B%20margin-left%3A50px%3B%20margin-bottom%3A1px%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fi-MX-Processors-Knowledge-Base%2FLinux-Kernel%2Fta-p%2F1106932%23toc-hId--1173055143%22%20target%3D%22_blank%22%3EDownloading%20and%20installing%20GNU%20Toolchain%20and%20git%20%3C%2FA%3E%3C%2FLI%3E%3CLI%20style%3D%22list-style-type%3Adisc%3B%20margin-left%3A50px%3B%20margin-bottom%3A1px%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fi-MX-Processors-Knowledge-Base%2FLinux-Kernel%2Fta-p%2F1106932%23toc-hId-1314457690%22%20target%3D%22_blank%22%3EBuilding%20Kernel%20from%20Freescale%20git%20repository%3C%2FA%3E%3C%2FLI%3E%3CLI%20style%3D%22list-style-type%3Adisc%3B%20margin-left%3A50px%3B%20margin-bottom%3A1px%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fi-MX-Processors-Knowledge-Base%2FLinux-Kernel%2Fta-p%2F1106932%23toc-hId-1994516060%22%20target%3D%22_blank%22%3EBuilding%20Kernel%20Mainline%3C%2FA%3E%3C%2FLI%3E%3CLI%20style%3D%22list-style-type%3Adisc%3B%20margin-left%3A25px%3B%20margin-bottom%3A1px%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fi-MX-Processors-Knowledge-Base%2FLinux-Kernel%2Fta-p%2F1106932%23toc-hId-1850328232%22%20target%3D%22_blank%22%3EAbout%20Linux%3C%2FA%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3C%2FP%3E%3CH2%20id%3D%22toc-hId--736220524%22%20id%3D%22toc-hId--736220524%22%20id%3D%22toc-hId-180804023%22%3E%3CSPAN%20class%3D%22mw-headline%22%3EBuilding%20Using%20LTIB%20%3C%2FSPAN%3E%3C%2FH2%3E%3CP%3ELinux%20kernel%20can%20be%20easily%20built%20using%20Ltib.%20On%20Ltib%20menu%2C%20just%20select%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%5B*%5D%20Configure%20the%20Kernel%20%3C%2FPRE%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Ltib_kernel1.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Ltib_kernel1.png%22%20style%3D%22width%3A%20757px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F37825i070FCB25BBE99E17%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Ltib_kernel1.png%22%20alt%3D%22Ltib_kernel1.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EWhen%20you%20exit%20this%20menu%2C%20Ltib%20will%20show%20the%20Kernel%20Menuconfig%20as%20below%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Ltib_kernel2.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Ltib_kernel2.png%22%20style%3D%22width%3A%20757px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F38898i64E3B69B4B4C50D6%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Ltib_kernel2.png%22%20alt%3D%22Ltib_kernel2.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThis%20is%20the%20Kernel%20Menuconfig%2C%20where%20it's%20possible%20to%20configure%20kernel%20options%20and%20drivers.%3C%2FP%3E%3CP%3EAfter%20exit%20this%20menu%2C%20kernel%20will%20be%20built%20and%20stored%20at%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%3CLTIB%20directory%3D%22%22%3E%2Frootfs%2Fboot%20%3C%2FLTIB%3E%3C%2FPRE%3E%3CH2%20id%3D%22toc-hId-1751292309%22%20id%3D%22toc-hId-1751292309%22%20id%3D%22toc-hId--1626650440%22%3E%3CSPAN%20class%3D%22mw-headline%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FH2%3E%3CH2%20id%3D%22toc-hId--56162154%22%20id%3D%22toc-hId--56162154%22%20id%3D%22toc-hId-860862393%22%3E%3CSPAN%20class%3D%22mw-headline%22%3EBuilding%20Outside%20LTIB%20%3C%2FSPAN%3E%3C%2FH2%3E%3CH3%20id%3D%22toc-hId-634399320%22%20id%3D%22toc-hId-634399320%22%20id%3D%22toc-hId-1551423867%22%3E%3C%2FH3%3E%3CH3%20id%3D%22toc-hId--1173055143%22%20id%3D%22toc-hId--1173055143%22%20id%3D%22toc-hId--256030596%22%3E%3CSPAN%20class%3D%22mw-headline%22%3EDownloading%20and%20installing%20GNU%20Toolchain%20and%20git%20%3C%2FSPAN%3E%3C%2FH3%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CDIV%20style%3D%22background-color%3A%20%23ddffdd%3B%20padding-left%3A%2030px%3B%20width%3A%2060%25%3B%20margin-left%3A%2020%25%3B%22%3E%3CP%20class%3D%22tip%22%3EWhen%20you%20install%20LTIB%2C%20a%20GNU%20toolchain%20is%20automatically%20installed%20on%20%2Fopt%2Ffreescale%2Fusr%2Flocal%2F%3C%2FP%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CDIV%20style%3D%22background-color%3A%20%23ffdddd%3B%20padding-left%3A%2030px%3B%20width%3A%2060%25%3B%20margin-left%3A%2020%25%3B%22%3E%3CP%20class%3D%22warning%22%3EKernel%20releases%20newer%20than%202.6.34%20doesn't%20build%20on%20Toolchain%204.1.2%2C%20only%20on%204.4.1%20or%20later%3C%2FP%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ECheck%20on%20your%20host%20at%20%2Fopt%2Ffreescale%2Fusr%2Flocal%2F%20the%20current%20installed%20Toolchain.%3C%2FP%3E%3CP%3ENext%20%3CA%20href%3D%22http%3A%2F%2Fwww.imxdev.org%2Fwiki%2Findex.php%3Ftitle%3DLinux_Kernel%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20style%3D%22text-decoration%3A%20underline%3B%22%20title%3D%22Powered%20by%20Text-Enhance%22%20target%3D%22_blank%22%3Estep%3C%2FA%3E%20is%20to%20install%20GIT%20on%20host.%20For%20Ubuntu%20machines%2C%20use%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Esudo%20apt-get%20install%20git-core%20%3C%2FPRE%3E%3CP%3E%3C%2FP%3E%3CH3%20id%3D%22toc-hId-1314457690%22%20id%3D%22toc-hId-1314457690%22%20id%3D%22toc-hId--2063485059%22%3E%3CSPAN%20class%3D%22mw-headline%22%3EBuilding%20Kernel%20from%20Freescale%20git%20repository%3C%2FSPAN%3E%3C%2FH3%3E%3CP%3EFreescale%20provides%20access%20to%20their%20own%20git%20kernel%20repository%20and%20can%20be%20viewed%20at%3A%20%3CA%20href%3D%22http%3A%2F%2Fgit.freescale.com%2Fgit%2F%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20title%3D%22http%3A%2F%2Fgit.freescale.com%2Fgit%2F%22%20target%3D%22_blank%22%3EFreescale%20Public%20GIT%3C%2FA%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ETo%20download%20the%20kernel%20source%20code%2C%20create%20a%20new%20folder%20and%20use%20the%20command%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%0A%3CP%3Egit%20clone%20%3CSPAN%20style%3D%22font-family%3A%20'Lucida%20Grande'%2C%20Arial%2C%20Helvetica%2C%20sans-serif%3B%20background-color%3A%20%23ffffff%3B%22%3Egit%3A%2F%2Fgit.freescale.com%2Fimx%2Flinux-2.6-imx.git%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3C%2FP%3E%0A%3CP%3EOR%3C%2FP%3E%0A%3CP%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Egit%20clone%20%3C%2FSPAN%3E%3CA%20class%3D%22jive-link-external-small%22%20href%3D%22http%3A%2F%2Fgit.freescale.com%2Fgit%2Fcgit.cgi%2Fimx%2Flinux-2.6-imx.git%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttp%3A%2F%2Fgit.freescale.com%2Fgit%2Fcgit.cgi%2Fimx%2Flinux-2.6-imx.git%3C%2FA%3E%3C%2FP%3E%0A%0A%0A%3C%2FPRE%3E%3CP%3EAfter%20some%20minutes%2C%20a%20folder%20called%20linux-2.6-imx%20will%20be%20created%20containing%20the%20Linux%20kernel%3C%2FP%3E%3CP%3ECreate%20a%20local%20git%20branch%20from%20a%20remote%20branch%20you%20want%20to%20use.%20Let's%20use%20branch%20origin%2Fimx_3.0.15%20as%20example%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Ecd%20linux-2.6-imx%20%0Agit%20checkout%20-b%20localbranch%20origin%2Fimx_3.0.15%0A%3C%2FPRE%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CDIV%20style%3D%22background-color%3A%20%23ddffdd%3B%20padding-left%3A%2030px%3B%20width%3A%2060%25%3B%20margin-left%3A%2020%25%3B%22%3E%3CP%20class%3D%22tip%22%3ETo%20check%20all%20available%20remote%20branches%2C%20use%3A%20git%20branch%20-r%3C%2FP%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EExport%20the%20cross%20compiler%2C%20architecture%20and%20the%20toolchain%20path%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Eexport%20ARCH%3Darm%20%0Aexport%20CROSS_COMPILE%3Darm-none-linux-gnueabi-%0A%3C%2FPRE%3E%3CP%3E%3CSTRONG%3EIf%20using%20Toolchain%204.1.2%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Eexport%20PATH%3D%22%24PATH%3A%2Fopt%2Ffreescale%2Fusr%2Flocal%2Fgcc-4.1.2-glibc-2.5-nptl-3%2Farm-none-linux-gnueabi%2Fbin%2F%22%20%3C%2FPRE%3E%3CP%3E%3CSTRONG%3EOR%20If%20using%20Toolchain%204.4.4%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Eexport%20PATH%3D%22%24PATH%3A%2Fopt%2Ffreescale%2Fusr%2Flocal%2Fgcc-4.4.4-glibc-2.11.1-multilib-1.0%2Farm-fsl-linux-gnueabi%2Fbin%2F%22%20%3C%2FPRE%3E%3CP%3ECopy%20the%20config%20file%20for%20the%20wanted%20platform%20on%20linux%20folder%20as%20example%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Ecp%20arch%2Farm%2Fconfigs%2Fimx6_defconfig%20.config%20%3C%2FPRE%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CDIV%20style%3D%22background-color%3A%20%23eeeeff%3B%20padding-left%3A%2030px%3B%20width%3A%2060%25%3B%20margin-left%3A%2020%25%3B%22%3E%3CP%20class%3D%22note%22%3EAll%20platform%20config%20files%20are%20located%20at%20%3CLINUX%20directory%3D%22%22%3E%2Farch%2Farm%2Fconfigs%2F%3C%2FLINUX%3E%3C%2FP%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ECall%20menuconfig%20and%20change%20configuration%20(if%20needed)%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Emake%20menuconfig%20%3C%2FPRE%3E%3CP%3ENow%20it's%20ready%20to%20be%20built%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Emake%20uImage%3C%2FPRE%3E%3CP%3EThe%20zImage%20and%20uImage%20will%20be%20located%20at%20%2Farch%2Farm%2Fboot%2F%20folder.%3C%2FP%3E%3CH3%20id%3D%22toc-hId--492996773%22%20id%3D%22toc-hId--492996773%22%20id%3D%22toc-hId-424027774%22%3E%3CSPAN%20class%3D%22mw-headline%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FH3%3E%3CH3%20id%3D%22toc-hId-1994516060%22%20id%3D%22toc-hId-1994516060%22%20id%3D%22toc-hId--1383426689%22%3E%3CSPAN%20class%3D%22mw-headline%22%3EBuilding%20Kernel%20Mainline%3C%2FSPAN%3E%3C%2FH3%3E%3CH3%20id%3D%22toc-hId--508101882%22%20id%3D%22toc-hId--508101882%22%20id%3D%22toc-hId-408922665%22%3E%3CSPAN%20class%3D%22mw-headline%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FH3%3E%3CP%3EMainline%20Kernel%20can%20be%20viewed%20on%20this%20link%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgit.kernel.org%2Fcgit%2Flinux%2Fkernel%2Fgit%2Fstable%2Flinux-stable.git%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20title%3D%22https%3A%2F%2Fgit.kernel.org%2Fcgit%2Flinux%2Fkernel%2Fgit%2Fstable%2Flinux-stable.git%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fgit.kernel.org%2Fcgit%2Flinux%2Fkernel%2Fgit%2Fstable%2Flinux-stable.git%3C%2FA%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ETo%20download%20the%20kernel%20source%20code%2C%20create%20a%20new%20folder%20and%20use%20the%20command%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%0A%3CP%3Egit%20clone%20%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%20line-height%3A%201.5em%3B%22%3Egit%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Fstable%2Flinux-stable.git%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EOR%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Egit%20clone%20%3C%2FSPAN%3E%3CA%20class%3D%22jive-link-external-small%22%20href%3D%22http%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Fstable%2Flinux-stable.git%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttp%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Fstable%2Flinux-stable.git%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EOR%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Egit%20clone%20%3C%2FSPAN%3E%3CA%20class%3D%22jive-link-external-small%22%20href%3D%22https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Fstable%2Flinux-stable.git%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Fstable%2Flinux-stable.git%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3C%2FP%3E%0A%0A%0A%3C%2FPRE%3E%3CP%3EAfter%20some%20minutes%2C%20a%20folder%20called%20linux%20will%20be%20created%20containing%20the%20Linux%20kernel%3C%2FP%3E%3CP%3ECreate%20a%20local%20git%20branch%20from%20a%20remote%20branch%20you%20want%20to%20use.%20Let's%20use%20branch%20origin%2Flinux-3.8.y%20as%20example%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Ecd%20linux%0Agit%20checkout%20-b%20localbranch%20origin%2Flinux-3.8.y%0A%3C%2FPRE%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CDIV%20style%3D%22background-color%3A%20%23ddffdd%3B%20padding-left%3A%2030px%3B%20width%3A%2060%25%3B%20margin-left%3A%2020%25%3B%22%3E%3CP%20class%3D%22tip%22%3ETo%20check%20all%20available%20remote%20branches%2C%20use%3A%20git%20branch%20-r%3C%2FP%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EExport%20the%20cross%20compiler%2C%20architecture%20and%20the%20toolchain%20path%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Eexport%20ARCH%3Darm%20export%20CROSS_COMPILE%3Darm-none-linux-gnueabi-%20%3C%2FPRE%3E%3CP%3EIf%20using%20Toolchain%204.4.4%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Eexport%20PATH%3D%22%24PATH%3A%2Fopt%2Ffreescale%2Fusr%2Flocal%2Fgcc-4.4.4-glibc-2.11.1-multilib-1.0%2Farm-fsl-linux-gnueabi%2Fbin%2F%22%20%3C%2FPRE%3E%3CP%3EConfigure%20to%20the%20platform%20you%20want%20to%20build%20kernel.%20For%20i.MX%20family%2C%20use%20imx_v6_v7_defconfig%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Emake%20imx_v6_v7_defconfig%3C%2FPRE%3E%3CP%3E%3C%2FP%3E%3CDIV%20style%3D%22background-color%3A%20%23eeeeff%3B%20padding-left%3A%2030px%3B%20width%3A%2060%25%3B%20margin-left%3A%2020%25%3B%22%3E%3CP%20class%3D%22note%22%3EAll%20platform%20config%20files%20are%20located%20at%20%3CLINUX%20directory%3D%22%22%3E%2Farch%2Farm%2Fconfigs%2F%3C%2FLINUX%3E%3C%2FP%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ECall%20menuconfig%20and%20change%20configuration%20%3CSTRONG%3E(only%20if%20needed%2C%20this%20is%20an%20optional%20step!)%3C%2FSTRONG%3E%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Emake%20menuconfig%20%3C%2FPRE%3E%3CP%3ENow%20it's%20ready%20to%20be%20built%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Emake%20-j4%20uImage%20LOADADDR%3D0x70008000%3C%2FPRE%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CDIV%20style%3D%22background-color%3A%20%23eeeeff%3B%20padding-left%3A%2030px%3B%20width%3A%2060%25%3B%20margin-left%3A%2020%25%3B%22%3E%3CP%20class%3D%22note%22%3E-%20Use%20%3CSTRONG%3E-j4%3C%2FSTRONG%3E%20option%20to%20speed%20up%20your%20build%20in%20case%20or%20PC%20has%204%20cores.%20It's%20optional.%3C%2FP%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%3CDIV%20style%3D%22background-color%3A%20%23eeeeff%3B%20padding-left%3A%2030px%3B%20width%3A%2060%25%3B%20margin-left%3A%2020%25%3B%22%3E%3CP%20class%3D%22note%22%3E-%20%3CSTRONG%3EIMPORTANT%3A%3C%2FSTRONG%3E%20Use%20the%20correct%20address%20for%20each%20processor.%20You%20can%20check%20the%20correct%20address%20value%20at%20%3CSTRONG%3Elinux%2Farch%2Farm%2Fmach-imx%2FMakefile.boot%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%3CP%3EAfter%20build%20the%20uImage%2C%20build%20the%20dtb%20file%20(device%20tree%20binary).%20For%20i.MX53%20QSB%20use%3A%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Emake%20imx53-qsb.dtb%3C%2FPRE%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%20font-family%3A%20Helvetica%2C%20Arial%2C%20sans-serif%3B%20font-size%3A%2013.333333969116211px%3B%20background-color%3A%20%23ffffff%3B%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%20font-family%3A%20Helvetica%2C%20Arial%2C%20sans-serif%3B%20font-size%3A%2013.333333969116211px%3B%20background-color%3A%20%23ffffff%3B%22%3EThe%20uImage%20will%20be%20located%20at%3A%20%3CSTRONG%3Elinux%2Farch%2Farm%2Fboot%2F%20folder%3C%2FSTRONG%3E%20and%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%20font-family%3A%20Helvetica%2C%20Arial%2C%20sans-serif%3B%20font-size%3A%2013.333333969116211px%3B%20background-color%3A%20%23ffffff%3B%22%3Edtb%20binary%20will%20be%20located%20at%3A%20%3CSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%20font-family%3A%20Helvetica%2C%20Arial%2C%20sans-serif%3B%20background-color%3A%20%23ffffff%3B%22%3Elinux%2Farch%2Farm%2Fboot%2F%3C%2FSPAN%3Edts%3C%2FSTRONG%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22mce_paste_marker%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CH2%20id%3D%22toc-hId-1850328232%22%20id%3D%22toc-hId-1850328232%22%20id%3D%22toc-hId--1527614517%22%3E%3CSPAN%20class%3D%22mce_paste_marker%22%3EAbout%20Linux%3C%2FSPAN%3E%3C%2FH2%3E%3CP%3E%3CSPAN%20class%3D%22mce_paste_marker%22%3EFor%20general%20Linux%20information%2C%20see%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fdocs%2FDOC-1229%22%20target%3D%22_blank%22%3EAbout%20Linux%3C%2FA%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎09-10-2020 02:01 AM
Updated by: