Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

Linux Kernel 3.14.28.y

1,937 bytes added, 10:30, 21 November 2016
m
Compiler
 
= Compiler =
 
We recommend to use IGEP i.MX6 Yocto Fido SDK to compile i.MX6 kernels
 
'''Download'''
 
[http://downloads.isee.biz/pub/releases/sdk/poky-glibc-x86_64-isee-fsl-image-dev-cortexa9hf-vfp-neon-toolchain-1.8.sh IGEP i.MX6 Yocto Fido SDK ]
 
'''Install''' sdk
 
<pre> sh poky-glibc-x86_64-isee-fsl-image-dev-cortexa9hf-vfp-neon-toolchain-1.8.sh</pre>
 
Install target into default directory (/opt/poky/1.8)
 
= Build kernel from sources =
'''Download''' the latest stable version sources and follow next steps:
For clone linux-imx/ <pre>git clone git://git.isee.biz/pub/scm/linux-imx.gitcd linux-imxgit 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  <pre> make ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- imx6_igep0046_defconfig</pre> 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:  <pre> make ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- zImage modules dtbs</pre>
<pre>git clone git://git.isee.biz/pub/scm/linux-imx.git</pre>You can '''install''' the kernel modules to your target rootfs
Change tree <pre> sudo make ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- INSTALL_MOD_PATH=[path toyour target rootfs] modules_install</pre>
<pre>git checkout remotes/origin/isee-imx_3.14.28.y-next.local</pre>You can '''install''' the zImage to boot partition :
<pre> cp arch/arm/boot/zImage [path to your target boot]</pre>
You can '''Configureinstall''' Linux kernel for the IGEP devicesSMARC i.MX6 DTBs to boot partition. IGEP is ARM architecture based deviceYou can choose the dtb you need to your machine: <pre> cp arch/arm/boot/dts/imx6q-igep-base0040*. A generic configuration is provided for all IGEP machines, dtb [path to your target boot]</pre> = TI Wilink8 Backports = Once you install kernel and module binaries in your rootfs You can be used as the default by download and compile WIFI and Bluetooth modules and applications: Install dependencies: <pre> sudo apt-get install lib32z1 </pre> Download WIFI build-utilities: <pre> git clone git://git.isee.biz/pub/scm/wilink8-wlan/build-utilites.git </pre> Mount your SD card or rootfs and configure setup-env: <pre>cd build-utilites/ </pre> <pre>cp setup-env.sample setup-env </pre> Add SD or rootfs patch into ROOTFS environment variables and add linux-imx kernel source path into KERNEL_PATH variable Download sources: <pre>./build_wl18xx.sh init</pre>
make ARCH=arm CROSS_COMPILE=[your cross compiler] imx6-igep0046_defconfigCompile sources and install binaries:
Then '''build''' the kernel, the kernel modules and the device tree files<pre>. The result will be an ''zImage'' file in arch/armsudo_build_wl18xx.sh update R8.6_SP1 </boot directory. Execute: pre>
make ARCH=arm CROSS_COMPILE=[your cross compiler] zImage modules dtbsDuring process appear the following error:
<brpre> You can '''install''' the kernel ERROR [PATH ROOTFS]/lib/modules to your target rootfs /3.14.28-1.0.0_ga+yocto+g34048c3/updates/drivers/net/wireless/ti/wl18xx/wl18xx.ko Not found ! </pre>
make ARCH=arm CROSS_COMPILE=[wl18xx.ko is correctly installed. So don't take care of it. Now, your cross compiler] INSTALL_MOD_PATH=[path to your target rootfs] modules_installkernel has Wilink 8 support added
[[Category:Linux_Kernel]]
4,199
edits