Use mfgtool to flash eMMC - TechNexion/u-boot-tn-imx GitHub Wiki

Important Note:

20200722 update:

i.mx8MQ silicon 2.0 is EOL. TechNexion i.mx8mq modules now ship with i.mx8MQ silicon 2.1.
Silicon 2.1 does not support Linux 4.9.51 and 4.9.88 BSP. SPL does not boot on new silicon.
MfgToolv2, based on Linux 4.9.51 BSP, does not apply for silicon 2.1 and later revisions.

Please change to use uuu(universal update utility): Use mfgtool to flash eMMC (can't work on i.mx8mq silicon rev2.1)

uuu is compatible with silicon 2.0, 2.1 and newer.

mfgtool usage

MFGtool is the manufacturing tool provided by NXP. Here the mfgtool we use is mfgtool2. This tool is able to be executed under windows and linux environment. We customize the ramdisk of mfgtool firmware to mount on-boared eMMC as USB mass storage. It makes the eMMC accessed by host PC to provide a easy way to flash u-boot, linux kernel or yocto/android/ubuntu release image.

Supported platform

Download mfgtool from TechNexion FTP

xxx_mfgtool_xxx.zip
ftp://ftp.technexion.net/development_resources/development_tools/installer/

Use mfgtool under MS Windows

  1. First, attach a USB Type-C peripheral cable to the board, and the other end to the host PC. Then, Set the boot jumpers to serial download mode.

  2. Extract the mfgtool.zip and execute MfgTool2.exe in the folder.
    mfgtool_win_exe.png

  3. If the boardisn't detected it will show "No Device Connected":
    mfgtool_win_exe.png

If the board is detected it will show "HID-compliant device":
mfgtool_win_exe.png

Then, press "Start" button to start to load mfgtool firmware, when it completes:
mfgtool_win_exe.png

Eventually, you will see a new removable storage device shown in the file manager.
mfgtool_win_exe.png

There are several useful flashing tools under MS windows:

Use mfgtool under Linux

  1. Install required packages for executing mfgtool Requirement:
  • libusb-1.0-0-dev
  • libusb-1.0-0

Usage:

./linux-runvbs.sh to kick off mfgtool for specific platform.
or launch ./linux-cvbs.sh to covert all vbs to bash scripts.

  1. First, attach a USB Type-C peripheral cable to the board, and the other end to the host PC. Then, Set the boot jumpers to serial download mode.

  2. Extract the mfgtool.zip and execute MfgTool in the folder "mfgtools"

chmod a+x mfgtoolcli
sudo bash ./linux-runvbs.sh mfgtool2-pico_imx8-use_eMMC_as_usb_mass_storage.vbs

mfgtool_linux_op_1.png

  1. Wait about 15 sec, then you can use "lsblk" command to check if there is new block device shown.

Use "dd" command or bmaptool to flash image into eMMC.

⚠️ **GitHub.com Fallback** ⚠️