update components, custom partition table with ota added
This commit is contained in:
parent
4bee09c770
commit
3d079bff8e
|
|
@ -1 +1 @@
|
||||||
Subproject commit 96143f90423a11534a0079ae4f0b01d74db6629e
|
Subproject commit b49073877dbdaf321bf845713329c764906d9010
|
||||||
|
|
@ -64,7 +64,14 @@ void app_main(void)
|
||||||
if (CONFIG_WEBGUIAPP_GPRS_ENABLE ||
|
if (CONFIG_WEBGUIAPP_GPRS_ENABLE ||
|
||||||
CONFIG_WEBGUIAPP_ETHERNET_ENABLE ||
|
CONFIG_WEBGUIAPP_ETHERNET_ENABLE ||
|
||||||
(CONFIG_WEBGUIAPP_WIFI_ENABLE && GetSysConf()->wifiSettings.Flags1.bIsAP))
|
(CONFIG_WEBGUIAPP_WIFI_ENABLE && GetSysConf()->wifiSettings.Flags1.bIsAP))
|
||||||
|
{
|
||||||
StartTimeGet();
|
StartTimeGet();
|
||||||
|
if (GetSysConf()->mqttStation[0].Flags1.bIsGlobalEnabled
|
||||||
|
|| GetSysConf()->mqttStation[1].Flags1.bIsGlobalEnabled)
|
||||||
|
{
|
||||||
|
MQTTRun();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*Start web server*/
|
/*Start web server*/
|
||||||
if (CONFIG_WEBGUIAPP_GPRS_ENABLE ||
|
if (CONFIG_WEBGUIAPP_GPRS_ENABLE ||
|
||||||
|
|
|
||||||
10
partitions_user_ota.csv
Normal file
10
partitions_user_ota.csv
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
# Name, Type, SubType, Offset, Size, Flags
|
||||||
|
# Note: if you have increased the bootloader size, make sure to update the offsets to avoid overlap
|
||||||
|
nvs, data, nvs, 0x9000, 0x8000
|
||||||
|
otadata, data, ota, , 0x2000
|
||||||
|
phy_init, data, phy, , 0x1000
|
||||||
|
nvs_key, data, nvs_keys, , 0x1000
|
||||||
|
ota_0, app, ota_0, 0x20000, 0x1D0000
|
||||||
|
ota_1, app, ota_1, , 0x1D0000
|
||||||
|
storage, data, fat, , 0x40000
|
||||||
|
|
||||||
|
14
sdkconfig
14
sdkconfig
|
|
@ -91,11 +91,11 @@ CONFIG_ESPTOOLPY_FLASHFREQ_40M=y
|
||||||
# CONFIG_ESPTOOLPY_FLASHFREQ_20M is not set
|
# CONFIG_ESPTOOLPY_FLASHFREQ_20M is not set
|
||||||
CONFIG_ESPTOOLPY_FLASHFREQ="40m"
|
CONFIG_ESPTOOLPY_FLASHFREQ="40m"
|
||||||
# CONFIG_ESPTOOLPY_FLASHSIZE_1MB is not set
|
# CONFIG_ESPTOOLPY_FLASHSIZE_1MB is not set
|
||||||
CONFIG_ESPTOOLPY_FLASHSIZE_2MB=y
|
# CONFIG_ESPTOOLPY_FLASHSIZE_2MB is not set
|
||||||
# CONFIG_ESPTOOLPY_FLASHSIZE_4MB is not set
|
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
|
||||||
# CONFIG_ESPTOOLPY_FLASHSIZE_8MB is not set
|
# CONFIG_ESPTOOLPY_FLASHSIZE_8MB is not set
|
||||||
# CONFIG_ESPTOOLPY_FLASHSIZE_16MB is not set
|
# CONFIG_ESPTOOLPY_FLASHSIZE_16MB is not set
|
||||||
CONFIG_ESPTOOLPY_FLASHSIZE="2MB"
|
CONFIG_ESPTOOLPY_FLASHSIZE="4MB"
|
||||||
CONFIG_ESPTOOLPY_FLASHSIZE_DETECT=y
|
CONFIG_ESPTOOLPY_FLASHSIZE_DETECT=y
|
||||||
CONFIG_ESPTOOLPY_BEFORE_RESET=y
|
CONFIG_ESPTOOLPY_BEFORE_RESET=y
|
||||||
# CONFIG_ESPTOOLPY_BEFORE_NORESET is not set
|
# CONFIG_ESPTOOLPY_BEFORE_NORESET is not set
|
||||||
|
|
@ -118,12 +118,12 @@ CONFIG_ESPTOOLPY_MONITOR_BAUD=115200
|
||||||
#
|
#
|
||||||
# Partition Table
|
# Partition Table
|
||||||
#
|
#
|
||||||
CONFIG_PARTITION_TABLE_SINGLE_APP=y
|
# CONFIG_PARTITION_TABLE_SINGLE_APP is not set
|
||||||
# CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE is not set
|
# CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE is not set
|
||||||
# CONFIG_PARTITION_TABLE_TWO_OTA is not set
|
# CONFIG_PARTITION_TABLE_TWO_OTA is not set
|
||||||
# CONFIG_PARTITION_TABLE_CUSTOM is not set
|
CONFIG_PARTITION_TABLE_CUSTOM=y
|
||||||
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions_user_ota.csv"
|
||||||
CONFIG_PARTITION_TABLE_FILENAME="partitions_singleapp.csv"
|
CONFIG_PARTITION_TABLE_FILENAME="partitions_user_ota.csv"
|
||||||
CONFIG_PARTITION_TABLE_OFFSET=0x8000
|
CONFIG_PARTITION_TABLE_OFFSET=0x8000
|
||||||
CONFIG_PARTITION_TABLE_MD5=y
|
CONFIG_PARTITION_TABLE_MD5=y
|
||||||
# end of Partition Table
|
# end of Partition Table
|
||||||
|
|
|
||||||
|
|
@ -118,12 +118,12 @@ CONFIG_ESPTOOLPY_MONITOR_BAUD=115200
|
||||||
#
|
#
|
||||||
# Partition Table
|
# Partition Table
|
||||||
#
|
#
|
||||||
CONFIG_PARTITION_TABLE_SINGLE_APP=y
|
# CONFIG_PARTITION_TABLE_SINGLE_APP is not set
|
||||||
# CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE is not set
|
# CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE is not set
|
||||||
# CONFIG_PARTITION_TABLE_TWO_OTA is not set
|
# CONFIG_PARTITION_TABLE_TWO_OTA is not set
|
||||||
# CONFIG_PARTITION_TABLE_CUSTOM is not set
|
CONFIG_PARTITION_TABLE_CUSTOM=y
|
||||||
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions_user_ota.csv"
|
||||||
CONFIG_PARTITION_TABLE_FILENAME="partitions_singleapp.csv"
|
CONFIG_PARTITION_TABLE_FILENAME="partitions_user_ota.csv"
|
||||||
CONFIG_PARTITION_TABLE_OFFSET=0x8000
|
CONFIG_PARTITION_TABLE_OFFSET=0x8000
|
||||||
CONFIG_PARTITION_TABLE_MD5=y
|
CONFIG_PARTITION_TABLE_MD5=y
|
||||||
# end of Partition Table
|
# end of Partition Table
|
||||||
|
|
@ -1207,7 +1207,7 @@ CONFIG_WPA_MBEDTLS_CRYPTO=y
|
||||||
#
|
#
|
||||||
# WebGuiApp configuration
|
# WebGuiApp configuration
|
||||||
#
|
#
|
||||||
CONFIG_WEBGUIAPP_PROJECT_VER="0.0.0.0000"
|
CONFIG_WEBGUIAPP_PROJECT_VER="0.0.0.0001"
|
||||||
CONFIG_WEBGUIAPP_HOSTNAME="DEVICE_HOSTNAME"
|
CONFIG_WEBGUIAPP_HOSTNAME="DEVICE_HOSTNAME"
|
||||||
CONFIG_WEBGUIAPP_USERNAME="user"
|
CONFIG_WEBGUIAPP_USERNAME="user"
|
||||||
CONFIG_WEBGUIAPP_USERPASS="password"
|
CONFIG_WEBGUIAPP_USERPASS="password"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user