OTA bootloader Image validation failed issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OTA bootloader Image validation failed issue

2,115 Views
KyleHsieh
Contributor I

Hi, I tried to update lwip_httpssrv_ota_enet image but encounterd "Image validation failed" issue. 

I tried some test image on forums but still could not found the root cause of this issue.

The followings are my test steps, could you help us to check our steps of update image?

Step1. Install MCUXpresso IDE v11.6.0 and SDK 2.10.1

step1.JPG

Step2. Import SDK examples "lwip_httpssrv_ota_enet" and named it  "v1_lwip_httpssrv_ota_enet" and "v2_lwip_httpssrv_ota_enet"

step2.JPG

Step3. Modify the print message to identify the different image.

v1_lwip_httpssrv_ota_enet:

step33.JPG

v2_lwip_httpssrv_ota_enet:

step34.JPG

Step4. Release build the "v1_lwip_httpssrv_ota_enet" and "v2_lwip_httpssrv_ota_enet" project

step3.jpg

Step 5. Create the binary file of "v1_lwip_httpssrv_ota_enet" and "v2_lwip_httpssrv_ota_enet"

step5.png

Step 6. Import SDK examples "ota_bootloader", release build and create binary file.

step6.JPG

step61.JPG

Step 7. Use the GUI flash tool to flash the binary file to RT1060 EVK board.

evkmimxrt1060_ota_bootloader.bin(0x60000000)

step71.jpg

v1_lwip_httpssrv_ota_enet.bin(0x60040000)

step72.jpg

Step 8. Connect RT1060 EVK to COM10 and it will show the following messages.

step8.JPG

 Step 9. Upload "v2_lwip_httpssrv_ota_enet.bin" by GUI

step9.JPG

step91.JPG

After Reboot, click "Accept Update"

step92.JPG

The console will show the "update_image_state(3): 0".

step93.JPG

And Reboot again, we will show the application already change to v2 app.

step94.JPG

Step 10. But if I would like to upload "v1_lwip_httpssrv_ota_enet.bin" bu web GUI again, it will shown the "Image validation failed".

Is there any steps uncorrect and caused this error?

step10.JPG

I uploaded my binary file as attachment, could you help us to check this issue?

Thank you.

Labels (1)
0 Kudos
Reply
5 Replies

2,081 Views
KyleHsieh
Contributor I

I found this issue was caused by I used different QSPI flash, how can I config for different size NOR flash to avoid this issue?

0 Kudos
Reply

2,057 Views
PabloAvalos
NXP TechSupport
NXP TechSupport

Hi @KyleHsieh 

 

Please accept my apologies for the delay on my response. I really appreciate your patience. Ann also, thanks a lot for your updates on the thread.

 

So, regarding your main issue, you have already hit the nail on the head, right? And also I will double-check with my teammates how to configurate it for a different NOR flash size, I will ask for you a little bit more time to reach you back with a proper answer. I apology for the issues that this might cause.

 

Hope you find well, please let me know any update or some more questions you have. We are to gladly assist you.

 

Sincerely,
Pablo Avalos.

0 Kudos
Reply

2,050 Views
KyleHsieh
Contributor I

Hi @PabloAvalos ,

Thanks for your reply.

May I ask you some questions?

We use Macronix MX25L25645GZ2I-08G instead of ISSI IS25WP064AJBLE for test.

1. MX25L25645GZ2I-08G NOR Flash size is different with ISSI IS25WP064AJBLE, how could I config flash size in ota bootloader and lwip_httpssrv_ota_enet application?

2. Is there any other configs I need to modify for different NOR flash?

 

Best Regards,

Kyle

0 Kudos
Reply

2,023 Views
PabloAvalos
NXP TechSupport
NXP TechSupport

Hi @KyleHsieh 

 

Thanks a lot for your patience and I apology for the delay on my response and the inconvenience that this might cause.

 

Regarding your questions, I think you may load your image file through the MCU Boot Utility by configuring the NOR flash size that you are going to use.

You may go to the correspondent tab and select your Micronix Flash and configure it before loading the image:

PabloAvalos_0-1662053140652.png

 

PabloAvalos_1-1662053172511.png

 

Hope this helps you, please let me know if you have more questions or doubts about it.

 

Best Regards.
Pablo Avalos.

0 Kudos
Reply

2,097 Views
KyleHsieh
Contributor I

Hi,

After upgraded successful at step 9, I found that application check size of the image failed while running "bl_verify_image((void *)update_partition.start, stored" function at step10.

check size failed.JPG

May I ask what's the difference after I first time upgraded the image?

Thank you. 

0 Kudos
Reply