ltchiptool
ltchiptool copied to clipboard
Fixes for Realtek RTL8720CF
Hi, I successfully liberated a TP-Link Tapo P100 Mini smart plug and I want to share the modifications I had to do to make it work with LibreTiny and ESPHome.
First I had issues with the initial flashing, I used the UF2 image, but the device couldn't boot after flashing. With ltchiptool uf2 dump I found out that the partition table dump didn't start at zero and traced it back to collect_data, which skipped the block starting at zero.
But it still didn't boot, so I tried passing only one image to uf2ota (so using the SINGLE scheme instead of DUAL) and was confused that the flasher didn't write anything. I found out that the flasher skips parts with SINGLE scheme and fixed it, that also fixed the default config of libretiny, which uses DUAL for OTA1, but SINGLE for partition table and bootloader, so both of those were skipped and the chip didn't boot.
Thank you for all your hard work on this project!