What is the purpose of two OTA partition?

snahmad75
Posts: 264
Joined: Wed Jan 24, 2018 6:32 pm

Re: What is the purpose of two OTA partition?

Postby snahmad75 » Thu May 10, 2018 8:27 pm

Do I have write custom boot loader for this.

I think i need two different application.


one application which on boot reads sd card to check any .bin file exits then perform OTA process and delete .bin. This application reside in one parition. It will have small size.

Second application is complete application with large size which will be running the main application.

Can you make flash two different application on esp32 in different partition using command line.

I guess full application will reside at factory or OTA_0 first partition.
smaller application will reside at OTA_1 (second partition)


Correct me if I am wrong.

chegewara
Posts: 483
Joined: Wed Jun 14, 2017 9:00 pm

Re: What is the purpose of two OTA partition?

Postby chegewara » Thu May 10, 2018 8:37 pm

I think i need two different application.

one application which on boot reads sd card to check any .bin file exits then perform OTA process and delete .bin. This application reside in one parition. It will have small size.

Second application is complete application with large size which will be running the main application.

Yes.

Can you make flash two different application on esp32 in different partition using command line.

I think its possible, at least i can do it with esp32 flash download tool.

I guess full application will reside at factory or OTA_0 first partition.
smaller application will reside at OTA_1 (second partition)

Depends on your needs(chose). Im not sure if its possible to write to factory partition from application and how hard it is, maybe Angus can help here.

PS maybe i will try this option when i end up with current ota project (ota update triggered with mqtt request, plus many other mqtt options)

snahmad75
Posts: 264
Joined: Wed Jan 24, 2018 6:32 pm

Re: What is the purpose of two OTA partition?

Postby snahmad75 » Fri Oct 12, 2018 4:40 pm

Hi,
Did you try out with single OTA?

Can I use single partition. Write bin to my SD card file and on startup application apply OTA update to OTA_0.


My custom partition is

nvs,data,nvs,0x9000,16K,
otadata,data,ota,0xd000,8K,
phy_init,data,phy,0xf000,4K,
ota_0,app,ota_0,0x10000,1856K,
ota_1,app,ota_1,0x1e0000,1856K,
storage,data,fat,0x3b0000,128K,




Do I need (two OTA) or (one Factory + single OTA). which method is better .

Do we need otadata and phy_init partitions or they can be optional.

If we see my total allocation is few hundred kb less than 4MB. Can I increase my OTA_0 and OTA_1 more. I did try, but no success.


Can some one reply please. we need to make decision about our partition. as i understand once you release your product with device. you cannot change partition via OTA.

Thanks,
Naeem

Who is online

Users browsing this forum: Google [Bot], rsimpsonbusa and 10 guests