myzr123的个人空间 https://www.eechina.com/space-uid-133566.html [收藏] [复制] [分享] [RSS]

博客

MY-IMX6 Linux-3.14 编译手册

已有 1262 次阅读2018-3-22 16:37 |个人分类:资料分享| 314, 核心板, 开发板, 工控板, IMX6

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。

解压u-boot源码包(decompress u-boot source code package)
$ cd ~/my-imx6/02_source/
$ tar xf u-boot-2015.04.tar.xz


编译(compilation)使编译配置文件生效(validate compiler configuration file)
$ source ~/my-imx6/03_tools/gcc-linaro-arm-linux-gnueabihf-492-env


进入u-boot源码目录(enter u-boot source code directory)
$ cd ~/my-imx6/02_source/u-boot-2015.04


清除u-boot临时文件 (remove u-boot temporary files)
$ make distclean 


配置u-boot(configure u-boot)
  • 评估板及对应的 u-boot 编译配置:
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-EK200i.MX 6QuadPlus - 1GCortex-A9myimx6ek200-6qp_config
i.MX 6QuadPlus - 2GCortex-A9myimx6ek200-6qp-2g_config
i.MX6 Quad - 1GCortex-A9myimx6ek200-6q_config
i.MX6 Quad - 2GCortex-A9myimx6ek200-6q-2g_config
i.MX6 DualLite - 1GCortex-A9myimx6ek200-6u_config
i.MX 6Solo - 512MCortex-A9myimx6ek200-6s_config
i.MX 6Solo - 1GCortex-A9myimx6ek200-6s-1g_config
MY-IMX6-EK314i.MX 6QuadPlus - 1GCortex-A9myimx6ek200-6qp_config
i.MX 6QuadPlus - 2GCortex-A9myimx6ek200-6qp-2g_config
i.MX6 Quad- 1GCortex-A9myimx6ek314-6q_config
i.MX6 Quad- 2GCortex-A9myimx6ek314-6q-2g_config
i.MX6 DualLite - 1GCortex-A9myimx6ek314-6u_config
MY-IMX6-EK336i.MX 6QuadPlus - 1GCortex-A9myimx6ek336-6qp_config
i.MX 6QuadPlus - 2GCortex-A9myimx6ek336-6qp-2g_config
i.MX6 Quad- 1GCortex-A9myimx6ek336-6q_config
i.MX6 Quad- 2GCortex-A9myimx6ek336-6q-2g_config
MY-IMX6-EK140i.MX 6UltraLite-256MCortex-A7myimx6ek140-6g_config
i.MX 6UltraLite-512MCortex-A7myimx6ek140-6g-512m_config
i.MX 6UltraLite Full - 256MCortex-A7myimx6ek140p-6g_defconfig
i.MX 6UltraLite Full - 512MCortex-A7myimx6ek140p-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。

路过

鸡蛋

鲜花

握手

雷人

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 立即注册

关于我们  -  服务条款  -  使用指南  -  站点地图  -  友情链接  -  联系我们
电子工程网 © 版权所有   京ICP备16069177号 | 京公网安备11010502021702
返回顶部