Converting RCW Binary To Source

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

Converting RCW Binary To Source

跳至解决方案
2,329 次查看
SwimmerDude
Contributor II

Hello,

I am investigating if it is possible to convert an RCW binary back to source (.rcw). I'm familiar with the process of importing an RCW binary, editing the RCW, and then generating another binary using the PBL tool in CodeWarrior Development Studio for QorlQ LS series- ARM V8 ISA. I'm also familiar with editing the raw .rcw file.

We're wondering if it's possible to take a pre-composed binary and convert it to source for editing purposes? Possibly in the CodeWarrior tool or through other means? Thank you for any help.

标记 (1)
0 项奖励
回复
1 解答
2,267 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the attachment.

在原帖中查看解决方案

0 项奖励
回复
9 回复数
1,555 次查看
serenamaya
Contributor I

can you give me a copy of the rcw  source file of ls1043a,

and how to compile pbl.bin with rcw? Thanks!

0 项奖励
回复
2,279 次查看
ed_swarthout
NXP Employee
NXP Employee

You can use the rcw.py reverse option.  See: https://github.com/nxp-qoriq/rcw/blob/master/rcw.py#L159

rcw.py --rcwi ls1028asi/ls1028a.rcwi -i RCW.bin -o RCW.rcw

标记 (2)
0 项奖励
回复
2,257 次查看
stadium_aquino
Contributor IV

> You can use the rcw.py reverse option.  See: https://github.com/nxp-qoriq/rcw/blob/master/rcw.py#L159

Note that this only works with python 2 (although I don't know if you can use the rest of the tool with python 2; maybe you can go back to an earlier version). You need to use https://github.com/nxp-qoriq/rcw/pull/1 for python 3.

0 项奖励
回复
2,305 次查看
yipingwang
NXP TechSupport
NXP TechSupport

There is no tool to convert RCW .bin file to .rcw file.

You need to import .bin file to CodeWarrior IDE, then modify Properties panel according to your custom board, then regenerate .bin file with CodeWarrior.

0 项奖励
回复
2,297 次查看
SwimmerDude
Contributor II

Hi @yipingwang,

Thanks for your reply. Okay in that case we've pinpointed we need a specific rcw source file. We are using Uboot 18.03, the LS1028ARDB, and we've determined the matching LSDK is 18.09. The ultimate goal is to obtain the rcw source files from this version for our board. I've found your flexbuild_lsdk18.09.tgz file from this post but flexbuild_lsdk1809/configs/board does not contain a folder for ls1028ardb. 

Would you happen to have a copy of the rcw source files for LSDK 18.09 for the LS1028ARDB? Or know where we could find a copy? Thank you for your continued help.

0 项奖励
回复
2,289 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please check whether the attached BSP is what you need.

0 项奖励
回复
2,281 次查看
SwimmerDude
Contributor II

Hi @yipingwang,

Thanks that is very close to what we need. Would you happen to have a copy of flexbuild_ls1028a_bsp0.1.tgz? We believe that is the BSP needed for our purposes. Thanks again!

0 项奖励
回复
2,268 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the attachment.

0 项奖励
回复
2,155 次查看
SwimmerDude
Contributor II

Thank you @yipingwang, this was the file we needed!

0 项奖励
回复