ESP32: Partition Table Update through OTA
Posted: Wed Jul 17, 2019 10:29 am
Hi,
Currently I am facing issue in updating partition table through OTA.
As my new OTA file size has been exceeded more than 1MB so I want to create an intermediate OTA file which just updates partition
table to a higher size than 1MB and then do a actual OTA whose size is more than 1MB.
This requirement is because I cannot flash the unit(exists another place) through cable with updated partition table hence looking for
an option to do it via creating 'intermediate OTA' file.
I tried creating 'intermediate OTA' file with updating partitions_example.csv(attached) but after OTA while booting it is still old partition.
I (239) boot: Partition Table:
I (250) boot: ## Label Usage Type ST Offset Length
I (273) boot: 0 nvs WiFi data 01 02 00009000 00004000
I (296) boot: 1 otadata OTA data 01 00 0000d000 00002000
I (319) boot: 2 phy_init RF data 01 01 0000f000 00001000
I (342) boot: 3 factory factory app 00 00 00010000 00110000
I (366) boot: 4 ota_0 OTA app 00 10 00120000 00110000
I (389) boot: 5 ota_1 OTA app 00 11 00230000 00110000
I (412) boot: 6 storage Unknown data 01 82 00340000 000b0000
I (436) boot: End of partition table
Your help will be greatly appreciated.
Regards,
Vinay
Currently I am facing issue in updating partition table through OTA.
As my new OTA file size has been exceeded more than 1MB so I want to create an intermediate OTA file which just updates partition
table to a higher size than 1MB and then do a actual OTA whose size is more than 1MB.
This requirement is because I cannot flash the unit(exists another place) through cable with updated partition table hence looking for
an option to do it via creating 'intermediate OTA' file.
I tried creating 'intermediate OTA' file with updating partitions_example.csv(attached) but after OTA while booting it is still old partition.
I (239) boot: Partition Table:
I (250) boot: ## Label Usage Type ST Offset Length
I (273) boot: 0 nvs WiFi data 01 02 00009000 00004000
I (296) boot: 1 otadata OTA data 01 00 0000d000 00002000
I (319) boot: 2 phy_init RF data 01 01 0000f000 00001000
I (342) boot: 3 factory factory app 00 00 00010000 00110000
I (366) boot: 4 ota_0 OTA app 00 10 00120000 00110000
I (389) boot: 5 ota_1 OTA app 00 11 00230000 00110000
I (412) boot: 6 storage Unknown data 01 82 00340000 000b0000
I (436) boot: End of partition table
Your help will be greatly appreciated.
Regards,
Vinay