Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

The Linux kernel

254 bytes added, 12:40, 9 March 2018
How to cross compile the linux kernel
In order to build the Linux Kernel for IGEP PROCESSOR BOARDS it's recommended to cross-compile the kernel, that's, build the kernel in your HOST machine for a target architecture.
To [[Ubuntu 16.04 LTS Toolchain|setup the cross-compiling ]] there are two fundamental variables that the kernel uses to select the target architecture. Normally these values are guessed based on your build environment, but of course that environment here does not match our target embedded system, so we'll need to override them. The variables in question are ARCH and CROSS_COMPILE.
The ARCH variable is the architecture you're targetting as the kernel knows it. For IGEP PROCESSOR BOARDS you'll set to "arm" architecture.
make ARCH=arm CROSS_COMPILE=[cross compiler] [defconfig]
make ARCH=arm CROSS_COMPILE=[cross compiler] zImage modules<br>Newest kernels with dtb support included should use this option for build all dabs:<br>make ARCH=arm CROSS_COMPILE=[cross compiler] zImage modules dtbs
The result will be a zImage file in arch/arm/boot directory. You can install the kernel modules to your target rootfs
make ARCH=arm CROSS_COMPILE=[cross compiler] modules_install INSTALL_MOD_PATH=[path to your target rootfs]
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs
=Stable kernels=