<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic i.MX8QXP OTA incremental upgrade failed in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8QXP-OTA-incremental-upgrade-failed/m-p/1639517#M204773</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&amp;nbsp;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202155" target="_blank"&gt;@Sanket_Parekh&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;I hope you are doing well.&lt;/P&gt;&lt;P&gt;We have compiled 'incremental_ota_update.zip' as per step 7.13 of document' Android_User's_Guide.pdf '.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;We build incremental OTA follow the below-mentioned steps:&lt;/STRONG&gt;&lt;BR /&gt;cd ${MY_ANDROID}&lt;BR /&gt;source build/envsetup.sh&lt;BR /&gt;lunch mek_8q_car-userdebug&lt;/P&gt;&lt;P&gt;./imx-make.sh bootloader kernel -j4&lt;/P&gt;&lt;P&gt;make target-files-package -j4&lt;BR /&gt;cp ./out/target/product/mek_8q/obj/PACKAGING/target_files_intermediates/&lt;STRONG&gt;mek_8q_car-target_files-eng.andrew.zip&lt;/STRONG&gt; ./&lt;STRONG&gt;mek_8q_car-no-fec-sound.andrew.zip&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;-----&amp;gt;Modify the source code to enable fec1 and sound&lt;/FONT&gt;&lt;BR /&gt;./imx-make.sh bootloader kernel -j4&lt;BR /&gt;make target-files-package -j4&lt;BR /&gt;cp ./out/target/product/mek_8q/obj/PAC KAGING/target_files_intermediates/&lt;STRONG&gt;mek_8q_car-target_files-eng.andrew.zip&lt;/STRONG&gt; ./&lt;STRONG&gt;mek_8q_car-full.andrew.zip&lt;/STRONG&gt;&lt;BR /&gt;./build/tools/releasetools/ota_from_target_files -i &lt;STRONG&gt;mek_8q_car-no-fec-sound.andrew.zip&lt;/STRONG&gt; &lt;STRONG&gt;mek_8q_car-full.andrew.zip&lt;/STRONG&gt; incremental_ota_update.zip&lt;BR /&gt;&lt;STRONG&gt;Compile to generate 'incremental_ota_update.zip'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;But we can complete the compilation only if we solve two problems.&amp;nbsp;The two questions are as follows:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;① ImportError: No module named google.protobuf&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Solution:&amp;nbsp;&lt;STRONG&gt;pip install protobuf&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;② ExternalError: Failed to run signapk.jar: return code 1:&lt;BR /&gt;Error: Unable to access jarfile /home/workspace/imx-automotive-12.0.0_1.1.0/android_build/build/make/tools/framework/signapk.jar&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Solution:&amp;nbsp;&lt;STRONG&gt;cp out/soong/host/linux-x86/* build/make/tools/ -rf&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;OTA upgrade instructions are as follows:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;update_engine_client --payload=file:///data/ota_package/payload.bin --update --headers="FILE_HASH=92f5jhI06QUmqyWCehXj6LG98kiBoJ7SIIdjzuRv3mQ=&lt;BR /&gt;FILE_SIZE=148325&lt;BR /&gt;METADATA_HASH=wFjPZRkq578QTUW+Tmejimu7+f/Ln67tn6HQZ7tVa0o=&lt;BR /&gt;METADATA_SIZE=146690"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Upgrade failure log (As shown in attachment)：&lt;/STRONG&gt;&lt;BR /&gt;mek_8q:/ # [ 2096.702081] fec: &amp;lt;423&amp;gt; error: get_squashfs_size: failed to parse superblock: Invalid argument&lt;BR /&gt;mek_8q:/ # logcat --pid 444&lt;BR /&gt;[INFO:action_processor.cc(121)] ActionProcessor: Aborting processing due to failure.&lt;BR /&gt;01-31 04:35:03.910 444 444 I update_engine: [INFO:update_attempter_android.cc(546)] Processing Done.&lt;BR /&gt;01-31 04:35:03.921 444 444 I update_engine: [INFO:delta_performer.cc(1389)] Resetting recorded hash for prepared partitions.&lt;BR /&gt;01-31 04:35:03.930 444 444 I update_engine: [INFO:update_attempter_android.cc(570)] Resetting update progress.&lt;BR /&gt;01-31 04:35:03.941 444 444 E update_engine: UnmapAllSnapshots should never be called.&lt;BR /&gt;01-31 04:35:03.952 444 444 I update_engine: [INFO:metrics_reporter_android.cc(159)] Current update attempt downloads 0 bytes data&lt;/P&gt;&lt;P&gt;I suspect there may be something wrong with the BSP environment.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;DRAVE&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Apr 2023 07:24:25 GMT</pubDate>
    <dc:creator>DRAVE</dc:creator>
    <dc:date>2023-04-25T07:24:25Z</dc:date>
    <item>
      <title>i.MX8QXP OTA incremental upgrade failed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8QXP-OTA-incremental-upgrade-failed/m-p/1639517#M204773</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&amp;nbsp;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202155" target="_blank"&gt;@Sanket_Parekh&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;I hope you are doing well.&lt;/P&gt;&lt;P&gt;We have compiled 'incremental_ota_update.zip' as per step 7.13 of document' Android_User's_Guide.pdf '.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;We build incremental OTA follow the below-mentioned steps:&lt;/STRONG&gt;&lt;BR /&gt;cd ${MY_ANDROID}&lt;BR /&gt;source build/envsetup.sh&lt;BR /&gt;lunch mek_8q_car-userdebug&lt;/P&gt;&lt;P&gt;./imx-make.sh bootloader kernel -j4&lt;/P&gt;&lt;P&gt;make target-files-package -j4&lt;BR /&gt;cp ./out/target/product/mek_8q/obj/PACKAGING/target_files_intermediates/&lt;STRONG&gt;mek_8q_car-target_files-eng.andrew.zip&lt;/STRONG&gt; ./&lt;STRONG&gt;mek_8q_car-no-fec-sound.andrew.zip&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;-----&amp;gt;Modify the source code to enable fec1 and sound&lt;/FONT&gt;&lt;BR /&gt;./imx-make.sh bootloader kernel -j4&lt;BR /&gt;make target-files-package -j4&lt;BR /&gt;cp ./out/target/product/mek_8q/obj/PAC KAGING/target_files_intermediates/&lt;STRONG&gt;mek_8q_car-target_files-eng.andrew.zip&lt;/STRONG&gt; ./&lt;STRONG&gt;mek_8q_car-full.andrew.zip&lt;/STRONG&gt;&lt;BR /&gt;./build/tools/releasetools/ota_from_target_files -i &lt;STRONG&gt;mek_8q_car-no-fec-sound.andrew.zip&lt;/STRONG&gt; &lt;STRONG&gt;mek_8q_car-full.andrew.zip&lt;/STRONG&gt; incremental_ota_update.zip&lt;BR /&gt;&lt;STRONG&gt;Compile to generate 'incremental_ota_update.zip'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;But we can complete the compilation only if we solve two problems.&amp;nbsp;The two questions are as follows:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;① ImportError: No module named google.protobuf&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Solution:&amp;nbsp;&lt;STRONG&gt;pip install protobuf&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;② ExternalError: Failed to run signapk.jar: return code 1:&lt;BR /&gt;Error: Unable to access jarfile /home/workspace/imx-automotive-12.0.0_1.1.0/android_build/build/make/tools/framework/signapk.jar&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Solution:&amp;nbsp;&lt;STRONG&gt;cp out/soong/host/linux-x86/* build/make/tools/ -rf&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;OTA upgrade instructions are as follows:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;update_engine_client --payload=file:///data/ota_package/payload.bin --update --headers="FILE_HASH=92f5jhI06QUmqyWCehXj6LG98kiBoJ7SIIdjzuRv3mQ=&lt;BR /&gt;FILE_SIZE=148325&lt;BR /&gt;METADATA_HASH=wFjPZRkq578QTUW+Tmejimu7+f/Ln67tn6HQZ7tVa0o=&lt;BR /&gt;METADATA_SIZE=146690"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Upgrade failure log (As shown in attachment)：&lt;/STRONG&gt;&lt;BR /&gt;mek_8q:/ # [ 2096.702081] fec: &amp;lt;423&amp;gt; error: get_squashfs_size: failed to parse superblock: Invalid argument&lt;BR /&gt;mek_8q:/ # logcat --pid 444&lt;BR /&gt;[INFO:action_processor.cc(121)] ActionProcessor: Aborting processing due to failure.&lt;BR /&gt;01-31 04:35:03.910 444 444 I update_engine: [INFO:update_attempter_android.cc(546)] Processing Done.&lt;BR /&gt;01-31 04:35:03.921 444 444 I update_engine: [INFO:delta_performer.cc(1389)] Resetting recorded hash for prepared partitions.&lt;BR /&gt;01-31 04:35:03.930 444 444 I update_engine: [INFO:update_attempter_android.cc(570)] Resetting update progress.&lt;BR /&gt;01-31 04:35:03.941 444 444 E update_engine: UnmapAllSnapshots should never be called.&lt;BR /&gt;01-31 04:35:03.952 444 444 I update_engine: [INFO:metrics_reporter_android.cc(159)] Current update attempt downloads 0 bytes data&lt;/P&gt;&lt;P&gt;I suspect there may be something wrong with the BSP environment.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;DRAVE&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 07:24:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8QXP-OTA-incremental-upgrade-failed/m-p/1639517#M204773</guid>
      <dc:creator>DRAVE</dc:creator>
      <dc:date>2023-04-25T07:24:25Z</dc:date>
    </item>
  </channel>
</rss>

