i.MX8QXP OTA incremental upgrade failed

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX8QXP OTA incremental upgrade failed

1,105件の閲覧回数
DRAVE
Contributor IV

Hi,  @Sanket_Parekh 
I hope you are doing well.

We have compiled 'incremental_ota_update.zip' as per step 7.13 of document' Android_User's_Guide.pdf '. 


We build incremental OTA follow the below-mentioned steps:
cd ${MY_ANDROID}
source build/envsetup.sh
lunch mek_8q_car-userdebug

./imx-make.sh bootloader kernel -j4

make target-files-package -j4
cp ./out/target/product/mek_8q/obj/PACKAGING/target_files_intermediates/mek_8q_car-target_files-eng.andrew.zip ./mek_8q_car-no-fec-sound.andrew.zip


----->Modify the source code to enable fec1 and sound
./imx-make.sh bootloader kernel -j4
make target-files-package -j4
cp ./out/target/product/mek_8q/obj/PAC KAGING/target_files_intermediates/mek_8q_car-target_files-eng.andrew.zip ./mek_8q_car-full.andrew.zip
./build/tools/releasetools/ota_from_target_files -i mek_8q_car-no-fec-sound.andrew.zip mek_8q_car-full.andrew.zip incremental_ota_update.zip
Compile to generate 'incremental_ota_update.zip'


But we can complete the compilation only if we solve two problems. The two questions are as follows:
① ImportError: No module named google.protobuf

Solution: pip install protobuf


② ExternalError: Failed to run signapk.jar: return code 1:
Error: Unable to access jarfile /home/workspace/imx-automotive-12.0.0_1.1.0/android_build/build/make/tools/framework/signapk.jar

Solution: cp out/soong/host/linux-x86/* build/make/tools/ -rf 


OTA upgrade instructions are as follows:

update_engine_client --payload=file:///data/ota_package/payload.bin --update --headers="FILE_HASH=92f5jhI06QUmqyWCehXj6LG98kiBoJ7SIIdjzuRv3mQ=
FILE_SIZE=148325
METADATA_HASH=wFjPZRkq578QTUW+Tmejimu7+f/Ln67tn6HQZ7tVa0o=
METADATA_SIZE=146690"


Upgrade failure log (As shown in attachment):
mek_8q:/ # [ 2096.702081] fec: <423> error: get_squashfs_size: failed to parse superblock: Invalid argument
mek_8q:/ # logcat --pid 444
[INFO:action_processor.cc(121)] ActionProcessor: Aborting processing due to failure.
01-31 04:35:03.910 444 444 I update_engine: [INFO:update_attempter_android.cc(546)] Processing Done.
01-31 04:35:03.921 444 444 I update_engine: [INFO:delta_performer.cc(1389)] Resetting recorded hash for prepared partitions.
01-31 04:35:03.930 444 444 I update_engine: [INFO:update_attempter_android.cc(570)] Resetting update progress.
01-31 04:35:03.941 444 444 E update_engine: UnmapAllSnapshots should never be called.
01-31 04:35:03.952 444 444 I update_engine: [INFO:metrics_reporter_android.cc(159)] Current update attempt downloads 0 bytes data

I suspect there may be something wrong with the BSP environment.

Thanks & Regards,

DRAVE

0 件の賞賛
返信
0 返答(返信)