Skip to content

Commit dacd9f3

Browse files
committed
Merge branch 'fix/enable_compressed_ota_in_sdkconfig_default' into 'master'
fix: compressed ota example enable bootloader plus default See merge request ae_group/esp-iot-solution!1051
2 parents bce6780 + 1142f36 commit dacd9f3

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

examples/ota/simple_ota_example/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,25 @@ you can also use the script [gen_custom_ota.py](https://github.com/espressif/esp
5757
```plaintext
5858
python3 gen_custom_ota.py -hv v3 -i simple_ota.bin --add_app_header
5959
```
60+
61+
## Example Output
62+
63+
```
64+
I (4601) simple_ota_example: Starting OTA example task
65+
I (4611) simple_ota_example: Attempting to download update from https://192.168.4.102:8070/simple_ota.bin.xz.packed
66+
I (4621) main_task: Returned from app_main()
67+
I (5071) esp_https_ota: Starting OTA...
68+
I (5071) custom_image: OTA to ota_1
69+
I (5071) esp_https_ota: Writing to partition subtype 17 at offset 0x150000
70+
I (13131) simple_ota_example: OTA Succeed, Rebooting...
71+
...
72+
I (115) boot_custom: bootloader plus version: 0.2.6
73+
I (252) boot_custom: start OTA to slot 0
74+
I (10268) boot_custom: OTA success, boot from slot 0
75+
I (10268) esp_image: segment 0: paddr=00020020 vaddr=3c0c0020 size=2a8cch (174284) map
76+
I (10299) esp_image: segment 1: paddr=0004a8f4 vaddr=3fc92e00 size=02d88h ( 11656) load
77+
I (10301) esp_image: segment 2: paddr=0004d684 vaddr=40380000 size=02994h ( 10644) load
78+
I (10307) esp_image: segment 3: paddr=00050020 vaddr=42000020 size=b1408h (726024) map
79+
I (10427) esp_image: segment 4: paddr=00101430 vaddr=40382994 size=102b0h ( 66224) load
80+
I (10445) boot: Loaded app from partition at offset 0x20000
81+
```

examples/ota/simple_ota_example/sdkconfig.defaults

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@ CONFIG_PARTITION_TABLE_OFFSET=0xb000
99
CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_CMN=y
1010
CONFIG_MBEDTLS_CUSTOM_CERTIFICATE_BUNDLE=y
1111
CONFIG_MBEDTLS_CUSTOM_CERTIFICATE_BUNDLE_PATH="server_certs/ca_cert.pem"
12+
13+
#
14+
# Bootloader config (Custom)
15+
#
16+
CONFIG_BOOTLOADER_COMPRESSED_ENABLED=y
17+
CONFIG_BOOTLOADER_DECOMPRESSOR_XZ=y

0 commit comments

Comments
 (0)