How to erase boot1 partition

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

How to erase boot1 partition

1,729 Views
zhongyue_li
Contributor II

Dear NXP Engineer,

This is Li Zhongyue who is working on imx android solution.

I would like to know how to re-write boot1 partition.

Following is my operations, could you help to check if they are correct or not?

1. Erase the block data in boot1 partition first, (API: blk_derase(...))

2. Then write the new data to the same block, (API: blk_dwrite(...))

3. Read the same block, the data is still the old one. (API: blk_dread(...))

And, there are no any errors when i was doing erasing and writing operations. 

Or could you give me a guide how to re-write boot1 partition correctly?

Thanks a million.

Have a nice day.

0 Kudos
5 Replies

1,457 Views
zhongyue_li
Contributor II

Dear igorpadykov,

As far as i know, if i want to write new data to the block which has been written previously, 

i need to erase the block firstly.

This is NAND storage basic principle, am i right?

And i would like to know how to erase boot1 partition, is it possible to erase boot1 partition?

Is there any limitation to erase boot1 partition? 

Thanks a million.

Have a nice day.

0 Kudos

1,457 Views
igorpadykov
NXP Employee
NXP Employee

for handling boot partitions one can look on

Mfgtools  emmc boot issue fix 

Best regards
igor

0 Kudos

1,457 Views
zhongyue_li
Contributor II

Dear igorpadykov,

Thank you so much for your quick response.

I checked the links you shared, however, i didnot find the way to erase or re-write boot1 partition.

there are only the way that how to download bootloader to boot0 partition,

could you give me suggestion to erase boot1 partition?

And one more question, do you know how to modify the boot1 partition size, RPMB partition size?

Thanks a lot.

Best regards!. 

0 Kudos

1,457 Views
igorpadykov
NXP Employee
NXP Employee

Hi Li

what do you mean by "way to erase or re-write boot1 partition" .

According to emmc specification boot area partitions dimensions and technology features

are defined by the memory manufacturer.

Best regards
igor

0 Kudos

1,457 Views
igorpadykov
NXP Employee
NXP Employee

Hi Li

one can look at android documentation on below link

i.MX Software | NXP 

or uuu sample scripts included in Demo Images on that link or

Sample script · NXPmicro/mfgtools Wiki · GitHub 

https://boundarydevices.com/programming-emmc-on-i-mx6/ 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos