how to set/flash the TeddyCloud hostname/IP manual from console?
The wiki only shows how to change the certificates:
I want to avoid the web interface, as I also have to first Read ESP32 (although I already have the firmware) before the patch/write options are available:
INFO |esp32.c:0990:esp32_patch_host()| Patching hostnames in 'patched_newhost.bin'
INFO |esp32.c:1038:esp32_patch_host()| replaced RTNL host 0 times
INFO |esp32.c:1040:esp32_patch_host()| replaced API host 0 times
=================================================================
==93==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 8388608 byte(s) in 1 object(s) allocated from:
#0 0x5654f8a87037 in __interceptor_malloc (/usr/local/bin/teddycloud+0x602037)
#1 0x5654f8aeee17 in esp32_patch_host src/esp32.c:1003
SUMMARY: AddressSanitizer: 8388608 byte(s) leaked in 1 allocation(s).
And the firmware is untouched.
I’m using TeddyCloud v0.3.5 (8602da9) - 2024-01-22 13:39:05 +0000 linux-x86_64
If the hostnames are patches they cannot be patched again, as the original hostnames cannot be detected anymore.
What do you mean by error?
This is just a memory leak after the patching process
I thought the memory leak were a severe issue.
But you are right, patching the original firmware changes the file.
Is the order first certs than hostname or vice versa important?
I patched the original firmware with the CAs and afterwards I changed the hostname. The output looked promising as the output stated that the hostname was changed in two places.
However, the box is in constant reboot after flashing (log output was also OK) that software:
INFO |esp32.c:0990:esp32_patch_host()| Patching hostnames in 'Test2_FakeCA_IP.bin'
INFO |esp32.c:1038:esp32_patch_host()| replaced RTNL host 2 times
INFO |esp32.c:1040:esp32_patch_host()| replaced API host 2 times