Skip to content

[Bug] USB Passthrough Enumerated (0bda:f179 & SIM Modems) but fails to load firmware across multiple devices #86

Description

@OPX-Aminul
### Environment & Device Info
- **Host Devices:** Xiaomi and various other Android devices
- **Guest OS:** Alpine Linux (Podroid/QEMU)
- **USB Adapters:** Realtek 802.11n (`0bda:f179` / RTL8188FU), LTE/SIM Cellular Modems

### Problem Description
The USB passthrough and hardware enumeration are completely successful (`lsusb` shows `0bda:f179 Realtek 802.11n`). However, the `wlan0` (or cellular) interface is not generated because the guest kernel cannot find the required firmware binary files inside the base RootFS. 

This issue is not isolated to a single phone model or a single adapter type—it occurs across multiple Android devices and affects both Wi-Fi and SIM/Cellular USB dongles using similar driver architecture.

### Full Kernel Log / dmesg Output

[ 182.004420] usb 1-1: New USB device found, idVendor=0bda, idProduct=f179, bcdDevice= 0.00
[ 182.005084] usb 1-1: Product: 802.11n
[ 182.005562] usb 1-1: Manufacturer: Realtek
[ 185.127584] usb 1-1: RTL8188FU rev B (SMIC) romver 0, 1T1R, TX queues 2, WiFi=1, BT=0, GPS=0, HI PA=0
[ 185.138786] usb 1-1: RTL8188FU MAC: 00:e0:30:60:00:2d
[ 185.143625] usb 1-1: rtl8xxxu: Loading firmware rtlwifi/rtl8188fufw.bin
[ 185.182141] usb 1-1: Direct firmware load for rtlwifi/rtl8188fufw.bin failed with error -2
[ 185.184154] usb 1-1: request_firmware(rtlwifi/rtl8188fufw.bin) failed
[ 185.184704] usb 1-1: Fatal - failed to load firmware


### Root Cause
The minimal Alpine Linux RootFS lacks essential hardware firmware packages (`linux-firmware-rtlwifi`, cellular modem firmwares, etc.). While some Android ROMs happen to carry these binaries natively, many devices (like Xiaomi) do not, leading to `error -2` (File Not Found) in the VM.

### Suggested Fix
Please include comprehensive wireless and modem firmware packages (e.g., `linux-firmware-rtlwifi`, `linux-firmware-other`) or embed `/lib/firmware/` binaries directly into the Alpine RootFS / Dockerfile image build step:

```dockerfile
RUN apk add --no-cache linux-firmware-rtlwifi linux-firmware


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions