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

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

Open
NightFlexer opened this issue Dec 17, 2021 · 6 comments

Comments

@NightFlexer
Copy link

NightFlexer commented Dec 17, 2021

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

@mbm13781221
Copy link

Same Here...
#27

@NightFlexer
Copy link
Author

NightFlexer commented Jan 9, 2022

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

@JosSamLoh
Copy link

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.

@NightFlexer
Copy link
Author

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

@NetMan134
Copy link

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

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

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

4 participants