I found out that mklittlefs was generating a corrupted file, but it’s still not working now the error is another one.
Connecting to: XXX.s3.amazonaws.com
Fetching Bin: /XXX.littlefs.bin
Got application/octet-stream payload.
Got 983040 bytes from server
contentLength : 983040, isValidContentType : 1
Begin OTA. This may take 2 – 5 mins to complete. Things might be quite for a while.. Patience!
Written only : 0/983040. Retry?
Error Occurred. Error #: 8