Skip to content

Commit 54dd9e4

Browse files
committed
adapted to latest version
1 parent f2e45c3 commit 54dd9e4

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

content/docs/tools/teddyCloud/setup/dump-certs/esp32.md

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: ""
66
# ESP32
77
You can extract the flash memory via the debug port of the box and the esptool. Keep your backup! Please use a recent version of [esptool](https://github.com/espressif/esptool). (>v4.4)
88
Please connect the jumper J100 (Boot) and reset the box to put it into the required UARTmode. Connect your 3.3V UART to J103 (TxD, RxD, GND).
9+
910
![J103 Pinout](/img/tb-esp32-uart.jpg)
1011

1112
If connected with the Boot jumper, the box just start in "DOWNLOAD (USB/UART0)" mode (Check with a serial monitor) and the LED will be off. Beware, if the serial monitor is open it will block esptool.py from accessing the esp. If you get a "BROWNOUT_RST" check your power supply / battery. "SPI_FAST_FLASH_BOOT" indicates a boot without the J100 jumper.
@@ -26,18 +27,25 @@ If the flash is read sucessfully, you can download the unpatched firmware.
2627

2728
_(Optionally as you can do it automatically at the end of the flashing process!)_
2829

29-
After that you can manually extract the certificates into the ```/certs/client/``` directory. You can either do that with the teddycloud executable on your computer or you may do it via the docker shell `docker exec -it <container-name> bash`.
30+
After that you can manually extract the certificates. You can either do that with the teddycloud executable on your computer or you may do it via the docker shell `docker exec -it <container-name> bash`.
3031
```
3132
# Please check the filename of your backup
32-
# Be sure you are in the teddycloud directory
33+
# Be sure you are in the TeddyCloud directory
3334
# cd /teddycloud/ # just for docker
34-
teddycloud --esp32-extract data/firmware/ESP32_<mac>.bin --destination certs/client
35+
mkdir certs/client/<mac>
36+
teddycloud --esp32-extract data/firmware/ESP32_<mac>.bin --destination certs/client/<mac>
3537
```
3638
Please check the filename of the extracted certs, especially the case! Change them to lowercase if they are uppercase.
3739
```
38-
mv certs/client/CLIENT.DER certs/client/client.der
39-
mv certs/client/PRIVATE.DER certs/client/private.der
40-
mv certs/client/CA.DER certs/client/ca.der
40+
mv certs/client/<mac>/CLIENT.DER certs/client/<mac>/client.der
41+
mv certs/client/<mac>/PRIVATE.DER certs/client/<mac>/private.der
42+
mv certs/client/<mac>/CA.DER certs/client/<mac>/ca.der
43+
```
44+
For your first Toniebox setup with TeddyCloud, copy the certificates into the base client certificates directory. TeddyCloud uses these certificates to authenticate with the official Tonies Cloud, allowing content to be downloaded without Toniebox interaction (e.g., when you click 'Download' on a Tonie in the GUI).
45+
```
46+
cp certs/client/<mac>/client.der certs/client/client.der
47+
cp certs/client/<mac>/private.der certs/client/private.der
48+
cp certs/client/<mac>/ca.der certs/client/ca.der
4149
```
4250

4351
Be sure, that the dump is okay and you are able to extract the certificates.
@@ -50,11 +58,18 @@ Be sure, that the dump is okay and you are able to extract the certificates.
5058
esptool.py -b 921600 read_flash 0x0 0x800000 tb.esp32.bin
5159
# extract certficates from firmware
5260
mkdir certs/client/esp32
61+
mkdir certs/client/<mac>
5362
teddycloud --esp32-extract tb.esp32.bin --destination certs/client/esp32
63+
5464
# Copy box certificates to teddyCloud
55-
cp certs/client/esp32/CLIENT.DER certs/client/client.der
56-
cp certs/client/esp32/PRIVATE.DER certs/client/private.der
57-
cp certs/client/esp32/CA.DER certs/client/ca.der
65+
cp certs/client/esp32/CLIENT.DER certs/client/<mac>/client.der
66+
cp certs/client/esp32/PRIVATE.DER certs/client/<mac>/private.der
67+
cp certs/client/esp32/CA.DER certs/client/<mac>/ca.der
68+
69+
# In case of first Toniebox setup for TeddyCloud
70+
cp certs/client/<mac>/client.der certs/client/client.der
71+
cp certs/client/<mac>/private.der certs/client/private.der
72+
cp certs/client/<mac>/ca.der certs/client/ca.der
5873
5974
# Copy certificates to temporary dir
6075
mkdir certs/client/esp32-fakeca
Loading

0 commit comments

Comments
 (0)