🛠 Wi-Fi et Bluetooth du module RTL8723DS sur le Lichee RV Dock

Sipeed Lichee RV Dock (Allwinner D1 / T-Head XuanTie C906) · intermediaire · Schéma : IMG-sipeed-lichee-rv-dock-intermediaire-2-licheerv-wifi-bt-rtl8723ds.svg — module Realtek RTL8723DS du Lichee RV Dock : liaison SDIO 4 bits (mmc1) pour le Wi-Fi 2,4 GHz avec GPIO de reset PG12, Bluetooth 4.2 sur uart1 avec lignes RTS/CTS et wake PG16-PG18, antenne céramique et connecteur IPEX

Objectives

The Wi-Fi SKU of the Lichee RV kit includes a Realtek RTL8723DS: Wi-Fi 4 (802.11b/g/n 2.4 GHz) + Bluetooth 4.2. On the D1 side, the chip is connected via 4-bit SDIO to the mmc1 controller (with a reset GPIO on PG12) and Bluetooth on uart1 with RTS/CTS flow control and wake lines PG16-PG18 — the mainline device tree for the Dock describes exactly this wiring. This tutorial: bring up wlan0 in station mode with wpa_supplicant, verify the interface, then bring up the Bluetooth HCI. This is real-world hardware: the RTL8723DS requires firmware + vendor driver, unlike a standard USB module.

Hardware

Complete code

# 1) Vérifier la présence matérielle
dmesg | grep -iE 'mmc1|rtl8723|bluetooth'
ip link          # wlan0 doit exister même non connecté

# 2) Wi-Fi station avec wpa_supplicant
rfkill unblock wifi
wpa_passphrase "MonSSID" "motdepasse" | sudo tee /etc/wpa_supplicant.conf >/dev/null
sudo wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf -C /var/run/wpa
sudo wpa_cli -p /var/run/wpa status state      # attendre COMPLETED
sudo udhcpc -i wlan0                           # ou dhclient wlan0 selon la distro
ping -c 3 1.1.1.1

# 3) Persister (Ubuntu : netplan + wpa_supplicant, ou NetworkManager)
sudo nmcli device wifi connect "MonSSID" password "motdepasse"   # si NetworkManager

# 4) Bluetooth 4.2 : le nœud « realtek,rtl8723ds-bt » de uart1 (ttyS1)
#    attend une initialisation HCI (service vendor ou hciattach) :
sudo systemctl start hciuart 2>/dev/null || \
  sudo hciattach /dev/ttyS1 rtl8723ds 1500000  # selon l'image
sudo hciconfig hci0 up && sudo hcitool scan

Expected verification

ip -br link shows wlan0 UP with an IP address after DHCP; wpa_cli status returns state=COMPLETED; ip route get 1.1.1.1 confirms that traffic exits via wlan0. dmesg traces the chip attachment on mmc1 (the PG12 GPIO reset is driven by the driver). On the BT side, hciconfig hci0 displays a MAC address and hcitool scan sees neighboring devices. Under the Buildroot image for the board, everything is already packaged: this is the shortest path to validate this tutorial.

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials