Download QNX image with MFGTool

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

Download QNX image with MFGTool

1,457 Views
joshhsiao
Contributor I

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

0 Kudos
2 Replies

931 Views
joshhsiao
Contributor I

Hi Dan,

Thanks for your reply.

Actually QNX BSP porting is not a problem for us.

My question is:

1. I downloaded Linux yocto latest BSP here, and followed "Freescale_Yocto_Project_User's_Guide.pdf" to build mfgtool firmware. The uboot and zimage are generated without error, and I can boot normally with latest mfgtool. But after jumping to kernel, I can't enable usb mass storage mode. Hence, the UTP will keep waiting for device to appear and mfgtool UI shows "no device connected". So I need your help to check my environment about enabling usb mass storage mode. The uart log and .config are attached before.

2. I try to build our own mfgtool. I download "mfgtool.v2.3.2.SRC" from NXP website and build it with VS2015, but get some errors as I attached above. Can you help to clarify it?

Thanks for you great support!

Regards,

Josh

0 Kudos

931 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi Josh,

In our website we only released  the linux and Android BSP on i.MX6. About the QNX BSP on i.MX6Solo, you need to do the porting yourself. And we can not give support for this.

I see that Adeneo Embedded expertise on Linux, WinCE, Android and QNX BSP Adaptation from reference BSPs for i.MX and Vybrid custom hardware designs. Maybe you can get some useful information from them. BSP/Driver Development / Services / Home - Adeneo Embedded
Have a great day,
Dan

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Mark Correct  button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos