EMB-2237-AI: xwayland-image-with-Qt5

From Estone Technology Wiki
Jump to: navigation, search

Compile Individual Image Parts

SDK

Download SDK here: https://www.dropbox.com/s/7bqdtirznw0rupx/fsl-imx-xwayland-glibc-x86_64-meta-toolchain-qt5-aarch64-toolchain-4.14-sumo.sh

or

Compile SDK: SDK From Source


Compile ROOTFS

Note: Start at the directory where SDK was created from last section

$ cd <emb-2237-ai>
$ cd rootfs
$ DISTRO=fsl-imx-xwayland MACHINE=imx8mmevk source fsl-setup-release.sh -b <build>
$ bitbake fsl-image-qt5-validation-imx

- After a build has succesfully completed, the created image resides at: <emb-2237-ai>/<build>/tmp/deploy/images/imx8mmevk/

Note: Copy created rootfs to project root directory <emb-2237-ai>

$ sudo cp -rv /tmp/deploy/images/imx8mmevk/*-rootfs.tar.bz2 ../../
$ cd ../../

Compile KERNEL

$ git clone -b imx_4.14.98_2.0.0_ga https://github.com/estonetechnology/linux-imx-emb-2238.git
Username for https://github.com: xxxxxxxxx@xxxxxxxx.com Password for xxxxxxxxx@xxxxxxxxx.com: password
$ mv -v linux-imx-emb-2238 linux-imx $ cd linux-imx $ chmod a+rwx -R ../linux-imx $ git checkout imx_4.14.98_2.0.0_ga $ git pull $ source /opt/fsl-imx-wayland/4.14-sumo/environment-setup-aarch64-poky-linux $ export ARCH=arm64 $ export CROSS_COMPILE=aarch64-poky-linux- $ unset LDFLAGS $ make iob2407_defconfig $ make -j8 $ cd ..

Note: From linux-imx root directory copy Image & est-imx8mm-iob2407.dtb files to project root directory <emb-2237-ai>

$ sudo cp -rv arch/arm64/boot/Image ../
$ sudo cp -rv arch/arm64/boot/dts/freescale/est-imx8mm-iob2407.dtb ../

Compile U-BOOT

$ git clone -b imx_v2018.03_4.14.98_2.0.0_ga https://github.com/estonetechnology/uboot-imx-emb-2238.git
Username for https://github.com: xxxxxxxxx@xxxxxxxx.com Password for xxxxxxxxx@xxxxxxxxx.com: password
$ git checkout imx_v2018.03_4.14.98_2.0.0_ga $ chmod a+rwx -R uboot-imx-emb-2238/ $ mv -v uboot-imx-emb-2238/ uboot-imx $ cd uboot-imx $ git pull $ source /opt/fsl-imx-wayland/4.14-sumo/environment-setup-aarch64-poky-linux $ export ARCH=arm64 $ export CROSS_COMPILE=aarch64-poky-linux- $ unset LDFLAGS $ make imx8mm_som2237_defconfig $ make -j8 $ cd ..


IMX-MKIMAGE

$ git clone https://github.com/estonetechnology/imx-mkimage.git
$ chmod a+rwx -R imx-mkimage/
$ cd imx-mkimage/
$ git checkout rel_imx_4.14.98_2.0.0_ga
$ git pull

Make flash.bin for U-Boot

$ cd emb-2237-ai/imx-mkimage/
$ ./make_evk.sh

Note: From the imx-mkimage/ directory copy the flash.bin file to the root directory <emb-2237-ai>

$ sudo cp -rv iMX8M/flash.bin ../


- Complete image (uboot,kernel,rootfs) should be located in the project root directory <emb-2237-ai>