config-wsl: enable CMAC, ZSTD firmware, and MediaTek USB Bluetooth
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 68/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Tranquilla
- Stack tecnologico
- linux
- Ambito
- operating-systems
Direzione di ricerca
Inizia da arch/x86/configs/config-wsl e confrontalo con il diff indicato o con la configurazione attuale di linux-msft-wsl-6.18.y. Verifica che le tre impostazioni richieste siano state modificate come specificato: CMAC integrato, compressione del firmware ZSTD e supporto Bluetooth USB MediaTek. Il lavoro è completato quando la configurazione WSL x86 contiene queste modifiche, senza estendere la richiesta al caricamento del firmware o alla configurazione arm64.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is your feature request related to a problem? Please describe.
Yes. Using several USB Bluetooth dongles in WSL2 (attached via usbipd) is blocked by the default WSL2 kernel config in three ways:
- MediaTek USB BT controllers have no driver.
CONFIG_BT_HCIBTUSB_MTKis not set, sobtusbhas no MediaTek support and the controller never initializes. - Compressed firmware can't be read. Current
linux-firmwareships blobs as.zst, butCONFIG_FW_LOADER_COMPRESS_ZSTDis not set, so the direct loader can't decompress them.CONFIG_FW_LOADER_COMPRESS_XZis enabled, butlinux-firmwarehas moved to zstd. - CMAC crypto fails to load on demand.
CONFIG_CRYPTO_CMAC=m. BT LE Secure Connections allocatescmac(aes), which triggers a kernel-siderequest_module(). On WSL2 that runs through usermodehelper in the init namespace, which cannot reach the distro's/sbin/modprobeor/lib/modules, so the module never loads and the controller logsUnable to create CMAC crypto context.
Describe the solution you'd like
Three config-only changes to arch/x86/configs/config-wsl (diff: https://github.com/microsoft/WSL2-Linux-Kernel/compare/linux-msft-wsl-6.18.y...intercreate:upstream-config-cmac-zstd-mtkbt):
| Option | Change | Why |
|---|---|---|
CONFIG_CRYPTO_CMAC |
m → y |
build it in so LE Secure Connections crypto works without the init-namespace request_module(). CONFIG_CRYPTO_AES=y already set. |
CONFIG_FW_LOADER_COMPRESS_ZSTD |
unset → y |
read .zst firmware. CONFIG_ZSTD_DECOMPRESS=y is already set, so this pulls in nothing new — it just enables the zstd path next to the existing xz one. |
CONFIG_BT_HCIBTUSB_MTK |
unset → y (selects CONFIG_BT_MTK=m) |
MediaTek USB BT controllers. CONFIG_BT_HCIBTUSB=m already set. |
Describe alternatives you've considered
CONFIG_EXTRA_FIRMWARE: must be listed per-file and stored uncompressed so it doesn't scale to arbitrary dongles.- Carrying a downstream fork with these enabled: works as a stopgap and is what we're doing today, but the fix belongs in the shipped config so every WSL2 user benefits.
Additional context
- Diff / branch: https://github.com/microsoft/WSL2-Linux-Kernel/compare/linux-msft-wsl-6.18.y...intercreate:upstream-config-cmac-zstd-mtkbt
- Tested with Intel, Realtek (RTL8761BU), and MediaTek Bluetooth devices attached via
usbipd. - Scope: this only opens the config path. It does not fix WSL2's separate inability to load firmware from the distro's
/lib/firmwarewhile running in the init namespace. - Same change applies to
arch/arm64/configs/config-wsl-arm64for parity if wanted; this request covers x86.
- Lingua principale
- C++
- Stelle
- 34.4k
- Fork
- 1.9k
- Merge medio
- 1g 23h
- PR unite (30g)
- 166
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/WSL
-
feature wsl2
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
microsoft/WSL#42306 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
microsoft/WSL#42114 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
feature kernel
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
microsoft/WSL#41054 · 9 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
feature GPU
Difficoltà 1/5 1-3 ore Idoneità per principianti 70/100
microsoft/WSL#13592 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
microsoft/WSL#11458 · 6 commenti · 8 reazioni ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di microsoft/WSL
Issue simili
-
needs-format
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Niko1221/Strata#6251 · 1 commento ·
I maintainer di solito rispondono entro 5 giorni
-
[Bug]: NP 管理器文件编辑器里删除键无效Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
metasequoiaime/msime#11666 ·
I maintainer di solito rispondono entro 1 giorno
-
DAE2 crashes on call.without.effects with a non ref.func expressionForse già presa @stevenfontanella l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
WebAssembly/binaryen#9404 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
CodeZombie/goodluckOS#178 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
CVO-Org/immersive-cigs-rewrite#313 ·
I maintainer di solito rispondono entro 1 giorno