RTL8188eu 칩셋이 탑재된 USB Wi-Fi 어댑터가 있습니다. 이전에는 아무것도 하지 않고도 작동했습니다(즉, 플러그를 꽂기만 하면 실행되었습니다).
다양한 다른 USB Wi-Fi 동글을 설치하려고 시도하는 동안 어떻게든 해당 동글용 드라이버를 제거했습니다(내 시스템의 /lib/modules/4.13.0-31-generic/kernel/drivers/staging/rtl8188eu
).
btusb.ko를 재구축하는 데 사용한 단계(역시 손실됨)를 모방하여 재구축을 시도했습니다(r8188eu.ko).
- 내 커널 소스 코드를 다음에서 다운로드하세요.https://www.kernel.org/pub/linux/kernel/v4.x/
- 압축을 푼다:
tar -zxvf linux-4.13.tar.gz
- 디렉토리로 전환:
cd ./linux-4.13/drivers/staging/rtl8188eu
- 빌드하세요:
make -C /lib/modules/$(uname -r)/build M=$PWD modules
하지만 다음 오류가 발생합니다.
[van@van-t470p:rtl8188eu]$ make -C /lib/modules/$(uname -r)/build M=$PWD modules
make: Entering directory '/usr/src/linux-headers-4.13.0-31-generic'
CC [M] /home/van/Temp/kernels/linux-4.13/drivers/staging/rtl8188eu/core/rtw_ap.o
/home/van/Temp/kernels/linux-4.13/drivers/staging/rtl8188eu/core/rtw_ap.c:19:10: fatal error: osdep_service.h: No such file or directory
#include <osdep_service.h>
^~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:308: recipe for target '/home/van/Temp/kernels/linux-4.13/drivers/staging/rtl8188eu/core/rtw_ap.o' failed
make[1]: *** [/home/van/Temp/kernels/linux-4.13/drivers/staging/rtl8188eu/core/rtw_ap.o] Error 1
Makefile:1550: recipe for target '_module_/home/van/Temp/kernels/linux-4.13/drivers/staging/rtl8188eu' failed
make: *** [_module_/home/van/Temp/kernels/linux-4.13/drivers/staging/rtl8188eu] Error 2
make: Leaving directory '/usr/src/linux-headers-4.13.0-31-generic'
또한 다음을 실행하여 디렉터리 업그레이드를 시도했습니다.
cd ..
make -C /lib/modules/$(uname -r)/build M=$PWD modules
그러나 이것도 실패합니다.
[van@van-t470p:staging]$ make -C /lib/modules/$(uname -r)/build M=$PWD modules
make: Entering directory '/usr/src/linux-headers-4.13.0-31-generic'
CC [M] /home/van/Temp/kernels/linux-4.13/drivers/staging/media/cxd2099/cxd2099.o
In file included from /home/van/Temp/kernels/linux-4.13/drivers/staging/media/cxd2099/cxd2099.c:34:0:
/home/van/Temp/kernels/linux-4.13/drivers/staging/media/cxd2099/cxd2099.h:28:10: fatal error: dvb_ca_en50221.h: No such file or directory
#include <dvb_ca_en50221.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:315: recipe for target '/home/van/Temp/kernels/linux-4.13/drivers/staging/media/cxd2099/cxd2099.o' failed
make[3]: *** [/home/van/Temp/kernels/linux-4.13/drivers/staging/media/cxd2099/cxd2099.o] Error 1
scripts/Makefile.build:581: recipe for target '/home/van/Temp/kernels/linux-4.13/drivers/staging/media/cxd2099' failed
make[2]: *** [/home/van/Temp/kernels/linux-4.13/drivers/staging/media/cxd2099] Error 2
scripts/Makefile.build:581: recipe for target '/home/van/Temp/kernels/linux-4.13/drivers/staging/media' failed
make[1]: *** [/home/van/Temp/kernels/linux-4.13/drivers/staging/media] Error 2
Makefile:1550: recipe for target '_module_/home/van/Temp/kernels/linux-4.13/drivers/staging' failed
make: *** [_module_/home/van/Temp/kernels/linux-4.13/drivers/staging] Error 2
make: Leaving directory '/usr/src/linux-headers-4.13.0-31-generic'
Wi-Fi 모듈의 Makefile 매개변수가 다를 수도 있나요? 잃어버린 것을 다시 만들 수 있는 방법이 있나요 r8188eu.ko
? 아니면 OS를 다시 설치해야 하나요?
편집하다:
내 lsusb 출력:
Bus 002 Device 002: ID 05e3:0612 Genesys Logic, Inc.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 058f:9540 Alcor Micro Corp. AU9540 Smartcard Reader
Bus 001 Device 006: ID 04f2:b5c0 Chicony Electronics Co., Ltd
Bus 001 Device 005: ID 138a:0097 Validity Sensors, Inc.
Bus 001 Device 004: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 003: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
Bus 001 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub