AnsweredAssumed Answered

How to build Linux 3.10.17 for iMX6?

Question asked by JASON JIANG on Feb 21, 2014
Latest reply on Apr 13, 2014 by Yixing Kong



There should be three things I need to build: rootfs, kernel, and uboot.

I downloaded kernel from here: linux-2.6-imx.git - Freescale i.MX Linux Tree, and uboot from here: uboot-imx.git - Freescale i.MX u-boot Tree. But I couldn't find where to download rootfs. Could somebody help?


With the cross-compiler installed previously, I built kernel by doing this under the root folder:

  1. exportPATH=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/:$PATH
  2. export ARCH=arm
  3. export CROSS_COMPILE=arm-none-linux-gnueabi-
  4. make imx_v7_defconfig
  5. sudo apt-get install lzop (need to install zlop)
  6. make uImage LOADADDR=0x70008000 (need to specify load address to avoid build error)

The output file uImage was put under ./arch/arm/boot.


I then tried to build uboot. The first three steps are the same as above. But at step 4, I couldn't find a config file in the whole uboot tree. Can somebody tell me how to build?


I used this as reference: Linux booting on IMX6 SABRESDB. I tried to follow Ed's notes, but when building uboot, I also couldn't find the config file.


Thanks a lot.