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

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** ⚠️