Difference between revisions of "Linux Kernel 3.14.28.y"

From IGEP - ISEE Wiki

Jump to: navigation, search
Line 1: Line 1:
 
= Compiler =
 
= Compiler =
  
 +
Download sdk
 +
 +
<pre>https://www.dropbox.com/sh/zu62y2qr1w8drxz/AADywAkHu98x9zzsFZRSBjwZa/imx6q/poky-glibc-x86_64-isee-image-dev-cortexa9hf-vfp-neon-toolchain-1.8.sh?dl=0</pre>
 +
 +
install sdk
 +
 +
<pre> sh poky-glibc-x86_64-isee-image-dev-cortexa9hf-vfp-neon-toolchain-1.8.sh</pre>
  
  
Line 13: Line 20:
 
git checkout remotes/origin/isee-imx_3.14.28.y-next -b isee-imx_3.14.28.y-next.local</pre>
 
git checkout remotes/origin/isee-imx_3.14.28.y-next -b isee-imx_3.14.28.y-next.local</pre>
  
 +
Export environment variables:
 +
<pre>source /opt/poky/1.8/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi</pre>
  
 
'''Configure''' Linux kernel for IGEP devices. IGEP is ARM architecture based device. A generic configuration is provided for all IGEP machines, and can be used as the default by  
 
'''Configure''' Linux kernel for IGEP devices. IGEP is ARM architecture based device. A generic configuration is provided for all IGEP machines, and can be used as the default by  
  
  make ARCH=arm CROSS_COMPILE=[your cross compiler] imx6_igep0046_defconfig
+
  make ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- imx6_igep0046_defconfig
  
 
Then '''build''' the kernel, the kernel modules and the device tree files. The result will be an ''zImage'' file in arch/arm/boot directory. Execute:  
 
Then '''build''' the kernel, the kernel modules and the device tree files. The result will be an ''zImage'' file in arch/arm/boot directory. Execute:  
  
  make ARCH=arm CROSS_COMPILE=[your cross compiler] zImage modules dtbs
+
  make ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- zImage modules dtbs
  
 
<br> You can '''install''' the kernel modules to your target rootfs  
 
<br> You can '''install''' the kernel modules to your target rootfs  
  
  make ARCH=arm CROSS_COMPILE=[your cross compiler] INSTALL_MOD_PATH=[path to your target rootfs] modules_install
+
  make ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- INSTALL_MOD_PATH=[path to your target rootfs] modules_install
  
 
[[Category:Linux_Kernel]]
 
[[Category:Linux_Kernel]]

Revision as of 13:26, 30 May 2016

Compiler

Download sdk

https://www.dropbox.com/sh/zu62y2qr1w8drxz/AADywAkHu98x9zzsFZRSBjwZa/imx6q/poky-glibc-x86_64-isee-image-dev-cortexa9hf-vfp-neon-toolchain-1.8.sh?dl=0

install sdk

 sh poky-glibc-x86_64-isee-image-dev-cortexa9hf-vfp-neon-toolchain-1.8.sh


Build kernel from sources

Download the latest stable version sources and follow next steps:

For clone linux-imx/

git clone git://git.isee.biz/pub/scm/linux-imx.git
cd linux-imx
git checkout remotes/origin/isee-imx_3.14.28.y-next -b isee-imx_3.14.28.y-next.local

Export environment variables:

source /opt/poky/1.8/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi

Configure Linux kernel for IGEP devices. IGEP is ARM architecture based device. A generic configuration is provided for all IGEP machines, and can be used as the default by

make ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- imx6_igep0046_defconfig

Then build the kernel, the kernel modules and the device tree files. The result will be an zImage file in arch/arm/boot directory. Execute:

make ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- zImage modules dtbs


You can install the kernel modules to your target rootfs

make ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- INSTALL_MOD_PATH=[path to your target rootfs] modules_install