Skip to content

About

Linux driver and firmware implementation for Espressif IoT chips

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

Espressif

ESP-Hosted-Linux

ESP-Hosted-Linux runs Wi-Fi and Bluetooth on supported Espressif SoCs. On targets with an IEEE 802.15.4 radio, it can also expose an IEEE 802.15.4 Radio Co-Processor (RCP) to the host. The firmware backend uses ESP-IDF's OpenThread RCP and HDLC-framed Spinel; compatible Thread and Zigbee Radio Spinel host stacks can use the same RCP interface. Wi-Fi data and control use SDIO, SPI, or USB. Hosted Bluetooth HCI and RCP traffic can share that transport. Bluetooth HCI can use UART on supported targets, and ESP32-S31 can place the RCP on a dedicated UART.

Linux uses its normal interfaces: cfg80211/nl80211 and a wlanX netdev for Wi-Fi, Linux HCI for Bluetooth, and /dev/esp_rcp0 for the hosted OpenThread Spinel stream. Existing tools such as wpa_supplicant, hostapd, iw, BlueZ, and OpenThread POSIX (ot-daemon) are used on the host.

ESP-Hosted-Linux architecture

🔑 Key capabilities

  • Standard Linux WLAN integration: cfg80211/nl80211 control with a normal wlanX data path
  • Wi-Fi station and access-point modes through wpa_supplicant and hostapd
  • Bluetooth HCI over SDIO, SPI, or USB, with optional HCI-over-UART
  • IEEE 802.15.4 RCP byte-stream endpoint (/dev/esp_rcp0) over supported SDIO, SPI, or USB paths for compatible Thread or Zigbee Radio Spinel host stacks; hosted Bluetooth and the RCP are runtime-selectable secondary services
  • SDIO, SPI, and USB transports between Linux and the ESP device
  • SDIO host sleep and ESP wakeup on supported Linux platforms
  • ESP firmware update from Linux over the hosted link
  • ESP firmware based on ESP-IDF

📦 Transports and targets

Transport Supported ESP targets
SDIO ESP32, ESP32-C5, ESP32-C6, ESP32-C61
SPI ESP32, ESP32-S2, ESP32-S3, ESP32-S31, ESP32-C2, ESP32-C3, ESP32-C5, ESP32-C6, ESP32-C61
USB ESP32-S31

Bluetooth and Wi-Fi PHY capabilities vary by target. Supported hardware has the full target table and transport notes.

📊 Performance

Best recorded Wi-Fi throughput from available project measurements:

ESP target Transport Peak TCP Peak UDP
ESP32 SDIO 43.5 Mbps 49.1 Mbps
ESP32-C3 SPI 15.8 Mbps 17.1 Mbps
ESP32-C5 SDIO 63.3 Mbps 97.8 Mbps
ESP32-C6 SDIO 55.6 Mbps 90.4 Mbps
ESP32-C61 SDIO 42.6 Mbps 64.0 Mbps

Peak values are maxima from available measurements and may come from different Tx/Rx directions or radio configurations. Performance has the full measurements and test notes.

🚀 Quick start

  1. Pick an ESP target and transport from Supported hardware.
  2. Connect the ESP device to the Linux host using Hardware setup.
  3. Build and flash ESP firmware using Build, flash, and load.
  4. Configure the host bus/Device Tree integration, build the matching Linux module, and load it against the running kernel.
  5. Continue with Wi-Fi station, Wi-Fi access point, Bluetooth, or IEEE 802.15.4 RCP (Thread / Zigbee).

For the complete bring-up flow, follow Quick start. Platform integration details are in Porting.

📚 Documentation

🤝 Contributing

Contributions are welcome through GitHub pull requests. CONTRIBUTING.md covers the development workflow, commit sign-off, testing, and review.

📄 License

This repository contains code under the Apache License 2.0 and GNU GPL v2 only. Check each source file's SPDX identifier for the license that applies to that file. LICENSES/README.md summarizes the project license layout.

About

Linux driver and firmware implementation for Espressif IoT chips

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages