ODROID/Hardkernel Linux kernel

From Linux Exynos
Revision as of 11:19, 21 March 2014 by Swabbles (Talk | contribs)

Jump to: navigation, search

Hardkernel has made their own fork of the Linux kernel for all of the ODROID devices, which we will use to build a working Linux kernel image. It may be possible that you have to check out a specific branch for your device, for instance, to check out the odroid-3.8.y branch, you can do the following:

   git clone --depth 1 https://github.com/hardkernel/linux.git -b odroid-3.8.y

After the kernel has been cloned, it has to be configured. The available configurations within a branch can be found in arch/arm/configs. For instance, if you want to build the Linux kernel for the ODROID-U2 using the odroid-3.8.y branch, you can run the following:

   CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- ARCH=arm make odroidu2_defconfig

If you want to modify the configuration, it can be found in .config, or you can run the following to interactively alter certain options:

   CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- ARCH=arm make menuconfig

Upon configuring the kernel, it is now possible to build the kernel image and the modules:

   CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- ARCH=arm make -j3 uImage modules