文档说明(document instruction)
系统环境说明(system environment instruction)
- 编译主机CPU架构:64位
IF">CUP architeture of host used for compilation:64bit
- 编译主机系统:Linux
system of host:Linux
- Linux发行版:Ubuntu
Linux release version:Ubuntu
- Ubuntu版本类型:服务器版
Ubuntu version type:server version
- Ubuntu版本号:12.04.5
Ubuntu version no.:12.04.5
- Ubuntu系统类型:x86-64
Ubuntu system type:x86-64
注意:开发主机请使用ubuntu 12.04.5 x86-64(桌面版或服务器版均可),使用其他发行版的Linux或Ubuntu的其它版本可能会遇到的不必要的问题。
Note: The development host should use ubuntu 12.04.5 x86-64(desktop and server version are available),Using other distribution of Linux and other versions of Ubuntu may encounter unnecessary problems
操作说明 (operation instruction)
1)文档中以“$”开头的行,其后是Linux命令。
The line in the document which begins with “$”,which is followed by the Linux command.。
2)文档中所有的Linux命令建议手动输入到Linux主机执行(直接复制、粘贴到Linux主机上执行,可能会执行失败)。
All the Linux commands in the document are recommended to be entered into the host manually for execution.(Copying ,pasting to the host directly to execute may fail)。
3)文档中的Linux执行命令,如果空格后的下一个字符是“-”的(如:sudo apt-get –y install之类的),请手动输入到Linux主机执行(直接复制、粘贴到Linux主机上执行,通常会执行失败)。
In all the Linux execution commands of the document,if the next character after the space is "-",(example:sudo apt-get –y install),please enter into Linux host to execute manually.(Copying ,pasting to the host directly to execute may fail ).)。
4)文档中所有一行没写完的Linux命令请手动输入到Linux主机执行,(因为复制、粘贴命令不能包含类似“换行符”之类的特殊字符)。
any line of Linux commands whichi is not finished is recommended to be entered into the host for execution. (Because copy or paste commands cannot contain special character such as "line breaks")。)。
5)按文档输入并执行Linux命令时注意观察命令的执行结果与文档图片中的是否一致,以确认命令是否输入有误及是否执行失败。
Note whether the execution result is consistent with the document image when you enter and execute the command. check the command was entered incorrectly or faiLED to execute.。
6)第一遍编译请严格按照文档进行,否则可能出现莫名其妙的错误。
Please follow the document strictly to compile for the first time.Otherwise ,there may be unexpected error。
截图说明(screenshots instruction)
为使视图看起来简洁整齐,截图中的命令提示符统一使用myzr$。
To make the view look neat and tidy , the command prompt in the screenshot should use myzr$ uniformly。
图片中的Linux命令(Linux command in the image)
在文档的图片中观察“myzr$”开头的行可以直观的看到输入的Linux命令。
In the image of the document, you can see the input Linux command visually from the lines that start with “myzr$”。
重要信息说明(important information instruction)
为避免各位客户在搭建开发环境及编译过程中遇到不必要的问题浪费时间和精力,推荐使用明远智睿发布的“vb43-u12045-serv-amd64”虚拟机系统。
To avoid our customers wasting time and energy when they encounter unnecessary problems in building development environment and compiling process,it is recommended to use “vb43-u12045-serv-amd64” virtual machine system released by MYZR。
具体参见 MYZR虚拟机系统指导(details refered to MYZR virtual machine system guidance)
准备源码及相关文件(prepare source code and relevant file)
源码文件(source code)
评估板对应的Linux版本及对应的源码文件见下表:
The corresponding Linux version of the evaluation board and the corresponding source code files are shown in the table below:
| 评估板型号 |
u-boot源码文件 |
linux源码文件 |
| MY-IMX6-EK200 | u-boot-2016.03__svn121.tar.xz | linux-4.1.15__svn189.tar.xz |
| MY-IMX6-EK314 | ||
| MY-IMX6-EK336 | ||
| MY-IMX6-EK140 |
交叉编译工具文件(cross compiler tool file)
Linux程序交叉编译工具:gcc-linaro-5.3-2016.02-x86_64_ARM-linux-gnueabihf.tar.xz
Linux program cross compiler tool:gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf.tar
Linux交叉编译工具配置文件:gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf-env
Linux cross compiler tool configuration file:gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf-env
创建工作目录(creat working directory)
1)源码目录
source code directory
$ mkdir ~/my-imx6/02_source –p ![]()
2)工具目录
tool directory
$ mkdir ~/my-imx6/03_tools –p![]()
3)镜像目录
image directory
$ mkdir ~/my-imx6/04_image –p![]()
$ mkdir ~/my-imx6/04_image/image-linux-4115 –p![]()
4)应用程序目录
application diretory
$ mkdir ~/my-demo![]()
安装交叉编译工具链(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-5.3-2016.02-x86_64_arm-linux-gnueabihf.tar复制到“~/my-imx6/03_tools”,这一步自己采取相应的方式完成。
3)解压Linux交叉编译工具
copy gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf.tar to“~/my-imx6/03_tools”,complete this step by yourse

本文档提供了一套详细的指南,用于在Ubuntu 12.04.5 x86-64环境下搭建嵌入式Linux开发环境,并介绍了如何编译U-Boot、Linux内核、设备树以及应用程序等关键组件。
最低0.47元/天 解锁文章
164

被折叠的 条评论
为什么被折叠?



