-->
Page 1 of 1

OTA Signature Verification - Cannot upload signed filesystem

PostPosted: Tue Jan 12, 2021 1:31 am
by klack
I use a NodeMCU and I can update a normal sketch or filesystem over OTA just fine.

When I use signed binaries, I am able to update the signed sketch but not the signed filesystem.
I am on Windows, so I use the Manual Signing method.

When I try to upload a signed filesystem, I get:
Code: Select all23:23:25 [INFO]: Upload size: 1024260
23:23:25 [INFO]: Sending invitation to: 192.168.7.250
23:23:25 [ERROR]: Bad Answer: ERR: ERROR[4]: Not Enough Space

It seems the act of signing the filesystem pushes it over the 1024000 limit. I feel like I am missing something very basic here.

Can anyone that uses signed filesystems help out? I've made a copy of my code available here: https://github.com/klack/ota_test

Re: OTA Signature Verification - Cannot upload signed filesy

PostPosted: Thu Nov 25, 2021 9:29 pm
by konglingboy
1.#define ATOMIC_FS_UPDATE (if not work, maybe you should define this in Updater.cpp)
2.GZip the filesystem.bin to filesystem.bin.gz
3.sign the .gz file
4.upload the signed gz filesystem
5.enjoy it