MFGTool For i.MX Boards
MFGTool is the NXP® tool to deploy images to an i.MX-based board. LmP provides two scripts to deploy the build artifacts using this tool:
bootloader.uuu
: used to deploy SPL and U-Boot FIT image (u-boot.itb)full_image.uuu
: used to deploy the entire image, from SPL to rootfs
This support can be extended to support other features, such as fusing and closing a board for secure boot. Note that this case is not covered in this document.
The mfgtool-files
package is built by the CI when the mfg_tools
node is included in factory-config.yml
Factory Definition.
It is built locally when DISTRO=lmp-mfgtool
is set.
To enable a custom mfgtool-files
package, you must provide the following configuration:
- U-Boot: you to provide a configuration file (
lmp.cfg
) to be used for themfgtool-files
U-Boot build (u-boot-fio-mfgtool
). This is similar to the configuration file used byDISTRO=lmp
, but should include SDP, USB and fastboot support. - OP-TEE: Same for the standard
u-boot-fio support
. You need to provide machine-specific configuration to OP-TEE for themfgtool-files
building (optee-os-fio-mfgtool
). This includes OP-TEE machine name, UART address, and overlay address. mfgtool-files
: Thebootloader.uuu.in
andfull_image.uuu.in
input files to generate the MFGTool scripts. You can provide the same files as the reference board support in LmP.
├── recipes-bsp
│ └── u-boot
│ ├── u-boot-fio-mfgtool
│ │ └── <board>
│ │ └── lmp.cfg
│ └── u-boot-fio-mfgtool_%.bbappend
├── recipes-security
│ └── optee
│ └── optee-os-fio-mfgtool_3.10.0.bbappend
└── recipes-support
└── mfgtool-files
├── mfgtool-files
│ └── <board>
│ ├── bootloader.uuu.in
│ └── full_image.uuu.in
└── mfgtool-files_%.bbappend