How to modify partition size using cfimager utility.

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

How to modify partition size using cfimager utility.

2,780 Views
vishnupatekar
Contributor II

Hello,

I've downloaded the Mfgtools-Rel-1.6.2.032 from freescale website. We've "cfimager.exe' utility to write eboot.nb0 and NK.nb0 to SD card.

 

I want to write two NK.nb0 at two different locations in SD card, As cfimager make default 96MB partition on SD card, two NK.nb0 exceeds 96MB size.

How to customize it to make that hidden partition of more size(200MB)?

How to write NK.nb0 at specified location using cfimager ?

 

Using manufacturing tool it can be customized using UCL script(and it worked), How can we do similar thing using "cfimager.exe'? How to get source code of "cfimager.exe" utility?

 

Thanks in advance.

 

Thanks,

Vishnu

1 Reply

777 Views
StanleyLee
NXP Employee
NXP Employee

Dear Vishnu,

Glad to see your participation in the forum!

 

How to customize it to make that hidden partition of more size(200MB)?

Answer: You can change partition size by changing:

Line 43 of CStCFBootImager.h: kMX53BootPartitionSize = 200MB; //"your own size"

 

How to write NK.nb0 at specified location using cfimager ?

Answer: Line 42 of CStCFBootImager.h: kMX53NKStart = xxx; // the address is sector unit based, not byte unit.

 

Source code: attachment.

 

Anything you may need my help, don't hesitate to post here. I will give you feedback ASAP.

 

Stanley Lee