ota update kDownloadStateInitializationError

cancel
Showing results for 
Search instead for 
Did you mean: 

ota update kDownloadStateInitializationError

119 Views
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 Kudos
5 Replies

77 Views
fx2020
Contributor II
0 Kudos

107 Views
nxf65025
NXP Employee
NXP Employee

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 Kudos

95 Views
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 Kudos

63 Views
nxf65025
NXP Employee
NXP Employee

@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 Kudos

67 Views
nxf65025
NXP Employee
NXP Employee

I can reproduce same issue

0 Kudos