![NXP Semiconductors ASUG User Manual Download Page 20](http://html1.mh-extra.com/html/nxp-semiconductors/asug/asug_user-manual_1721768020.webp)
Perform the following steps to use this application:
1. Set up the HTTP server (eg., lighttpd, apache).
You need one HTTP server to hold OTA packages.
• For full OTA update, execute the following commands:
cp ${MY_ANDROID}/out/target/product/evk_8mn/system/build.prop ${server_ota_folder}
cp ${MY_ANDROID}/out/target/product/evk_8mn/evk_8mn-ota-${date}.zip ${server_ota_folder}
cd ${server_ota_folder}
unzip evk_8mn-ota-${date}.zip
• For incremental OTA update, execute the following commands:
cp ${old_build.prop} ${server_ota_folder}/old_build.prop
cp ${MY_ANDROID}/out/target/product/evk_8mn/system/build.prop ${server_ota_folder}/
build_diff.prop
mkdir ${server_ota_folder}/diff_ota
cp ${MY_ANDROID}/incremental_ota_update.zip ${server_ota_folder}/diff_ota
cd ${server_ota_folder}/diff_ota
unzip incremental_ota_update.zip
mv payload.bin payload_diff.bin
mv payload_properties.txt payload_properties_diff.txt
mv payload_diff.bin payload_properties_diff.txt ${server_ota_folder}
cd ${server_ota_folder}
echo -n "base." >> build_diff.prop
grep "ro.build.date.utc" old_build.prop >> build_diff.prop
For example, the server_ota_folder content is like this (Make sure that you have at least 6 files as follows in $
{server_ota_folder}, or the OTA application will be aborted):
build@server:/var/www/evk_8mn_pie_9$ ls
build.prop build_diff.prop payload.bin payload_diff.bin payload_properties.txt
payload_properties_diff.txt
• server_ota_folder: ${http_root}/evk_8mn_${ota_folder_suffix}_${version}.
• ${old_build.prop} is the old image's build.prop.
• evk_8mn-ota-${date}-${soc}.zip and incremental_ota_update.zip are built from Section 7.1.2 "Building a full
update package" and Section 7.1.3 "Building an incremental update package".
• ${ota_folder_suffix} is stored at board's /vendor/etc/ota.conf.
• ${version} can be obtained by the following command on the board's console: $getprop
ro.build.version.release.
• These file and folder names should align with this example, or modify the OTA application source code
correspondingly.
NOTE
2. Configure the OTA server IP address and HTTP port number.
The OTA configuration file (/vendor/etc/ota.conf) content is like this:
server=192.168.1.100
port=10888
ota_folder_suffix=pie
Modify it to fit the environment.
3. Open the OTA application and click the Update button.
NXP Semiconductors
Over-The-Air (OTA) Update
Android
™
User's Guide, Rev. P9.0.0_2.3.2, 6 March 2020
User's Guide
20 / 31