Ubuntu

為什麼我的 WiFi 卡沒有被 UbuntuMATE 中的驅動程序認領?

  • February 15, 2019

我的 Realtek 802.11n WiFi 卡沒有被這裡的驅動程序認領。install.sh我使用解壓文件中給出的腳本安裝了驅動程序tar.gz。UbuntuMATE 在樹莓派 2 上執行。

*-usb:4 UNCLAIMED
            description: Generic USB device
            product: 802.11n NIC
            vendor: Realtek
            physical id: 5
            bus info: usb@1:1.5
            version: 2.00
            serial: 00e04c000001
            capabilities: usb-2.10
            configuration: maxpower=500mA speed=480Mbit/s

上面是sudo lshwin終端的結果,顯示了無人認領的USB設備,WiFi卡。

harrycburn@RPi:~$ sudo iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

harrycburn@RPi:~$ sudo ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:3a:b4:5a  
         UP BROADCAST MULTICAST  MTU:1500  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000 
         RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
         inet addr:127.0.0.1  Mask:255.0.0.0
         inet6 addr: ::1/128 Scope:Host
         UP LOOPBACK RUNNING  MTU:65536  Metric:1
         RX packets:542 errors:0 dropped:0 overruns:0 frame:0
         TX packets:542 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0 
         RX bytes:45957 (45.9 KB)  TX bytes:45957 (45.9 KB)

執行lsusb

harrycburn@RPi:~$ lsusb
Bus 001 Device 012: ID 0bda:818b Realtek Semiconductor Corp. 
Bus 001 Device 013: ID 0781:5567 SanDisk Corp. Cruzer Blade
Bus 001 Device 007: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 001 Device 004: ID 1bcf:0005 Sunplus Innovation Technology Inc. 
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

執行lspci(我什至不確定這是否相關)給出:

pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method

執行install.sh給出錯誤:

tar: rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/wpa1.conf: time stamp 2012-04-05 03:42:09 is 1333588869.902553677 s in the future
tar: rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/wpa1.conf: Cannot change ownership to uid 400, gid 401: Operation not permitted
rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/xmit/
rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/xmit/rtl8712_xmit.c
tar: rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/xmit/rtl8712_xmit.c: time stamp 2012-04-05 03:42:13 is 1333588873.89712326 s in the future
tar: rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/xmit/rtl8712_xmit.c: Cannot change ownership to uid 400, gid 401: Operation not permitted
rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/xmit/rtl871x_xmit.c
tar: rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/xmit/rtl871x_xmit.c: time stamp 2012-04-05 03:42:13 is 1333588873.891775552 s in the future
tar: rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/xmit/rtl871x_xmit.c: Cannot change ownership to uid 400, gid 401: Operation not permitted
tar: rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/xmit: time stamp 2012-04-05 03:42:13 is 1333588873.890704718 s in the future
tar: rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/xmit: Cannot change ownership to uid 400, gid 401: Operation not permitted
tar: rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405: time stamp 2012-04-05 03:42:18 is 1333588878.889988364 s in the future
tar: rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405: Cannot change ownership to uid 400, gid 401: Operation not permitted
tar: Exiting with failure status due to previous errors
rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405
Authentication requested [root] for make clean:
bash: make: command not found
Authentication requested [root] for make driver:
bash: make: command not found
##################################################
Compile make driver error: 127
Please check error Mesg
##################################################

由於我一般是 Linux 新手,所以我不知道從這裡去哪裡,所以我很感激任何幫助。如果您需要更多資訊,請詢問,我會發布。

我剛剛發現你的晶片實際上是rtl8192eu. 據我所知,Ubuntu 的 repo 中沒有它的驅動程序。但是,正如 v0yAgEr 在 OSMC 論壇上提到的那樣,該晶片的驅動程序適用於 GitHub 上的核心版本 3.18 。我修改了 v0yAgEr 的教程,希望對你有用:

  1. 安裝build-essential
  • 從可以訪問 Internet 的電腦上,轉到Ubuntu Packages,將build-essential其依賴項及其依賴項的依賴項下載到一個名為bldessen
  • 將該文件夾複製到您的 Pi,然後通過以下方式安裝所有 debsudo cd bldessen && dkpg --install *.deb
  1. 從 GitHub 下載驅動程序(點擊下載 Zip按鈕),複製到您的 Pi,然後將其解壓縮:unzip rtl8192eu-master.zip
  2. 編譯你的驅動程序:
cd rtl8192eu-master
make ARCH=arm
sudo make ARCH=arm  install
sudo bash -c 'echo "options 8192eu rtw_power_mgnt=0 rtw_enusbss=0">/etc/modprobe.d/8192eu.conf'
  1. 測試是否載入了驅動程序:
modprobe 8192eu
modinfo 8192eu

引用自:https://unix.stackexchange.com/questions/219362