Production-grade, out-of-tree Linux kernel driver for the SmartChip S9082C / S9082xs / Tilk9082x SDIO wireless chipset (SDIO ID: 02E7:9082), widely integrated into budget Amlogic single-board computers and TV boxes (S905X, S905W, S905L, S905D).
The SmartChip S9082C has historically lacked functional open-source Linux kernel support. Chip vendors only distributed proprietary binary object blobs (9082xs_obj.o) targeted at legacy Android 3.14 BSP kernels.
When standard community distributions (such as Armbian, CoreELEC, and LibreELEC) were deployed on hardware utilizing this chipset (e.g., TX3 Mini, X96 Mini, Tanix TX3), the wireless interface either failed to initialize or experienced persistent 802.11 association timeouts and severe packet loss.
Through binary analysis of the vendor blob, hardware signal tracing, and RF baseband register analysis, the root causes of these failures were pinpointed to hardware-specific crystal capacitor register states and register bit inversions, allowing functional support to be implemented for modern Linux kernels.
While the S9082C shares architectural similarities with Realtek RTL8189ES / RTL8188EU silicon, it incorporates proprietary SmartChip register behaviors that require explicit handling:
- Symptom: Inconsistent beacon reception and persistent WPA2 authentication/association timeouts (
association took too long,ssid-not-found) despite high signal strength. - Mechanism: During baseband initialization, crystal capacitor control register
0x4024left upper bits in an invalid state (0xbc19), causing the RF frequency synthesizer phase-locked loop (PLL) to lock +25 MHz above the intended 2.4 GHz channel (e.g., channel 11 locking onto channel 16 frequencies). - Resolution: Explicitly programming
rtw_write16(Adapter, 0x4026, 0xac82)in the baseband configuration sequence forces the synthesizer PLL to lock to center frequencies with zero offset (ch_offset = 0).
- S9082C EFUSE OTP memory reading mandates a 16-bit bit-reversal pattern. Implementing this transformation enables direct extraction of factory-calibrated MAC addresses and crystal capacitor calibration values (
0x0c) directly from chip OTP memory, eliminating reliance on randomized fallback MAC addresses.
- Corrected 32-bit register inversions in
REG_HMETFR(0x41cc) and BSSID unicast filter matching (0x4618), preventing frame timestamp corruption and dropped unicast RX frames.
- Dynamic rate adaptation and real-time channel estimation are fully integrated (
rtw_s9082_disable_phydm=0), allowing seamless modulation scaling between MCS0 and MCS7 based on signal quality.
- The 8051 MCU microcode (
s9082c_fw_nic) is embedded as a source-level array (hal/rtl8188e/hal8188e_s9082c_fw.c), enabling self-contained DKMS compilation without external/lib/firmwaredependencies.
Test environment: Amlogic S905X platform running Armbian 26.11 (Linux kernel 6.12.117-ophub, ARM64), associated with an AVM FRITZ!Box 7520 (WPA2-CCMP):
| Metric | Measured Value | Details |
|---|---|---|
| Sustained TCP Throughput | 22.0 – 25.5 MBit/s | Evaluated via iperf3 and sustained HTTP streams |
| PHY Rate | 72.2 MBit/s | 802.11n Wi-Fi 4 (20 MHz bandwidth, MCS7, SGI) |
| Round-Trip Latency | 3.3 – 3.7 ms | Average ICMP ping to default gateway |
| Packet Loss | 0.0% | Zero lost frames across 60-second saturation runs |
| SDIO Bus Configuration | 4-Bit @ 50 MHz | SDIO High-Speed mode (200 MBit/s link capacity) |
| CPU Utilization | ~12–15% | SDIO IRQ tasklet processing load |
The S9082C chipset (identifiable via lsmod / dmesg as SDIO ID 02E7:9082) is commonly deployed in:
- TX3 Mini (Amlogic S905W / S905X)
- X96 Mini / X96W (Amlogic S905W)
- Tanix TX3 Max / TX3 Mini
- MXQ Pro 4K (Amlogic S905X variants)
- H96 Mini / H96 Pro
- Sunvell T95X / T95N
- Custom embedded platforms incorporating the SmartChip S9082C / S9082xs SDIO module
The fastest method for Debian, Ubuntu, or Armbian systems is using the prebuilt DKMS deb package:
# 1. Download latest deb package
wget https://github.com/Neur-alx/s9082c-linux-driver/releases/download/v1.0.0/s9082c-dkms_1.0.0_all.deb
# 2. Install package (automatically triggers DKMS build for current kernel)
sudo dpkg -i s9082c-dkms_1.0.0_all.deb
sudo apt-get install -f
# 3. Load driver
sudo modprobe s9082cDKMS automatically rebuilds and stages the driver across kernel upgrades:
# 1. Install build prerequisites
sudo apt update
sudo apt install -y build-essential dkms git bc
# 2. Clone repository
git clone https://github.com/Neur-alx/s9082c-linux-driver.git
cd s9082c-linux-driver
# 3. Install module via DKMS
sudo make dkms_install
# 4. Deploy modprobe configuration
sudo cp s9082c.conf /etc/modprobe.d/
# 5. Load kernel module
sudo modprobe s9082cA standalone PKGBUILD is available under packaging/PKGBUILD for makepkg:
cd packaging
makepkg -sicd s9082c-linux-driver
# Build module (outputs s9082c.ko)
make -j$(nproc)
# Install into /lib/modules/$(uname -r)/
sudo make install
# Deploy modprobe configuration
sudo cp s9082c.conf /etc/modprobe.d/
# Load driver
sudo modprobe s9082cFor predictable latency and optimal throughput, the following parameters are recommended:
# /etc/modprobe.d/s9082c.conf
options s9082c rtw_s9082_disable_phydm=0 rtw_power_mgnt=0rtw_s9082_disable_phydm=0: Enables real-time PHY rate adaptation.rtw_power_mgnt=0: Disables power management states to avoid latency degradation.
Confirm successful driver initialization via dmesg:
Identified SmartChip S9082C / 9082xs (SDIO 02E7:9082)!
S9082C RF Path Switch set to Main (0x404e=0x08)
S9082C LCK done (tmpreg=0x00, lc_cal=0xac820 restored=0xac820)
S9082C IQK done: cand=0 e94=0x100 e9c=0x0 ea4=0x100 eac=0x0
wlan0: IPv6: ADDRCONF(NETDEV_CHANGE): link becomes ready
Network association can be verified with standard Linux networking utilities (nmcli, iw, or wpa_supplicant):
nmcli dev wifi connect "YourSSID" password "YourPassword"While this out-of-tree repository provides immediate compatibility via DKMS, long-term upstream kernel integration points toward the mainline rtw88 mac80211 framework (drivers/net/wireless/realtek/rtw88/). See docs/RTW88_UPSTREAM_ROADMAP.md for the complete architectural roadmap and staged milestones.
Key considerations for porting S9082C support into rtw88:
- Framework Differences:
rtw88utilizes mac80211 for MLME, scan, and rate control, whereas vendor out-of-tree drivers maintain their own internal 802.11 state machine. - RF Synthesizer Initialization: The
0x4026(0xac82) register write must be integrated into the baseband PLL power-up sequence for the S9082C SDIO ID (02E7:9082). - EFUSE Transformation: The 16-bit OTP bit-reversal routines documented in this repository provide the basis for parsing factory calibration tables within mac80211 calibration paths.
- Firmware Decoupling: For mainline acceptance, the MCU microcode blob must be packaged as an external binary file within the
linux-firmwarerepository.
Contributions, validation reports on additional hardware models, and packaging files for distributions (Armbian, CoreELEC, LibreELEC, EmuELEC) are welcome via issue reports and pull requests.
This project is licensed under the GNU General Public License v2.0 (GPLv2). Refer to LICENSE for full terms.