D-link DWA-121 安裝問題 [論壇 - Ubuntu安裝問題]


正在瀏覽:   1 名遊客


 到底部   前一個主題   下一個主題  [無發表權] 請登錄或者註冊

(1) 2 »


D-link DWA-121 安裝問題
會員三級
註冊日期:
2007/8/21 22:08
所屬群組:
已註冊使用者
等級: 10
HP : 0 / 248
MP : 47 / 11452
EXP: 92
離線
1

To install the driver, do the following in terminal

sudo apt-get install git dkms
git clone https://github.com/jeremyb31/rtl8188eu.git
sudo dkms add ./rtl8188eu
sudo dkms install 8188eu/1.0
Reboot


請問一下 , 當鍵入
git clone https://github.com/jeremyb31/rtl8188eu.git

時 , github 會要求輸入 github 的帳密 , 但回復無法驗證帳密而中止 ,
個人確定帳密無誤之後 , 上官網查詢 , 才知道官網已取消上述的驗證帳密方式 , 導致無法繼續安裝 D-Link DWA-121 的安裝 , 想請教各位前輩 , 該如何解決呢 ?


目前狀況 : linux lite 可以抓到網卡 , 也已輸入 wifi 連線密碼 , 燈號會閃 , 但就是無法連網

2022/3/9 20:59
應用擴展 工具箱
回覆: D-link DWA-121 安裝問題
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 901
MP : 671 / 29310
EXP: 6
離線
我執行您提到的指令,並不會詢問帳號密碼


git clone https://github.com/jeremyb31/rtl8188eu.git



顯示


Cloning into 'rtl8188eu'...
remote: Enumerating objects: 10150, done.
remote: Total 10150 (delta 0), reused 0 (delta 0), pack-reused 10150
Receiving objects: 100% (10150/10150), 12.49 MiB | 1.84 MiB/s, done.
Resolving deltas: 100% (7510/7510), done.





我的經驗,公開的Repository,clone時,通常是打錯網址,才會詢問帳號密碼



另外你可以在「https://github.com/jeremyb31/rtl8188eu」這個頁面,

找到「綠色按鈕 - Code」按下,

會出現一個選單,裡面有一個「Download ZIP」,你可以點選,就會下載

也可以按下滑鼠右鍵,複製連結(Copy Link),

可以透過下面指令下載


wget -c 'https://github.com/jeremyb31/rtl8188eu/archive/refs/heads/master.zip' -O 'rtl8188eu.zip'



然後執行下面指令,解壓縮


unzip rtl8188eu.zip



就會產生一個資料夾「rtl8188eu-master」。


以上提供參考

2022/3/9 22:39
應用擴展 工具箱
回覆: D-link DWA-121 安裝問題
會員三級
註冊日期:
2007/8/21 22:08
所屬群組:
已註冊使用者
等級: 10
HP : 0 / 248
MP : 47 / 11452
EXP: 92
離線
感謝.....
可以跟你請教詳細的安裝過程嗎 ? 網路上有好幾個版本 , 都試過...... 不成功

2022/3/11 23:15
應用擴展 工具箱
回覆: D-link DWA-121 安裝問題
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 901
MP : 671 / 29310
EXP: 6
離線
高寒 寫到:
感謝.....
可以跟你請教詳細的安裝過程嗎 ? 網路上有好幾個版本 , 都試過...... 不成功


以下分批貼上

## 索引

* #5 - 背景環境
* #6 - 參考影片
* #7 - 前置作業
* #8 - 探索「DWA-121 驅動程式【for Linux】 (_5.7.6)」
* #9 - 初步探索「https://github.com/lwfinger/rtl8188eu
* #10 - 第一種方案:修改「Makefile」
* #11 - 第二種方案:直接「clone」到「/usr/src/rtl8188eu-4.1.4」這個資料夾
* #12 - 題外話 / 探索「TP-Link Archer T2U Plus」
* #13 - inxi
* #14 - 題外話 / 安裝「TP-Link Archer T2U Plus」的「Driver」

================================================================================

## Wiki

* Dynamic Kernel Module Support (中文)

## Ubuntu Wiki

* DKMSPackaging

## Debian Wiki

* rtl819x

================================================================================

## 參考文章

* 在 Linux 下查詢硬體資訊的工具指令

2022/3/17 12:11
應用擴展 工具箱
回覆: D-link DWA-121 安裝問題
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 901
MP : 671 / 29310
EXP: 6
離線
## 背景環境

根據您在「#1 D-link DWA-121 安裝問題」提到的

以及您在另一篇「D-link DWA-181」的發問。

================================================================================

Google 查詢「d-link dwa-121

查到下面兩個網址

* http://www.dlinktw.com.tw/home/product?id=676
* http://www.dlinktw.com.tw/techsupport/ProductInfo.aspx?m=DWA-121

================================================================================

Google 查詢「linux lite

查到下面的網址

* 維基百科 / Linux Lite (中文)
* Linux Lite
* Linux Lite / Download
* Linux Lite / Mirrors
* http://repo.linuxliteos.com/linuxlite/isos/

後記: LinuxLite / Grub Boot Iso / 範例


Free Download
Linux Lite 5.8

Linux Lite 5.8 64bit - 1st February, 2022

This is the final release in Series 5.x See below for more information.

    UEFI/LEGACY ISO: linux-lite-5.8-64bit.iso
    MD5SUM: 93a63d605fc99ea62f1d6e60fb4d3b44
    SHA256: 8763eac7aa6a9b7887ab9abbbc40c469bca358a32bb35a1d46a756b5071d627b
    SIZE: 1.4GB - DVD/USB
    LIVE USER: Login to the live desktop is automatic
    BASE: Ubuntu 20.04.3 LTS



從「Download頁面」看到以上資訊,
關於「Linux Lite 5.8」是基於「Ubuntu 20.04.3 LTS」。

================================================================================

因此以下的回覆,是我在「Xubuntu 20.04」測試紀錄

先紀錄我的環境

執行


lsb_release -a



顯示


No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.4 LTS
Release:	20.04
Codename:	focal



執行


cat /etc/lsb-release



顯示


DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.4 LTS"



執行


uname -r



顯示


5.4.0-100-generic




================================================================================

[回到索引]

2022/3/17 12:16
應用擴展 工具箱
回覆: D-link DWA-121 安裝問題
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 901
MP : 671 / 29310
EXP: 6
離線
## 參考影片

接著,我用另外一個廠牌的另一個型號

Youtube 查詢 「TP-Link TL-WN725N linux driver

查到一個「參考影片」,裡面有紀錄參考的操作指令

紀錄如下


Live to Learn Technology 寫到:
In built drivers that came with Ubuntu Linux 20.04 LTS is working very slow with TP-Link wifi adapter TL-WN823N.
This adapter uses Realtek RTL8192EU chipset (2357:0109).
TP link provides drivers but their documentation outdated. Here is the quick installation method to access High Speed internet.
The below commands are used in this video.
lsusb
sudo apt-get install mokutil && mokutil --sb-state
sudo apt-get install git linux-headers-generic build-essential dkms
git clone https://github.com/clnhub/rtl8192eu-linux
cd rtl8192eu-linux
sudo dkms add .
sudo dkms install rtl8192eu/1.0
echo "blacklist rtl8xxxu" | sudo tee /etc/modprobe.d/rtl8xxxu.conf




================================================================================

[回到索引]

2022/3/17 12:19
應用擴展 工具箱
回覆: D-link DWA-121 安裝問題
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 901
MP : 671 / 29310
EXP: 6
離線
## 前置作業

根據上面「#6 回覆」提到的參考影片,

可以執行如下的指令


sudo apt-get install git linux-headers-generic build-essential dkms



執行上面指令,來安裝所需要的套件

* git
* linux-headers-generic
* build-essential
* dkms

================================================================================

以下是在我的環境相關背景資訊,可以忽略的操作步驟。

================================================================================

執行


apt-cache show linux-headers-generic



顯示


Package: linux-headers-generic
Architecture: amd64
Version: 5.4.0.104.108
Priority: optional
Section: devel
Source: linux-meta
Origin: Ubuntu
Maintainer: Ubuntu Kernel Team <kernel-team@lists.ubuntu.com>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 19
Depends: linux-headers-5.4.0-104-generic
Filename: pool/main/l/linux-meta/linux-headers-generic_5.4.0.104.108_amd64.deb
Size: 2332
MD5sum: 4753a617c193962140f7ad7956c44249
SHA1: 04784b008fb843a3221efcad99420a2ee857f052
SHA256: 8ee715bd84066d87347f67655adbd8469da6aef48180acd13d1346c995f1b0b1
SHA512: da305f34a2039c4130d3c82e78a56f7bca83f5392dc6062a22ed66af0a7d7e7dc0ecc1c23488b202b148fccae30dce61292cd282c6d01ff064324e4322edd3d0
Description-en: Generic Linux kernel headers
 This package will always depend on the latest generic kernel headers
 available.
Description-md5: 9c9742ab9c289b1e900fab477bc0070d

Package: linux-headers-generic
Architecture: amd64
Version: 5.4.0.26.32
Priority: optional
Section: devel
Source: linux-meta
Origin: Ubuntu
Maintainer: Ubuntu Kernel Team <kernel-team@lists.ubuntu.com>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 17
Depends: linux-headers-5.4.0-26-generic
Filename: pool/main/l/linux-meta/linux-headers-generic_5.4.0.26.32_amd64.deb
Size: 2680
MD5sum: 8748c25cf0e093332238a39b08c5cbe4
SHA1: 9d3f3671b45ff6da87497b3bbacf048a64043dfc
SHA256: 6dd5e3319b90f5ecf45017bff2df1ea441a81dd2f9f77aa67134d2b4b79a38f5
Description-en: Generic Linux kernel headers
 This package will always depend on the latest generic kernel headers
 available.
Description-md5: 9c9742ab9c289b1e900fab477bc0070d



================================================================================

執行


apt-cache show linux-headers-generic | grep '^Depends:'



顯示


Depends: linux-headers-5.4.0-104-generic
Depends: linux-headers-5.4.0-26-generic



================================================================================

執行


apt-cache policy linux-headers-generic



顯示


linux-headers-generic:
  Installed: 5.4.0.104.108
  Candidate: 5.4.0.104.108
  Version table:
 *** 5.4.0.104.108 500
        500 http://tw.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
     5.4.0.26.32 500
        500 http://tw.archive.ubuntu.com/ubuntu focal/main amd64 Packages



================================================================================

執行


dpkg -l linux-headers-generic



顯示


Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                  Version       Architecture Description
+++-=====================-=============-============-=================================
ii  linux-headers-generic 5.4.0.104.108 amd64        Generic Linux kernel headers



================================================================================

執行


apt-cache show linux-headers-5.4.0-104-generic



顯示


Package: linux-headers-5.4.0-104-generic
Architecture: amd64
Version: 5.4.0-104.118
Priority: optional
Section: devel
Source: linux
Origin: Ubuntu
Maintainer: Ubuntu Kernel Team <kernel-team@lists.ubuntu.com>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 14644
Provides: linux-headers, linux-headers-3.0
Depends: linux-headers-5.4.0-104, libc6 (>= 2.14), libelf1 (>= 0.142), libssl1.1 (>= 1.1.0)
Filename: pool/main/l/linux/linux-headers-5.4.0-104-generic_5.4.0-104.118_amd64.deb
Size: 1398076
MD5sum: 0f7d448b0c288ffb8d280accc89ce981
SHA1: f98a18c1fe26d1e1d1822b0b1edfdfc5b5d02797
SHA256: c855b028ea7c99422ba9f8158217a66cf6ca47a9e8a0ed355ba81bdf9a55e5c2
SHA512: 64ee701462bb685e378017dc3bd7458898b6b9267836635c7327cd5e691eacfa99ca107042649781610c0cc54ae7752efe55bf796973ce7f2019bbc4290f58c1
Description-en: Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
 This package provides kernel header files for version 5.4.0 on
 64 bit x86 SMP.
 .
 This is for sites that want the latest kernel headers.  Please read
 /usr/share/doc/linux-headers-5.4.0-104/debian.README.gz for details.
Description-md5: dbac8b03b3b77c29956169ff7e856fd6



================================================================================

執行


apt-cache show linux-headers-5.4.0-104



顯示


Package: linux-headers-5.4.0-104
Architecture: all
Version: 5.4.0-104.118
Multi-Arch: foreign
Priority: optional
Section: devel
Source: linux
Origin: Ubuntu
Maintainer: Ubuntu Kernel Team <kernel-team@lists.ubuntu.com>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 69532
Depends: coreutils
Filename: pool/main/l/linux/linux-headers-5.4.0-104_5.4.0-104.118_all.deb
Size: 10990980
MD5sum: 2269d201538431bcbf70f9b71ad9e5f2
SHA1: e2137d85e0728e466c6a880a3ed4b9f3a185a227
SHA256: ee568d4ad3275645e02a500f671aa8ea5de01e4d631b51f5eb8648a4d4771368
SHA512: e719f2617eb5a1baa45b9debba58b58715867769198b3c996f9b1efd9bb9d5487161a38386b2ca25accce47ad820938e4e84965ca02c5b75a9642e773f0b4dc2
Description-en: Header files related to Linux kernel version 5.4.0
 This package provides kernel header files for version 5.4.0, for sites
 that want the latest kernel headers. Please read
 /usr/share/doc/linux-headers-5.4.0-104/debian.README.gz for details
Description-md5: 73824e6bb4dac1cf8403c4716c299887



================================================================================

執行


dpkg -l 'linux-headers-*'



顯示


Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                            Version       Architecture Description
+++-===============================-=============-============-========================================================
un  linux-headers-3.0               <none>        <none>       (no description available)
un  linux-headers-5.4.0-100-generic <none>        <none>       (no description available)
ii  linux-headers-5.4.0-104         5.4.0-104.118 all          Header files related to Linux kernel version 5.4.0
ii  linux-headers-5.4.0-104-generic 5.4.0-104.118 amd64        Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
un  linux-headers-5.4.0-21-generic  <none>        <none>       (no description available)
un  linux-headers-5.4.0-24-generic  <none>        <none>       (no description available)
un  linux-headers-5.4.0-26-generic  <none>        <none>       (no description available)
un  linux-headers-5.4.0-28-generic  <none>        <none>       (no description available)
un  linux-headers-5.4.0-29-generic  <none>        <none>       (no description available)
un  linux-headers-5.4.0-31-generic  <none>        <none>       (no description available)
un  linux-headers-5.4.0-33-generic  <none>        <none>       (no description available)
un  linux-headers-5.4.0-42-generic  <none>        <none>       (no description available)
un  linux-headers-5.4.0-45-generic  <none>        <none>       (no description available)
un  linux-headers-5.4.0-47-generic  <none>        <none>       (no description available)
un  linux-headers-5.4.0-48-generic  <none>        <none>       (no description available)
un  linux-headers-5.4.0-52-generic  <none>        <none>       (no description available)
un  linux-headers-5.4.0-53-generic  <none>        <none>       (no description available)
un  linux-headers-5.4.0-56-generic  <none>        <none>       (no description available)
un  linux-headers-5.4.0-58-generic  <none>        <none>       (no description available)
un  linux-headers-5.4.0-59-generic  <none>        <none>       (no description available)
un  linux-headers-5.4.0-60-generic  <none>        <none>       (no description available)
un  linux-headers-5.4.0-65-generic  <none>        <none>       (no description available)
un  linux-headers-5.4.0-66-generic  <none>        <none>       (no description available)
un  linux-headers-5.4.0-67-generic  <none>        <none>       (no description available)
un  linux-headers-5.4.0-70-generic  <none>        <none>       (no description available)
un  linux-headers-5.4.0-72-generic  <none>        <none>       (no description available)
un  linux-headers-5.4.0-99-generic  <none>        <none>       (no description available)
un  linux-headers-686-pae           <none>        <none>       (no description available)
un  linux-headers-amd64             <none>        <none>       (no description available)
ii  linux-headers-generic           5.4.0.104.108 amd64        Generic Linux kernel headers



================================================================================

[回到索引]

2022/3/17 12:24
應用擴展 工具箱
回覆: D-link DWA-121 安裝問題
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 901
MP : 671 / 29310
EXP: 6
離線
## 探索「DWA-121 驅動程式【for Linux】 (_5.7.6)」

根據前面「#5 回覆」提到的

* http://www.dlinktw.com.tw/techsupport/ProductInfo.aspx?m=DWA-121

在這個頁面,選擇「B1」,

接著選擇「DWA-121 驅動程式【for Linux】 (_5.7.6)」「2019/06/28」,

按下「下載」那個按鈕,下載檔案「DWA-121B1linuxdriver_RTL8188EUS_linux_v5.7.6_33076.20190626-WPA3.tar_20190730.bz2

或是執行下面指令,下載


wget -c 'http://www.dlinktw.com.tw/techsupport/download.ashx?file=13888' -O 'DWA-121B1linuxdriver_RTL8188EUS_linux_v5.7.6_33076.20190626-WPA3.tar_20190730.bz2'



================================================================================

下載完成後,接著執行下面指令,解壓縮


tar xf DWA-121B1linuxdriver_RTL8188EUS_linux_v5.7.6_33076.20190626-WPA3.tar_20190730.bz2



會產生一個資料夾「RTL8188EUS_linux_v5.7.6_33076.20190626-WPA3」

================================================================================

接著執行下面指令,觀看資料夾結構


tree RTL8188EUS_linux_v5.7.6_33076.20190626-WPA3



顯示


RTL8188EUS_linux_v5.7.6_33076.20190626-WPA3
├── android_ref_codes_JB_4.2
│   ├── linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff
│   ├── realtek_wifi_SDK_for_android_JB_4.2_20130208.tar.gz
│   └── Realtek_Wi-Fi_SDK_for_Android_JB_4.2.pdf
├── android_ref_codes_KK_4.4
│   ├── linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff
│   ├── realtek_wifi_SDK_for_android_KK_4.4_20140117.tar.gz
│   └── Realtek_Wi-Fi_SDK_for_Android_KK_4.4.pdf
├── android_ref_codes_L_5.x
│   ├── linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff
│   ├── realtek_wifi_SDK_for_android_L_5.x_20150811.tgz
│   └── Realtek_Wi-Fi_SDK_for_Android_L_5.x.pdf
├── android_ref_codes_M_6.x
│   ├── linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff
│   ├── realtek_wifi_SDK_for_android_M_6.x_20151116.tgz
│   └── Realtek_Wi-Fi_SDK_for_Android_M_6.x.pdf
├── android_ref_codes_N_7.0
│   ├── linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff
│   ├── realtek_wifi_SDK_for_android_N_7.0_20161024.zip
│   └── Realtek_Wi-Fi_SDK_for_Android_N_7.0.pdf
├── android_ref_codes_O_8.0
│   ├── linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff
│   ├── realtek_wifi_SDK_for_android_O_8.0_20181001.tar.gz
│   └── Realtek_Wi-Fi_SDK_for_Android_O_8.0.pdf
├── android_ref_codes_P_9.x
│   ├── linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff
│   ├── realtek_wifi_SDK_for_android_P_9.x_20181001.tar.gz
│   └── Realtek_Wi-Fi_SDK_for_Android_P_9.x.pdf
├── document
│   ├── Driver_Configuration_for_RF_Regulatory_Certification.pdf
│   ├── How_to_append_vendor_specific_ie_to_driver_management_frames.pdf
│   ├── HowTo_enable_driver_to_support_80211d.pdf
│   ├── How_to_enable_Realtek_RSON_function.pdf
│   ├── HowTo_enable_the_power_saving_functionality.pdf
│   ├── How_to_set_driver_debug_log_level.pdf
│   ├── HowTo_support_more_VidPids.pdf
│   ├── HowTo_support_WIFI_certification_test.pdf
│   ├── linux_dhcp_server_notes.txt
│   ├── Miracast_for_Realtek_WiFi.pdf
│   ├── Quick_Start_Guide_for_Adaptivity_and_Carrier_Sensing_Test.pdf
│   ├── Quick_Start_Guide_for_Bridge.pdf
│   ├── Quick_Start_Guide_for_Driver_Compilation_and_Installation.pdf
│   ├── Quick_Start_Guide_for_SoftAP.pdf
│   ├── Quick_Start_Guide_for_Station_Mode.pdf
│   ├── Quick_Start_Guide_for_WOW.pdf
│   ├── Quick_Start_Guide_for_wpa_supplicant_WiFi_P2P_test.pdf
│   ├── Realtek_WiFi_concurrent_mode_Introduction.pdf
│   ├── RTK_P2P_WFD_Programming_guide.pdf
│   ├── SoftAP_Mode_features.pdf
│   ├── Wireless_tools_porting_guide.pdf
│   └── wpa_cli_with_wpa_supplicant.pdf
├── driver
│   └── rtl8188EUS_linux_v5.7.6_33076.20190419.tar.gz
├── install.sh
├── readme.txt
├── ReleaseNotes.pdf
├── wireless_tools
│   └── wireless_tools.30.rtl.tar.gz
└── wpa_supplicant_hostapd
    ├── p2p_hostapd.conf
    ├── rtl_hostapd_2G.conf
    ├── rtl_hostapd_5G.conf
    ├── wpa_0_8.conf
    ├── wpa_supplicant_8_jb_4.2_rtw_r25670.20171213.tar.gz
    ├── wpa_supplicant_8_kk_4.4_rtw_r25669.20171213.tar.gz
    ├── wpa_supplicant_8_L_5.x_rtw_r24600.20171025.tar.gz
    ├── wpa_supplicant_8_M_6.x_rtw_r24570.20171025.tar.gz
    ├── wpa_supplicant_8_N_7.x_rtw_r24577.20171025.tar.gz
    ├── wpa_supplicant_8_O_8.x_rtw_r33457.20190507.tar.gz
    ├── wpa_supplicant_8_P_9.x_rtw_r29226.20180827.tar.gz
    └── wpa_supplicant_hostapd-0.8_rtw_r24647.20171025.tar.gz

11 directories, 60 files




================================================================================

執行下面指令,切換到「RTL8188EUS_linux_v5.7.6_33076.20190626-WPA3/driver」這個資料夾


cd RTL8188EUS_linux_v5.7.6_33076.20190626-WPA3/driver



執行下面指令


ls -1



顯示


rtl8188EUS_linux_v5.7.6_33076.20190419.tar.gz



接著執行下面指令,解壓縮「rtl8188EUS_linux_v5.7.6_33076.20190419.tar.gz」這個檔案


tar xf rtl8188EUS_linux_v5.7.6_33076.20190419.tar.gz



會產生一個資料夾「rtl8188EUS_linux_v5.7.6_33076.20190419」


接著執行下面指令,觀看「rtl8188EUS_linux_v5.7.6_33076.20190419」這個資料夾結構


tree rtl8188EUS_linux_v5.7.6_33076.20190419



顯示


rtl8188EUS_linux_v5.7.6_33076.20190419
├── clean
├── core
│   ├── efuse
│   │   └── rtw_efuse.c
│   ├── mesh
│   │   ├── rtw_mesh.c
│   │   ├── rtw_mesh.h
│   │   ├── rtw_mesh_hwmp.c
│   │   ├── rtw_mesh_hwmp.h
│   │   ├── rtw_mesh_pathtbl.c
│   │   └── rtw_mesh_pathtbl.h
│   ├── rtw_ap.c
│   ├── rtw_beamforming.c
│   ├── rtw_br_ext.c
│   ├── rtw_btcoex.c
│   ├── rtw_btcoex_wifionly.c
│   ├── rtw_bt_mp.c
│   ├── rtw_chplan.c
│   ├── rtw_chplan.h
│   ├── rtw_cmd.c
│   ├── rtw_debug.c
│   ├── rtw_eeprom.c
│   ├── rtw_ieee80211.c
│   ├── rtw_io.c
│   ├── rtw_ioctl_query.c
│   ├── rtw_ioctl_set.c
│   ├── rtw_iol.c
│   ├── rtw_mem.c
│   ├── rtw_mi.c
│   ├── rtw_mlme.c
│   ├── rtw_mlme_ext.c
│   ├── rtw_mp.c
│   ├── rtw_odm.c
│   ├── rtw_p2p.c
│   ├── rtw_pwrctrl.c
│   ├── rtw_recv.c
│   ├── rtw_rf.c
│   ├── rtw_rm.c
│   ├── rtw_rm_fsm.c
│   ├── rtw_rson.c
│   ├── rtw_sdio.c
│   ├── rtw_security.c
│   ├── rtw_sreset.c
│   ├── rtw_sta_mgt.c
│   ├── rtw_tdls.c
│   ├── rtw_vht.c
│   ├── rtw_wapi.c
│   ├── rtw_wapi_sms4.c
│   ├── rtw_wlan_util.c
│   └── rtw_xmit.c
├── hal
│   ├── efuse
│   │   ├── efuse_mask.h
│   │   └── rtl8188e
│   │       ├── HalEfuseMask8188E_PCIE.c
│   │       ├── HalEfuseMask8188E_PCIE.h
│   │       ├── HalEfuseMask8188E_SDIO.c
│   │       ├── HalEfuseMask8188E_SDIO.h
│   │       ├── HalEfuseMask8188E_USB.c
│   │       └── HalEfuseMask8188E_USB.h
│   ├── hal_btcoex.c
│   ├── hal_btcoex_wifionly.c
│   ├── hal_com.c
│   ├── hal_com_c2h.h
│   ├── hal_com_phycfg.c
│   ├── hal_dm_acs.c
│   ├── hal_dm_acs.h
│   ├── hal_dm.c
│   ├── hal_dm.h
│   ├── hal_halmac.c
│   ├── hal_halmac.h
│   ├── hal_hci
│   │   └── hal_usb.c
│   ├── hal_intf.c
│   ├── hal_mcc.c
│   ├── hal_mp.c
│   ├── hal_phy.c
│   ├── HalPwrSeqCmd.c
│   ├── led
│   │   ├── hal_led.c
│   │   └── hal_usb_led.c
│   ├── phydm
│   │   ├── ap_makefile.mk
│   │   ├── halhwimg.h
│   │   ├── halrf
│   │   │   ├── halphyrf_ap.c
│   │   │   ├── halphyrf_ap.h
│   │   │   ├── halphyrf_ce.c
│   │   │   ├── halphyrf_ce.h
│   │   │   ├── halphyrf_iot.c
│   │   │   ├── halphyrf_iot.h
│   │   │   ├── halphyrf_win.c
│   │   │   ├── halphyrf_win.h
│   │   │   ├── halrf.c
│   │   │   ├── halrf_debug.c
│   │   │   ├── halrf_debug.h
│   │   │   ├── halrf_dpk.h
│   │   │   ├── halrf_features.h
│   │   │   ├── halrf.h
│   │   │   ├── halrf_iqk.h
│   │   │   ├── halrf_kfree.c
│   │   │   ├── halrf_kfree.h
│   │   │   ├── halrf_powertracking_ap.c
│   │   │   ├── halrf_powertracking_ap.h
│   │   │   ├── halrf_powertracking.c
│   │   │   ├── halrf_powertracking_ce.c
│   │   │   ├── halrf_powertracking_ce.h
│   │   │   ├── halrf_powertracking.h
│   │   │   ├── halrf_powertracking_iot.c
│   │   │   ├── halrf_powertracking_iot.h
│   │   │   ├── halrf_powertracking_win.c
│   │   │   ├── halrf_powertracking_win.h
│   │   │   ├── halrf_psd.c
│   │   │   ├── halrf_psd.h
│   │   │   ├── halrf_txgapcal.c
│   │   │   ├── halrf_txgapcal.h
│   │   │   └── rtl8188e
│   │   │       ├── halrf_8188e_ap.c
│   │   │       ├── halrf_8188e_ap.h
│   │   │       ├── halrf_8188e_ce.c
│   │   │       ├── halrf_8188e_ce.h
│   │   │       ├── halrf_8188e_win.c
│   │   │       └── halrf_8188e_win.h
│   │   ├── mp_precomp.h
│   │   ├── phydm_adaptivity.c
│   │   ├── phydm_adaptivity.h
│   │   ├── phydm_adc_sampling.c
│   │   ├── phydm_adc_sampling.h
│   │   ├── phydm_antdect.c
│   │   ├── phydm_antdect.h
│   │   ├── phydm_antdiv.c
│   │   ├── phydm_antdiv.h
│   │   ├── phydm_api.c
│   │   ├── phydm_api.h
│   │   ├── phydm_auto_dbg.c
│   │   ├── phydm_auto_dbg.h
│   │   ├── phydm_beamforming.c
│   │   ├── phydm_beamforming.h
│   │   ├── phydm.c
│   │   ├── phydm_cck_pd.c
│   │   ├── phydm_cck_pd.h
│   │   ├── phydm_ccx.c
│   │   ├── phydm_ccx.h
│   │   ├── phydm_cfotracking.c
│   │   ├── phydm_cfotracking.h
│   │   ├── phydm_debug.c
│   │   ├── phydm_debug.h
│   │   ├── phydm_dfs.c
│   │   ├── phydm_dfs.h
│   │   ├── phydm_dig.c
│   │   ├── phydm_dig.h
│   │   ├── phydm_direct_bf.c
│   │   ├── phydm_direct_bf.h
│   │   ├── phydm_dynamictxpower.c
│   │   ├── phydm_dynamictxpower.h
│   │   ├── phydm_features_ap.h
│   │   ├── phydm_features_ce2_kernel.h
│   │   ├── phydm_features_ce.h
│   │   ├── phydm_features.h
│   │   ├── phydm_features_iot.h
│   │   ├── phydm_features_win.h
│   │   ├── phydm.h
│   │   ├── phydm_hwconfig.c
│   │   ├── phydm_hwconfig.h
│   │   ├── phydm_interface.c
│   │   ├── phydm_interface.h
│   │   ├── phydm_lna_sat.c
│   │   ├── phydm_lna_sat.h
│   │   ├── phydm_math_lib.c
│   │   ├── phydm_math_lib.h
│   │   ├── phydm.mk
│   │   ├── phydm_mp.c
│   │   ├── phydm_mp.h
│   │   ├── phydm_noisemonitor.c
│   │   ├── phydm_noisemonitor.h
│   │   ├── phydm_pathdiv.c
│   │   ├── phydm_pathdiv.h
│   │   ├── phydm_phystatus.c
│   │   ├── phydm_phystatus.h
│   │   ├── phydm_pmac_tx_setting.c
│   │   ├── phydm_pmac_tx_setting.h
│   │   ├── phydm_pow_train.c
│   │   ├── phydm_pow_train.h
│   │   ├── phydm_precomp.h
│   │   ├── phydm_pre_define.h
│   │   ├── phydm_primary_cca.c
│   │   ├── phydm_primary_cca.h
│   │   ├── phydm_psd.c
│   │   ├── phydm_psd.h
│   │   ├── phydm_rainfo.c
│   │   ├── phydm_rainfo.h
│   │   ├── phydm_regdefine11ac.h
│   │   ├── phydm_regdefine11n.h
│   │   ├── phydm_reg.h
│   │   ├── phydm_regtable.h
│   │   ├── phydm_rssi_monitor.c
│   │   ├── phydm_rssi_monitor.h
│   │   ├── phydm_smt_ant.c
│   │   ├── phydm_smt_ant.h
│   │   ├── phydm_soml.c
│   │   ├── phydm_soml.h
│   │   ├── phydm_types.h
│   │   ├── rtl8188e
│   │   │   ├── hal8188erateadaptive.c
│   │   │   ├── hal8188erateadaptive.h
│   │   │   ├── hal8188ereg.h
│   │   │   ├── halhwimg8188e_bb.c
│   │   │   ├── halhwimg8188e_bb.h
│   │   │   ├── halhwimg8188e_mac.c
│   │   │   ├── halhwimg8188e_mac.h
│   │   │   ├── halhwimg8188e_rf.c
│   │   │   ├── halhwimg8188e_rf.h
│   │   │   ├── phydm_regconfig8188e.c
│   │   │   ├── phydm_regconfig8188e.h
│   │   │   ├── phydm_rtl8188e.c
│   │   │   ├── phydm_rtl8188e.h
│   │   │   └── version_rtl8188e.h
│   │   ├── sd4_phydm_2_kernel.mk
│   │   └── txbf
│   │       ├── halcomtxbf.c
│   │       ├── halcomtxbf.h
│   │       ├── haltxbf8192e.c
│   │       ├── haltxbf8192e.h
│   │       ├── haltxbf8814a.c
│   │       ├── haltxbf8814a.h
│   │       ├── haltxbf8822b.c
│   │       ├── haltxbf8822b.h
│   │       ├── haltxbfinterface.c
│   │       ├── haltxbfinterface.h
│   │       ├── haltxbfjaguar.c
│   │       ├── haltxbfjaguar.h
│   │       ├── phydm_hal_txbf_api.c
│   │       └── phydm_hal_txbf_api.h
│   └── rtl8188e
│       ├── Hal8188EPwrSeq.c
│       ├── hal8188e_s_fw.c
│       ├── hal8188e_s_fw.h
│       ├── hal8188e_t_fw.c
│       ├── hal8188e_t_fw.h
│       ├── rtl8188e_cmd.c
│       ├── rtl8188e_dm.c
│       ├── rtl8188e_hal_init.c
│       ├── rtl8188e_phycfg.c
│       ├── rtl8188e_rf6052.c
│       ├── rtl8188e_rxdesc.c
│       ├── rtl8188e_sreset.c
│       ├── rtl8188e_xmit.c
│       └── usb
│           ├── rtl8188eu_led.c
│           ├── rtl8188eu_recv.c
│           ├── rtl8188eu_xmit.c
│           ├── usb_halinit.c
│           └── usb_ops_linux.c
├── ifcfg-wlan0
├── include
│   ├── autoconf.h
│   ├── basic_types.h
│   ├── byteorder
│   │   ├── big_endian.h
│   │   ├── generic.h
│   │   ├── little_endian.h
│   │   ├── swabb.h
│   │   └── swab.h
│   ├── circ_buf.h
│   ├── cmd_osdep.h
│   ├── cmn_info
│   │   └── rtw_sta_info.h
│   ├── custom_gpio.h
│   ├── drv_conf.h
│   ├── drv_types_ce.h
│   ├── drv_types_gspi.h
│   ├── drv_types.h
│   ├── drv_types_linux.h
│   ├── drv_types_pci.h
│   ├── drv_types_sdio.h
│   ├── drv_types_xp.h
│   ├── ethernet.h
│   ├── gspi_hal.h
│   ├── gspi_ops.h
│   ├── gspi_ops_linux.h
│   ├── gspi_osintf.h
│   ├── h2clbk.h
│   ├── Hal8188EPhyCfg.h
│   ├── Hal8188EPhyReg.h
│   ├── Hal8188EPwrSeq.h
│   ├── Hal8188FPhyCfg.h
│   ├── Hal8188FPhyReg.h
│   ├── Hal8188FPwrSeq.h
│   ├── Hal8192EPhyCfg.h
│   ├── Hal8192EPhyReg.h
│   ├── Hal8192EPwrSeq.h
│   ├── Hal8192FPhyCfg.h
│   ├── Hal8192FPhyReg.h
│   ├── Hal8192FPwrSeq.h
│   ├── Hal8703BPhyCfg.h
│   ├── Hal8703BPhyReg.h
│   ├── Hal8703BPwrSeq.h
│   ├── Hal8710BPhyCfg.h
│   ├── Hal8710BPhyReg.h
│   ├── Hal8710BPwrSeq.h
│   ├── Hal8723BPhyCfg.h
│   ├── Hal8723BPhyReg.h
│   ├── Hal8723BPwrSeq.h
│   ├── Hal8723DPhyCfg.h
│   ├── Hal8723DPhyReg.h
│   ├── Hal8723DPwrSeq.h
│   ├── Hal8723PwrSeq.h
│   ├── Hal8812PhyCfg.h
│   ├── Hal8812PhyReg.h
│   ├── Hal8812PwrSeq.h
│   ├── Hal8814PhyCfg.h
│   ├── Hal8814PhyReg.h
│   ├── Hal8814PwrSeq.h
│   ├── Hal8821APwrSeq.h
│   ├── hal_btcoex.h
│   ├── hal_btcoex_wifionly.h
│   ├── hal_com.h
│   ├── hal_com_h2c.h
│   ├── hal_com_led.h
│   ├── hal_com_phycfg.h
│   ├── hal_com_reg.h
│   ├── hal_data.h
│   ├── hal_gspi.h
│   ├── hal_ic_cfg.h
│   ├── hal_intf.h
│   ├── hal_pg.h
│   ├── hal_phy.h
│   ├── hal_phy_reg.h
│   ├── HalPwrSeqCmd.h
│   ├── hal_sdio_coex.h
│   ├── hal_sdio.h
│   ├── HalVerDef.h
│   ├── ieee80211_ext.h
│   ├── ieee80211.h
│   ├── if_ether.h
│   ├── ip.h
│   ├── linux
│   │   └── wireless.h
│   ├── mlme_osdep.h
│   ├── nic_spec.h
│   ├── osdep_intf.h
│   ├── osdep_service_bsd.h
│   ├── osdep_service_ce.h
│   ├── osdep_service.h
│   ├── osdep_service_linux.h
│   ├── osdep_service_xp.h
│   ├── pci_hal.h
│   ├── pci_ops.h
│   ├── pci_osintf.h
│   ├── recv_osdep.h
│   ├── rtl8188e_cmd.h
│   ├── rtl8188e_dm.h
│   ├── rtl8188e_hal.h
│   ├── rtl8188e_led.h
│   ├── rtl8188e_recv.h
│   ├── rtl8188e_rf.h
│   ├── rtl8188e_spec.h
│   ├── rtl8188e_sreset.h
│   ├── rtl8188e_xmit.h
│   ├── rtl8188f_cmd.h
│   ├── rtl8188f_dm.h
│   ├── rtl8188f_hal.h
│   ├── rtl8188f_led.h
│   ├── rtl8188f_recv.h
│   ├── rtl8188f_rf.h
│   ├── rtl8188f_spec.h
│   ├── rtl8188f_sreset.h
│   ├── rtl8188f_xmit.h
│   ├── rtl8192e_cmd.h
│   ├── rtl8192e_dm.h
│   ├── rtl8192e_hal.h
│   ├── rtl8192e_led.h
│   ├── rtl8192e_recv.h
│   ├── rtl8192e_rf.h
│   ├── rtl8192e_spec.h
│   ├── rtl8192e_sreset.h
│   ├── rtl8192e_xmit.h
│   ├── rtl8192f_cmd.h
│   ├── rtl8192f_dm.h
│   ├── rtl8192f_hal.h
│   ├── rtl8192f_led.h
│   ├── rtl8192f_recv.h
│   ├── rtl8192f_rf.h
│   ├── rtl8192f_spec.h
│   ├── rtl8192f_sreset.h
│   ├── rtl8192f_xmit.h
│   ├── rtl8703b_cmd.h
│   ├── rtl8703b_dm.h
│   ├── rtl8703b_hal.h
│   ├── rtl8703b_led.h
│   ├── rtl8703b_recv.h
│   ├── rtl8703b_rf.h
│   ├── rtl8703b_spec.h
│   ├── rtl8703b_sreset.h
│   ├── rtl8703b_xmit.h
│   ├── rtl8710b_cmd.h
│   ├── rtl8710b_dm.h
│   ├── rtl8710b_hal.h
│   ├── rtl8710b_led.h
│   ├── rtl8710b_lps_poff.h
│   ├── rtl8710b_recv.h
│   ├── rtl8710b_rf.h
│   ├── rtl8710b_spec.h
│   ├── rtl8710b_sreset.h
│   ├── rtl8710b_xmit.h
│   ├── rtl8723b_cmd.h
│   ├── rtl8723b_dm.h
│   ├── rtl8723b_hal.h
│   ├── rtl8723b_led.h
│   ├── rtl8723b_recv.h
│   ├── rtl8723b_rf.h
│   ├── rtl8723b_spec.h
│   ├── rtl8723b_sreset.h
│   ├── rtl8723b_xmit.h
│   ├── rtl8723d_cmd.h
│   ├── rtl8723d_dm.h
│   ├── rtl8723d_hal.h
│   ├── rtl8723d_led.h
│   ├── rtl8723d_lps_poff.h
│   ├── rtl8723d_recv.h
│   ├── rtl8723d_rf.h
│   ├── rtl8723d_spec.h
│   ├── rtl8723d_sreset.h
│   ├── rtl8723d_xmit.h
│   ├── rtl8812a_cmd.h
│   ├── rtl8812a_dm.h
│   ├── rtl8812a_hal.h
│   ├── rtl8812a_led.h
│   ├── rtl8812a_recv.h
│   ├── rtl8812a_rf.h
│   ├── rtl8812a_spec.h
│   ├── rtl8812a_sreset.h
│   ├── rtl8812a_xmit.h
│   ├── rtl8814a_cmd.h
│   ├── rtl8814a_dm.h
│   ├── rtl8814a_hal.h
│   ├── rtl8814a_led.h
│   ├── rtl8814a_recv.h
│   ├── rtl8814a_rf.h
│   ├── rtl8814a_spec.h
│   ├── rtl8814a_sreset.h
│   ├── rtl8814a_xmit.h
│   ├── rtl8821a_spec.h
│   ├── rtl8821a_xmit.h
│   ├── rtl8821c_dm.h
│   ├── rtl8821ce_hal.h
│   ├── rtl8821c_hal.h
│   ├── rtl8821cs_hal.h
│   ├── rtl8821c_spec.h
│   ├── rtl8821cu_hal.h
│   ├── rtl8822be_hal.h
│   ├── rtl8822b_hal.h
│   ├── rtl8822bs_hal.h
│   ├── rtl8822bu_hal.h
│   ├── rtl8822ce_hal.h
│   ├── rtl8822c_hal.h
│   ├── rtl8822cs_hal.h
│   ├── rtl8822cu_hal.h
│   ├── rtw_android.h
│   ├── rtw_ap.h
│   ├── rtw_beamforming.h
│   ├── rtw_br_ext.h
│   ├── rtw_btcoex.h
│   ├── rtw_btcoex_wifionly.h
│   ├── rtw_bt_mp.h
│   ├── rtw_byteorder.h
│   ├── rtw_cmd.h
│   ├── rtw_debug.h
│   ├── rtw_eeprom.h
│   ├── rtw_efuse.h
│   ├── rtw_event.h
│   ├── rtw_ht.h
│   ├── rtw_ioctl.h
│   ├── rtw_ioctl_query.h
│   ├── rtw_ioctl_set.h
│   ├── rtw_io.h
│   ├── rtw_iol.h
│   ├── rtw_mcc.h
│   ├── rtw_mem.h
│   ├── rtw_mi.h
│   ├── rtw_mlme_ext.h
│   ├── rtw_mlme.h
│   ├── rtw_mp.h
│   ├── rtw_mp_phy_regdef.h
│   ├── rtw_odm.h
│   ├── rtw_p2p.h
│   ├── rtw_pwrctrl.h
│   ├── rtw_qos.h
│   ├── rtw_recv.h
│   ├── rtw_rf.h
│   ├── rtw_rm_fsm.h
│   ├── rtw_rm.h
│   ├── rtw_rson.h
│   ├── rtw_sdio.h
│   ├── rtw_security.h
│   ├── rtw_sreset.h
│   ├── rtw_tdls.h
│   ├── rtw_version.h
│   ├── rtw_vht.h
│   ├── rtw_wapi.h
│   ├── rtw_wifi_regd.h
│   ├── rtw_xmit.h
│   ├── sdio_hal.h
│   ├── sdio_ops_ce.h
│   ├── sdio_ops.h
│   ├── sdio_ops_linux.h
│   ├── sdio_ops_xp.h
│   ├── sdio_osintf.h
│   ├── sta_info.h
│   ├── usb_hal.h
│   ├── usb_ops.h
│   ├── usb_ops_linux.h
│   ├── usb_osintf.h
│   ├── usb_vendor_req.h
│   ├── wifi.h
│   ├── wlan_bssdef.h
│   └── xmit_osdep.h
├── Kconfig
├── Makefile
├── os_dep
│   ├── linux
│   │   ├── custom_gpio_linux.c
│   │   ├── ioctl_cfg80211.c
│   │   ├── ioctl_cfg80211.h
│   │   ├── ioctl_linux.c
│   │   ├── ioctl_mp.c
│   │   ├── mlme_linux.c
│   │   ├── os_intfs.c
│   │   ├── recv_linux.c
│   │   ├── rhashtable.c
│   │   ├── rhashtable.h
│   │   ├── rtw_android.c
│   │   ├── rtw_cfgvendor.c
│   │   ├── rtw_cfgvendor.h
│   │   ├── rtw_proc.c
│   │   ├── rtw_proc.h
│   │   ├── rtw_rhashtable.c
│   │   ├── rtw_rhashtable.h
│   │   ├── usb_intf.c
│   │   ├── usb_ops_linux.c
│   │   ├── wifi_regd.c
│   │   └── xmit_linux.c
│   └── osdep_service.c
├── platform
│   ├── custom_country_chplan.h
│   ├── platform_aml_s905_sdio.c
│   ├── platform_aml_s905_sdio.h
│   ├── platform_arm_act_sdio.c
│   ├── platform_ARM_SUN50IW1P1_sdio.c
│   ├── platform_ARM_SUNnI_sdio.c
│   ├── platform_ARM_SUNxI_sdio.c
│   ├── platform_ARM_SUNxI_usb.c
│   ├── platform_ARM_WMT_sdio.c
│   ├── platform_hisilicon_hi3798_sdio.c
│   ├── platform_hisilicon_hi3798_sdio.h
│   ├── platform_ops.c
│   ├── platform_ops.h
│   ├── platform_RTK_DMP_usb.c
│   ├── platform_sprd_sdio.c
│   ├── platform_zte_zx296716_sdio.c
│   └── platform_zte_zx296716_sdio.h
├── runwpa
└── wlan0dhcp

22 directories, 541 files



================================================================================

Google 查詢「rtl8188eus debian driver

可以查詢到下面網址

* https://wiki.debian.org/rtl819x

Google 查詢「rtl8188eus linux driver

Google 查詢「rtl8188eus ubuntu driver

================================================================================

以上初步探索,

================================================================================

[回到索引]

2022/3/17 12:29
應用擴展 工具箱
回覆: D-link DWA-121 安裝問題
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 901
MP : 671 / 29310
EXP: 6
離線
## 初步探索「https://github.com/lwfinger/rtl8188eu

接著回到您在「#1 回覆」一開始提到的

* https://github.com/jeremyb31/rtl8188eu

可以知道,是從下面專案「Fork」出來的,

* https://github.com/lwfinger/rtl8188eu

看日期,猜測應該還有在維護,

所以,就來探索「https://github.com/lwfinger/rtl8188eu

================================================================================

操作完在上面「#7 回覆」提到的前置作業後,

接著下面的操作

================================================================================

執行下面指令,clone 「https://github.com/lwfinger/rtl8188eu」。


git clone https://github.com/lwfinger/rtl8188eu.git



會產生「rtl8188eu」這個資料夾

================================================================================

執行下面指令,切換到「rtl8188eu」這個資料夾


cd rtl8188eu



================================================================================

繼續操作前,先來觀看一下「dkms.conf」

執行下面指令,觀看「dkms.conf」這個檔案的內容


cat dkms.conf



顯示


PACKAGE_NAME="rtl8188eu"
PACKAGE_VERSION="4.1.4"
BUILT_MODULE_NAME[0]="8188eu"
MAKE="'make' -j$(nproc) KVER=$kernelver"
CLEAN="'make' clean"
DEST_MODULE_LOCATION[0]="/updates/dkms"
AUTOINSTALL="YES"



================================================================================

執行下面指令,


sudo dkms add .



顯示



Creating symlink /var/lib/dkms/rtl8188eu/4.1.4/source ->
                 /usr/src/rtl8188eu-4.1.4

DKMS: add completed.




================================================================================

繼續操作前,先來觀察一下相關的資料夾

執行


ls /usr/src/rtl8188eu-4.1.4 -l -d



顯示


drwxr-xr-x 8 root root 4096 Mar 17 09:18 /usr/src/rtl8188eu-4.1.4



執行


ls /usr/src/rtl8188eu-4.1.4 -1



顯示


control_ap
COPYING
core
debian
dkms.conf
hal
hostapd-2.9
include
Makefile
os_dep
README.md
rtl8188eufw.bin
rtl_hostapd.conf



執行


ls /usr/src/rtl8188eu-4.1.4 -1



顯示


control_ap
COPYING
core
debian
dkms.conf
hal
hostapd-2.9
include
Makefile
os_dep
README.md
rtl8188eufw.bin
rtl_hostapd.conf



初步看起來,是複製這個專案裡面的檔案,到「/usr/src/rtl8188eu-4.1.4」這個資料夾。

================================================================================

執行


file /var/lib/dkms/rtl8188eu/4.1.4/source



顯示


/var/lib/dkms/rtl8188eu/4.1.4/source: symbolic link to /usr/src/rtl8188eu-4.1.4



執行


tree /var/lib/dkms/rtl8188eu



顯示


/var/lib/dkms/rtl8188eu
└── 4.1.4
    ├── build
    └── source -> /usr/src/rtl8188eu-4.1.4

3 directories, 0 files



================================================================================

回到原來的操作,接著執行下面指令


sudo dkms install -m rtl8188eu -v 4.1.4



顯示



Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' -j4 KVER=5.4.0-104-generic...(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8188eu: 4.1.4 not found
Error! Bad return status for module build on kernel: 5.4.0-104-generic (x86_64)
Consult /var/lib/dkms/rtl8188eu/4.1.4/build/make.log for more information.




發生錯誤了,執行下面指令,觀看相關的log


cat /var/lib/dkms/rtl8188eu/4.1.4/build/make.log



顯示


DKMS make.log for rtl8188eu-4.1.4 for kernel 5.4.0-104-generic (x86_64)
Thu 17 Mar 2022 09:31:31 AM CST
Directory .git does not exist indicating that you downloaded the source as a zip file. Only the 'git clone' method is now supported.
make: *** [Makefile:152: test] Error 1




會發生這個錯誤,可以閱讀「README.md」,在一開頭有提到


IMPORTANT - PLEASE READ:

Beginning on November 4, 2019, I will NO LONGER support people that have downloaded the source as a zip file. Using git has much more flexibility. In addition, there is much less likelihood that a user will contact me with a problem that is ALREADY fixed.



然後可以觀察「Makefile」,其中有一段檢查

執行


grep 'Directory .git' 'Makefile' -n



顯示


29:MSG="Directory .git does not exist indicating that you downloaded the source as a zip file. Only the 'git clone' method is now supported."




執行


grep 'MSG' 'Makefile' -n



顯示


29:MSG="Directory .git does not exist indicating that you downloaded the source as a zip file. Only the 'git clone' method is now supported."
152:	@if [ !  -e  ./.git ] ; then echo $(MSG); exit 1; fi;





執行


grep '^all:' 'Makefile' -A 7



顯示


all: test modules

test:
	@if [ !  -e  ./.git ] ; then echo $(MSG); exit 1; fi;

modules:
	$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd)  modules



編譯前,會先偵測是否有「.git」這個資料夾存在,

若不存在,則不會接續下去,並且顯示提示訊息。


================================================================================

了解到了這個機制後,提供兩種解決方案,

* 第一種方案:修改「Makefile」,將那檢查機制移除。
* 第二種方案:直接「clone」到「/usr/src/rtl8188eu-4.1.4」這個資料夾

詳細操作步驟,紀錄在下面的回覆

================================================================================

[回到索引]

2022/3/17 12:42
應用擴展 工具箱
回覆: D-link DWA-121 安裝問題
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 901
MP : 671 / 29310
EXP: 6
離線
## 第一種方案:修改「Makefile」

在操作前,先將上面「#9 回覆」做過的操作,恢復。

================================================================================

執行


sudo dkms remove -m rtl8188eu -v 4.1.4 --all



顯示


------------------------------
Deleting module version: 4.1.4
completely from the DKMS tree.
------------------------------
Done.



================================================================================

接下來執行下面指令,把「/usr/src/rtl8188eu-4.1.4」這個資料夾刪除


sudo rm /usr/src/rtl8188eu-4.1.4 -rf




================================================================================

接下來的操作步驟,就是第一種方案的操作步驟,一樣從「clone」這個步驟開始。

================================================================================

執行下面指令,clone 「https://github.com/lwfinger/rtl8188eu」。


git clone https://github.com/lwfinger/rtl8188eu.git



會產生「rtl8188eu」這個資料夾

================================================================================

執行下面指令,切換到「rtl8188eu」這個資料夾


cd rtl8188eu



================================================================================

繼續操作前,先來觀看一下「dkms.conf」

執行下面指令,觀看「dkms.conf」這個檔案的內容


cat dkms.conf



顯示


PACKAGE_NAME="rtl8188eu"
PACKAGE_VERSION="4.1.4"
BUILT_MODULE_NAME[0]="8188eu"
MAKE="'make' -j$(nproc) KVER=$kernelver"
CLEAN="'make' clean"
DEST_MODULE_LOCATION[0]="/updates/dkms"
AUTOINSTALL="YES"



================================================================================

接著就是關鍵的步驟,修改「Makefile

主要只要把下面這一行


all: test modules



修改成下面這一行就行了


all: modules



================================================================================

可以執行下面指令,直接修改「Makefile」


sed -i 's/^all:.*/all: modules/g' Makefile




================================================================================

在繼續操作前,可以執行下面指令,觀察修改的狀況


git diff



顯示


diff --git a/Makefile b/Makefile
index a0e5e40..e771fbe 100644
--- a/Makefile
+++ b/Makefile
@@ -146,7 +146,7 @@ obj-$(CONFIG_RTL8188EU) := 8188eu.o

 endif

-all: test modules
+all: modules

 test:
 	@if [ !  -e  ./.git ] ; then echo $(MSG); exit 1; fi;



================================================================================

接下來回到原來的操作

執行下面指令,


sudo dkms add .



顯示



Creating symlink /var/lib/dkms/rtl8188eu/4.1.4/source ->
                 /usr/src/rtl8188eu-4.1.4

DKMS: add completed.




================================================================================

接著執行下面指令


sudo dkms install -m rtl8188eu -v 4.1.4



顯示



Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' -j4 KVER=5.4.0-104-generic................................
cleaning build area...

DKMS: build completed.

8188eu.ko:
Running module version sanity check.

Good news! Module version v4.1.4_6773.20130222 for 8188eu.ko
exactly matches what is already found in kernel 5.4.0-104-generic.
DKMS will not replace this module.
You may override by specifying --force.

depmod.........

DKMS: install completed.



================================================================================

關於上面藍色字


dpkg -S 8188eu.ko



顯示


linux-modules-extra-5.4.0-100-generic: /lib/modules/5.4.0-100-generic/kernel/drivers/staging/rtl8188eu/r8188eu.ko
linux-modules-extra-5.4.0-104-generic: /lib/modules/5.4.0-104-generic/kernel/drivers/staging/rtl8188eu/r8188eu.ko



另外沒有安裝時,可以執行下面指令


apt-file search 8188eu.ko




================================================================================

接著先確認三個路徑

* /var/lib/dkms/rtl8188eu/kernel-5.4.0-104-generic-x86_64/module/8188eu.ko
* /var/lib/dkms/rtl8188eu/4.1.4/5.4.0-104-generic/x86_64/module/8188eu.ko
* /lib/modules/5.4.0-104-generic/updates/dkms/8188eu.ko


執行


file /var/lib/dkms/rtl8188eu/kernel-5.4.0-104-generic-x86_64



顯示


/var/lib/dkms/rtl8188eu/kernel-5.4.0-104-generic-x86_64: symbolic link to 4.1.4/5.4.0-104-generic/x86_64



執行


ls /var/lib/dkms/rtl8188eu/kernel-5.4.0-104-generic-x86_64/module/8188eu.ko




執行


ls /var/lib/dkms/rtl8188eu/4.1.4/5.4.0-104-generic/x86_64/module/8188eu.ko



執行


ls /lib/modules/5.4.0-104-generic/updates/dkms/8188eu.ko




================================================================================

因為我沒有相對應的硬體,所以我也無法確認,是否成功,

我的筆電有內建的有線和無線網路,安裝好「Xubuntu」後,都是有支援相對應的驅動程式。

所以我去借了家人的桌上型電腦的usb無線網卡(不同廠牌,不同型號)來測試dkms安裝相對應的驅動程式,

在這個步驟後,重開機,是可以自動偵測到,會將模組自動載入,也能正常透過該網卡連線。

這部份我會另外回覆紀錄,提供參考。

================================================================================

接下來,在還沒有重開機前,

可以先執行下面指令,手動載入模組


sudo modprobe 8188eu



================================================================================

執行下面指令,觀看相關資訊


modinfo 8188eu



顯示


filename:       /lib/modules/5.4.0-104-generic/updates/dkms/8188eu.ko
version:        v4.1.4_6773.20130222
author:         Realtek Semiconductor Corp.
description:    Realtek Wireless Lan Driver
license:        GPL
srcversion:     FB647C367C5096AA1F62D1D
alias:          usb:v7392pB811d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p18F0d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2C4Ep0102d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p0111d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p010Cd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v056Ep4008d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p331Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3311d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3310d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p330Fd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0076d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07B8p8179d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDApF179d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp0179d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp8179d*dc*dsc*dp*ic*isc*ip*in*
depends:
retpoline:      Y
name:           8188eu
vermagic:       5.4.0-104-generic SMP mod_unload modversions
parm:           rtw_ips_mode:The default IPS mode (int)
parm:           ifname:The default name to allocate for first interface (charp)
parm:           if2name:The default name to allocate for second interface (charp)
parm:           rtw_initmac:charp
parm:           rtw_channel_plan:int
parm:           rtw_chip_version:int
parm:           rtw_rfintfs:int
parm:           rtw_lbkmode:int
parm:           rtw_network_mode:int
parm:           rtw_channel:int
parm:           rtw_mp_mode:int
parm:           rtw_wmm_enable:int
parm:           rtw_vrtl_carrier_sense:int
parm:           rtw_vcs_type:int
parm:           rtw_busy_thresh:int
parm:           rtw_led_enable:int
parm:           rtw_ht_enable:int
parm:           rtw_cbw40_enable:int
parm:           rtw_ampdu_enable:int
parm:           rtw_rx_stbc:int
parm:           rtw_ampdu_amsdu:int
parm:           rtw_lowrate_two_xmit:int
parm:           rtw_rf_config:int
parm:           rtw_power_mgnt:int
parm:           rtw_smart_ps:int
parm:           rtw_low_power:int
parm:           rtw_wifi_spec:int
parm:           rtw_antdiv_cfg:int
parm:           rtw_antdiv_type:int
parm:           rtw_enusbss:int
parm:           rtw_hwpdn_mode:int
parm:           rtw_hwpwrp_detect:int
parm:           rtw_hw_wps_pbc:int
parm:           rtw_max_roaming_times:The max roaming times to try (uint)
parm:           rtw_fw_iol:FW IOL (int)
parm:           rtw_mc2u_disable:int
parm:           rtw_80211d:Enable 802.11d mechanism (int)
parm:           rtw_notch_filter:0:Disable, 1:Enable, 2:Enable only for P2P (uint)
parm:           debug:Set debug level (1-9) (default 1) (int)



================================================================================

上面的操作步驟,我有寫成「腳本」,放在「GitHub」上

* rtl8188eu-fixmake

================================================================================

接下來紀錄第二種方案的操作步驟

================================================================================

[回到索引]

2022/3/17 12:51
應用擴展 工具箱

(1) 2 »

 [無發表權] 請登錄或者註冊


可以查看帖子.
不可發帖.
不可回覆.
不可編輯自己的帖子.
不可刪除自己的帖子.
不可發起投票調查.
不可在投票調查中投票.
不可上傳附件.
不可不經審核直接發帖.