realtek_rtwifi icon indicating copy to clipboard operation
realtek_rtwifi copied to clipboard

How add this driver in android kernel source (NetHunter)

Open ghost opened this issue 4 years ago • 3 comments

  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 avatar Apr 29 '21 14:04 ghost

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.

ghost avatar Apr 29 '21 21:04 ghost

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

V3rB0se avatar Jun 09 '22 00:06 V3rB0se

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 :)

Houcein2020 avatar Nov 02 '22 13:11 Houcein2020