Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

Linux Kernel 4.9.y

1,419 bytes added, 12:31, 8 May 2018
Compile the Linux Kernel
| style="width: 566px;"|<span style="color: #000000;"><code class="java plain">make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am335x_igep0034_defconfig</code></span>
|}
Once the default configuration has been loaded, it is time to compile the Linux Kernel. There are three important elements to compile:
* '''Image: '''The kernel image. There are three several formats. Generally we will use the '''zImage''': a compressed version of the Linux kernel image that is self-extracting.
* '''DTBs: '''Device tree binary, a low level device description, specific to your device.
* '''Modules: '''Kernel Modules, pieces of code that can be loaded and unloaded into the kernel upon demand. They extend the functionality of the kernel without the need to reboot the system. 
In order to compile this three elements we have to type:
 
<span style="color: #000000;"><code class="java plain">make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImages dtbs modules</code></span>
 
Finally we will find the resulting compiled Kernel in the '''''arch/arm/boot''''' folder:
 
* zImage: located in '''arch/arm/boot/zImage'''
* DTB: located in '''arch/arm/boot/dts/<your_dts> '''
 
Finally, the last step is to install the modules inside the desired rootfs. It can be done by typing:
 
sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=<path_to_the_root_of_the_rootfs> modules_install
For example, if the rootfs is located in a external storage device mounted on the /media folder:
 
sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=/media/rootfs/ modules_install
Para dar soporte a una nueva board basada en imx en el kernel es necesario tener un fichero de configuracion defconfig (.config) y&nbsp; una dtb.
</div>
</div>
 
=<span id="Setup_IGEP_SDK_Yocto_Toolchain_1.2.2-3" class="mw-headline">Setup IGEP SDK</span><span id="Setup_IGEP_SDK_Yocto_Toolchain_1.2.2-3" class="mw-headline" style="color: #808080;"> Yocto Toolchain 1.2.2-3</span>=
==<span id="Install" class="mw-headline">Install</span>==
59
edits