mfruba / kernel

152 stars 103 forks source link

make error #46

Open seyo-IV opened 5 years ago

seyo-IV commented 5 years ago

root@kali:~/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417# make "**" "NO SKRC,we will use default KSRC" "**" make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.19.0-kali4-amd64/build M=/root/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417 modules make[1]: Entering directory '/usr/src/linux-headers-4.19.0-kali4-amd64' "**" "NO SKRC,we will use default KSRC" "**" CC [M] /root/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/core/rtw_cmd.o In file included from /root/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/osdep_service.h:45, from /root/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/drv_types.h:32, from /root/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/core/rtw_cmd.c:22: /root/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/osdep_service_linux.h: In function ‘_init_timer’: /root/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/osdep_service_linux.h:261:8: error: ‘_timer’ {aka ‘struct timer_list’} has no member named ‘data’ ptimer->data = (unsigned long)cntx;

In file included from /root/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/drv_types.h:35, from /root/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/core/rtw_cmd.c:22: /root/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/wifi.h: At top level: /root/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/wifi.h:988: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /usr/src/linux-headers-4.19.0-kali4-common/include/net/cfg80211.h:24, from /root/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/osdep_service_linux.h:83, from /root/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/osdep_service.h:45, from /root/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/drv_types.h:32, from /root/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/core/rtw_cmd.c:22: /usr/src/linux-headers-4.19.0-kali4-common/include/linux/ieee80211.h:1442: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

make[4]: [/usr/src/linux-headers-4.19.0-kali4-common/scripts/Makefile.build:309: /root/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/core/rtw_cmd.o] Error 1 make[3]: [/usr/src/linux-headers-4.19.0-kali4-common/Makefile:1535: module/root/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417] Error 2 make[2]: [Makefile:146: sub-make] Error 2 make[1]: [Makefile:8: all] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-kali4-amd64'

im using Kali Linux amd64 as a vm in virtualbox.

gifa75 commented 5 years ago

any news? I've the same error on 4.19.0-kali5

nelsonlopes commented 4 years ago

Same error here.

ghost commented 4 years ago

@gifa75 @nelsonlopes The solution is finally here , compiled by kimocoder Just clone it and follow the instructions :https://github.com/aircrack-ng/rtl8188eus

nelsonlopes commented 4 years ago

Thank you, @iMakeMyOwnRulez. That was really helpful :)

ghost commented 4 years ago

@nelsonlopes My Pleasure, I'm happy I could be of help

RaminMammadzada commented 4 years ago

Thank you @iMakeMyOwnRulez, your way worked.

Omni-potence commented 3 years ago

ok so i can help the err you got because this mfruba/kernel repositorie support old linux version. try this sudo apt-get update sudo apt-get upgrade apt dist-upgrade then if you type uname -r then you get same old version so please reboot your system or you can type sudo reboot. then if you check uname -r it will be on latest version now type "sudo apt install bc" after that sudo rmmod r8188eu.ko dont worry if rmod got err just follow along now clone this git clone https://github.com/aircrack-ng/rtl8188eus this is the repositorie which supports the latest version of linux now cd into that folder cd rtl8188eus then type sudo -i and password or go into root mode and type echo "blacklist r8188eu" > "/etc/modprobe.d/realtek.conf" now type exit or come back to normal mode(non root mode) type make if you got err dont'worry there is problem with your headers just type uname -r copy that name and sudo apt install linux-headers-{paste that name here} don't give that curly brackets. after installing headers go back to rtl8188eus this directory and type make this should work now type sudo make install after that type sudo modprobe 8188eu now done you have succesfully install driver now follow this commands : ifconfig wlan0 down airmon-ng check kill iwconfig wlan0 mode monitor ifconfig wlan0 up now if you type iwconfig it will show mode: monitor this process works fine on 5.8.0-kali3-amd64 type sudo airmon-ng start wlan0 to check your adapter's chipset

this is my adapter : PHY Interface Driver Chipset phy0 wlan0 8188eu TP-Link TL-WN722N v2/v3 [Realtek RTL8188EUS] (monitor mode enabled)

ghost commented 3 years ago

Hello man, i have same problem. Can you help me? modprobe: FATAL: Module 8188eu.mod not found in directory /lib/modules/5.4.0-54-generic root@Test:/home/maxim/Downloads/rtl8188eus# modprobe 8188eu

craftbuddd commented 3 years ago

FOR EVERYONE WHO CAN'T FIX IT JUST DO THIS

https://github.com/aircrack-ng/rtl8188eus

STEPS ARE SIMPLE

  1. MAKE SURE YOU ARE ON ROOT (CHECK BY LS AND SEE THAT THERE ARE FOLDERS CALLED DOCUMENTS ETC. IF THERE IS NOT TYPE CD .. TILL YOU DO SHOULD LOOK LIKE THIS [root@kali:~#] OR COMPARABLE)
  2. type this "git clone https://github.com/aircrack-ng/rtl8188eus.git"
  3. type this "cd rtl8188eus/"
  4. type this " echo 'blacklist r8188eu'|sudo tee -a '/etc/modprobe.d/realtek.conf' " (INCLUDE THE ' NOT THE ") 5.type this "cd .."
  5. type this " echo 'blacklist r8188eu'|sudo tee -a '/etc/modprobe.d/realtek.conf' " (INCLUDE THE ' NOT THE ")
  6. type this "make && sudo make install"
  7. TYPE SUDO REBOOT AND MAKE SURE YOUR ADAPTER IS PLUGGED IN AND IT WILL WORK

WORKING AS OF 4/11/2021 6:00PM