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.52_1.1.0_ga-var01 remotes/origin/imx_3.14.52_1.1.0_ga-var01
Build the Linux kernel:
$ export PATH=/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 Build device tree for eMMC and Wi-Fi $ make -j6 ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- imx6ul-var-dart-emmc_wifi.dtb Build device tree for eMMC and SDCARD $ make -j6 ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- imx6ul-var-dart-sd_emmc.dtb Build device tree for NAND and Wi-Fi $ make -j6 ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- imx6ul-var-dart-nand_wifi.dtb Build device tree for NAND and SDCARD $ make -j6 ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- imx6ul-var-dart-sd_nand.dtb
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