4.14.98-fsl-imx-xwayland

From Estone Technology Wiki
Jump to: navigation, search

Compiling image fsl-imx-xwayland

fsl-imx-xwayland Kernel 4.14.98 (Sumo)

  • This build is dependent on the following items:

SDK
fsl-imx-xwayland-glibc-x86_64-meta-toolchain-qt5-aarch64-toolchain-4.14-sumo.sh

Compile ROOTFS

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

$ cd <imx-yocto-bsp>
$ DISTRO=fsl-imx-xwayland MACHINE=imx8mqevk source fsl-setup-release.sh -b <build>
$ bitbake fsl-image-qt5-validation-imx

After a build has succesfully completed, the created image resides at

<imx-yocto-bsp>/<build>/tmp/deploy/images/imx8mqevk/


Compile U-BOOT

$ mkdir <build_dir>
$ cd <build_dir>
$ mkdir <flashbin>
$ mkdir <boot>
$ git clone -b imx_v2018.03_4.14.98_2.0.0_ga-2g https://github.com/estonetechnology/uboot-imx-emb-2238.git
$ cd uboot-imx-emb-2238
$ git pull
$ source /opt/fsl-imx-xwayland/4.14-sumo/environment-setup-aarch64-poky-linux
$ export ARCH=arm64
$ export CROSS_COMPILE=aarch64-poky-linux-
$ unset LDFLAGS
$ make imx8mq_evk_defconfig
$ make
$ cp -v u-boot.bin u-boot-nodtb.bin ../flashbin/
$ cp -v spl/u-boot-spl.bin ../flashbin/
$ cp -v arch/arm/dts/fsl-imx8mq-evk.dtb ../flashbin/

Firmware

$ wget --no-check-certificate https://www.dropbox.com/s/2reof02j6ruzkkv/imx-mkimage-4.14.98.zip?dl=0
$ mv -v imx-mkimage-4.14.98.zip\?dl\=0 imx-mkimage-4.14.98.zip
$ unzip imx-mkimage-4.14.98.zip

Make flash.bin for U-Boot

$ cd <build_dir>
$ cp -v flashbin/* imx-mkimage/iMX8M/
$ chmod 777 -R imx-mkimage/
$ cd imx-mkimage
$ make SOC=iMX8M flash_hdmi_spl_uboot
$ cp -v iMX8M/flash.bin ../boot/

Files Location: flash.bin: imx-mkimage/iMX8M/flash.bin

Compile KERNEL

Note: You need to select MIPI display output or HDMI output

MIPI Output

$ cd <build_dir>
$ git clone -b imx_4.14.98_2.0.0_ga https://github.com/estonetechnology/linux-imx-emb-2238.git
$ cd linux-imx-emb-2238
$ source /opt/fsl-imx-xwayland/4.14-sumo/environment-setup-aarch64-poky-linux
$ export ARCH=arm64
$ export CROSS_COMPILE=aarch64-poky-linux-
$ unset LDFLAGS
$ make ppc-4710_defconfig
$ make
$ cp -v arch/arm64/boot/Image ../boot/
$ cp -v arch/arm64/boot/dts/freescale/imx8mq-ppc4710.dtb ../boot/
$ mv ../boot/imx8mq-ppc4710.dtb ../boot/fsl-imx8mq-evk.dtb

Files Location

  • Image: arch/arm64/boot/Image
  • imx8mq-ppc4710.dtb: arch/arm64/boot/dts/freescale/imx8mq-ppc4710.dtb

HDMI Output

$ cd <build_dir>
$ git clone -b imx_4.14.98_2.0.0_ga https://github.com/estonetechnology/linux-imx-emb-2238.git
$ cd linux-imx-emb-2238
$ source /opt/fsl-imx-xwayland/4.14-sumo/environment-setup-aarch64-poky-linux
$ export ARCH=arm64
$ export CROSS_COMPILE=aarch64-poky-linux-
$ unset LDFLAGS
$ make emb-2238_defconfig
$ make
$ cp -v arch/arm64/boot/Image ../boot/
$ cp -v arch/arm64/boot/dts/freescale/imx8mq-emb2238.dtb ../boot/
$ mv ../boot/imx8mq-emb2238.dtb ../boot/fsl-imx8mq-evk.dtb

Files Location

  • Image: arch/arm64/boot/Image
  • imx8mq-emb2238.dtb: arch/arm64/boot/dts/freescale/imx8mq-emb2238.dtb