编译内核(compife kernel)
execute compilation $ make zImage
complete compilation
target file arch/arm/boot/zImage即为编译得到的内核文件,使用ls命令可查看文件信息。 arch/arm/boot/zImage is the kernel file compifed,you can check file information with ls command。 $ ls arch/arm/boot/zImage -la
注意:我们烧录及启动的内核文件名为“zImage-myimx6”,所以我们需要把zImage复制为zImage-myimx6。 Note: The kernel file name which is going to be programed and started is “zImage-myimx6”, So we should Copy zImage as zImage-myimx6 $ cp arch/arm/boot/zImage ~/my-imx6/04_image/image-linux-31452/zImage-myimx6
编译设备树(compife device tree)
评估板型号规格与设备树文件对应关系见下表: The correspondence between the type of evaluation board and device tree is shown below:
评估板主型号
(development main model)
|
CPU类型-内存容量
(CPU type-memory capacity)
|
对应的设备树文件
(corresponding device tree file)
|
MY-IMX6-EK200 |
i.MX 6QuadPlus - 1G |
myimx6ek200-6qp.dtb |
i.MX 6QuadPlus - 2G |
myimx6ek200-6qp-2g.dtb |
i.MX6 Quad - 1G |
myimx6ek200-6q.dtb |
i.MX6 Quad - 2G |
myimx6ek200-6q-2g.dtb |
i.MX6 DualLite - 1G |
myimx6ek200-6u.dtb |
i.MX 6Solo - 512M |
myimx6ek200-6s.dtb |
i.MX 6Solo - 1G |
myimx6ek200-6s-1g.dtb |
MY-IMX6-EK314 |
i.MX 6QuadPlus - 1G |
myimx6ek314-6qp.dtb |
i.MX 6QuadPlus - 2G |
myimx6ek314-6qp-2g.dtb |
i.MX6 Quad - 1G |
myimx6ek314-6q.dtb |
i.MX6 Quad - 2G |
myimx6ek314-6q-2g.dtb |
i.MX6 DualLite - 1G |
myimx6ek314-6u.dtb |
MY-IMX6-EK336 |
i.MX 6QuadPlus - 1G |
myimx6ek336-6qp.dtb |
i.MX 6QuadPlus - 2G |
myimx6ek336-6qp-2g.dtb |
i.MX6 Quad - 1G |
myimx6ek336-6q.dtb |
i.MX6 Quad - 2G |
myimx6ek336-6q-2g.dtb |
MY-IMX6-EK140 |
i.MX 6UltraLite-256M |
myimx6ek140-6g.dtb |
i.MX 6UltraLite-512M |
myimx6ek140-6g-512m.dtb |
i.MX 6UltraLite Full - 256M (2eth) |
myimx6ek140p-6g.dtb |
i.MX 6UltraLite Full - 256M (8uart) |
myimx6ek140p-6g-8uart.dtb |
i.MX 6UltraLite Full - 512M (2eth) |
myimx6ek140p-6g-512m.dtb |
i.MX 6UltraLite Full - 512M (8uart) |
myimx6ek140p-6g-512m-8uart.dtb |
take MY-IMX6-EK200-6Q-1G as example $ make myimx6ek200-6q.dtb
target file 使用ls命令可查看编译得到的目标设备树文件信息: You can browse the target device tree file information from compilation with ls command: $ ls arch/arm/boot/dts/myimx6ek*.dtb
复制设备树文件到镜像目录 Copy device tree file to image directory $ cp arch/arm/boot/dts/myimx6ek*.dtb ~/my-imx6/04_image/image-linux-31452/
编译模块 (compife module)
compile module command $ make modules
Install module to the specified directory $ make modules_install INSTALL_MOD_PATH=./modules
package the module file $ cd modules $ tar cjf ../modules.tar.bz2 *
Copy module package to image directory
评估板型号
(development board model)
|
目标模块包
(target module package)
|
MY-IMX6-EK200 |
kernel-modules-myimx6.tar.bz2 |
MY-IMX6-EK314 |
MY-IMX6-EK336 |
MY-IMX6-EK140 |
kernel-modules-myimx6g.tar.bz2 |
$ cp ../modules.tar.bz2 ~/my-imx6/04_image/image-linux-31452/kernel-modules-myimx6.tar.bz2 注意:如果是编译内核时配置文件使用的是 myimx6_defconfig,在这里要把 modules.tar.bz2 复制为 kernel-modules-myimx6.tar.bz2;如果是编译内核时配置文件使用的是 myimx6ul_defconfig,在这里要把 modules.tar.bz2 复制为 kernel-modules-myimx6g.tar.bz2 Note:when you compile the Kernel If the configuration file you use is myimx6_defconfig, here you should Copy modules.tar.bz2 as kernel-modules-myimx6.tar.bz2.If the configuration file is myimx6ul_defconfig,you should Copy modules.tar.bz2 as kernel-modules-myimx6g.tar.bz2.
|