Can't flash emmc with mfgtool on i.mx8mq evk

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can't flash emmc with mfgtool on i.mx8mq evk

Jump to solution
1,894 Views
jiaxindin
Contributor II

I use L4.9.88_2.0.0_mfg-tool_MX8MQ.tar.gz to flash i.mx8mq_evk emmc on win7.

But it always failed.

I set sw802  "01" for serial download mode.

The win7 device manager shows HID device.

Then I run mfgtool2-yocto-mx8-evk-emmc1.vbs.

Below is Mfgtool.log.

DLL version: 2.7.0
Wednesday, October 31, 2018 09:19:58 Start new logging
ModuleID[2] LevelID[10]: CMyExceptionHandler thread is running
ModuleID[2] LevelID[1]: new MxHidDeviceClass
ModuleID[2] LevelID[10]: new MxHidDevice[06888810]
ModuleID[2] LevelID[1]: new MxHidDeviceClass
ModuleID[2] LevelID[10]: new MxHidDevice[068892F8]
ModuleID[2] LevelID[1]: new MxHidDeviceClass
ModuleID[2] LevelID[10]: new MxHidDevice[069157E0]
ModuleID[2] LevelID[10]: Device Manager thread is running
ModuleID[2] LevelID[1]: Can't set m_hStopEvent before it initialized or it already stop

ModuleID[2] LevelID[10]: CmdOperation[0] device chagned and reset to state 0
ModuleID[2] LevelID[10]: CmdOperation[0], skip current command, so SetEvent(hDevCanDeleteEvent)
ModuleID[2] LevelID[10]: CmdOperation[0], skip current command, so SetEvent(hDevCanDeleteEvent)
ModuleID[2] LevelID[10]: ExecuteCommand--Boot[WndIndex:0], File is E:\d\L4.9.88_2.0.0_mfg-tool_MX8MQ\mfgtools\Profiles\linux\OS Firmware\firmware\imx-boot-imx8mqevk-sd.bin-flash_evk
ModuleID[2] LevelID[1]: HAB type mismatch: 0xcf1133!!!
ModuleID[2] LevelID[10]: *********MxHidDevice[069157E0] Jump to Ramkernel successfully!**********
ModuleID[2] LevelID[10]: CmdOperation[0], skip current command, so SetEvent(hDevCanDeleteEvent)
ModuleID[2] LevelID[10]: ExecuteCommand--Load[WndIndex:0], File is E:\d\L4.9.88_2.0.0_mfg-tool_MX8MQ\mfgtools\Profiles\linux\OS Firmware\firmware\Image, address is 0x40480000
ModuleID[2] LevelID[10]: PortMgrDlg(0)--Command Load excute successfully, retry count: 0
ModuleID[2] LevelID[10]: CmdOperation[0], skip current command, so SetEvent(hDevCanDeleteEvent)
ModuleID[2] LevelID[10]: ExecuteCommand--Load[WndIndex:0], File is E:\d\L4.9.88_2.0.0_mfg-tool_MX8MQ\mfgtools\Profiles\linux\OS Firmware\firmware\fsl-image-mfgtool-initramfs-imx_mfgtools.cpio.gz.u-boot, address is 0x43800000
ModuleID[2] LevelID[10]: PortMgrDlg(0)--Command Load excute successfully, retry count: 0
ModuleID[2] LevelID[10]: CmdOperation[0], skip current command, so SetEvent(hDevCanDeleteEvent)
ModuleID[2] LevelID[10]: CmdOperation[0], skip current command, so SetEvent(hDevCanDeleteEvent)
ModuleID[2] LevelID[10]: ExecuteCommand--Load[WndIndex:0], File is E:\d\L4.9.88_2.0.0_mfg-tool_MX8MQ\mfgtools\Profiles\linux\OS Firmware\firmware\fsl-imx8mq-evk.dtb, address is 0x43000000
ModuleID[2] LevelID[10]: PortMgrDlg(0)--Command Load excute successfully, retry count: 0
ModuleID[2] LevelID[10]: ExecuteCommand--Jump[WndIndex:0]
ModuleID[2] LevelID[10]: *********MxHidDevice[069157E0] Jump to Ramkernel successfully!**********
ModuleID[2] LevelID[10]: CmdOperation[0], current state command has been finished and the last command is successful, so SetEvent(hDevCanDeleteEvent)
ModuleID[2] LevelID[10]: DeviceManager::DevChangeWnd::OnDeviceChange() - DEVICE_REMOVAL_EVT(\\?\USB#VID_1FC9&PID_012B#5&876f0f3&0&2#{a5dcbf10-6530-11d2-901f-00c04fb951ed})
ModuleID[2] LevelID[10]: DeviceManager::DevChangeWnd::OnDeviceChange() - end
ModuleID[2] LevelID[10]: DeviceManager::OnMsgDeviceEvent() - DEVICE_REMOVAL_EVT(\\?\USB#VID_1FC9&PID_012B#5&876f0f3&0&2#{a5dcbf10-6530-11d2-901f-00c04fb951ed})
ModuleID[2] LevelID[10]: DeviceClass::FindDeviceByUsbPath--DeviceListType_Current, _devices.size: 1
ModuleID[2] LevelID[10]: DeviceClass::FindDeviceByUsbPath--DeviceListType_Current, devInstPathToFind: USB\VID_1FC9&PID_012B\5&876F0F3&0&2, _deviceInstanceID: USB\VID_1FC9&PID_012B\5&876F0F3&0&2
ModuleID[2] LevelID[10]: DeviceClass::FindDeviceByUsbPath--DeviceListType_Current, Find the device
ModuleID[2] LevelID[10]: DeviceManager::OnMsgDeviceEvent() - DEVICE_REMOVAL_EVT,[MxHidDeviceClass] vid_1fc9&pid_012b, Hub:0-Port:0
ModuleID[2] LevelID[10]: DeviceManager::OnMsgDeviceEvent() - DEVICE_REMOVAL_EVT, Notify
ModuleID[2] LevelID[10]: CmdOperation[0] device chagned and reset to state 0
ModuleID[2] LevelID[10]: CmdOperation[0], skip current command, so SetEvent(hDevCanDeleteEvent)
ModuleID[2] LevelID[10]: CmdOperation[0], skip current command, so SetEvent(hDevCanDeleteEvent)
ModuleID[2] LevelID[10]: ExecuteCommand--Boot[WndIndex:0], File is E:\d\L4.9.88_2.0.0_mfg-tool_MX8MQ\mfgtools\Profiles\linux\OS Firmware\firmware\imx-boot-imx8mqevk-sd.bin-flash_evk
ModuleID[2] LevelID[1]: MxHidDevice::AllocateIoBuffers().CreateFile ERROR:(2)
ModuleID[2] LevelID[1]: ERROR: AllocateIoBuffers failed. 2
ModuleID[2] LevelID[1]: RunPlugIn(): TransData(0x7E1000, 0x28800,0x210A050) failed.
ModuleID[2] LevelID[1]: PortMgrDlg(0)--MxHidDevice--Command Boot excute failed
ModuleID[2] LevelID[10]: CmdOperation[0], current command executed failed, so SetEvent(hDevCanDeleteEvent)
ModuleID[2] LevelID[10]: CCmdOpreation[0] thread is Closed
ModuleID[2] LevelID[10]: CCmdOpreation[0] thread is Closed

Can the emmc of  i.mx8mq_evk  be flashed successfully with mfgtool?

Labels (1)
1 Solution
1,401 Views
yashavanthashet
Contributor V

Hi,

If you are using WIndows7 pc to flash, try changing it to windows 10.

Regards,

Yashavantha

View solution in original post

5 Replies
1,401 Views
jiaxindin
Contributor II

Thank you for your answer.

We have changed  several computers which are all run with  win7 (32bit and 64bit) in company to flash emmc with mfgtool, but all failed.

Then I get a pc run with win10 to do the same procedure , it successfully flash the emmc.

I have also tried to flash emmc with mfgtool on linux(ubuntu 16.04).

But it always failed with

DLL version: 2.3.4
Mon Oct 15 14:23:18 2018
Start new logging
ModuleID[2] LevelID[1]: Error: Invalid device name: MX8QM
ModuleID[2] LevelID[1]: Parse ucl script failed, error code: 24
DLL version: 2.3.4
Mon Oct 15 14:24:13 2018
Start new logging
ModuleID[2] LevelID[1]: Error: Invalid device name: MX8QM
ModuleID[2] LevelID[1]: Parse ucl script failed, error code: 24

But I can see correct pid  with lsusb compared  with ucl2.xml.  Strangely.

Can the mfgtool support flashing emmc on linux?

0 Kudos
Reply
1,401 Views
yashavanthashet
Contributor V

hi,

I don't think freescale imx MFGtool can be used in ubuntu PC, it runs only on windows host.

Regards,

Yashavantha

0 Kudos
Reply
1,401 Views
jiaxindin
Contributor II

 Thank you very much, Yashavantha.

1,402 Views
yashavanthashet
Contributor V

Hi,

If you are using WIndows7 pc to flash, try changing it to windows 10.

Regards,

Yashavantha

1,401 Views
joanxie
NXP TechSupport
NXP TechSupport

I suggest that you change another PC to test again. I tested this on my mx8 EVK board successfully.