SEC Tool v7 write image script points to improper installation bin for different scripts.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

SEC Tool v7 write image script points to improper installation bin for different scripts.

跳至解决方案
1,817 次查看
george_iyo
Contributor II

We identified a potential bug with the generation of write_image scripts for SEC tool v7.

The installation directory for SEC Tool v7 varies on host computer. For Windows, it is:

 export "SPT_INSTALL_BIN=C:/nxp/MCUX_Provi_v7/bin"
 
For Mac/Linux, it is:
 export "SPT_INSTALL_BIN=/opt/nxp/MCUX_Provi_v7/bin"
 
When using SEC Tool v7 on Linux, all install bin directories point to opt/nxp/MCUX_Provi_v7/bin regardless of if the write_image is a windows batch script file. The same holds true when using the SEC Tool v7 on a Windows machine, but instead to C:/nxp/MCUX_Provi_v7/bin for the .sh scripts
 
Because of the differences in installation directory, creating a manufacturing package is not cross-compatible unless the specified line in the  write script is changed to point to the appropriate installation directory for the host OS. We're hoping this gets addressed in the next version update so that our team can generate manufacturing packages independent of host operating system.
0 项奖励
回复
1 解答
1,769 次查看
marek-trmac
NXP Employee
NXP Employee

Hi George,

I double check your use case and I confirm the bug. It is expected the tool will define SEC_INSTALL_BIN environment variable in manufacturing mode but it does not define it in version 7 nor in version 6. We will fix this for next version.

Sorry for inconvenience. As a workaround, you must update the environment variable in the write script manually.

Regards,
Marek


NOTE: If you find the answer useful, kindly click on [ACCEPT AS SOLUTION] button

在原帖中查看解决方案

3 回复数
1,789 次查看
marek-trmac
NXP Employee
NXP Employee

Hi George,

thank you for the feedback. Actually, from your description, it is not clear, what exactly are you proposing.

The usage of the workspace or write script on different machine is described in user guide, chapter 5.1.4.2. Basically you must define your custom environment variable to use the script on different machine. This is also what SEC tool v7 does in manufacturing workspace.

Hope this helps

Regards,
Marek


NOTE: If you find the answer useful, kindly click on [ACCEPT AS SOLUTION] button
0 项奖励
回复
1,784 次查看
george_iyo
Contributor II

Hi Marek,

   I read the user chapter that you described. Perhaps the issue then is when we generated a manufacturing package in Linux, and used the manufacturing package on Windows, it was unable to change ${SPT_INSTALL_BIN} to route the installation directory to the right location on the windows machine. When running the manufacturing tool in Windows, it would complain that it could not find directory '/opt/nxp/MCUX_Provi_v7/bin'

0 项奖励
回复
1,770 次查看
marek-trmac
NXP Employee
NXP Employee

Hi George,

I double check your use case and I confirm the bug. It is expected the tool will define SEC_INSTALL_BIN environment variable in manufacturing mode but it does not define it in version 7 nor in version 6. We will fix this for next version.

Sorry for inconvenience. As a workaround, you must update the environment variable in the write script manually.

Regards,
Marek


NOTE: If you find the answer useful, kindly click on [ACCEPT AS SOLUTION] button