DART-6UL Yocto Fido R1 Build Linux out of tree

From Variscite Wiki
DART-6UL - Yocto fsl-3.14.38_6a Fido R1 Build Linux from source code

Toolchain installation for out of Yocto builds

Build the toolchain by:

$ bitbake meta-ide-support
$ bitbake meta-toolchain

The output will be located at tmp/deploy/sdk/. On a 64 bit Ubuntu you will get:

tmp/sdk/poky-glibc-x86_64-meta-toolchain-cortexa7hf-vfp-neon-toolchain-1.8.sh

Install the tools by running:

$ tmp/deploy/sdk/poky-glibc-x86_64-meta-toolchain-cortexa7hf-vfp-neon-toolchain-1.8.sh

Reply to all defaults 'y'
The toolchain name depend on your build machine and may change.

Build Linux out of Yocto tree

Get sources:

$ cd ~/var-dart-6ul-yocto-fido/
$ git clone https://github.com/varigit/linux-2.6-imx.git
$ cd linux-2.6-imx/
$ git checkout -b imx_3.14.38_6ul_ga_dart_var01 remotes/origin/imx_3.14.38_6ul_ga_dart_var01

Build the Linux kernel:

$ /opt/poky/1.8/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi:$PATH
$ make ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- mrproper
$ make ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- imx6ul-var-dart_defconfig
$ make -j6 ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- 
$ make -j6 ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- modules
Build all device tree:
$ make -j6 ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- dtbs

Copy the zImage and device tree to the sd-card boot partition or to the opt/image in order to be flashed to the nand. Copy modules to the sd-card

$ sudo make ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- modules_install INSTALL_MOD_PATH=/media/rootfs/
$ cp arch/arm/boot/zImage /media/BOT-DART6UL
$ cp arch/arm/boot/dts/*var*.dtb /media/BOT-DART6UL

Update your Linux out of Yocto tree

$ git fetch origin
$ git pull