kimocoder / realtek_rtwifi

Realtek RTL8xxxU
https://www.aircrack-ng.org
68 stars 14 forks source link

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

Open ghost opened 3 years ago

ghost commented 3 years ago
  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 commented 3 years ago

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 commented 2 years ago

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 commented 1 year ago

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