评估板对应的Linux版本及对应的源码文件见下表:
The corresponding Linux version of the evaluation board and the corresponding source code files are shown in the table below:
评估板型号
(evaluation board model)
u-boot源码文件
(u-boot source code)
linux源码文件
(linux source code)
MY-IMX6-EK200
u-boot-2015.04.tar.xz
linux-3.14.52.tar.xz
MY-IMX6-EK314
MY-IMX6-EK336
MY-IMX6-EK140
交叉编译工具文件(cross compiler tool file)
Linux程序交叉编译工具:gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz
Linux program cross compiler tool:gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz
Linux交叉编译工具配置文件:gcc-linaro-arm-linux-gnueabihf-492-env
Linux cross compiler tool configuration file:gcc-linaro-arm-linux-gnueabihf-492-env
QT5程序交叉编译工具:fsl-imx-x11-glibc-x86_64-meta-toolchain-qt5-cortexa9hf-vfp-neon-toolchain-3.14.52-1.1.0.sh
QT5 program compiler tool:fsl-imx-x11-glibc-x86_64-meta-toolchain-qt5-cortexa9hf-vfp-neon-toolchain-3.14.52-1.1.0.sh
安装交叉编译工具链(install cross compiler tool chain)安装Linux交叉编译工具链(install Linux cross compiler tool chain)
1)进入交叉编译工具链目录
enter cross compiler tool chain diretory
$ cd ~/my-imx6/03_tools/
2)复制Linux交叉编译工具到目录
copy Linux cross compiler tool to directory
将gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz复制到“~/my-imx6/03_tools”,这一步自己采取相应的方式完成。
3)解压Linux交叉编译工具
copy gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz to“~/my-imx6/03_tools”,complete this step by yourself in a proper way。
$ tar xf gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz
4)复制交叉编译工具配置文件
copy cross compiler tool configuration file
将gcc-linaro-arm-linux-gnueabihf-492-env复制到“~/my-imx6/03_tools”,这一步自己采取相应的方式完成。
copy gcc-linaro-arm-linux-gnueabihf-492-env to“~/my-imx6/03_tools”,complete this step by yourself in a proper way。
1)进入交叉编译工具链目录
enter cross compiler tool chain directory
$ cd ~/my-imx6/03_tools/
2)执行安装命令
execute installation command
$ sh fsl-imx-x11-glibc-x86_64-meta-toolchain-qt5-cortexa9hf-vfp-neon-toolchain-3.14.52-1.1.0.sh
3)选择安装路径
choose installation path
执行安装命令后会出现如下提示信息:
after execution of installation command,there will be a following prompt message:
Enter target directory for SDK (default: /opt/fsl-imx-x11/3.14.52-1.1.0):
这时按“回车(Enter)”键,我们保持默认的安装路径。
then press“Enter”key,let's keep defauted installation path。
4)确认安装路径
confirm installation path
之后,会提示如下信息:
afterwards,there will be a following prompt message:
You are about to install the SDK to "/opt/fsl-imx-x11/3.14.52-1.1.0". Proceed[Y/n]? 这时输入“Y”并按“回车(Enter)”键表示确认。
then enter“Y”and press“Enter”key for confirmation。
5)等待安装完成
wait untill installation is completed
提示:安装过程大概需要几分钟的时间。 tips:installation will take a few minutes。
6) 检查安装
check installation
查看交叉编译工具链的版本信息以验证交叉编译工具链安装正常。
check the version information of cross compiler tool chain to verify the normality of installation
$ source /opt/fsl-imx-x11/3.14.52-1.1.0/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
$ qmake -v
执行命令后会也出现类似如下的信息:
after execution of command,there will be following message:
U-Boot编译(U-Boot compilation)准备编译(prepare compilation)复制源码包到开发主机中(copy source code package to development host)
将下载的“u-boot源码”复制到Linux开发主机的“~/my-imx6/02_source”。
copy“u-boot source code”downloaded to “~/my-imx6/02_source”of Linux development host。
这一步自己采取相应的方式完成。
complete this step by yourself in a proper way。
configuration of development and its corresponding compiler:
评估板主型号
(development board main model)
CPU类型-内存容量
(CPU type-memory capacity )
处理器架构
(architeture of processor)
对应的u-boot配置
(corresponding u-boot configuration)
MY-IMX6-EK200
i.MX 6QuadPlus - 1G
Cortex-A9
myimx6ek200-6qp_config
i.MX 6QuadPlus - 2G
Cortex-A9
myimx6ek200-6qp-2g_config
i.MX6 Quad - 1G
Cortex-A9
myimx6ek200-6q_config
i.MX6 Quad - 2G
Cortex-A9
myimx6ek200-6q-2g_config
i.MX6 DualLite - 1G
Cortex-A9
myimx6ek200-6u_config
i.MX 6Solo - 512M
Cortex-A9
myimx6ek200-6s_config
i.MX 6Solo - 1G
Cortex-A9
myimx6ek200-6s-1g_config
MY-IMX6-EK314
i.MX 6QuadPlus - 1G
Cortex-A9
myimx6ek200-6qp_config
i.MX 6QuadPlus - 2G
Cortex-A9
myimx6ek200-6qp-2g_config
i.MX6 Quad- 1G
Cortex-A9
myimx6ek314-6q_config
i.MX6 Quad- 2G
Cortex-A9
myimx6ek314-6q-2g_config
i.MX6 DualLite - 1G
Cortex-A9
myimx6ek314-6u_config
MY-IMX6-EK336
i.MX 6QuadPlus - 1G
Cortex-A9
myimx6ek336-6qp_config
i.MX 6QuadPlus - 2G
Cortex-A9
myimx6ek336-6qp-2g_config
i.MX6 Quad- 1G
Cortex-A9
myimx6ek336-6q_config
i.MX6 Quad- 2G
Cortex-A9
myimx6ek336-6q-2g_config
MY-IMX6-EK140
i.MX 6UltraLite-256M
Cortex-A7
myimx6ek140-6g_config
i.MX 6UltraLite-512M
Cortex-A7
myimx6ek140-6g-512m_config
i.MX 6UltraLite Full - 256M
Cortex-A7
myimx6ek140p-6g_defconfig
i.MX 6UltraLite Full - 512M
Cortex-A7
myimx6ek140p-6g-512m_defconfig
MYIMX6EK200-6Q-1G配置示例:
MYIMX6EK200-6Q-1G configuration example:
$ make myimx6ek200-6q_config
执行编译(execute compilation)
$ make
提示:这里为了提高编译速度,在make后面加了“-j4”。这里编译的Linux主机是双核4线程的,所以“-j”后面用了4,也就是采用4线程编译。“-j”后面的数字可以根据系统资源分配,但是不应该超过编译主机最大支持的线程数。
Tips:To speed up the compilation,add "-j4" after make.The Linux host used to compile is dual-core ,4 threads .So "-j" is followed by 4, which takes 4 threads to compile. The number behind "-j" is allocated based on system resources,but It should not exceed the maximum threads the host support.
编译完成
complete compilation
提示:u-boot编译过程大概需要一、两分钟时间。
Tips: u-boot compiling process may take one or two minutes。