Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usb_modeswitch is returning error #73

Open
kulkarniravi opened this issue Aug 2, 2020 · 12 comments
Open

usb_modeswitch is returning error #73

kulkarniravi opened this issue Aug 2, 2020 · 12 comments

Comments

@kulkarniravi
Copy link

kulkarniravi commented Aug 2, 2020

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
Copy link

qiaoy99 commented Aug 30, 2020

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

@yufalcon
Copy link

yufalcon commented Sep 4, 2020

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
Copy link

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
Copy link

RussH commented Oct 21, 2020

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

@kulkravi
Copy link

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

@wdvictor
Copy link

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
Copy link

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

@careliinfinitii
Copy link

Still same issue on Pi4 B+ with Pi Os

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= 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
Copy link

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

@niauah
Copy link

niauah commented Apr 11, 2022

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

@ijakparov This worked for me, thanks!

@Sub-read
Copy link

@wdvictor that worked for me, thanks a lot.

@paulomcnally
Copy link

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.

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

No branches or pull requests