realtek_rtwifi icon indicating copy to clipboard operation
realtek_rtwifi copied to clipboard

Failed stat for 'rtwifi.ko': No such file or directory. What am I doing wrong?

Open NightFlexer opened this issue 3 years ago • 6 comments

My actions: sudo apt install automake sudo apt-get install build-essential sudo apt-get install bc sudo apt-get install libelf-dev sudo apt-get install linux-headers-uname -r #-- git clone https://github.com/kimocoder/realtek_rtwifi cd realtek_rtwifi #-- sudo make # (rtwifi.ko not built) sudo make install # failed stat for 'rtwifi.ko': No such file or directory

NightFlexer avatar Dec 17 '21 23:12 NightFlexer

Same Here... https://github.com/kimocoder/realtek_rtwifi/issues/27

mbm13781221 avatar Dec 30 '21 17:12 mbm13781221

I picked up the driver with some guys from the Internet and I managed to put it together. Here's how you can do it:

  1. Take a rtl8xxxu_core.c and replace fallthrough with [[fallthrough]] Instructions for vim: :%s/fallthrough/[[fallthrough]]/g
  2. In the rtl8xxxu_8192e.c, delete drains from 565 to 597 (Or get it from step 3.)
  3. Take the rtl8xxxu_8192e.c from the commit 6172cad5b90aa87cccdc2c0729685bdb55114d2c And you will be able to do: make && make install

NightFlexer avatar Jan 09 '22 16:01 NightFlexer

I picked up the driver with some guys from the Internet and I managed to put it together. Here's how you can do it:

1. Take a rtl8xxxu_core.c and replace fallthrough with [[fallthrough]]
   Instructions for vim: :%s/fallthrough/[[fallthrough]]/g

2. In the rtl8xxxu_8192e.c, delete drains from 565 to 597 (Or get it from step 3.)

3. Take the rtl8xxxu_8192e.c from the commit [6172cad](https://github.com/kimocoder/realtek_rtwifi/commit/6172cad5b90aa87cccdc2c0729685bdb55114d2c)
   And you will be able to do: make && make install

Tried this, don't know what you mean by step 2 and step 3, but I get the same result without rtwifi.ko being built.

I have attempted this with the same results with Arch Linux and Fedora 35, haven't attempted debian or other debian based distros.

JosSamLoh avatar Mar 16 '22 01:03 JosSamLoh

don't know what you mean by step 2 and step 3 Take the rtl8xxxu_8192e.c file from the specified commit.

NightFlexer avatar Mar 16 '22 10:03 NightFlexer

I picked up the driver with some guys from the Internet and I managed to put it together. Here's how you can do it:

  1. Take a rtl8xxxu_core.c and replace fallthrough with [[fallthrough]] Instructions for vim: :%s/fallthrough/[[fallthrough]]/g
  2. In the rtl8xxxu_8192e.c, delete drains from 565 to 597 (Or get it from step 3.)
  3. Take the rtl8xxxu_8192e.c from the commit 6172cad And you will be able to do: make && make install

Hello! I have done this, but unfortunately I'm running into the same error (rtwifi.ko was not even created). I'd also like to clarify that I'm installing it on a i686 machine w/Void Linux 5.15.52_1 but I don't think it should be a problem - also I made sure that I've got all dependencies.

Thanks for your help

NetMan134 avatar Jul 05 '22 20:07 NetMan134

I picked up the driver with some guys from the Internet and I managed to put it together. Here's how you can do it:

  1. Take a rtl8xxxu_core.c and replace fallthrough with [[fallthrough]] Instructions for vim: :%s/fallthrough/[[fallthrough]]/g
  2. In the rtl8xxxu_8192e.c, delete drains from 565 to 597 (Or get it from step 3.)
  3. Take the rtl8xxxu_8192e.c from the commit 6172cad And you will be able to do: make && make install

Hello! I have done this, but unfortunately I'm running into the same error (rtwifi.ko was not even created). I'd also like to clarify that I'm installing it on a i686 machine w/Void Linux 5.15.52_1 but I don't think it should be a problem - also I made sure that I've got all dependencies.

Thanks for your help

Alright, I installed the driver by the obscure method - I went into forks of this repo and found an old fork from May 2020, it compiled successfully, but now the card does not appear in... lsusb?!

Thanks for your help but I don't think I'll troubleshoot it further, Cheers

NetMan134 avatar Jul 05 '22 20:07 NetMan134