Build Kernel From Source for colibri imx6

I want to explain all I have done so far step by step:

1-) download latest image in here

image version :Colibri_iMX6_LinuxImageV2.5Beta3_20151215.tar.bz2

2-) Run the update.sh script with -o argument pointing to the mount point of above mentioned card.

3-)Plug sd cart on my iris board than update my image .
[upload|plroJ4Vxm8MYJva/Zhiu8KcPSXk=]

4-) download kernel source file with this commands

git clone -b toradex_imx_3.14.28_1.0.0_ga git://git.toradex.com/linux-toradex.git

5-) download gcc-linaro file with this commands

wget http://releases.linaro.org/14.11/components/toolchain/binaries/arm-linux-gnueabihf/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf.tar.xz

tar xvf gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf.tar.xz

ln -s gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf gcc-linaro

6-) Create export_compiler file with this command

echo "export ARCH=arm" >> ~/export_compiler

echo "export PATH=~/gcc-linaro/bin/:$PATH" >> ~/export_compiler

echo "export CROSS_COMPILE=arm-linux-gnueabihf-" >> ~/export_compiler

than run this command source ~/export_compiler

7-)install device tree compiler with this command

apt-get install device-tree-compiler

than run this command for take a version information dtc -v now ı can take version : Version: DTC 1.4.0

8-)Now ı want to add

CONFIG_USB_SERIAL_CP210X=y

CONFIG_PPPOE=y
this two line on the colibri_imx6_defconfig so going the this path

cd linux-toradex/arch/arm/configs/

and found colibri_imx6_defconfig file and add this two line.

9-) Now I need to recompile this kernel files. run this command and go to main file of kernel files

cd linux-toradex

10-) than run this command :

make colibri_imx6_defconfig

and take this screen shot:
[upload|bou7sD8NkIX57o/ZebkeyUBRgtM=]

11-)Than run this command for compile the kernel & device tree:

make -j3 uImage LOADADDR=10008000 2>&1 | tee build.log

output of command in here :

[upload|hjvKKuvgZvNmo6iKvuHP9I9qfPQ=]

I take 2 errors in this step.

12-) Run this command successfully :

make imx6dl-colibri-eval-v3.dtb

13-)Now compile kernel modules successfuly at this command:

make -j3 modules

14-)deployed kernel modules at this command:

sudo -E make ../Desktop/Colibri_iMX6_LinuxImageV2.5/rootfs/modules_install

but ı take an error on this step.
[upload|HMl2EcYX/Dr4/etIkgrFB/nvuVE=]

how can ı fix step 11 and 14 errors ?

  • Issue at step 11 is the missing lzop package on your developement PC, installing the package should solve that issue.

  • Issue at step 14, to install the recompiled kernel modules one need to provide INSTALL_MOD_PATH as mentioned here

thanx for your reply ı fix step 11 but ı cant fix step 14. can you explain me step 14 ?

I take a smilar error as above . ı can not progress step 14 .

Did you try the same as mentioned in the article?
In your previous snap shot i could see two issues, make is reporting that the toolchain is not found,
can you recheck your CROSS_COMPILE path.
During make modules_install one would provide the absolute path of the directory in which modules need to be installed with INSTALL_MOD_PATH variable.
e.g.

$ export ARCH=arm
$ export CROSS_COMPILE=
$ make colibri_imx6_defconfig
$ make uImage LOADADDR=10008000 modules -j3
$ sudo -E make INSTALL_MOE_PATH= modules_install
The target rootfs directory can be pointed to the prebuild image rootfs directory.
Once after installing the modules to rootfs dir prepare the SD card and copy the
recompiled kernel to SD card and flash the module.

I create tmp directory and run this command

make INSTALL_MOD_PATH=~/tmp modules_install 

this is work perfectly

thank you so much for your help …