Hi,
I am working on IMX8QM with Android 9 Automotive (android_p9.0.0_2.1.1-auto). I trying Android OTA update.
steps I followed for OTA update,
1, build the ota file (update.zip) by using following commands ,
source build/envsetup.sh
lunch mek_8q_car-userdebug
make target-files-package -j4
source build/envsetup.sh
lunch mek_8q_car-userdebug
make otapackage -j4
2, Copy the update.zip file into cache folder
3, execute the following command,
echo “--update_package=/cache/update.zip” > /cache/recovery/command
reboot recovery
But, Android update is not done,
following are the some of observation in Android update.
reboot: Restarting system with command 'recovery'
reboot: Restarting system with command ''
Thanks & Regards,
VinothS,
Solved! Go to Solution.
Dear NXP,
OTA update (Manually)
1. extract mek_8q_car-ota-eng.zip file and copy payload.pin file to board folder (sdcard)
cp payload.bin /sdcard/
2. check payload_properties.txt content and replace header section,
update_engine_client --payload=file:///sdcard/payload.bin --update -- headers="FILE_HASH=GLmv0AhSfgDcnPv4w1BNlJ3TUC6irhh39h9lIdiBZ98=
FILE_SIZE=447604714
METADATA_HASH=ytlU2iEBXgExdM7JGBFgus5EII4tzf5Vs2ArmJj43W8=
METADATA_SIZE=58968"
Thanks & Regards,
VinothS.
Hi VinothS,
I can update android by using evk_8mq-ota-eng.zip, this file is created by "make otapackage". Then extract it and copy
payload.bin properties.txt to /sdcard/. You can use java code to update it. I use UpdateEngine class.
Thanks
Thank You Pingyu,
We did an OTA update manually as well as using java application (UpdateEngine class).
But, here is the problem is not able to access the USB stick from the application, So, I copied the OTA file into sd card from the USB mass storage. from this, we got some time delay.
Thank You,
Vinoth SK,
Hi VinothS,
I think that you can use the "File" apk's source code as a reference. You can see it at the android table. In it, we can see the USB stick and copy file from it. Maybe it is a permission problem.
Thanks,
Thank you Pingyu chen. I will check.
Vinoth S,
Dear NXP,
OTA update (Manually)
1. extract mek_8q_car-ota-eng.zip file and copy payload.pin file to board folder (sdcard)
cp payload.bin /sdcard/
2. check payload_properties.txt content and replace header section,
update_engine_client --payload=file:///sdcard/payload.bin --update -- headers="FILE_HASH=GLmv0AhSfgDcnPv4w1BNlJ3TUC6irhh39h9lIdiBZ98=
FILE_SIZE=447604714
METADATA_HASH=ytlU2iEBXgExdM7JGBFgus5EII4tzf5Vs2ArmJj43W8=
METADATA_SIZE=58968"
Thanks & Regards,
VinothS.
Hi Vinoth,
I did the same as your suggest but.. after reboot Tartget cannot boot anymore...
log:
Trying to boot from MMC1
Authencation key not yet progammed
keylost package magic error, do nothing here !"
Did i missed something when building OTA package...
It look like some key not sign correctly in TrustOS firmware or eMMC.
Hi,
Will you please provide your full steps and also please provide the some more info (Android Version & Processor).
I followed this document (7.2 Implementing OTA update),
android_p9.0.0_2.1.1-auto-ga_doc/Android_User's_Guide.pdf
Thanks & Regards,
VinothS,