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

How add this driver in android kernel source (NetHunter) #20

Open
ghost opened this issue Apr 29, 2021 · 3 comments
Open

How add this driver in android kernel source (NetHunter) #20

ghost opened this issue Apr 29, 2021 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 29, 2021

  1. I took the source code of the kernel of my device (NetHunter)
  2. Downloaded the toolchain compiler
  3. I git clone 'https://github.com/kimocoder/realtek_rtwifi.git'
  4. Now I do not detect in 'kernel_sources/drivers/net/wireless/realtek' folders
  5. I renamed the 'realtek_rtwifi' folder to 'rtwifi' and copied it to 'kernel_sources/drivers/net/wireless/rtlwifi'
    so now it's 'kernel_sources/drivers/net/wireless/rtlwifi/rtwifi'
  6. I also changed all directories in 'kconfig' and 'Makefile' according to this path '/drivers/net/wireless/rtlwifi'
  7. Now I have done 'device_defconfig' etc, and started 'make'
  8. And I noticed that the compilation does not go into 'kernel_sources/drivers/net/wireless/rtlwifi/rtwifi'
  9. I am aware of the error, because it looks like the 'rtlwifi' and 'rtwifi' drivers
    should be in the same folder in parallel and cannot be in each other.
  10. I decided to create the 'realtek' folder myself and copy 'rtwifi' there, now it looks like
    this 'kernel_sources/drivers/net/wireless/realtek/rtwifi'
  11. I also created my 'kconfig' and 'Makefile' in 'realtek' and added lines there according to the instructions in
    'https://github.com /kimocoder/realtek_rtwifi/blob/master/README.md'
  12. I repeated point 7 and everything is the same
    I am a beginner in such matters and just want to use TP-Link TL-WN722N v2 on my Nexus.
    I ask who is not difficult, write a small more detailed instruction for me and many people like me)
@ghost
Copy link
Author

ghost commented Apr 29, 2021

Okay, I still make a working realtek folder in drivers / net / wireless. I created a folder myself and moved all the rtlwifi, rtl818x, rtl8xxxu drivers to it. And created my Kconfig and Makefile. So now all realtek drivers is in one folder and all compilation is successful except for rtl8xxxu. I create a new Issues about this.

@V3rB0se
Copy link

V3rB0se commented Jun 9, 2022

Okay, I still make a working realtek folder in drivers / net / wireless. I created a folder myself and moved all the rtlwifi, rtl818x, rtl8xxxu drivers to it. And created my Kconfig and Makefile. So now all realtek drivers is in one folder and all compilation is successful except for rtl8xxxu. I create a new Issues about this.

use sources from @Darkar25
cd kernel/drivers/net/wireless/realtek && git clone https://github.com/Darkar25/realtek_rtwifi && mv realtek_rtlwifi rtwifi

@Houcein2020
Copy link

Hi ghost
I m in the same panic with my android box kiii pro with damaged internal wifi
I want to add usb wifi driver to stock rom cuse the dtv (tuner)is compatible only with the fucking stock ,,,so
I m in panic ,,,u can help me :)

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

2 participants