この質問を改善したいですか? 質問を更新して、UnixおよびLinuxStackExchangeのトピックになります。
3年前に閉鎖されました。
この質問を改善する
XUbuntuを実行するPCをセットアップしていますが、これまでのところ、かなりうまくいっています。 Wi-Fiを機能させるのに問題があります。
最初は既存のNetgearA6200を試してみましたが、基本的にドライバーは存在せず、Windowsドライバーを使用する必要があると言われました。これは気に入らなかったので、次のいずれかを購入しました。
https://www.amazon.co.uk/gp/product/B06XZ1DBPZ/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1
LinuxをサポートされているOSとしてリストしています。
私はそれを機能させるのにあまり運がありませんでした。プラグを差し込んでドライバーを魔法のように手に入れたいと思っていましたが、そのような運はありませんでした。
チップセットは明らかにrealtek RTL8811AU
(これは、Windows PCに接続することで入手できました)。
この投稿を見つけました:
https://ubuntuforums.org/showthread.php?t=2306417
しかし、失敗する* –Linuxが更新されるたびにこれをやり直さなければならないという考えも好きではありません…
ドングルに付属しているドライバーを確認しましたが、install.sh
があります。 ドライバーをコンパイルしてインストールします(これは、上記の投稿で参照されているgithubリポジトリと同様のことをしていると思います)。このインストールスクリプトも失敗します**…
ディスクにはソースコードのtarも含まれています…
新しいアップデートが出たときにドライバーを追跡して更新するapt-getコマンドでこれを実行することを本当に望んでいました。
動作させるようになった場合、更新を取得するたびに本当にやり直す必要がありますか?
これに少し腹を立てて、今まではすべて順調でした!
ありがとう
* make failure output
[email protected]:~/git/rtl8811AU_rtl8821A-linux$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.10.0-33-generic/build M=/home/andy/git/rtl8811AU_rtl8821A-linux modules
make[1]: Entering directory '/usr/src/linux-headers-4.10.0-33-generic'
CC [M] /home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_cmd.o
CC [M] /home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_security.o
CC [M] /home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.o
In file included from /home/andy/git/rtl8811AU_rtl8821A-linux/include/drv_types.h:64:0,
from /home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.c:22:
/home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.c: In function ‘dump_drv_version’:
/home/andy/git/rtl8811AU_rtl8821A-linux/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/home/andy/git/rtl8811AU_rtl8821A-linux/include/rtw_debug.h:240:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/;
^
/home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.c:65:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "%s %sn", DRV_NAME, DRIVERVERSION);
^
/home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.c:66:64: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
DBG_871X_SEL_NL(sel, "build time: %s %sn", __DATE__, __TIME__);
^
//snip LOADS of errors
/home/andy/git/rtl8811AU_rtl8821A-linux/include/rtw_debug.h:240:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/;
^
/home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.c:1221:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(m, "best_channel_24G = %dn", best_channel_24G);
^
cc1: some warnings being treated as errors
scripts/Makefile.build:294: recipe for target '/home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.o' failed
make[2]: *** [/home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.o] Error 1
Makefile:1524: recipe for target '_module_/home/andy/git/rtl8811AU_rtl8821A-linux' failed
make[1]: *** [_module_/home/andy/git/rtl8811AU_rtl8821A-linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.10.0-33-generic'
Makefile:1323: recipe for target 'modules' failed
make: *** [modules] Error 2
[email protected]:~/git/rtl8811AU_rtl8821A-linux$
**含まれているドライバーからのスクリプト出力をインストールします:
[email protected]:~/Downloads/wifi dongle$ sudo ./install.sh
##################################################
Realtek Wi-Fi driver Auto installation script
Novembor, 21 2011 v1.1.0
##################################################
Decompress the driver source tar ball:
rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51.tar.gz
rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/
rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/
//snip - loads of files listed
rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51
Authentication requested [root] for make clean:
cd hal/OUTSRC/ ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal/OUTSRC/ ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal/led ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.ko
cd hal ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd platform ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions
Authentication requested [root] for make driver:
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.10.0-33-generic/build M=/home/andy/Downloads/wifi dongle/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51 modules
make[1]: Entering directory '/usr/src/linux-headers-4.10.0-33-generic'
arch/x86/Makefile:140: CONFIG_X86_X32 enabled but no binutils support
make[1]: *** No rule to make target 'dongle/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51'. Stop.
make[1]: Leaving directory '/usr/src/linux-headers-4.10.0-33-generic'
Makefile:1551: recipe for target 'modules' failed
make: *** [modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################
承認された回答:
Wi-Fiを機能させるには、rtl8812au-dkms
をインストールする必要があります 公式のUbuntuリポジトリから。
sudo apt-get install rtl8812au-dkms
sudo modprobe 8812au
または、dkms
を使用してドライバーをビルドします diederikdehaas / rtl8812AU git repoから(カーネルバージョン> =4.7でサポートが追加されました)、ルート実行として:
apt install dkms
git clone https://github.com/diederikdehaas/rtl8812AU.git
cd rtl8812AU
DRV_NAME=rtl8812AU
DRV_VERSION=4.3.14
mkdir /usr/src/${DRV_NAME}-${DRV_VERSION}
git archive driver-${DRV_VERSION} | tar -x -C /usr/src/${DRV_NAME}-${DRV_VERSION}
dkms add -m ${DRV_NAME} -v ${DRV_VERSION}
dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
dkms install -m ${DRV_NAME} -v ${DRV_VERSION}
modprobe -v 8812au