HomeACcessoryKid / life-cycle-manager

Initial install, WiFi settings and over the air firmware upgrades for any esp-open-rtos repository on GitHub
Apache License 2.0
60 stars 11 forks source link

LCM 2.2.6 - Wolf SSL error downloading user app #36

Closed Doodles2000 closed 5 months ago

Doodles2000 commented 5 months ago

Hi HACK and Team,

Noticed a problem with LCM 226 where it seems to freak out when downloading the user app. Tried full erase of flash (on several modules).

Thinking it may have been something wrong with my app / signature files. I tested using the default "HomeACcessoryKid/ota-demo" with the same results.

It appears the fault is coming from a wolfSSL_send error = -188 which then causes the Fatal exception (28)

I'm out of my depth to go any further for a resolution.

Attached is UDPlogger and serial port captures - hopefully these help narrow down the cause.

20240324-LCM226-udplog.txt 20240324-LCM226-serial.txt

HomeACcessoryKid commented 5 months ago

Hi, thanks for reporting. Very first attempt shows error -188 as well. Guess I'll be debugging today... Stay tuned

HomeACcessoryKid commented 5 months ago

FIXED

Github has updated their certificates so I have created the matching certs.sector and put that in the existing release. This means there will not be a version update of LCM itself, but you should see a certificate swap. Please confirm this works for you as well?

TIA, HacK

...
HTTP returns 302 for HomeACcessoryKid/life-cycle-manager@version:"2.2.6" according to latest release
--- ota_boot...1
HomeACcessoryKid/life-cycle-manager@version:"2.2.6"
--- ota_get_hash
--- ota_get_file_ex
GET /HomeACcessoryKid/life-cycle-manager/releases/download/2.2.6/certs.sector.sig HTTP/1.1
Host: github.com

--- ota_connect LocalPort=d0ab DNS IP:140.82.121.4 local..OK remote..OK SSL..OK set_fd to github.com port 443..OK
sent OK
HTTP returns 302
--- ota_connect LocalPort=d0ac DNS IP:185.199.109.133 local..OK remote..OK SSL..OK set_fd to objects.githubusercontent.com port 443..OK
send request......OK
eb1e88...244000  so far collected 156 bytes
--- ota_verify_hash
--- ota_hash
--- ota_hash
--- ota_verify_signature
signature valid: 1
--- ota_get_file
--- ota_get_file_ex
GET /HomeACcessoryKid/life-cycle-manager/releases/download/2.2.6/certs.sector HTTP/1.1
Host: github.com

--- ota_connect LocalPort=d0ad DNS IP:140.82.121.4 local..OK remote..OK SSL..OK set_fd to github.com port 443..OK
sent OK
HTTP returns 302
--- ota_connect LocalPort=d0ae DNS IP:185.199.109.133 local..OK remote..OK SSL..OK set_fd to objects.githubusercontent.com port 443..OK
send request......OK
erasing@0xf9000>307630...446759 445652...533564 496132...464251 39526e...6c7755 484248...ffffff ffffff...ffffff  so far collected 4096 bytes
--- ota_verify_hash
--- ota_hash
--- ota_swap_cert_sector
--- ota_kill_file
--- ota_finalize_file
--- ota_get_pubkey
 04 94 30 cc 5c 4e 50 29 15 ff 3d 41 da e9 e5 e3 64 27 b3 96 07 61 36 a4 83 28 4d fd f9 05 4f 0d 82 fa 57 26 06 b7 e8 1f 22 2d 2b 8a d2 ff 6e ac 59 73 00 b5 e4 9c 5f 68 ab 31 d3 9f ad bb 3d c8 4f 6d 38 e6 6f b8 b3 f7 22 21 b7 f2 e4 b7 75 ed 09 2c 87 2b 00 56 5b 81 e8 64 5c 2c 84 85 c0 3c 34
ret: 0
--- ota_boot...1
--- running ota-main software
...
Doodles2000 commented 5 months ago

Thanks Hack,

Confirming all working well!

20240325-LCM226-serial.txt