Skip to content

Commit

Permalink
Merge branch 'fix/enable_compressed_ota_in_sdkconfig_default' into 'm…
Browse files Browse the repository at this point in the history
…aster'

fix: compressed ota example enable bootloader plus default

See merge request ae_group/esp-iot-solution!1051
  • Loading branch information
WangYuxin-esp committed Sep 23, 2024
2 parents bce6780 + 1142f36 commit dacd9f3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
22 changes: 22 additions & 0 deletions examples/ota/simple_ota_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,25 @@ you can also use the script [gen_custom_ota.py](https://github.com/espressif/esp
```plaintext
python3 gen_custom_ota.py -hv v3 -i simple_ota.bin --add_app_header
```

## Example Output

```
I (4601) simple_ota_example: Starting OTA example task
I (4611) simple_ota_example: Attempting to download update from https://192.168.4.102:8070/simple_ota.bin.xz.packed
I (4621) main_task: Returned from app_main()
I (5071) esp_https_ota: Starting OTA...
I (5071) custom_image: OTA to ota_1
I (5071) esp_https_ota: Writing to partition subtype 17 at offset 0x150000
I (13131) simple_ota_example: OTA Succeed, Rebooting...
...
I (115) boot_custom: bootloader plus version: 0.2.6
I (252) boot_custom: start OTA to slot 0
I (10268) boot_custom: OTA success, boot from slot 0
I (10268) esp_image: segment 0: paddr=00020020 vaddr=3c0c0020 size=2a8cch (174284) map
I (10299) esp_image: segment 1: paddr=0004a8f4 vaddr=3fc92e00 size=02d88h ( 11656) load
I (10301) esp_image: segment 2: paddr=0004d684 vaddr=40380000 size=02994h ( 10644) load
I (10307) esp_image: segment 3: paddr=00050020 vaddr=42000020 size=b1408h (726024) map
I (10427) esp_image: segment 4: paddr=00101430 vaddr=40382994 size=102b0h ( 66224) load
I (10445) boot: Loaded app from partition at offset 0x20000
```
6 changes: 6 additions & 0 deletions examples/ota/simple_ota_example/sdkconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ CONFIG_PARTITION_TABLE_OFFSET=0xb000
CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_CMN=y
CONFIG_MBEDTLS_CUSTOM_CERTIFICATE_BUNDLE=y
CONFIG_MBEDTLS_CUSTOM_CERTIFICATE_BUNDLE_PATH="server_certs/ca_cert.pem"

#
# Bootloader config (Custom)
#
CONFIG_BOOTLOADER_COMPRESSED_ENABLED=y
CONFIG_BOOTLOADER_DECOMPRESSOR_XZ=y

0 comments on commit dacd9f3

Please sign in to comment.