ARM技术论坛
直播中

李玉平

6年用户 15经验值
擅长:嵌入式技术 EMC/EMI设计 存储技术 处理器/DSP 接口/总线/驱动 控制/MCU
私信 关注
[经验]

MY-IMX6 Linux-3.14 编译手册

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。

更多回帖

发帖
×
20
完善资料,
赚取积分