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)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 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。