brektrou / rtl8821CU

Realtek RTL8811CU/RTL8821CU USB Wi-Fi adapter driver for Linux
GNU General Public License v2.0
1.59k stars 460 forks source link

usb_modeswitch is returning error #73

Open kulkarniravi opened 4 years ago

kulkarniravi commented 4 years ago

Hi,

I am on Ubuntu 20.04. I am following your instructions in README below, and here is the error I encountered:

$ sudo usb_modeswitch -KW -v 0bda -p b812
[sudo] password for ravi: 
Take all parameters from the command line

 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.5.2 (C) Josua Dietze 2017
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x0bda
DefaultProduct= 0xb812

StandardEject=1

Look for default devices ...
  found USB ID 1d6b:0003
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0b05:18f3
  found USB ID 062a:5918
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 058f:6366
  found USB ID 0bda:b812
   vendor ID matched
   product ID matched
  found USB ID 1d6b:0002
 Found devices in default mode (1)
Access device 004 on bus 001
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
 with class 255
Error: can't use storage command in MessageContent with interface 0; interface class is 255, expected 8. Abort

Any help will be much appreciated.

qiaoy99 commented 4 years ago

same problem. I tried both on ubuntu 18.04 and 20.04. Same error message.

yufalcon commented 3 years ago

Hi,

I am on Ubuntu 20.04. I am following your instructions in README below, and here is the error I encountered:

$ sudo usb_modeswitch -KW -v 0bda -p b812
[sudo] password for ravi: 
Take all parameters from the command line

 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.5.2 (C) Josua Dietze 2017
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x0bda
DefaultProduct= 0xb812

StandardEject=1

Look for default devices ...
  found USB ID 1d6b:0003
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0b05:18f3
  found USB ID 062a:5918
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 058f:6366
  found USB ID 0bda:b812
   vendor ID matched
   product ID matched
  found USB ID 1d6b:0002
 Found devices in default mode (1)
Access device 004 on bus 001
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
 with class 255
Error: can't use storage command in MessageContent with interface 0; interface class is 255, expected 8. Abort

Any help will be much appreciated.

same bro

AlanMauricioC commented 3 years ago

Same here, any solution?

Error: can't use storage command in MessageContent with interface 0; interface class is 255, expected 8. Abort

I can use it but usually with troubles

S.O: Manjaro chipset: RTL8811CU

RussH commented 3 years ago

Similar - usb mdoeswitch didn't work, i went ahead and built the driver, and installed it - wifi sprang into life

kulkravi commented 3 years ago

I cloned, rebuilt the driver and installed. Still didn't work.

wdvictor commented 3 years ago

Hi there, people. I was experiencing the same problem (the exact same problem), and I was capable to solve following these instructions: https://askubuntu.com/questions/1162974/wireless-usb-adapter-0bdac811-realtek-semiconductor-corp

follows:

sudo apt update sudo apt install build-essential git dkms git clone https://github.com/brektrou/rtl8821CU.git cd rtl8821CU chmod +x dkms-install.sh sudo ./dkms-install.sh

sudo modprobe 8821cu

I expect to help because it's cost my entire night, and this solves my problem.

serginhosis commented 3 years ago

@wdvictor I was used the same instructions to install in my machine, but the adapter is not recognized

careliinfinitii commented 3 years ago

Still same issue on Pi4 B+ with Pi Os

Take all parameters from the command line

DefaultVendor= 0x0bda DefaultProduct= 0xf179

StandardEject=1

Look for default devices ... found USB ID 1d6b:0003 found USB ID 0bda:f179 vendor ID matched product ID matched found USB ID 1a86:e5e3 found USB ID 2109:3431 found USB ID 1d6b:0002 Found devices in default mode (1) Access device 004 on bus 001 Get the current device configuration ... Current configuration number is 1 Use interface number 0 with class 255 Error: can't use storage command in MessageContent with interface 0; interface class is 255, expected 8. Abort

ijakparov commented 3 years ago

That's work for me https://github.com/morrownr/8821cu

niauah commented 2 years ago

That's work for me https://github.com/morrownr/8821cu

@ijakparov This worked for me, thanks!

Sub-read commented 2 years ago

@wdvictor that worked for me, thanks a lot.

paulomcnally commented 1 year ago

sudo ./dkms-install.sh

paulomcnally@raspberrypi:~/rtl8821CU $ sudo ./dkms-install.sh
About to run dkms install steps...

Creating symlink /var/lib/dkms/rtl8821CU/5.4.1/source ->
                 /usr/src/rtl8821CU-5.4.1

DKMS: add completed.
Error! echo
Your kernel headers for kernel 5.15.61+ cannot be found at
/lib/modules/5.15.61+/build or /lib/modules/5.15.61+/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Error! echo
Your kernel headers for kernel 5.15.61+ cannot be found at
/lib/modules/5.15.61+/build or /lib/modules/5.15.61+/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Finished running dkms install steps.