LoginSignup
0
0

More than 5 years have passed since last update.

Ubuntu 16.04 で無線子機(BUFFALO WI-U2-433DHP)を使う

Last updated at Posted at 2019-04-28

ソースをダウンロード

$ git clone https://github.com/msharov/rtl8812au.git

ソースにデバイスIDを追加

ダウンロードしたソースがWI-U2-433DHPに対応していなかった。
WI-U2-433DHPのデバイスIDを調べる。
WI-U2-433DHPを挿した状態で

$ lsusb
Bus 002 Device 003: ID 056e:6018 Elecom Co., Ltd 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0458:004b KYE Systems Corp. (Mouse Systems) 
Bus 001 Device 009: ID 0411:029b BUFFALO INC. (formerly MelCo., Inc.)

BUFFALO INC.となっているものが目的のデバイスで、IDは0411:029bの部分である。

/os_dep/linux/usb_intf.c を開く。
#ifdef CONFIG_RTL8821A の中に {USB_DEVICE(0x0411, 0x029B),.driver_info = RTL8821}, /* Buffalo - WI-U2-433DHP */ を追加する
0x0411と0x029Bは先ほど調べたIDである。

#ifdef CONFIG_RTL8821A
        /*=== Realtek demoboard ===*/
   .......................................
   .......................................
   .......................................
    {USB_DEVICE(0x3823, 0x6249),.driver_info = RTL8821}, /* Obihai - OBiWiFi */
    {USB_DEVICE(0x0411, 0x029B),.driver_info = RTL8821}, /* Buffalo - WI-U2-433DHP */
#endif

ビルド

$ make
$ sudo insmod 8812au.ko

モジュールがロードされたことを確認する。

$ lsmod

表示されたリストに8812auがあればOK
WI-U2-433DHPを挿して確認する。

起動時にロードされるようにしておく

$ sudo cp 8812au.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless
$ sudo depmod -a
$ sudo bash -c 'echo 8812au >> /etc/modules-load.d/modules.conf'
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0