<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
		<id>http://wiki.myzr.com.cn/index.php?action=history&amp;feed=atom&amp;title=MY-IMX6_Linux-4.1.15_Compilation_Reference_Manual</id>
		<title>MY-IMX6 Linux-4.1.15 Compilation Reference Manual - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.myzr.com.cn/index.php?action=history&amp;feed=atom&amp;title=MY-IMX6_Linux-4.1.15_Compilation_Reference_Manual"/>
		<link rel="alternate" type="text/html" href="http://wiki.myzr.com.cn/index.php?title=MY-IMX6_Linux-4.1.15_Compilation_Reference_Manual&amp;action=history"/>
		<updated>2026-05-25T04:02:53Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.27.1</generator>

	<entry>
		<id>http://wiki.myzr.com.cn/index.php?title=MY-IMX6_Linux-4.1.15_Compilation_Reference_Manual&amp;diff=2463&amp;oldid=prev</id>
		<title>Admin：创建页面，内容为“ [^_^]: MY-IMX6 Linux-4.1.15 Compile reference manual  ## **Download related files** #### A7 series cross-compilation tool chain The A7 series includes:  MY-IMX6-EK1...”</title>
		<link rel="alternate" type="text/html" href="http://wiki.myzr.com.cn/index.php?title=MY-IMX6_Linux-4.1.15_Compilation_Reference_Manual&amp;diff=2463&amp;oldid=prev"/>
				<updated>2018-11-13T08:24:37Z</updated>
		
		<summary type="html">&lt;p&gt;创建页面，内容为“ [^_^]: MY-IMX6 Linux-4.1.15 Compile reference manual  ## **Download related files** #### A7 series cross-compilation tool chain The A7 series includes:  MY-IMX6-EK1...”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
[^_^]: MY-IMX6 Linux-4.1.15 Compile reference manual&lt;br /&gt;
&lt;br /&gt;
## **Download related files**&lt;br /&gt;
#### A7 series cross-compilation tool chain&lt;br /&gt;
The A7 series includes:  MY-IMX6-EK140、MY-IMX6-EK140P  &lt;br /&gt;
Location of network disc: 2.1_OS_Linux-4.1.15 -&amp;gt; 03_Toolchain  &lt;br /&gt;
Installation file: fsl-imx-fb-glibc-x86_64-meta-toolchain-cortexa7hf-neon-toolchain-4.1.15-2.1.0.sh  &lt;br /&gt;
Description document 1: fsl-imx-fb-glibc-x86_64-meta-toolchain-cortexa7hf-neon-toolchain-4.1.15-2.1.0.target.manifest  &lt;br /&gt;
Description document 2: fsl-imx-fb-glibc-x86_64-meta-toolchain-cortexa7hf-neon-toolchain-4.1.15-2.1.0.host.manifest&lt;br /&gt;
#### A9 series cross-compilation tool chain   &lt;br /&gt;
The A9 series includes: MY-IMX6-EK200、MY-IMX6-EK314、MY-IMX6-EK336  &lt;br /&gt;
Location of network disc: 2.1_OS_Linux-4.1.15 -&amp;gt; 03_Toolchain  &lt;br /&gt;
Installation file: fsl-imx-fb-glibc-x86_64-meta-toolchain-qt5-cortexa9hf-neon-toolchain-4.1.15-2.1.0.sh  &lt;br /&gt;
Description document 1: fsl-imx-fb-glibc-x86_64-meta-toolchain-qt5-cortexa9hf-neon-toolchain-4.1.15-2.1.0.target.manifest  &lt;br /&gt;
Description document 2: fsl-imx-fb-glibc-x86_64-meta-toolchain-qt5-cortexa9hf-neon-toolchain-4.1.15-2.1.0.host.manifest  &lt;br /&gt;
#### u-boot sound code&lt;br /&gt;
Location of network disc: 2.1_OS_Linux-4.1.15 -&amp;gt; 02_Source  &lt;br /&gt;
File name: u-boot-2016.03-*.tar.bz2 (** source package version number required svn315 and above **)   &lt;br /&gt;
#### Kernel sound code&lt;br /&gt;
Location of network disc: 2.1_OS_Linux-4.1.15 -&amp;gt; 02_Source  &lt;br /&gt;
File name: linux-4.1.15-*.tar.bz2 (** source package version number needs svn368 and above **)  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
## **Install cross-compilation toolchain**&lt;br /&gt;
### MY-IMX6-A7 Series cross - compilation tool chain installation&lt;br /&gt;
* Perform installation&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
./fsl-imx-fb-glibc-x86_64-meta-toolchain-cortexa7hf-neon-toolchain-4.1.15-2.1.0.sh &lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Output: &lt;br /&gt;
Freescale i.MX Release Distro SDK installer version 4.1.15-2.1.0&lt;br /&gt;
================================================================&lt;br /&gt;
Enter target directory for SDK (default: /opt/fsl-imx-fb/4.1.15-2.1.0): &lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
/opt/fsl-imx-fb-glibc-x86_64-meta-toolchain-cortexa7hf-neon-toolchain-4.1.15-2.1.0&lt;br /&gt;
=====&amp;gt; Output: &lt;br /&gt;
You are about to install the SDK to &amp;quot;/opt/fsl-imx-fb-glibc-x86_64-meta-toolchain-cortexa7hf-neon-toolchain-4.1.15-2.1.0&amp;quot;. Proceed[Y/n]? &lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
y&lt;br /&gt;
=====&amp;gt; Output: &lt;br /&gt;
Extracting SDK..................done&lt;br /&gt;
Setting it up...done&lt;br /&gt;
SDK has been successfully set up and is ready to be used.&lt;br /&gt;
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.&lt;br /&gt;
 $ . /opt/fsl-imx-fb-glibc-x86_64-meta-toolchain-cortexa7hf-neon-toolchain-4.1.15-2.1.0/environment-setup-cortexa7hf-neon-poky-linux-gnueabi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* source Tool chain configuration file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
source /opt/fsl-imx-fb-glibc-x86_64-meta-toolchain-cortexa7hf-neon-toolchain-4.1.15-2.1.0/environment-setup-cortexa7hf-neon-poky-linux-gnueabi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Verify cross - compilation tool installation  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
$CC -v&lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Output: &lt;br /&gt;
Using built-in specs.&lt;br /&gt;
COLLECT_GCC=arm-poky-linux-gnueabi-gcc&lt;br /&gt;
COLLECT_LTO_WRAPPER=/opt/fsl-imx-fb-glibc-x86_64-meta-toolchain-cortexa7hf-neon-toolchain-4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.3.0/lto-wrapper&lt;br /&gt;
Target: arm-poky-linux-gnueabi&lt;br /&gt;
Configured with: ../../../../../../work-shared/gcc-5.3.0-r0/gcc-5.3.0/configure --build=x86_64-linux --host=x86_64-pokysdk-linux --target=arm-poky-linux-gnueabi --prefix=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr --exec_prefix=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr --bindir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi --sbindir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi --libexecdir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi --datadir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/share --sysconfdir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/etc --sharedstatedir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/com --localstatedir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/var --libdir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/lib/arm-poky-linux-gnueabi --includedir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/include --oldincludedir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/include --infodir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/share/info --mandir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/home/myzr/my-yocto/imx-4.1.15-2.1.0/imx6ull14x14evk__fsl-imx-fb/tmp/sysroots/x86_64-nativesdk-pokysdk-linux --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --enable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=arm-poky-linux-gnueabi- --without-local-prefix --enable-lto --enable-libssp --enable-libitm --disable-bootstrap --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --without-isl --with-gxx-include-dir=/not/exist/usr/include/c++/5.3.0 --with-build-time-tools=/home/myzr/my-yocto/imx-4.1.15-2.1.0/imx6ull14x14evk__fsl-imx-fb/tmp/sysroots/x86_64-linux/usr/arm-poky-linux-gnueabi/bin --with-sysroot=/not/exist --with-build-sysroot=/home/myzr/my-yocto/imx-4.1.15-2.1.0/imx6ull14x14evk__fsl-imx-fb/tmp/sysroots/imx6ull14x14evk --enable-poison-system-directories --with-mpfr=/home/myzr/my-yocto/imx-4.1.15-2.1.0/imx6ull14x14evk__fsl-imx-fb/tmp/sysroots/x86_64-nativesdk-pokysdk-linux --with-mpc=/home/myzr/my-yocto/imx-4.1.15-2.1.0/imx6ull14x14evk__fsl-imx-fb/tmp/sysroots/x86_64-nativesdk-pokysdk-linux --enable-nls --with-arch=armv7-a&lt;br /&gt;
Thread model: posix&lt;br /&gt;
gcc version 5.3.0 (GCC)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
### MY-IMX6-A9 series cross compilation tool chain installation   &lt;br /&gt;
* Perform the installation&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
./fsl-imx-fb-glibc-x86_64-meta-toolchain-qt5-cortexa9hf-neon-toolchain-4.1.15-2.1.0.sh&lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Output: &lt;br /&gt;
Freescale i.MX Release Distro SDK installer version 4.1.15-2.1.0&lt;br /&gt;
================================================================&lt;br /&gt;
Enter target directory for SDK (default: /opt/fsl-imx-fb/4.1.15-2.1.0)&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
/opt/fsl-imx-fb-glibc-x86_64-meta-toolchain-qt5-cortexa9hf-neon-toolchain-4.1.15-2.1.0&lt;br /&gt;
=====&amp;gt; Output: &lt;br /&gt;
You are about to install the SDK to &amp;quot;/opt/fsl-imx-fb-glibc-x86_64-meta-toolchain-qt5-cortexa9hf-neon-toolchain-4.1.15-2.1.0&amp;quot;. Proceed[Y/n]?&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
y&lt;br /&gt;
=====&amp;gt; Output: &lt;br /&gt;
Extracting SDK..............................................................................................................................................................done&lt;br /&gt;
Setting it up...done&lt;br /&gt;
SDK has been successfully set up and is ready to be used.&lt;br /&gt;
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.&lt;br /&gt;
 $ . /opt/fsl-imx-fb-glibc-x86_64-meta-toolchain-qt5-cortexa9hf-neon-toolchain-4.1.15-2.1.0/environment-setup-cortexa9hf-neon-poky-linux-gnueabi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* source Tool chain configuration file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
source /opt/fsl-imx-fb-glibc-x86_64-meta-toolchain-qt5-cortexa9hf-neon-toolchain-4.1.15-2.1.0/environment-setup-cortexa9hf-neon-poky-linux-gnueabi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Verify cross - compilation tool installation  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
$CC -v&lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Output: &lt;br /&gt;
Using built-in specs.&lt;br /&gt;
COLLECT_GCC=arm-poky-linux-gnueabi-gcc&lt;br /&gt;
COLLECT_LTO_WRAPPER=/opt/fsl-imx-fb-glibc-x86_64-meta-toolchain-qt5-cortexa9hf-neon-toolchain-4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.3.0/lto-wrapper&lt;br /&gt;
Target: arm-poky-linux-gnueabi&lt;br /&gt;
Configured with: ../../../../../../work-shared/gcc-5.3.0-r0/gcc-5.3.0/configure --build=x86_64-linux --host=x86_64-pokysdk-linux --target=arm-poky-linux-gnueabi --prefix=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr --exec_prefix=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr --bindir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi --sbindir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi --libexecdir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi --datadir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/share --sysconfdir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/etc --sharedstatedir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/com --localstatedir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/var --libdir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/lib/arm-poky-linux-gnueabi --includedir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/include --oldincludedir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/include --infodir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/share/info --mandir=/opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/home/myzr/my-yocto/imx-4.1.15-2.1.0/imx6qdlsolo__fsl-imx-fb/tmp/sysroots/x86_64-nativesdk-pokysdk-linux --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --enable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=arm-poky-linux-gnueabi- --without-local-prefix --enable-lto --enable-libssp --enable-libitm --disable-bootstrap --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --without-isl --with-gxx-include-dir=/not/exist/usr/include/c++/5.3.0 --with-build-time-tools=/home/myzr/my-yocto/imx-4.1.15-2.1.0/imx6qdlsolo__fsl-imx-fb/tmp/sysroots/x86_64-linux/usr/arm-poky-linux-gnueabi/bin --with-sysroot=/not/exist --with-build-sysroot=/home/myzr/my-yocto/imx-4.1.15-2.1.0/imx6qdlsolo__fsl-imx-fb/tmp/sysroots/imx6qdlsolo --enable-poison-system-directories --with-mpfr=/home/myzr/my-yocto/imx-4.1.15-2.1.0/imx6qdlsolo__fsl-imx-fb/tmp/sysroots/x86_64-nativesdk-pokysdk-linux --with-mpc=/home/myzr/my-yocto/imx-4.1.15-2.1.0/imx6qdlsolo__fsl-imx-fb/tmp/sysroots/x86_64-nativesdk-pokysdk-linux --enable-nls --with-arch=armv7-a&lt;br /&gt;
Thread model: posix&lt;br /&gt;
gcc version 5.3.0 (GCC)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
## **u-boot Compile**&lt;br /&gt;
### Preparation before compilation&lt;br /&gt;
* Create the compile working directory&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
mkdir ~/my-work/02_source/ -p&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Unzip the source package to the working directory  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
tar xf u-boot-2016.03-svn*.tar.bz2 -C ~/my-work/02_source/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
### Compile the u-boot target file&lt;br /&gt;
* Source directory&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
cd ~/my-work/02_source/u-boot-2016.03&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Generate the .config file for the target development board&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
make myimx6ek200-6q-1g_defconfig&lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Output: &lt;br /&gt;
  HOSTCC  scripts/basic/fixdep&lt;br /&gt;
  HOSTCC  scripts/kconfig/conf.o&lt;br /&gt;
  SHIPPED scripts/kconfig/zconf.tab.c&lt;br /&gt;
  SHIPPED scripts/kconfig/zconf.lex.c&lt;br /&gt;
  SHIPPED scripts/kconfig/zconf.hash.c&lt;br /&gt;
  HOSTCC  scripts/kconfig/zconf.tab.o&lt;br /&gt;
  HOSTLD  scripts/kconfig/conf&lt;br /&gt;
#&lt;br /&gt;
# configuration written to .config&lt;br /&gt;
#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Execute compilation&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
make &lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Output: &lt;br /&gt;
scripts/kconfig/conf  --silentoldconfig Kconfig&lt;br /&gt;
  CHK     include/config.h&lt;br /&gt;
  UPD     include/config.h&lt;br /&gt;
  GEN     include/autoconf.mk&lt;br /&gt;
  GEN     include/autoconf.mk.dep&lt;br /&gt;
  CHK     include/config/uboot.release&lt;br /&gt;
  UPD     include/config/uboot.release&lt;br /&gt;
  CHK     include/generated/version_autogenerated.h&lt;br /&gt;
  ......&lt;br /&gt;
  LD      u-boot&lt;br /&gt;
  OBJCOPY u-boot-nodtb.bin&lt;br /&gt;
  OBJCOPY u-boot.srec&lt;br /&gt;
  SYM     u-boot.sym&lt;br /&gt;
  COPY    u-boot.bin&lt;br /&gt;
  CFGS    board/myzr/myimx6/myimx6a9-6q-ddr3.cfg.cfgtmp&lt;br /&gt;
  MKIMAGE u-boot.imx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**Note: If there is a prompt &amp;quot;cc1: error&amp;quot;, usually the configuration of the cross-compiler tool does not take effect. You can perform this step after the &amp;quot;source toolchain configuration file&amp;quot; in the previous &amp;quot;cross-compilation toolchain installation&amp;quot;.**   &lt;br /&gt;
&lt;br /&gt;
* Rename target file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
cp u-boot.imx uboot-myimx6ek200-6q-1g.imx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
### Compile the u-boot environment variable script&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
./tools/mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n &amp;quot;MYZR script&amp;quot; -d my_env_src/myimx6a9_4115_script.cmd my_env_script.scr&lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Output: &lt;br /&gt;
Image Name:   MYZR script&lt;br /&gt;
Created:      Thu Nov  8 11:05:19 2018&lt;br /&gt;
Image Type:   ARM Linux Script (uncompressed)&lt;br /&gt;
Data Size:    2101 Bytes = 2.05 kB = 0.00 MB&lt;br /&gt;
Load Address: 00000000&lt;br /&gt;
Entry Point:  00000000&lt;br /&gt;
Contents:&lt;br /&gt;
   Image 0: 2093 Bytes = 2.04 kB = 0.00 MB&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
### object file&lt;br /&gt;
**uboot-myimx6ek200-6q-1g.imx 和 my_env_script.scr .That is the compiled target file, save the two files **&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
## **Kernel compilation**&lt;br /&gt;
### Preparation before compilation&lt;br /&gt;
* Create the compile working directory&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
mkdir ~/my-work/02_source/ -p&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Unzip the source package to the working directory&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
tar xf linux-4.1.15-svn*.tar.bz2 -C ~/my-work/02_source/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
### Compile the kernel target file&lt;br /&gt;
* Enter the kernel source directory&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
cd ~/my-work/02_source/linux-4.1.15&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Generate the.config file for the target platform&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
make myimx6a9_defconfig&lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Output: &lt;br /&gt;
  HOSTCC  scripts/basic/fixdep&lt;br /&gt;
  HOSTCC  scripts/kconfig/conf.o&lt;br /&gt;
  SHIPPED scripts/kconfig/zconf.tab.c&lt;br /&gt;
  SHIPPED scripts/kconfig/zconf.lex.c&lt;br /&gt;
  SHIPPED scripts/kconfig/zconf.hash.c&lt;br /&gt;
  HOSTCC  scripts/kconfig/zconf.tab.o&lt;br /&gt;
  HOSTLD  scripts/kconfig/conf&lt;br /&gt;
#&lt;br /&gt;
# configuration written to .config&lt;br /&gt;
#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**If there is an error in &amp;quot;Can't find default configuration &amp;quot;arch/x86/configs, because the configuration of the cross-compilation tool chain is not in effect, you Can perform this step after the&amp;quot; source tool chain configuration file &amp;quot;operation in the previous&amp;quot; cross-compilation tool chain installation **&lt;br /&gt;
&lt;br /&gt;
* Compile the kernel target file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
make zImage&lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Output: &lt;br /&gt;
scripts/kconfig/conf --silentoldconfig Kconfig&lt;br /&gt;
  CHK     include/config/kernel.release&lt;br /&gt;
  UPD     include/config/kernel.release&lt;br /&gt;
  WRAP    arch/arm/include/generated/asm/auxvec.h&lt;br /&gt;
  ......&lt;br /&gt;
  AS      arch/arm/boot/compressed/piggy.lzo.o&lt;br /&gt;
  LD      arch/arm/boot/compressed/vmlinux&lt;br /&gt;
  OBJCOPY arch/arm/boot/zImage&lt;br /&gt;
  Kernel: arch/arm/boot/zImage is ready&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Kernel target file renamed&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
cp arch/arm/boot/zImage zImage-myimx6a9&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
### Compile the device tree object file&lt;br /&gt;
* Execute the compile command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
make myimx6ek200-6q-1g.dtb&lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Output: &lt;br /&gt;
  DTC     arch/arm/boot/dts/myimx6ek200-6q-1g.dtb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Copy the device tree target file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
cp arch/arm/boot/dts/myimx6ek200-6q-1g.dtb ./&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
### Compile the kernel module package &lt;br /&gt;
* Execute compilation &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
make modules&lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Output: &lt;br /&gt;
scripts/kconfig/conf  --silentoldconfig Kconfig&lt;br /&gt;
  CHK     include/config/kernel.release&lt;br /&gt;
  WRAP    arch/arm/include/generated/asm/bitsperlong.h&lt;br /&gt;
  WRAP    arch/arm/include/generated/asm/current.h&lt;br /&gt;
  ......&lt;br /&gt;
  LD [M]  sound/usb/snd-usb-audio.ko&lt;br /&gt;
  LD [M]  sound/usb/snd-usbmidi-lib.ko&lt;br /&gt;
  LD [M]  sound/core/snd-rawmidi.ko&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create the save directory for the kernel module &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
mkdir modules&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Install the kernel module to the specified directory &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
make modules_install INSTALL_MOD_PATH=./modules&lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Output: &lt;br /&gt;
  INSTALL crypto/tcrypt.ko&lt;br /&gt;
  INSTALL drivers/dma/dmatest.ko&lt;br /&gt;
  INSTALL drivers/i2c/algos/i2c-algo-pca.ko&lt;br /&gt;
  ......&lt;br /&gt;
  INSTALL sound/usb/snd-usb-audio.ko&lt;br /&gt;
  INSTALL sound/usb/snd-usbmidi-lib.ko&lt;br /&gt;
  DEPMOD  4.1.15-myimx6-svn368&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Package the kernel module file  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
tar cjf kernel-modules-myimx6a9.tar.bz2 -C modules lib&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
### File destination&lt;br /&gt;
**zImage-myimx6a9、myimx6ek200-6q-1g.dtb and kernel-modules-myimx6a9.tar.bz2 are the compiled object files, save these three files**&lt;br /&gt;
&lt;br /&gt;
## **Linux C Program compilation**&lt;br /&gt;
### Prepare the source code&lt;br /&gt;
* Download Demo source  &lt;br /&gt;
Position: 2.3_OS_Linux-4.1.15 -&amp;gt; 04_MY-Demo -&amp;gt; MY-Linux-C-Demo  &lt;br /&gt;
File name：hello.c  &lt;br /&gt;
* Copy the source code to the development host&lt;br /&gt;
### MY-IMX6-A9 Linux C Program compilation&lt;br /&gt;
* Compile the target file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
$CC hello.c -o hello.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**Note: If you have &amp;quot;not found command&amp;quot; information because the configuration of the cross-compilation tool chain is not in effect, you can follow the &amp;quot;source tool chain configuration file&amp;quot; action in the previous &amp;quot;cross-compilation tool chain installation&amp;quot; before performing this step**  &lt;br /&gt;
### Run the Linux C target program&lt;br /&gt;
* Copy the compiled hello. Out to the development board&lt;br /&gt;
* Run the Linux C target program on the development board &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
./hello.out&lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Output:&lt;br /&gt;
MYZR Technology Co.,Ltd.&lt;br /&gt;
&lt;br /&gt;
Web:  http://www.myzr.com.cn/&lt;br /&gt;
Wiki: http://wiki.myzr.com.cn/&lt;br /&gt;
BBS:  http://bbs.myzr.com.cn/&lt;br /&gt;
&lt;br /&gt;
Tel: 0756-3628023/3628021&lt;br /&gt;
E-mail: service@myzr.com.cn&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**Note: If you have “Permission denied” information，usually the target program does not have executable rights.you can add the executable rights of the target file according to the following instructions before running the program.**  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
chmod +x ./hello.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
## **Linux QT5 Program compilation**&lt;br /&gt;
### Prepare the source code&lt;br /&gt;
* Download Demo source  &lt;br /&gt;
Position：2.3_OS_Linux-4.1.15 -&amp;gt; 04_MY-Demo  &lt;br /&gt;
File Names：MY-Linux-QT5-Demo-AboutUs-svn*.tar.bz2  &lt;br /&gt;
* Unzip the source package to the working directory &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
tar xf MY-Linux-QT5-Demo-AboutUs-svn*.tar.bz2 -C ~/my-work/02_source/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
### MY-IMX6-A9 QT Program compilation&lt;br /&gt;
* Source directory  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
cd ~/my-work/02_source/AboutUs/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Generate a Makefile   &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
qmake&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**Note1: If there is message“the'qamke' command was not found ，because the configuration of cross-compilation toolchain does not take effect **  &lt;br /&gt;
**Note2: If there is message “oe-device-extra.pri: No such file or directory” ，Execute 'qmake'after executing the following command:**&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
touch /opt/fsl-imx-fb-glibc-x86_64-meta-toolchain-qt5-cortexa9hf-neon-toolchain-4.1.15-2.1.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/qt5/mkspecs/oe-device-extra.pri&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Compile the target file &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
make&lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Output: &lt;br /&gt;
/opt/fsl-imx-fb-glibc-x86_64-meta-toolchain-qt5-cortexa9hf-neon-toolchain-4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/bin/qt5/uic widget.ui -o ui_widget.h&lt;br /&gt;
......&lt;br /&gt;
arm-poky-linux-gnueabi-g++  -march=armv7-a -mfpu=neon  -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/opt/fsl-imx-fb-glibc-x86_64-meta-toolchain-qt5-cortexa9hf-neon-toolchain-4.1.15-2.1.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-O1 -o AboutUs main.o widget.o qrc_source.o moc_widget.o   -lQt5Widgets -lQt5Gui -lQt5Core -lGLESv2 -lEGL -lpthread&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
### Run the Linux QT5 target program&lt;br /&gt;
* Copy the compiled AboutUs onto the development board  &lt;br /&gt;
* Run the QT5 target program on the development board  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
./AboutUs -platform eglfs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**Note: If you have &amp;quot;Permission denied&amp;quot; information, usually the target program does not have executable rights, you can add the executable rights of the target file according to the following instructions before running the program**  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
chmod +x ./AboutUs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Operation result &lt;br /&gt;
You can see the Logo of MYZR and some information on the development board display.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-------------------------------------------------------------------------------- &lt;br /&gt;
* ZhuHai MYZR Technology CO.,LTD.&lt;br /&gt;
* Latest Update: 2018/11/08  &lt;br /&gt;
* Supporter: Tang Bin&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>