REL 1.0
Page 21 of 69
iWave Systems Technologies Pvt. Ltd.
iW-RainboW-G15D Linux User Manual
2.3.2
Linux kernel
Create a directory and open the directory in host to build the Linux.
host@host~$mkdir <directory_name>
host@host~$cd <directory_name>
The Linux kernel source code tar file from deliverables is located in the below path.
iW-RainboW-G15M-Q7-RX.X-RELX.X-Linux4.1.15-YoctoKrogoth_Deliverables/Source-
Code/Linux/Kernel/linux-iwg15.tar.gz
Un-tar the downloaded linux-iwg15.tar.gz file in to newly created directory.
host@host/<Directory>~$tar -xvf /<path_to_ iW-RainboW-G15M-Q7-RX.X-RELX.X-Linux4.1.15-
YoctoKrogoth_Deliverables>/
iW-RainboW-G15M-Q7-RX.X-RELX.X-Linux4.1.15-
YoctoKrogoth_Deliverables/Source-Code/Linux/Kernel/linux-iwg15.tar.gz
Copy the kernel patch file to current directory.
host@host/<Directory>~$cp
/<path_to_
iW-RainboW-G15M-Q7-RX.X-RELX.X-Linux4.1.15-
YoctoKrogoth_Deliverables>/
iW-RainboW-G15M-Q7-RX.X-RELX.X-Linux4.1.15-
YoctoKrogoth_Deliverables/Source-Code/Linux/Kernel/PATCH002-iW-PRDVZ-SC-01-RX.X-RELX.X-
Linux4.1.15_Kernel_basic_customization.patch .
Change the directory to Linux source code directory.
host@host/<Directory>~$cd <path_to_linux-iwg15>/linux-iwg15
To apply the patch file, execute the below command.
host@host/<Directory>/linux-iwg15~$patch -Np1 < ../PATCH002-iW-PRDVZ-SC-01-RX.X-RELX.X-
Linux4.1.15_Kernel_basic_customization.patch
Export the architecture, cross compiler and tool chain path.
host@host/<Directory>/linux-iwg15~$export ARCH=arm
host@host/<Directory>/linux-iwg15~$export
PATH=$PATH:/opt/fsl-imx-x11/4.1.15-
2.1.0/sysroots/<processor>-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
host@host/<Directory>/linux-iwg15~$export CROSS_COMPILE=arm-poky-linux-gnueabi-
To configure the kernel for iW-RainboW-G15M-Q7, execute the below command.
host@host/<Directory>/linux-iwg15~$make iw_rainbowg15m_q7_defconfig
To compile the kernel module drivers and kernel image, execute the below commands.
host@host/<Directory>/linux-iwg15~$make
After successful compilation, kernel image (zImage) and device tree (.dtb) will be created in the below path
respectively.
~/linux-iwg15/arch/arm/boot/zImage
~/linux-iwg15/arch/arm/boot/dts/imx6*-iwg15m-q7*.dtb
Refer the BINARY PROGRAMMING section to update the Linux kernel binary.