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

From Variscite Wiki
Revision as of 12:53, 20 December 2015 by Ron (talk | contribs) (Created page with "= Build Linux out of Yocto tree = Get sources: <pre>$ cd ~/var-dart-6ul-yocto-fido/ $ git clone https://github.com/varigit/linux-2.6-imx.git $ cd linux-2.6-imx/ $ git checkou...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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:

$ export PATH=/opt/fsl-imx-release/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