Creating Custom Manufacturing Package with SEC Tool

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

Creating Custom Manufacturing Package with SEC Tool

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

Is there a way to make a custom Manufacturing Package .zip file with addition .sb files? We're thinking of making bundling multiple .sb files into one manufacturing package, an d creating a write script that takes the same arguments, but writes each .sb file in a coordinated fashion for our device. Unfortunately, standard .zip tools don't seem to compress the files in way that the SEC tool accepts, so we're wondering what the process was for the SEC tool to make the .zip file so that it can be accepted by SEC Tool.

0 项奖励
回复
1 解答
1,176 次查看
george_iyo
Contributor II

Ah, what I suspect now is when I zipped a folder in Ubuntu 22, I made is so that the folder is compressed, instead of the contents. So, the .zip file contained a folder with contents, instead of the contents itself.

在原帖中查看解决方案

5 回复数
1,333 次查看
marek-trmac
NXP Employee
NXP Employee

George,

I tried your use case on my computer:

  • created manufacturing package zip
  • opened manufacturing package zip and add a file (I used Total Commander internal zip packer)
  • import the manufacturing package

The package was successfully imported into new workspace and the workspace contains added file.

SEC tool uses the following python library to handle ZIP files: [https://docs.python.org/3/library/zipfile.html] It seems the library implements PKZIP recommendations, the following document is referred from the library documentation: [https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT]

Can you double-check on your side? Can you please provide more details how to reproduce your problem? Can you provide your modified ZIP file that cannot be opened in SEC tool, so we can analyze?

Regards,
Marek
0 项奖励
回复
1,333 次查看
liborukropec
NXP Employee
NXP Employee

Hello George,

it is an ordinary ZIP file, there should not be anything proprietary and you should be able to decompress, tweak write script and compress again.

Could you share with us

  1. screenshot of the error
  2. name (version) of the utility you use for creation of ZIP file
  3. the manufacturing package (e.g. with empty SB file so your app does not leak)

 

Thank you and regards,

Libor

0 项奖励
回复
1,330 次查看
george_iyo
Contributor II

I'm noticing now that this is probably variations of the zip tool of various operating systems. On Linux (Ubuntu 22.04) when I use the zip tool to compress the file, SEC Tool does not accept it (when selecting a manufacturing package, it sets the background color of the file path to Red. Using 7Zip on Windows seems to compress it just fine - I think that for this case I'll compress my scripts and .sb files using a Windows machine with 7Zip.

 

Thanks!

0 项奖励
回复
1,179 次查看
liborukropec
NXP Employee
NXP Employee

Hello George,

Even it is a quite older post - I'm still curious, what was the problem. I've used ZIP utility in the terminal (Ubuntu 22) and it worked as a charm. One must not forget to add `-r` for recursive traversal of directories and the created ZIP was imported without any error. Screenshot of the error and/or arguments used for the zip utility would be helpful.

Regards,

Libor

This zip was used:

liborukropec_0-1704386100467.png

 

0 项奖励
回复
1,177 次查看
george_iyo
Contributor II

Ah, what I suspect now is when I zipped a folder in Ubuntu 22, I made is so that the folder is compressed, instead of the contents. So, the .zip file contained a folder with contents, instead of the contents itself.