Home > Uncategorized > Compiling Kernel for i.MX6 Sabre Lite

Compiling Kernel for i.MX6 Sabre Lite

November 6th, 2012

Here are the steps for Compiling Kernel for freescale i.MX6 for the Sabre Lite Board

1. Grab the latest kernel source from git

git clone git://github.com/boundarydevices/linux-imx6.git

Checkout your branch such as

git checkout origin/boundary-imx-3.0.35_1.1.0 -b boundary-imx-3.0.35_1.1.0

or may be for the android 13.4 ga

git checkout origin/boundary-imx-android-r13.4-ga -b boundary-imx-android-r13.4-ga

You should have compile chain for ARM. Following sets of commands should compile Linux Kernel

export ARCH=arm
export CROSS_COMPILE=/usr/bin/arm-linux-gnueabi-

// Use which arm-linux-gnueabi-cpp to find the path

Make the configuration file

make ARCH=arm nitrogen6x_defconfig

make ARCH=arm uImage module

At this point we compiled and got the final error

mkimage" command not found - U-Boot images will not be built
make[1]: *** [arch/arm/boot/uImage] Error 1
make: *** [uImage] Error 2

To overcome this

We did

sudo apt-get install uboot-mkimage

and again

make ARCH=arm uImage module

And it compiled. The output is in



  1. Art
    April 22nd, 2013 at 14:11 | #1


    There is no imx6_android_defconfig in arch/x86/configs 🙁
    This folder contains i386_defconfig and x86_64_defconfig only

    Any ideas?

  2. Art
    April 23rd, 2013 at 13:05 | #2

    export ARCH=arm
    Just cannot follow the instructions, sorry...

  3. admin
    April 25th, 2013 at 07:15 | #3


    Looks like you need to give command like

    make ARCH=arm imx6_android_defconfig

    in place of

    make imx6_android_defconfig

  4. Corvin
    December 26th, 2014 at 07:02 | #4


    Just compiled the latest 3.10.17 kernel branch: boundary-imx_3.10.17_1.0.2_ga natively on Sabre-Lite board following steps in this post (ommiting ARCH= ). This is very nice short and straight forward tutorial which just worked for me. Thank you!

  5. Hafsa Jamal
    August 27th, 2018 at 23:37 | #5

    I got following errors while running command make ARCH=arm uImage module

    $ make ARCH=arm uImage module
    'make: /usr/bin/arm-linux-gnueabi-gcc: Command not found
    scripts/kconfig/conf --silentoldconfig Kconfig
    make: /usr/bin/arm-linux-gnueabi-gcc: Command not found
    CHK include/linux/version.h
    CHK include/generated/utsrelease.h
    UPD include/generated/utsrelease.h
    make[1]: 'include/generated/mach-types.h' is up to date.
    CC kernel/bounds.s
    /bin/sh: /usr/bin/arm-linux-gnueabi-gcc: No such file or directory
    make[1]: *** [/home/hjamal/linux_kernel/linux-imx6/./Kbuild:36: kernel/bounds.s] Error 127
    make: *** [Makefile:985: prepare0] Error 2

  1. No trackbacks yet.