Hi,
I am designing a product which may need upgrade of my app in field.
I was thinking of FOTA where one uploads the new binary using browser on android phone or laptop as below
1) The service personnel could go to the device, connect to it using WiFI.
2) Open browser on android phone or laptop etc.
3) The device could provide a webpage using which a new binary could be uploaded.
Many WiFI routers upgrade this way.
Any help to similar project or library or example would help.
Thanks,
WI
FOTA from android phone
Re: FOTA from android phone
Looks good. Any pointers about how this would integrate with encrypted flash and secure boot?
Re: FOTA from android phone
Has anyone had any luck getting lws-esp32-factory to build?
https://github.com/warmcat/lws-esp32-factory
Ive tried everything and keep getting errors...its too bad because it looks like an amazing setup...
/mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/build/bootloader/bootloader_support/libbootloader_support.a(CC build/mbedtls/mbedtls/library/pk_wrap.o
esp_image_format.o):(.literal.image_load+0x34): undefined reference to `_loader_text_start'
/mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/build/bootloader/bootloader_support/libbootloader_support.a(esp_image_format.o):(.literal.image_load+0x38): undefined reference toCC build/mbedtls/mbedtls/library/ecp_curves.o
`_loader_text_end'
/mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/build/CC build/libsodium/port/randombytes_esp32.o
bootloader/bootloader_support/CC build/freertos/timers.o
libbootloader_support.a(flash_partitions.o):(.literal.esp_partition_table_verify+0x24): undefined reference to `MD5Init'
/mnt/c/CC build/libsodium/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.o
Users/Ben/Dropbox/ESP-IDF/lwsCC build/freertos/FreeRTOS-openocd.o
-esp32CC build/mbedtls/mbedtls/library/pkcs12.o
-factory/build/bootloader/bootloader_support/libbootloader_support.a(flash_partitions.o):CC build/libsodium/libsodium/src/libsodium/crypto_aead/xchacha20poly1305/sodium/aead_xchacha20poly1305.o
(CC build/freertos/xtensa_overlay_os_hook.o
.literal.esp_partition_table_verify+0x28): undefined reference to `MD5Update'
/mnt/c/Users/CC build/mbedtls/mbedtls/library/ccm.o
Ben/Dropbox/ESP-IDF/lws-esp32-CC build/libsodium/libsodium/src/libsodium/crypto_auth/crypto_auth.o
factory/AS build/freertos/xtensa_intr_asm.o
build/bootloader/bootloader_support/libbootloader_support.a(flash_partitions.o):(.literal.esp_partition_table_verify+AS build/freertos/xtensa_context.o
0x2c)CC build/libsodium/libsodium/src/libsodium/crypto_auth/hmacsha256/auth_hmacsha256.o
: undefined referenceCC build/mbedtls/mbedtls/library/pkcs5.o
to `MD5Final'
/mnt/c/Users/Ben/Dropbox/ESP-AS build/freertos/xtensa_vectors.o
IDF/lws-esp32-factory/build/bootloader/bootloader_support/libbootloader_support.a(flash_partitions.oCC build/libsodium/libsodium/src/libsodium/crypto_auth/hmacsha512/auth_hmacsha512.o
): In function `esp_partition_table_verify':AS build/freertos/xtensa_vector_defaults.o
/home/Ben/esp/esp-idfCC build/mbedtls/mbedtls/library/pkparse.o
/components/bootloader_support/src/flash_partitions.c:52:CC build/libsodium/libsodium/src/libsodium/crypto_auth/hmacsha512256/auth_hmacsha512256.o
undefinedAS build/freertos/portasm.o
reference to `MD5Init'
/home/Ben/esp/esp-idf/components/bootloader_support/src/flash_partitions.c:53:AR build/freertos/libfreertos.a
undefined reference to `MD5UpdateCC build/libsodium/libsodium/src/libsodium/crypto_box/crypto_box_seal.o
'
/home/Ben/esp/esp-idf/components/bootloader_support/src/flash_partitions.c:54: undefined reference to `MD5Final'
collect2: error: ld returned 1 exit status
/home/Ben/esp/esp-idf/make/project.mk:457: recipe for target '/mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/build/bootloader/bootloader.elf' failed
make[1]: *** [/mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/build/bootloader/bootloader.elf] Error 1
CC build/openssl/library/ssl_cert.o
/mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/components/bootloader/Makefile.projbuild:40: recipe for target '/mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/build/bootloader/bootloader.bin' failed
make: *** [/mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/build/bootloader/bootloader.bin] Error 2
make: *** Waiting for unfinished jobs....
https://github.com/warmcat/lws-esp32-factory
Ive tried everything and keep getting errors...its too bad because it looks like an amazing setup...
/mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/build/bootloader/bootloader_support/libbootloader_support.a(CC build/mbedtls/mbedtls/library/pk_wrap.o
esp_image_format.o):(.literal.image_load+0x34): undefined reference to `_loader_text_start'
/mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/build/bootloader/bootloader_support/libbootloader_support.a(esp_image_format.o):(.literal.image_load+0x38): undefined reference toCC build/mbedtls/mbedtls/library/ecp_curves.o
`_loader_text_end'
/mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/build/CC build/libsodium/port/randombytes_esp32.o
bootloader/bootloader_support/CC build/freertos/timers.o
libbootloader_support.a(flash_partitions.o):(.literal.esp_partition_table_verify+0x24): undefined reference to `MD5Init'
/mnt/c/CC build/libsodium/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.o
Users/Ben/Dropbox/ESP-IDF/lwsCC build/freertos/FreeRTOS-openocd.o
-esp32CC build/mbedtls/mbedtls/library/pkcs12.o
-factory/build/bootloader/bootloader_support/libbootloader_support.a(flash_partitions.o):CC build/libsodium/libsodium/src/libsodium/crypto_aead/xchacha20poly1305/sodium/aead_xchacha20poly1305.o
(CC build/freertos/xtensa_overlay_os_hook.o
.literal.esp_partition_table_verify+0x28): undefined reference to `MD5Update'
/mnt/c/Users/CC build/mbedtls/mbedtls/library/ccm.o
Ben/Dropbox/ESP-IDF/lws-esp32-CC build/libsodium/libsodium/src/libsodium/crypto_auth/crypto_auth.o
factory/AS build/freertos/xtensa_intr_asm.o
build/bootloader/bootloader_support/libbootloader_support.a(flash_partitions.o):(.literal.esp_partition_table_verify+AS build/freertos/xtensa_context.o
0x2c)CC build/libsodium/libsodium/src/libsodium/crypto_auth/hmacsha256/auth_hmacsha256.o
: undefined referenceCC build/mbedtls/mbedtls/library/pkcs5.o
to `MD5Final'
/mnt/c/Users/Ben/Dropbox/ESP-AS build/freertos/xtensa_vectors.o
IDF/lws-esp32-factory/build/bootloader/bootloader_support/libbootloader_support.a(flash_partitions.oCC build/libsodium/libsodium/src/libsodium/crypto_auth/hmacsha512/auth_hmacsha512.o
): In function `esp_partition_table_verify':AS build/freertos/xtensa_vector_defaults.o
/home/Ben/esp/esp-idfCC build/mbedtls/mbedtls/library/pkparse.o
/components/bootloader_support/src/flash_partitions.c:52:CC build/libsodium/libsodium/src/libsodium/crypto_auth/hmacsha512256/auth_hmacsha512256.o
undefinedAS build/freertos/portasm.o
reference to `MD5Init'
/home/Ben/esp/esp-idf/components/bootloader_support/src/flash_partitions.c:53:AR build/freertos/libfreertos.a
undefined reference to `MD5UpdateCC build/libsodium/libsodium/src/libsodium/crypto_box/crypto_box_seal.o
'
/home/Ben/esp/esp-idf/components/bootloader_support/src/flash_partitions.c:54: undefined reference to `MD5Final'
collect2: error: ld returned 1 exit status
/home/Ben/esp/esp-idf/make/project.mk:457: recipe for target '/mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/build/bootloader/bootloader.elf' failed
make[1]: *** [/mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/build/bootloader/bootloader.elf] Error 1
CC build/openssl/library/ssl_cert.o
/mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/components/bootloader/Makefile.projbuild:40: recipe for target '/mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/build/bootloader/bootloader.bin' failed
make: *** [/mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/build/bootloader/bootloader.bin] Error 2
make: *** Waiting for unfinished jobs....
Who is online
Users browsing this forum: Bing [Bot] and 87 guests