ESP32
The esp32 port is built on ESP-IDF. One tree covers classic ESP32 plus S2, S3, C2, C3, C5, C6, H2 and P4. Flash with esptool. Docs: esp32 quickref.
Flash
esptool.py --chip esp32 --port /dev/ttyUSB0 erase_flash
esptool.py --chip esp32 --port /dev/ttyUSB0 write_flash -z 0x1000 ESP32_GENERIC-*.bin
Images: ESP32_GENERIC and the sibling ESP32_GENERIC_* boards. Hold BOOT (GPIO 0) if the serial port does not enter download mode.
What you get
Wi-Fi via network.WLAN, BLE on chips that have it, espnow, deep sleep, touch pads on classic/S2/S3, and a larger heap than ESP8266. The classic ESP32, S2 and S3 are Xtensa; the C2, C3, C5, C6, H2 and P4 are RISC-V. The H2 has Bluetooth LE but no Wi-Fi. The P4 has no radio of its own and can pair with a C5 or C6 as a wireless co-processor (from 1.27).