ota update kDownloadStateInitializationError

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

ota update kDownloadStateInitializationError

3,803 次查看
fx2020
Contributor II

Do full update use SystemUpdaterSample succeed.

But when i do  incremental update use SystemUpdaterSample, SystemUpdaterSample error.

the error code is kDownloadPayloadVerificationError. Do i Use the error system.img ?
 

0 项奖励
回复
5 回复数

3,761 次查看
fx2020
Contributor II
0 项奖励
回复

3,791 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

The normal process is like this:

1.Build first aosp image as user guide, flash this image to board.

2.change some files and make second image

3.make incremental between first and second image.

Do you make incremental packages like this?

Can you share your android log about this failure?

0 项奖励
回复

3,771 次查看
fx2020
Contributor II

1.Build first aosp image as user guide, flash this image to board.

flash to board use image in this location out/target/product/evk_8mq, flash succeed.

2.change some files and make second image

# make ota 
make
target-files-package -j16
cp out/target/product/evk_8mq/obj/PACKAGING/target_files_intermediates/evk_8mq-target_files-eng.frank.zip ~/ota/nxp/evk_8mq-target_files-eng-A.frank.zip
# change some files
make target-files-package -j16
cp out/target/product/evk_8mq/obj/PACKAGING/target_files_intermediates/evk_8mq-target_files-eng.frank.zip ~/ota/nxp/evk_8mq-target_files-eng-B.frank.zip

3.make incremental between first and second image.

./build/tools/releasetools/ota_from_target_files -i ~/ota/nxp/evk_8mq-target_files-eng-A.frank.zip ~/ota/nxp/evk_8mq-target_files-eng-B.frank.zip ~/ota/nxp/update.zip

 

Error info:

update_engine: [0913/085233.421711:ERROR:delta_performer.cc(1140)] Expected: sha256|hex = 685B998E4308F20FEA83D97E60222121FFE27983F013AED5C203709E139AE9DB
update_engine: [0913/085233.421760:ERROR:delta_performer.cc(1143)] Calculated: sha256|hex = B1025634138BF2B5378196E364350E1E5FCA126DEE0990A592290CEBFADC3F8B

 

Did i change the system.img ?

0 项奖励
回复

3,739 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

@fx2020 

 

I have fixed this issue.

 

This issue may caused by such processs:

1.You flash images in out/

2.Then you make incremental-ota.zip to do ota

But this process is not correct.The hash value of system.img in out/ is different from  PREVIOUS-target_files.zip.

 

You need make otapackage to do  full update, this make sure that system.img's hash on board is same as PREVIOUS-target_files.zip.

Then do incremental update will always success.

0 项奖励
回复

3,741 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

I can reproduce same issue

0 项奖励
回复