Skip to content

Commit cd17397

Browse files
committed
examples: Enable CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE in all examples
.. Since this is the recommended setting and well supported by the RainMaker SDK, to ensure that OTA upgrades do not break the device and ensure that the MQTT connection works fine with the new firmware.
1 parent 5389ce2 commit cd17397

File tree

8 files changed

+33
-0
lines changed

8 files changed

+33
-0
lines changed

Diff for: CHANGES.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changes
22

3+
## 28-Jun-2022 (examples: Enable CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE in all examples)
4+
5+
`CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE` has been enabled in all examples by default,
6+
as a safety measure to prevent devices getting bricked after a faulty firmware upgrade.
7+
The OTA firmware upgrade will be marked as successful only if the firmware can connect to
8+
MQTT within 90 seconds of calling `esp_rmaker_ota_enable_default()` (or other esp_emaker_enable APIs).
9+
The time out is configurable using `CONFIG_ESP_RMAKER_OTA_ROLLBACK_WAIT_PERIOD`.
10+
11+
Note that this is a bootloader feature and so, just enabling this feature and pushing out updated
12+
firmware to existing devices won't be of any use. Please flash new bootloader on the devices to
13+
make this work.
14+
315
## 26-May-2022 (claiming and ota)
416

517
- claiming: Make self claiming as the default for esp32s3 and esp32c3

Diff for: examples/fan/sdkconfig.defaults

+3
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ CONFIG_ESP_RMAKER_USER_ID_CHECK=y
2727
# Secure Local Control
2828
CONFIG_ESP_RMAKER_LOCAL_CTRL_ENABLE=y
2929
CONFIG_ESP_RMAKER_LOCAL_CTRL_SECURITY_1=y
30+
31+
# Application Rollback
32+
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y

Diff for: examples/gpio/sdkconfig.defaults

+3
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ CONFIG_ESP_RMAKER_USER_ID_CHECK=y
2727
# Secure Local Control
2828
CONFIG_ESP_RMAKER_LOCAL_CTRL_ENABLE=y
2929
CONFIG_ESP_RMAKER_LOCAL_CTRL_SECURITY_1=y
30+
31+
# Application Rollback
32+
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y

Diff for: examples/homekit_switch/sdkconfig.defaults

+3
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,6 @@ CONFIG_ESP_RMAKER_USER_ID_CHECK=y
3737
# Secure Local Control
3838
CONFIG_ESP_RMAKER_LOCAL_CTRL_ENABLE=y
3939
CONFIG_ESP_RMAKER_LOCAL_CTRL_SECURITY_1=y
40+
41+
# Application Rollback
42+
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y

Diff for: examples/led_light/sdkconfig.defaults

+3
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ CONFIG_ESP_RMAKER_USER_ID_CHECK=y
2727
# Secure Local Control
2828
CONFIG_ESP_RMAKER_LOCAL_CTRL_ENABLE=y
2929
CONFIG_ESP_RMAKER_LOCAL_CTRL_SECURITY_1=y
30+
31+
# Application Rollback
32+
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y

Diff for: examples/multi_device/sdkconfig.defaults

+3
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ CONFIG_ESP_RMAKER_USER_ID_CHECK=y
2727
# Secure Local Control
2828
CONFIG_ESP_RMAKER_LOCAL_CTRL_ENABLE=y
2929
CONFIG_ESP_RMAKER_LOCAL_CTRL_SECURITY_1=y
30+
31+
# Application Rollback
32+
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y

Diff for: examples/switch/sdkconfig.defaults

+3
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ CONFIG_ESP_RMAKER_USER_ID_CHECK=y
2727
# Secure Local Control
2828
CONFIG_ESP_RMAKER_LOCAL_CTRL_ENABLE=y
2929
CONFIG_ESP_RMAKER_LOCAL_CTRL_SECURITY_1=y
30+
31+
# Application Rollback
32+
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y

Diff for: examples/temperature_sensor/sdkconfig.defaults

+3
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ CONFIG_ESP_RMAKER_USER_ID_CHECK=y
2727
# Secure Local Control
2828
CONFIG_ESP_RMAKER_LOCAL_CTRL_ENABLE=y
2929
CONFIG_ESP_RMAKER_LOCAL_CTRL_SECURITY_1=y
30+
31+
# Application Rollback
32+
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y

0 commit comments

Comments
 (0)