<?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=MYZR-IMX8M-EK300_Linux-4.14.98_compilation_reference_manual</id>
		<title>MYZR-IMX8M-EK300 Linux-4.14.98 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=MYZR-IMX8M-EK300_Linux-4.14.98_compilation_reference_manual"/>
		<link rel="alternate" type="text/html" href="http://wiki.myzr.com.cn/index.php?title=MYZR-IMX8M-EK300_Linux-4.14.98_compilation_reference_manual&amp;action=history"/>
		<updated>2026-05-25T03:11:20Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.27.1</generator>

	<entry>
		<id>http://wiki.myzr.com.cn/index.php?title=MYZR-IMX8M-EK300_Linux-4.14.98_compilation_reference_manual&amp;diff=3635&amp;oldid=prev</id>
		<title>Admin：Admin移动页面MY-IMX8M-EK300 Linux-4.14.98 compilation reference manual至MYZR-IMX8M-EK300 Linux-4.14.98 compilation reference manual，不留重定向</title>
		<link rel="alternate" type="text/html" href="http://wiki.myzr.com.cn/index.php?title=MYZR-IMX8M-EK300_Linux-4.14.98_compilation_reference_manual&amp;diff=3635&amp;oldid=prev"/>
				<updated>2020-10-22T08:08:52Z</updated>
		
		<summary type="html">&lt;p&gt;Admin移动页面&lt;a href=&quot;/index.php?title=MY-IMX8M-EK300_Linux-4.14.98_compilation_reference_manual&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;MY-IMX8M-EK300 Linux-4.14.98 compilation reference manual（页面不存在）&quot;&gt;MY-IMX8M-EK300 Linux-4.14.98 compilation reference manual&lt;/a&gt;至&lt;a href=&quot;/index.php?title=MYZR-IMX8M-EK300_Linux-4.14.98_compilation_reference_manual&quot; title=&quot;MYZR-IMX8M-EK300 Linux-4.14.98 compilation reference manual&quot;&gt;MYZR-IMX8M-EK300 Linux-4.14.98 compilation reference manual&lt;/a&gt;，不留重定向&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style='vertical-align: top;' lang='zh-CN'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2020年10月22日 (四) 08:08的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;' lang='zh-CN'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;（没有差异）&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://wiki.myzr.com.cn/index.php?title=MYZR-IMX8M-EK300_Linux-4.14.98_compilation_reference_manual&amp;diff=3139&amp;oldid=prev</id>
		<title>2020年2月26日 (三) 05:36 Admin</title>
		<link rel="alternate" type="text/html" href="http://wiki.myzr.com.cn/index.php?title=MYZR-IMX8M-EK300_Linux-4.14.98_compilation_reference_manual&amp;diff=3139&amp;oldid=prev"/>
				<updated>2020-02-26T05:36:04Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='zh-CN'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2020年2月26日 (三) 05:36的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l312&quot; &gt;第312行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第312行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;### target document&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;### target document&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**${TARGET_EVK_MODE} .bin is the compiled object file, save this file**&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**${TARGET_EVK_MODE} .bin is the compiled object file, save this file**&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Web:&amp;#160; http://www.myzr.com.cn/ &amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Web:&amp;#160; http://www.myzr.com.cn/ &amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Wiki: http://wiki.myzr.com.cn/ &amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Wiki: http://wiki.myzr.com.cn/ &amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://wiki.myzr.com.cn/index.php?title=MYZR-IMX8M-EK300_Linux-4.14.98_compilation_reference_manual&amp;diff=3137&amp;oldid=prev</id>
		<title>Admin：创建页面，内容为“[^_^]: MY-IMX8M-EK300 Linux-4.14.98 compilation reference manual  ## **Install the cross compilation toolchain** * Create installation directory   &lt;pre&gt; =====&gt; Input...”</title>
		<link rel="alternate" type="text/html" href="http://wiki.myzr.com.cn/index.php?title=MYZR-IMX8M-EK300_Linux-4.14.98_compilation_reference_manual&amp;diff=3137&amp;oldid=prev"/>
				<updated>2020-02-26T03:54:11Z</updated>
		
		<summary type="html">&lt;p&gt;创建页面，内容为“[^_^]: MY-IMX8M-EK300 Linux-4.14.98 compilation reference manual  ## **Install the cross compilation toolchain** * Create installation directory   &amp;lt;pre&amp;gt; =====&amp;gt; Input...”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[^_^]: MY-IMX8M-EK300 Linux-4.14.98 compilation reference manual&lt;br /&gt;
&lt;br /&gt;
## **Install the cross compilation toolchain**&lt;br /&gt;
* Create installation directory  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
mkdir ~/my-work/03_toolchain -p&lt;br /&gt;
cd ~/my-work/03_toolchain&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Download cross compilation tools&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
wget https://releases.linaro.org/components/toolchain/binaries/7.3-2018.05/aarch64-linux-gnu/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu.tar.xz  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Decompression cross compilation tool &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
tar xf gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu.tar.xz -C ~/my-work/03_toolchain  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create cross compilation tool configuration script &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
cat &amp;lt;&amp;lt; EOF &amp;gt; ~/my-work/03_toolchain/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu.env&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
export PATH=${HOME}/my-work/03_toolchain/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin:${PATH}&lt;br /&gt;
export ARCH=arm64&lt;br /&gt;
export CROSS_COMPILE=aarch64-linux-gnu-&lt;br /&gt;
EOF&lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Input: &lt;br /&gt;
chmod +x ~/my-work/03_toolchain/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu.env&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Configure cross compilation environment variables&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
source ~/my-work/03_toolchain/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu.env  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Check the installation &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
${CROSS_COMPILE}gcc -v &lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Output: &lt;br /&gt;
Using built-in specs.&lt;br /&gt;
COLLECT_GCC=aarch64-linux-gnu-gcc&lt;br /&gt;
COLLECT_LTO_WRAPPER=/home/myzr/my-work/03_toolchain/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/../libexec/gcc/aarch64-linux-gnu/7.3.1/lto-wrapper&lt;br /&gt;
Target: aarch64-linux-gnu&lt;br /&gt;
Configured with: '/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/aarch64-linux-gnu/snapshots/gcc.git~linaro-7.3-2018.05/configure' SHELL=/bin/bash --with-mpc=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/aarch64-linux-gnu/_build/builds/destdir/x86_64-unknown-linux-gnu --with-mpfr=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/aarch64-linux-gnu/_build/builds/destdir/x86_64-unknown-linux-gnu --with-gmp=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/aarch64-linux-gnu/_build/builds/destdir/x86_64-unknown-linux-gnu --with-gnu-as --with-gnu-ld --disable-libmudflap --enable-lto --enable-shared --without-included-gettext --enable-nls --with-system-zlib --disable-sjlj-exceptions --enable-gnu-unique-object --enable-linker-build-id --disable-libstdcxx-pch --enable-c99 --enable-clocale=gnu --enable-libstdcxx-debug --enable-long-long --with-cloog=no --with-ppl=no --with-isl=no --disable-multilib --enable-fix-cortex-a53-835769 --enable-fix-cortex-a53-843419 --with-arch=armv8-a --enable-threads=posix --enable-multiarch --enable-libstdcxx-time=yes --enable-gnu-indirect-function --with-build-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/aarch64-linux-gnu/_build/sysroots/aarch64-linux-gnu --with-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/aarch64-linux-gnu/_build/builds/destdir/x86_64-unknown-linux-gnu/aarch64-linux-gnu/libc --enable-checking=release --disable-bootstrap --enable-languages=c,c++,fortran,lto --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=aarch64-linux-gnu --prefix=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/aarch64-linux-gnu/_build/builds/destdir/x86_64-unknown-linux-gnu&lt;br /&gt;
Thread model: posix&lt;br /&gt;
gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05) &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
## **Compile the kernel file**&lt;br /&gt;
### Preparation before compilation&lt;br /&gt;
* Create compilation 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;
* Download the kernel source&lt;br /&gt;
Open the network disk to &amp;quot;2.1_OS_Linux-4.14.98-&amp;gt; 02_Source&amp;quot; and download &amp;quot;linux-4.14.98. *. Tar.bz2&amp;quot;. &amp;lt;br&amp;gt;&lt;br /&gt;
Copy the source package to &amp;quot;~ / my-work / 02_source /&amp;quot; of the virtual machine and decompress it (the decompression command is as follows):   &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
cd ~/my-work/02_source&lt;br /&gt;
tar xf linux-4.14.98.*.tar.bz2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&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.14.98&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Configure cross compilation environment variables &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
source ~/my-work/03_toolchain/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu.env  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
### Compile the kernel object file&lt;br /&gt;
* Generate target .config file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
make myimx8mq_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;
  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;
&lt;br /&gt;
* Compile the kernel object file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
make Image &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/bitsperlong.h&lt;br /&gt;
  ......&lt;br /&gt;
  AR      built-in.o&lt;br /&gt;
  LD      vmlinux.o&lt;br /&gt;
  MODPOST vmlinux.o&lt;br /&gt;
  KSYM    .tmp_kallsyms1.o&lt;br /&gt;
  KSYM    .tmp_kallsyms2.o&lt;br /&gt;
  LD      vmlinux&lt;br /&gt;
  SORTEX  vmlinux&lt;br /&gt;
  SYSMAP  System.map&lt;br /&gt;
  OBJCOPY arch/arm64/boot/Image&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy kernel object file&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
cp arch/arm64/boot/Image ./  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
### Compile the device tree object file&lt;br /&gt;
* Set TARGETEVKMODE&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
TARGET_EVK_MODE=myimx8mek300-8mq&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**【Explanation】: TARGET_EVK_MODE is set according to the development board model and can be set to myimx8mevk-8mq, myimx8mek300-8mq**  &lt;br /&gt;
&lt;br /&gt;
* Execute compile command &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
make myzr/${TARGET_EVK_MODE}.dtb    &lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Output: &lt;br /&gt;
  CHK     scripts/mod/devicetable-offsets.h&lt;br /&gt;
  DTC     arch/arm64/boot/dts/myzr/${TARGET_EVK_MODE}.dtb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy Device Tree Object&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
cp arch/arm64/boot/dts/myzr/${TARGET_EVK_MODE}.dtb ./&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
### Compile the kernel module package&lt;br /&gt;
* Perform 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;
  CHK     include/config/kernel.release&lt;br /&gt;
  CHK     include/generated/uapi/linux/version.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;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Create a directory for saving kernel modules&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;
&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 headers_install INSTALL_MOD_PATH=./modules  &lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Output: &lt;br /&gt;
  INSTALL arch/arm64/crypto/aes-neon-blk.ko&lt;br /&gt;
  INSTALL arch/arm64/crypto/aes-neon-bs.ko&lt;br /&gt;
  ......&lt;br /&gt;
  INSTALL sound/usb/snd-usbmidi-lib.ko&lt;br /&gt;
  DEPMOD  4.14.98-g2ff648b&lt;br /&gt;
  CHK     include/generated/uapi/linux/version.h&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Packaging kernel module files&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
tar cjvf kernel-modules.tar.bz2 -C modules lib    &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
### target document  &lt;br /&gt;
**Image, * .dtb and kernel-modules.tar.bz2 are compiled object files. Save these three files**&lt;br /&gt;
&lt;br /&gt;
## **Compile u-boot file**&lt;br /&gt;
### Preparation before compilation&lt;br /&gt;
* Download u-boot source code&lt;br /&gt;
Open the network disk to &amp;quot;2.1_OS_Linux-4.14.98-&amp;gt; 02_Source&amp;quot; and download &amp;quot;u-boot-2018.03. *. Tar.bz2&amp;quot;. &amp;lt;br&amp;gt;&lt;br /&gt;
Copy the source package to &amp;quot;~ / my-work / 02_source /&amp;quot; of the virtual machine and decompress it (the decompression command is as follows): &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
tar xf u-boot-2018.03.*.tar.bz2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&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/u-boot-2018.03  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Configure cross compilation environment variables &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
source ~/my-work/03_toolchain/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu.env  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
### Compile u-boot object file&lt;br /&gt;
* Set TARGETEVKMODE  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
TARGET_EVK_MODE=myimx8mek300-8mq  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**【Description】：TARGET_EVK_MODE is set according to the development board model and can be set to myimx8mevk-8mq,myimx8mek300-8mq**&lt;br /&gt;
* Generate target .config file  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
make ${TARGET_EVK_MODE}_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;
* Compile u-boot object 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;
scripts/kconfig/conf  --silentoldconfig Kconfig&lt;br /&gt;
  CHK     include/config.h&lt;br /&gt;
  UPD     include/config.h&lt;br /&gt;
  CFG     u-boot.cfg&lt;br /&gt;
  GEN     include/autoconf.mk&lt;br /&gt;
  ......&lt;br /&gt;
  LD      spl/u-boot-spl&lt;br /&gt;
  OBJCOPY spl/u-boot-spl-nodtb.bin&lt;br /&gt;
  COPY    spl/u-boot-spl.bin&lt;br /&gt;
  CFGS    arch/arm/mach-imx/spl_sd.cfg.cfgtmp&lt;br /&gt;
  MKIMAGE SPL&lt;br /&gt;
  CFGCHK  u-boot.cfg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Copy u-boot target file      &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
cp arch/arm/dts/${TARGET_EVK_MODE}.dtb ./  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
### target document  &lt;br /&gt;
**$ {TARGETEVKMODE} .dtb, u-boot-nodtb.bin and u-boot-spl.bin are the compiled object files. Save these three files, which will be used in the next bootloader compilation**&lt;br /&gt;
&lt;br /&gt;
## **Compile BootLoader**  &lt;br /&gt;
### Preparation before compilation&lt;br /&gt;
* Download BootLoader compilation tool&lt;br /&gt;
Open the network disk to &amp;quot;2.1_OS_Linux-4.14.98-&amp;gt; 02Source&amp;quot; and download &amp;quot;mkimage-imx4.14.98. *. Tar.bz2&amp;quot;. &amp;lt;br&amp;gt;&lt;br /&gt;
Copy the source package to &amp;quot;~ / my-work / 02_source /&amp;quot; of the virtual machine and decompress it (the decompression command is as follows):  &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
tar xf mkimage-imx_4.14.98.*.tar.bz2  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Go to tools directory&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
cd ~/my-work/02_source/mkimage-imx_4.14.98  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Set TARGETEVKMODE  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
TARGET_EVK_MODE=myimx8mek300-8mq&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**【Description】：TARGET_EVK_MODE is set according to the development board model and can be set to myimx8mevk-8mq, myimx8mek300-8mq**  &lt;br /&gt;
* Copy the dependent files Copy the three files compiled by u-boot&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
cp ../u-boot-2018.03/u-boot-nodtb.bin ./iMX8M/${TARGET_EVK_MODE}-nodtb.bin&lt;br /&gt;
cp ../u-boot-2018.03/spl/u-boot-spl.bin ./iMX8M/${TARGET_EVK_MODE}-spl.bin&lt;br /&gt;
cp ../u-boot-2018.03/${TARGET_EVK_MODE}.dtb ./iMX8M/${TARGET_EVK_MODE}.dtb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
### Compile BootLoader object file&lt;br /&gt;
* Enter compilation instructions  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
make SOC=iMX8M ${TARGET_EVK_MODE%-*} OUTIMG=${TARGET_EVK_MODE}.bin  &lt;br /&gt;
&lt;br /&gt;
=====&amp;gt; Output: &lt;br /&gt;
Compiling mkimage_imx8&lt;br /&gt;
PLAT=imx8mq HDMI=yes&lt;br /&gt;
Compiling mkimage_imx8&lt;br /&gt;
......&lt;br /&gt;
Second Loader IMAGE:&lt;br /&gt;
 sld_header_off 	0x57c00&lt;br /&gt;
 sld_csf_off 		0x58c20&lt;br /&gt;
 sld hab block: 	0x401fcdc0 0x57c00 0x1020&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Copy BootLoader target file &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=====&amp;gt; Input:&lt;br /&gt;
cp ./iMX8M/${TARGET_EVK_MODE}.bin ./  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
### target document  &lt;br /&gt;
**${TARGET_EVK_MODE} .bin is the compiled object file, save this file**  &lt;br /&gt;
 &lt;br /&gt;
Web:  http://www.myzr.com.cn/ &amp;lt;br&amp;gt;&lt;br /&gt;
Wiki: http://wiki.myzr.com.cn/ &amp;lt;br&amp;gt;&lt;br /&gt;
BBS:  http://bbs.myzr.com.cn/ &amp;lt;br&amp;gt;&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;
&lt;br /&gt;
&amp;lt;br&amp;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;
* 珠海明远智睿科技有限公司  &lt;br /&gt;
* ZhuHai MYZR Technology CO.,LTD.&lt;br /&gt;
* Latest Update: 2019/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>