交叉编译工具链请使用如下推荐版本:

gcc-linaro-arm-linux-gnueabihf-4.9-2014.08_linux

uboot-imx-rel_imx_4.1.15_2.0.0_ga

下载使用说明

$ wget http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/snapshot/uboot-imxrel\_imx\_4.1.15\_2.0.0\_ga.tar.bz2
$ tar xjvf ~/uboot-imxrel\_imx\_4.1.15\_2.0.0\_ga.tar.bz2

linux-imx-rel_imx_4.1.15_2.0.0_ga

下载使用说明:

$ wget http://git.freescale.com/git/cgit.cgi/imx/linux-imx.git/snapshot/linux-imx-rel_imx_4.1.15_2.0.0_ga.tar.bz2
$ tar xjvf ~/linux-imx-rel\_imx\_4.1.15\_2.0.0\_ga.tar.bz2

link-security-tee-pro-imx6ul-patch:

0001-uboot-add-tee-pro-support.patch
0001-linux-add-tee-pro-support.patch
说明 下载地址:TEE pro 试用版

Uboot patch

将0001-uboot-add-tee-pro-support.patch置于和uboot-imx-rel_imx_4.1.15_2.0.0_ga 同级目录下,运行命令:

$ patch -p1 < 0001-uboot-add-tee-pro-support.patch
$ cd uboot-imx-rel_imx_4.1.15_2.0.0_ga
$ export CROSS_COMPILE=arm-linux-gnueabihf-
$ make ARCH=arm mx6ul_14x14_evk_tee_defconfig
$ make ARCH=arm

编译生成文件:

uboot-imx-rel_imx_4.1.15_2.0.0_ga/u-boot.imx

Linux patch

将0001-linux-add-tee-pro-support.patch置于和linux-imx-rel_imx_4.1.15_2.0.0_ga 同级目录下,运行命令:

$ patch -p1 < 0001-linux-add-tee-pro-support.patch
$ cd linux-imx-rel_imx_4.1.15_2.0.0_ga
$ make ARCH=arm imx_v7_defconfig
$ make ARCH=arm zImage
$ make ARCH=arm imx6ul-14x14-evk.dtb

编译生成文件:

linux-imx-rel_imx_4.1.15_2.0.0_ga/arch/arm/boot/zImage
linux-imx-rel_imx_4.1.15_2.0.0_ga/arch/arm/boot/dts/imx6ul-14x14-evk.dtb

link-security-tee-pro-imx6qp-patch:

0001-uboot-add-tee-pro-support.patch
0002-uboot-add-6qp-tee-support.patch
0001-linux-add-tee-pro-support.patch
0002-linux-add-6qp-tee-support.patch

Uboot patch

将0001-uboot-add-tee-pro-support.patch,0002-uboot-add-6qp-tee-support.patch置于和 uboot-imx-rel_imx_4.1.15_2.0.0_ga 同级目录下,运行命令:

$ patch -p1 < 0001-uboot-add-tee-pro-support.patch
$ patch -p1 < 0002-uboot-add-6qp-tee-support.patch
$ cd uboot-imx-rel_imx_4.1.15_2.0.0_ga
$ export CROSS_COMPILE=arm-linux-gnueabihf-
$ make ARCH=arm mx6qpsabresd_config
$ make ARCH=arm

变异生成文件:

uboot-imx-rel_imx_4.1.15_2.0.0_ga/u-boot.imx

Linux patch

将0001-linux-add-tee-pro-support.patch, 0002-linux-add-6qp-tee-support.patch置于和linux-imx-rel_imx_4.1.15_2.0.0_ga 同级目录下,运行命令:

$ patch -p1 < 0001-linux-add-tee-pro-support.patch
$ patch -p1 < 0002-linux-add-6qp-tee-support.patch
$ cd linux-imx-rel_imx_4.1.15_2.0.0_ga
$ make ARCH=arm imx_v7_defconfig
$ make ARCH=arm zImage
$ make ARCH=arm imx6qp-sabresd.dtb

编译生成文件:

linux-imx-rel_imx_4.1.15_2.0.0_ga/arch/arm/boot/zImage
linux-imx-rel_imx_4.1.15_2.0.0_ga/arch/arm/boot/dts/imx6qp-sabresd.dtb