![NXP Semiconductors ASUG User Manual Download Page 19](http://html1.mh-extra.com/html/nxp-semiconductors/asug/asug_user-manual_1721768019.webp)
1. Copy
ota_update.zip
or
incremental_ota_update.zip
(generated on 7.1.2 and 7.1.3) to the HTTP server (for example,
192.168.1.1:/var/www/).
2. Unzip the packages to get
payload.bin
and
payload_properties.txt
.
3. Cat the content of
payload_properties.txt
like this:
• FILE_HASH=0fSBbXonyTjaAzMpwTBgM9AVtlBeyOigpCCgkoOfHKY=
• FILE_SIZE=379074366
• METADATA_HASH=Icrs3NqoglzyppyCZouWKbo5f08IPokhlUfHDmz77WQ=
• METADATA_SIZE=46866
4. Input the following command on the board's console to update:
update_engine_client --payload=http://192.168.1.1:10888/payload.bin --update --
headers="FILE_HASH=0fSBbXonyTjaAzMpwTBgM9AVtlBeyOigpCCgkoOfHKY=
FILE_SIZE=379074366
METADATA_HASH=Icrs3NqoglzyppyCZouWKbo5f08IPokhlUfHDmz77WQ=
METADATA_SIZE=46866"
5. The system will update in the background. After it finishes, it will show "Update successfully applied, waiting to reboot" in
the logcat.
To update system from board's storage, perform the following steps:
1. Unzip
ota_update.zip
or
incremental_ota_update.zip
(Generated on 7.1.2 and 7.1.3) to get
payload.bin
and
payload_properties.txt
.
2. Push payload.bin to board's /sdcard dir:
adb push payload.bin /sdcard/
.
3. Cat the content of payload_properties.txt like this:
• FILE_HASH=0fSBbXonyTjaAzMpwTBgM9AVtlBeyOigpCCgkoOfHKY=
• FILE_SIZE=379074366
• METADATA_HASH=Icrs3NqoglzyppyCZouWKbo5f08IPokhlUfHDmz77WQ=
• METADATA_SIZE=46866
4. Input the following command on the board's console to update:
update_engine_client --payload=file:///sdcard/payload.bin --update --
headers="FILE_HASH=0fSBbXonyTjaAzMpwTBgM9AVtlBeyOigpCCgkoOfHKY=
FILE_SIZE=379074366
METADATA_HASH=Icrs3NqoglzyppyCZouWKbo5f08IPokhlUfHDmz77WQ=
METADATA_SIZE=46866"
5. The system will update in the background. After it finishes, it will show "Update successfully applied, waiting to reboot" in
the logcat.
Make sure that the -- header equals to the exact content of payload_properties.txt without "space" or "return"
character.
NOTE
7.2.2 Using a customized application to update the Android platform
There is a reference OTA application unter
${MY_ANDROID}/vendor/nxp-opensource/fsl_imx_demo/FSLOta
, which can do the
OTA operations:
1. Get
payload_properties.txt
and
payload.bin
from a specific address.
2. Use the update_engine service to update the Android platform.
NXP Semiconductors
Over-The-Air (OTA) Update
Android
™
User's Guide, Rev. P9.0.0_2.3.2, 6 March 2020
User's Guide
19 / 31