Hi Qualcomm Team:
i use OTA in HTTP .
now i have problem.
if i "fw_upgrade.xml" have use ioe_ram_m0_threadx_ipt.mbn. OTA success, but File-system will be deleted.
<fw_upgrade_img_descriptor><!-- format: 1: partial upgrade, 2: full upgrade in one file --><header signature="0x54445746" version="1" format="2"/><partition filename="" signature="0x54445746" image_id="5" ver="1" size_in_kb="4" HASH_TYPE="1"/><partition filename="Quartz_HASHED.elf" signature="0x54445746" image_id="10" ver="1" size_in_kb="4" HASH_TYPE="1"/><partition filename="ioe_ram_m0_threadx_ipt.mbn" signature="0x54445746" image_id="11" ver="1" size_in_kb="16" HASH_TYPE="1"/><partition filename="wlan_fw_img.bin" signature="0x54445746" image_id="13" ver="1" size_in_kb="0" HASH_TYPE="1"/></fw_upgrade_img_descriptor>
if i just only use Quartz_HASHED.elf, i OTA success, but it not can "trial" success, it show "Fail to Accept Trial FWD".
<fw_upgrade_img_descriptor><!-- format: 1: partial upgrade, 2: full upgrade in one file --><header signature="0x54445746" version="1" format="2"/><partition filename="Quartz_HASHED299.elf" signature="0x54445746" image_id="10" ver="1" size_in_kb="4" HASH_TYPE="1"/>
</fw_upgrade_img_descriptor>
What can I do to really make the application image OTA successful?
Best Regards,
Rick.
In case 1: Make sure you kept FS2IMG=KEEP, such that FS2 will be retained even after OTA UPGRADE, by default it is set to "ERASE".
In case 2: Can you provide us the instructions how you tried to perform the OTA, default flag for HTTP OTA is AUTO_REBOOT .
Kindly provide us the "FwUp fwd" and make sure you have enough memory by deleting the additional fwd before performing upgrade.
By default QCLI_demo HTTP OTA demo uses "QAPI_FW_UPGRADE_FLAG_AUTO_REBOOT"
In order to use HTTP OTA upgrade and retain your file system data, you need to set the FLAG as "QAPI_FW_UPGRADE_FLAG_DUPLICATE_ACTIVE_FS".
Modify @target/quartz/demo/QCLI_demo/src/ota/ota_demo.c .
Under Command_Fw_Upgrade_HTTP_Upgrade , modify and set the flags as suggested above.
Build and flash the image.
Perform the HTTP OTA now and you should be able to restore your file system data:
After "Firmware Upgrade Image Download Completed Successfully" reset the device and you should be accept the trial image.
I have verifed the above setup and its working as expected, let me know if you face any issues.