AnsweredAssumed Answered

Download QNX image with MFGTool

Question asked by Josh Hsiao on Aug 1, 2016

Hi,

We are using i.MX6 solo customized board with QNX 6.6 operating system.

I followed "Freescale_Yocto_Project_User's_Guide.pdf" to generate our own mfgtool firmware, but seems can't switch to mass storage mode after jumping to kernel.

Attachment is the uart log and .config for your reference.

Can you help to clarify what's wrong with my environment?

 

I also downlaoded "mfgtool.v2.3.2.SRC" to build our own mfgtool for QNX, but it can't build successfully with VS2015.

The error log is as below:

 

1>------ Build started: Project: MfgToolLib, Configuration: Debug Win32 ------

1>  ConfigUSBPortDlg.cpp

1>c:\users\josh\documents\visual studio 2015\projects\mfgtool.v2.3.2.src\apps\mfgtoollib\Device.h(41): warning C4091: 'typedef ': ignored on left of 'Device::DeviceCapabilitiesW' when no variable is declared

1>c:\users\josh\documents\visual studio 2015\projects\mfgtool.v2.3.2.src\apps\mfgtoollib\Device.h(59): warning C4091: 'typedef ': ignored on left of 'Device::NotifyStruct' when no variable is declared

1>c:\users\josh\documents\visual studio 2015\projects\mfgtool.v2.3.2.src\apps\mfgtoollib\DeviceClass.h(43): warning C4091: 'typedef ': ignored on left of 'DeviceClass::NotifyStruct' when no variable is declared

1>C:\Program Files (x86)\Windows Kits\8.1\Include\shared\ntddscsi.h(719): warning C4091: 'typedef ': ignored on left of '_NV_SEP_WRITE_CACHE_TYPE' when no variable is declared

1>c:\users\josh\documents\visual studio 2015\projects\mfgtool.v2.3.2.src\apps\mfgtoollib\DeviceManager.h(39): warning C4091: 'typedef ': ignored on left of 'DeviceManager::DevChangeEvent' when no variable is declared

1>c:\users\josh\documents\visual studio 2015\projects\mfgtool.v2.3.2.src\apps\mfgtoollib\ConfigUSBPortDlg.h(56): warning C4091: 'typedef ': ignored on left of 'CConfigUSBPortDlg::CbState_t' when no variable is declared

1>c:\users\josh\documents\visual studio 2015\projects\mfgtool.v2.3.2.src\apps\mfgtoollib\ConfigUSBPortDlg.h(87): error C2065: 'MAX_CMDOP_NUMS': undeclared identifier

1>c:\users\josh\documents\visual studio 2015\projects\mfgtool.v2.3.2.src\apps\mfgtoollib\ConfigUSBPortDlg.h(91): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\users\josh\documents\visual studio 2015\projects\mfgtool.v2.3.2.src\apps\mfgtoollib\ConfigUSBPortDlg.h(91): error C2143: syntax error: missing ',' before '*'

1>ConfigUSBPortDlg.cpp(46): error C2065: 'UM_DEVICE_CHANGE': undeclared identifier

1>ConfigUSBPortDlg.cpp(135): error C2065: 'MAX_CMDOP_NUMS': undeclared identifier

1>ConfigUSBPortDlg.cpp(140): error C2065: 'g_CmdOperationArray': undeclared identifier

1>ConfigUSBPortDlg.cpp(142): error C2065: 'g_CmdOperationArray': undeclared identifier

1>ConfigUSBPortDlg.cpp(142): error C2227: left of '->m_p_usb_port' must point to class/struct/union/generic type

1>ConfigUSBPortDlg.cpp(154): error C2660: 'CConfigUSBPortDlg::DoTreeOperation': function does not take 1 arguments

1>ConfigUSBPortDlg.cpp(161): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>ConfigUSBPortDlg.cpp(161): error C2143: syntax error: missing ',' before '*'

1>ConfigUSBPortDlg.cpp(232): error C2065: 'pNsinfo': undeclared identifier

1>ConfigUSBPortDlg.cpp(232): error C2227: left of '->Hub' must point to class/struct/union/generic type

1>  ConfigUSBPortDlg.cpp(232): note: type is 'unknown-type'

1>ConfigUSBPortDlg.cpp(232): error C2228: left of '.Compare' must have class/struct/union

1>ConfigUSBPortDlg.cpp(232): error C2227: left of '->HubIndex' must point to class/struct/union/generic type

1>  ConfigUSBPortDlg.cpp(232): note: type is 'unknown-type'

1>ConfigUSBPortDlg.cpp(243): error C2660: 'CConfigUSBPortDlg::DoTreeOperation': function does not take 1 arguments

1>ConfigUSBPortDlg.cpp(250): error C2660: 'CConfigUSBPortDlg::DoTreeOperation': function does not take 1 arguments

1>ConfigUSBPortDlg.cpp(286): error C2660: 'CConfigUSBPortDlg::DoTreeOperation': function does not take 1 arguments

1>ConfigUSBPortDlg.cpp(630): error C2660: 'CConfigUSBPortDlg::DoTreeOperation': function does not take 1 arguments

1>ConfigUSBPortDlg.cpp(654): error C2660: 'CConfigUSBPortDlg::DoTreeOperation': function does not take 1 arguments

1>ConfigUSBPortDlg.cpp(680): error C2660: 'CConfigUSBPortDlg::DoTreeOperation': function does not take 1 arguments

1>ConfigUSBPortDlg.cpp(685): error C2065: 'MxNotifyStruct': undeclared identifier

1>ConfigUSBPortDlg.cpp(685): error C2065: 'pnsInfo': undeclared identifier

1>ConfigUSBPortDlg.cpp(685): error C2059: syntax error: ')'

1>ConfigUSBPortDlg.cpp(687): error C2065: 'pnsInfo': undeclared identifier

1>ConfigUSBPortDlg.cpp(687): error C2227: left of '->Event' must point to class/struct/union/generic type

1>  ConfigUSBPortDlg.cpp(687): note: type is 'unknown-type'

1>ConfigUSBPortDlg.cpp(693): error C2065: 'pnsInfo': undeclared identifier

1>ConfigUSBPortDlg.cpp(697): error C2660: 'CConfigUSBPortDlg::DoTreeOperation': function does not take 1 arguments

1>ConfigUSBPortDlg.cpp(711): error C2065: 'MAX_CMDOP_NUMS': undeclared identifier

1>  CmdOperation.cpp

1>c:\users\josh\documents\visual studio 2015\projects\mfgtool.v2.3.2.src\apps\mfgtoollib\Device.h(41): warning C4091: 'typedef ': ignored on left of 'Device::DeviceCapabilitiesW' when no variable is declared

1>c:\users\josh\documents\visual studio 2015\projects\mfgtool.v2.3.2.src\apps\mfgtoollib\Device.h(59): warning C4091: 'typedef ': ignored on left of 'Device::NotifyStruct' when no variable is declared

1>c:\users\josh\documents\visual studio 2015\projects\mfgtool.v2.3.2.src\apps\mfgtoollib\DeviceClass.h(43): warning C4091: 'typedef ': ignored on left of 'DeviceClass::NotifyStruct' when no variable is declared

1>C:\Program Files (x86)\Windows Kits\8.1\Include\shared\ntddscsi.h(719): warning C4091: 'typedef ': ignored on left of '_NV_SEP_WRITE_CACHE_TYPE' when no variable is declared

1>c:\users\josh\documents\visual studio 2015\projects\mfgtool.v2.3.2.src\apps\mfgtoollib\DeviceManager.h(39): warning C4091: 'typedef ': ignored on left of 'DeviceManager::DevChangeEvent' when no variable is declared

1>CmdOperation.cpp(518): warning C4101: '_uiInfo': unreferenced local variable

1>CmdOperation.cpp(618): error C2137: empty character constant

1>CmdOperation.cpp(589): warning C4996: 'wcscpy': This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

1>  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\corecrt_wstring.h(121): note: see declaration of 'wcscpy'

1>CmdOperation.cpp(595): warning C4996: 'wcscpy': This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

1>  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\corecrt_wstring.h(121): note: see declaration of 'wcscpy'

1>CmdOperation.cpp(603): warning C4996: 'wcscpy': This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

1>  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\corecrt_wstring.h(121): note: see declaration of 'wcscpy'

1>CmdOperation.cpp(621): warning C4996: 'wcscpy': This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

1>  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\corecrt_wstring.h(121): note: see declaration of 'wcscpy'

1>CmdOperation.cpp(631): warning C4996: 'wcscpy': This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

1>  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\corecrt_wstring.h(121): note: see declaration of 'wcscpy'

1>CmdOperation.cpp(732): warning C4996: 'wcscpy': This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

1>  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\corecrt_wstring.h(121): note: see declaration of 'wcscpy'

1>  Generating Code...

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

 

It seems some identifiers are not declared in the project. How should I fix it?

Is it possible to build our own mfgtool to replace kernel image with QNX ifs image?

 

 

Regards,

Josh

Original Attachment has been moved to: uart.log.zip

Original Attachment has been moved to: config.zip

Outcomes