Skip to content

Lakka-v6.1: Add support usb-modeswitch for some USB Wi-Fi devices#2222

Open
ShigeakiAsai wants to merge 5 commits into
libretro:Lakka-v6.1from
ShigeakiAsai:usb_modeswitch_enable_on_lakka
Open

Lakka-v6.1: Add support usb-modeswitch for some USB Wi-Fi devices#2222
ShigeakiAsai wants to merge 5 commits into
libretro:Lakka-v6.1from
ShigeakiAsai:usb_modeswitch_enable_on_lakka

Conversation

@ShigeakiAsai
Copy link
Copy Markdown
Contributor

@ShigeakiAsai ShigeakiAsai commented May 17, 2026

This PR adds to support usb-modeswitch on Lakka-v6.1

This PR is related with issue #2216

Some USB Wi-Fi module needs to switch working mode.

  • 0bda:1a2b Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapte CD-ROM mode
  • 0e8d:2870 MediaTek MT7612U

This mode changing is supported by the usb-modeswitch package.
Upstream LibreELEC has this package.
But Lakka was not able to use this LE's package as is.
It shows panic and retroarch does not start.

Therefore, we create a new/separate package for Lakka.

commit: 5 commits

  1. usb-modeswitch-lakka: add package for usb-modeswitch on Lakka
    Adds usb-modeswitch-lakka package

  2. lakka/package.mk: enable usb-modeswitch-lakka package
    Enables usb-modeswitch-lakka package on all devices

  3. RK3326: disable usb-modeswitch-RK3326 package
    Disables usb-modeswitch-RK3326 package on RK3326

  4. usb-modeswitch-RK3326: remove package
    Removes usb-modeswitch-RK3326 package

  5. Samsung: add rtw8821c/rtl8821c firmwares
    Adds supported device firmware files to Samsung/Exynos

build

All 34 devices build are passed.
Base Lakka-v6.1 commit: afc4ca1

test

Pickup 5 devices test are worked.

  • AMLGX: BananaPi-M5(aarch64)
    - device switches from idVendor=0bda, idProduct=1a2b to idVendor=0bda, idProduct=c820
    - Wi-Fi is able to use.
  • Generic: Generic(x86.64)
    - device detected 0bda:c820
    - Wi-Fi is able to use.
  • RPi4: Raspberry Pi 4(aarch64)
    - device switches from idVendor=0bda, idProduct=1a2b to idVendor=0bda, idProduct=c820
    - wlan1 is recognized.(wlan0 is RPi4 internal Wi-Fi)
  • RK3326: ODROID-GO Super(aarch64)
    - device switches from idVendor=0bda, idProduct=1a2b to idVendor=0bda, idProduct=c820
    - Wi-Fi is able to use.
  • Exynos: ODROID-XU4(arm)
    - device switches from idVendor=0bda, idProduct=1a2b to idVendor=0bda, idProduct=c820
    - Wi-Fi is able to use.

note

  • If USB wifi can't mode changing when it inserts before power on, please disconnect and reconnect it.
  • I will make new PR for devel branch later.

Edit 1

  • 0bda:1a2b was not only "RTL8188GU 802.11n WLAN Adapter" device
    This vendorID/productID was used on the another Realtek USB WiFi dongle I confirmed.

Thanks
ASAI, Shigeaki

@ShigeakiAsai ShigeakiAsai changed the title Lakka-v6.1: Add support usb-modeswitch for some USB Wi-Fi devices [WIP] Lakka-v6.1: Add support usb-modeswitch for some USB Wi-Fi devices May 17, 2026
@ShigeakiAsai ShigeakiAsai changed the title [WIP] Lakka-v6.1: Add support usb-modeswitch for some USB Wi-Fi devices Lakka-v6.1: Add support usb-modeswitch for some USB Wi-Fi devices May 17, 2026
@ShigeakiAsai ShigeakiAsai marked this pull request as ready for review May 17, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant