Can't install drivers for ralink usb wifi, opkg can't find this driver although it exists

Hello everyone,

This is my config:

root@OpenWrt:~# cat /etc/openwrt_release 
DISTRIB_DESCRIPTION='OpenWrt 21.02.2 r16495-bf0c965af0'
root@OpenWrt:~# cat /etc/opkg/distfeeds.conf
src/gz openwrt_core
src/gz openwrt_base
src/gz openwrt_luci
src/gz openwrt_packages
src/gz openwrt_routing
src/gz openwrt_telephony

root@OpenWrt:~# opkg install kmod-rt2800-lib kmod-rt2800-usb kmod-rt2x00-lib kmo
Unknown package 'kmod-rt2800-lib'.
Unknown package 'kmod-rt2800-usb'.
Unknown package 'kmod-rt2x00-lib'.
Unknown package 'kmod-rt2x00-usb'.
Collected errors:
 * opkg_install_cmd: Cannot install package kmod-rt2800-lib.
 * opkg_install_cmd: Cannot install package kmod-rt2800-usb.
 * opkg_install_cmd: Cannot install package kmod-rt2x00-lib.
 * opkg_install_cmd: Cannot install package kmod-rt2x00-usb.

root@OpenWrt:~# opkg list | grep rt28
rt2800-pci-firmware - 20211216-1 - Ralink RT28xx/3xxx PCI/SoC firmware
rt2800-usb-firmware - 20211216-1 - Ralink RT28xx/3xxx USB firmware

root@OpenWrt:~# lsmod | grep rt28

I want to install this driver:

But I can't.
opkg can't find this driver.

Can someone point me in the right direction?


opkg update?

Hi slh,

I did this, sorry for not writing about it.
It did not solve.
It does not find the packages.

Is the file /etc/opkg/distfeeds.conf correct?
I see here
that kmod-rt2800-lib should be in repository = base.

if you do:
opkg update
opkg list | grep rt28
what is your output?


It apparently isn't being built for bcm47xx/legacy, while it does get built for bcm47xx/generic (no, these don't help you on bcm47xx/legacy) - it's not quite obvious for me why not, but I can't check it in detail right now either.

Thank you for this.
Can you recommend how to solve this?
Or any time estimation on when divers will be included in [bcm47xx/legacy] ?
Or can I use [bcm47xx/generic] instead ?
I have wl500W

As already mentioned, no.

There is no time frame, you're the first to notice in 3 years.
The reason hasn't even been looked at, yet. It can very well be final, if bcm47xx/legacy is missing important dependencies.

USB wireless is special to begin with (and rt2800usb not capable of AP mode either, breaking with power-saving clients) and BCM4704 too slow to saturate 802.11n (or even 802.11g) over USB anyways.

Hi slh,

can you point me to a guide on how to compile this driver myself?

or can I manually take the packages from [bcm47xx/generic] and copy them here?

I understand that for [bcm47xx/legacy] there is not much interest because it is for old devices, not used anymore, I am still trying to find a way to solve my problem, maybe not an easy way.


You will need the full source to debug this further anyways.

For the third -and last- time, no - you can't.

Hi slh,

While compiling openwrt I am stuck with following error:

module '.../drivers/net/wireless/broadcom/brcm80211/brcmsmac/brcmsmac.ko' is missing.

Any ideas?


Details here:

ERROR: module '/media/user/e2e91b44-16b2-4fea-8d27-aaec833ecc2d/openwrt_compile/openwrt/build_dir/target-mipsel_mips32_musl/linux-bcm47xx_legacy/backports-5.15.8-1/drivers/net/wireless/broadcom/brcm80211/brcmsmac/brcmsmac.ko' is missing.
Makefile:553: recipe for target '/media/user/e2e91b44-16b2-4fea-8d27-aaec833ecc2d/openwrt_compile/openwrt/bin/targets/bcm47xx/legacy/packages/kmod-brcmsmac_5.10.107+5.15.8-1-2_mipsel_mips32.ipk' failed
make[3]: *** [/media/user/e2e91b44-16b2-4fea-8d27-aaec833ecc2d/openwrt_compile/openwrt/bin/targets/bcm47xx/legacy/packages/kmod-brcmsmac_5.10.107+5.15.8-1-2_mipsel_mips32.ipk] Error 1
make[3]: Leaving directory '/media/user/e2e91b44-16b2-4fea-8d27-aaec833ecc2d/openwrt_compile/openwrt/package/kernel/mac80211'
time: package/kernel/mac80211/regular/compile#0.60#0.16#0.68
    ERROR: package/kernel/mac80211 failed to build (build variant: regular).
package/Makefile:114: recipe for target 'package/kernel/mac80211/compile' failed
make[2]: *** [package/kernel/mac80211/compile] Error 1
make[2]: Leaving directory '/media/user/e2e91b44-16b2-4fea-8d27-aaec833ecc2d/openwrt_compile/openwrt'
package/Makefile:110: recipe for target '/media/user/e2e91b44-16b2-4fea-8d27-aaec833ecc2d/openwrt_compile/openwrt/staging_dir/target-mipsel_mips32_musl/stamp/.package_compile' failed
make[1]: *** [/media/user/e2e91b44-16b2-4fea-8d27-aaec833ecc2d/openwrt_compile/openwrt/staging_dir/target-mipsel_mips32_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/media/user/e2e91b44-16b2-4fea-8d27-aaec833ecc2d/openwrt_compile/openwrt'
/media/user/e2e91b44-16b2-4fea-8d27-aaec833ecc2d/openwrt_compile/openwrt/include/ recipe for target 'world' failed
make: *** [world] Error 2

create a separate thread in

and use </> when posting code.