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

error on make fail #66

Open
lsclsclsc opened this issue Oct 12, 2023 · 19 comments
Open

error on make fail #66

lsclsclsc opened this issue Oct 12, 2023 · 19 comments

Comments

@lsclsclsc
Copy link

/root/rtl8188gu1/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/root/rtl8188gu1/os_dep/linux/ioctl_cfg80211.c:398:9: error: too few arguments to function ‘cfg80211_ch_switch_notify’
398 | cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /root/rtl8188gu1/include/osdep_service_linux.h:93,
from /root/rtl8188gu1/include/osdep_service.h:47,
from /root/rtl8188gu1/include/drv_types.h:27,
from /root/rtl8188gu1/os_dep/linux/ioctl_cfg80211.c:17:
/usr/src/linux-headers-6.5.0-kali2-common/include/net/cfg80211.h:8575:6: note: declared here
8575 | void cfg80211_ch_switch_notify(struct net_device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/root/rtl8188gu1/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_scan’:
/root/rtl8188gu1/os_dep/linux/ioctl_cfg80211.c:2619:33: warning: the comparison will always evaluate as ‘true’ for the address of ‘ssid’ will never be NULL [-Waddress]
2619 | if (ssids->ssid != NULL
| ^~
/usr/src/linux-headers-6.5.0-kali2-common/include/net/cfg80211.h:2442:12: note: ‘ssid’ declared here
2442 | u8 ssid[IEEE80211_MAX_SSID_LEN];
| ^~~~
make[3]: *** [/usr/src/linux-headers-6.5.0-kali2-common/scripts/Makefile.build:248:/root/rtl8188gu1/os_dep/linux/ioctl_cfg80211.o] 错误 1
make[2]: *** [/usr/src/linux-headers-6.5.0-kali2-common/Makefile:2057:/root/rtl8188gu1] 错误 2
make[1]: *** [/usr/src/linux-headers-6.5.0-kali2-common/Makefile:246:__sub-make] 错误 2
make[1]: 离开目录“/usr/src/linux-headers-6.5.0-kali2-amd64”
make: *** [Makefile:1895:modules] 错误 2

@dubhater
Copy link

Your device should work out of the box starting with kernel 6.4. Does it not work?

@a5a5aa555oo
Copy link

rtl8188gu has two modes: CDROM mode and WiFi mode, type lsusb in the terminal to see which mode it is in.
if your adapter is in CDROM mode, install usb_modeswitch to switch it to WiFi mode.

@brucelelele
Copy link

Same issue, have you figure out?

@brucelelele
Copy link

It may seems like a compiling issue for me. Because when I do the guide I get the same result as you from it using Kernel 6.5. Then I downgrade to 6.3 only seems to get a kernel headers issue.

@a5a5aa555oo
Copy link

a5a5aa555oo commented Oct 17, 2023

Linux kernel uses rtl8xxxu to drive rtl8188gu since 6.4, you guys blacklist it?

@brucelelele
Copy link

Linux kernel uses rtl8xxxu to drive rtl8188gu since 6.4, you guys blacklist it?

You mean this Repo doesn't need to add to Linux now? How to know if I had that rtl8xxxu? Cuz obviously I didn't set rtl8188gu successfully on linux6.5

@a5a5aa555oo
Copy link

a5a5aa555oo commented Oct 17, 2023

Just load rtl8xxxu if you are using linux kernel 6.4 and higher.
sudo modprobe rtl8xxxu

if rtl8xxxu is not loaded automatically on boot, check your /etc/modprobe.d/ directory if there is something preventing rtl8xxxu from loading.

Check also if your system has the firmware files needed.
ls /lib/firmware/rtlwifi/rtl8710bufw*

if not, download and copy rtl8710bufw_UMC.bin/rtl8710bufw_SMIC.bin to /lib/firmware/rtlwifi/
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtlwifi

@brucelelele
Copy link

Just load rtl8xxxu if you are using linux kernel 6.4 and higher.
sudo modprobe rtl8xxxu

if rtl8xxxu is not loaded automatically on boot, check your /etc/modprobe.d/ directory if there is something preventing rtl8xxxu from loading.

20231017141559(1).png

20231017141833(1).png

@a5a5aa555oo
Copy link

what are the outputs of these commands?

lsusb
sudo dmesg | grep rtl8xxxu

@brucelelele
Copy link

what are the outputs of these commands?

lsusb
sudo dmesg | grep rtl8xxxu

20231017144835.png

20231017143024(1).png

@a5a5aa555oo
Copy link

a5a5aa555oo commented Oct 17, 2023

still not working? run this command and post the link.
sudo dmesg | nc termbin.com 9999

@brucelelele
Copy link

still no working? run this command and post the link.
sudo dmesg | nc termbin.com 9999

Yeah, tricky20231017151213(1).png

@a5a5aa555oo
Copy link

unload 8188gu/rtl8xxxu both and try again.
sudo modprobe -r rtl8xxxu
sudo modprobe -r 8188gu
sudo modprobe rtl8xxxu

if it works, remove the 8188gu driver you installed before.
if it doesn't work, post the full log of dmesg again.

@lsclsclsc
Copy link
Author

Thank you, you have given me great ideas and solutions

@brucelelele
Copy link

brucelelele commented Oct 17, 2023

unload 8188gu/rtl8xxxu both and try again.
sudo modprobe -r rtl8xxxu
sudo modprobe -r 8188gu
sudo modprobe rtl8xxxu

if it works, remove the 8188gu driver you installed before.
if it doesn't work, post the full log of dmesg again.

Thank you very much. It now work. I think your answer is currently the only few workable solution for this chip this kernel version for me at this time .

@a5a5aa555oo
Copy link

a5a5aa555oo commented Oct 17, 2023

glad it works now. remember to blacklist or remove 8188gu.

sudo sh -c 'echo blacklist 8188gu > /etc/modprobe.d/blacklist-8188gu.conf'

@Panpan021
Copy link

how to solve this problem?
image

@dubhater
Copy link

You need to install the package which provides that file. It may be called „firmware-realtek”. Alternatively, you can download the file straight from the source: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/rtlwifi/rtl8710bufw_UMC.bin

@Panpan021
Copy link

You need to install the package which provides that file. It may be called „firmware-realtek”. Alternatively, you can download the file straight from the source: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/rtlwifi/rtl8710bufw_UMC.bin

Thank you! It works!

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

5 participants